B-SMART:
A Peer-to-Peer Institutional Ledger.

Author

Neil Villareal

Infrastructure Lead, BNHS

Abstract

"A purely digital education management system would allow academic records to be sent directly from one institution to another without going through a brittle, manual central authority."

1. Abstract

Existing public secondary education systems in the Philippines rely heavily on centralized, manual record-keeping—a process prone to data fragmentation, physical degradation, and significant administrative latency. We propose a solution to the "Paperwork Pandemic" using a digital ledger we call the **B-SMART Portal**. By utilizing a distributed consensus on identity (OAuth 2.0) and a high-fidelity persistence engine (**DoubleSafe™**), we eliminate the need for manual calculations of SF-series reports. The system provides a transparent yet secure architecture where every academic event is logged, verified, and immutable.

2. The DoubleSafe™ Protocol

To maintain data integrity in environments with unstable connectivity, B-SMART implements the **DoubleSafe™ Protocol**. Unlike traditional cloud-only systems, DoubleSafe™ utilizes a Dual-State Restoration approach:

Step 01: Local State Ledger (LSL)

The browser interface acts as a local node, auto-saving every 800ms to an encrypted `localStorage` buffer. This prevents data loss during power outages or browser crashes.

Step 02: Cloud Reconciliation (CR)

Once a heartbeat connection is detected, the LSL is reconciled with the Supabase PostgreSQL cloud cluster. This "Zero-Friction" sync ensures that the teacher's ledger is always the primary source of truth.

3. Grading Mathematics

Accuracy is enforced through strict adherence to **DepEd Order No. 8, s. 2015**. The B-SMART Engine automates the multi-stage calculation of Quarterly and Final grades via the following mathematical definitions:

// Definitive Weights (%)

Core: WW=30, PT=50, QA=20

MAPEH/TLE: WW=20, PT=60, QA=20

// Weighted Score Calculation

WS_Component = ((Earned / Total) * 100) * (Weight / 100)

// Initial Grade Calculation

G_initial = Σ (WS_Written + WS_Performance + WS_Assessment)

// Transmutation Protocol

"The initial grade is mapped to a 60-base system where 100% = 100 and 0% = 60, then scaled to a final range of 75-100 (Pass) or 60-74 (Fail)."

4. Transparency: Node Capabilities

B-SMART utilizes an asymmetric permissions architecture. Each "Node" (Account Type) has a transparent, immutable set of capabilities:

Admin Node (Principal/Registrar)

  • National Whitelist Control
  • Verification Hub (ID Approval)
  • Lrn Collision Intelligence
  • Full Audit Trail Observation

Teacher Node (The Ledger)

  • E-Class Record Management
  • Real-time Attendance (SF2)
  • DoubleSafe Auto-Sync
  • Student Pulse (Wellbeing Tracking)

Librarian Node (Custodian)

  • Inventory Engine
  • Optical ID/Barcode Scanning
  • Automated Circulation Logs
  • Overdue Alert Mitigation

Student/Parent Hub (The Observer)

  • Submission Status Tracking
  • Academic Progress View (SF9)
  • Document Upload Status
  • Teacher-to-Parent Direct Comm

5. Enrollment Infrastructure

Enrollment is no longer a manual intake but a **Structured Identity Generation** event. Our portal enforces National Data Integrity standards:

PH-Standard Validations

Strict enforcement of 12-digit LRN and 10-digit PH Mobile formats (starting with 9) at the point of entry.

Multi-State Tracker

Students monitor their progress from 'Applied' to 'Verified' to 'Sectioned' via a unique tracking ID.

Document Vault

Encrypted storage for PSA and SF9 documents, accessible only by verified Registrars.

6. Conclusion

"B-SMART is more than a portal; it is a shift in institutional trust. By replacing manual friction with automated mathematical certainty, we return time to teachers and clarity to parents. This is the new blueprint for national-grade education management."