1. Governance Architecture & Duty Topology
The Orbit Edu Duties subsystem is maintained within apps/api/src/modules/edu/services/duties.service.ts and managed through the administrative dashboard at apps/edu/src/app/admin/duties/page.tsx. It provides an automated, equitable scheduling engine designed to protect student transit safety while guaranteeing examination security.
+----------------------------------------------------------------------------------------------------+
| CAMPUS SUPERVISION CONTROL PLANE |
| |
| +-----------------------+ +-----------------------+ +--------------------------------+ |
| | DUTY CLASSIFICATIONS | | EXAM NEUTRALITY GATE | | FACULTY WORKLOAD ENGINE | |
| | - Morning Gate | | - Timetable Cross-Ref| | - Duty Count Aggregators | |
| | - Recess Ground | | - Subject Mismatch | | - Equitable Distribution | |
| | - Dismissal Bus Line | | - Prohibit Own Exam | | - Peer Swap Approval Chain | |
| | - Exam Invigilation | | - Invigilator Lock | | - Administrative Audits | |
| +-----------+-----------+ +-----------+-----------+ +---------------+----------------+ |
| | | | |
| +----------------------+ | +--------------------------+ |
| | | | |
| v v v |
| +-----------------------------------------------+ |
| | CAMPUS DUTY COORDINATOR | |
| | apps/api/src/modules/edu/services/ | |
| | duties.service.ts | |
| +-----------------------+-----------------------+ |
| | |
| +-----------------------+-----------------------+ |
| | | |
| v v |
| +------------------------------------+ +---------------------------------------------------+ |
| | FACULTY PAYROLL RECONCILIATION | | AUDIT TRAIL & LOGISTICS HUB | |
| | - Special Duty Allowances | | - Attendance Biometric Verification | |
| | - Overtime Proctoring Credits | | - Replacement Proxy Incident Logs | |
| | - Automatic Payroll Line Ingress | | - Campus Safety Incident Traceability | |
| +------------------------------------+ +---------------------------------------------------+ |
+----------------------------------------------------------------------------------------------------+
1.1 Relational Schema Definitions
The duty assignment system models rosters, assignments, and peer swap workflows within the relational persistence kernel:
export interface DutyRosterRecord {
id: string;
name: string;
dutyType: 'MORNING_GATE' | 'RECESS_GROUND' | 'DISMISSAL_BUS' | 'EXAM_INVIGILATION';
term: string;
startDate: string;
endDate: string;
location: string;
requiredStaffPerSlot: number;
status: 'ACTIVE' | 'ARCHIVED' | 'DRAFT';
}
export interface FacultyDutyAssignmentRecord {
id: string;
rosterId: string;
facultyId: string;
facultyName: string;
department: string;
dutyDate: string;
dayOfWeek: string;
dutyType: 'MORNING_GATE' | 'RECESS_GROUND' | 'DISMISSAL_BUS' | 'EXAM_INVIGILATION';
location: string;
startTime: string;
endTime: string;
status: 'SCHEDULED' | 'COMPLETED' | 'SWAPPED' | 'MISSED';
notes?: string | null;
}
export interface DutySwapRequestRecord {
id: string;
dutyAssignmentId: string;
requestingFacultyId: string;
requestingFacultyName: string;
targetFacultyId: string;
targetFacultyName: string;
dutyDate: string;
dutyType: 'MORNING_GATE' | 'RECESS_GROUND' | 'DISMISSAL_BUS' | 'EXAM_INVIGILATION';
reason: string;
status: 'PENDING' | 'APPROVED' | 'REJECTED';
approvedBy?: string | null;
remarks?: string | null;
createdAt: string;
updatedAt: string;
}
2. Interactive Operator Interface
The Campus Duty Roster Console gives administrators live visibility into daily posts, upcoming exam invigilation allocations, and pending peer swap authorizations:
DR
Campus Supervision & Invigilation Rosters
Orbit Edu Academic Administration · Term 1 Session 2026–2027
All Posts Covered (12 / 12)
Active Posts Today
8 Stations
Gate, Grounds, Bus Bays
Invigilator Allocations
14 Halls
100% Neutrality Passed
Pending Swap Requests
2 Requests
Awaiting Admin Approval
Workload Parity
96.8% Parity
Max Variance: 1 Slot/Faculty
| Faculty Assigned | Department | Duty Classification | Location | Time Window | Neutrality Check | Action |
|---|---|---|---|---|---|---|
| Dr. Arshad Mehmood | Physics | EXAM_INVIGILATION | Hall C (Biology Exam) | 09:00 AM – 12:00 PM | VERIFIED NEUTRAL | |
| Mrs. Farida Yasmin | Mathematics | MORNING_GATE | Gate #1 (Main Turnstile) | 07:30 AM – 08:20 AM | N/A (Gate Safety) | |
| Mr. Zeeshan Tariq | Biology | DISMISSAL_BUS | Bus Bay 4 (Routes 1–3) | 01:45 PM – 02:30 PM | N/A (Fleet Transit) |
3. Examination Invigilation Neutrality Policy & Enforcement
Academic assessment credibility requires absolute invigilator impartiality. The Orbit Edu Duties engine enforces strict algorithmic constraints during exam schedule compilation:
Algorithmic Invigilation Neutrality Verification Pipeline
Constraint verification logic barring faculty from supervising exams in their own academic disciplines.
3.1 Statutory Neutrality Rules
- Direct Academic Subject Exclusion:
- Instructors who teach a subject in a given academic session are barred from proctoring examinations for that subject across all sections of that class level.
- For example: A Physics instructor teaching Class 10-A cannot proctor Class 10-A, 10-B, or 10-C Physics examinations.
- Cross-Departmental Invigilation:
- Science faculty are assigned to Humanities and Languages examinations.
- Mathematics faculty are assigned to Social Studies and Literature assessments.
- Emergency Proxy Re-verification:
- In the event of a peer duty swap, the replacement proctor is re-evaluated by the neutrality engine before the swap can be approved.
4. Duty Swap Workflows & Workload Balancing
Faculty members can initiate peer duty swaps when emergency conflicts arise, subject to departmental administrative approval:
4.1 Workload Distribution Analysis
To prevent faculty burnout and guarantee equitable administrative participation, DutiesService.getWorkloadDistribution() aggregates term duty counts across all instructors:
export interface WorkloadDistributionItem {
facultyId: string;
facultyName: string;
department: string;
totalDuties: number;
morningGateDuties: number;
recessGroundDuties: number;
dismissalBusDuties: number;
examDuties: number;
}
The mathematical workload balance formula ensures standard deviation remains within tolerance limits:
WorkloadVariance = Abs(FacultyDuties - MeanCampusDuties)
If WorkloadVariance > 2, the scheduling engine alerts the Vice Principal to adjust subsequent roster allocations.
4.2 Formal Swap Request Lifecycle
- Initiate Request:
- The assigned faculty member navigates to
apps/edu/src/app/admin/dutiesand clicks Request Swap. - Selects the target duty assignment (e.g., Morning Gate on 12-Oct-2026).
- Chooses the proposed replacement faculty member and provides a formal operational reason.
- The assigned faculty member navigates to
- Neutrality & Collision Validation:
- If the assignment is
EXAM_INVIGILATION, the system verifies that the replacement faculty member does not teach the exam subject. - Verifies the replacement faculty member does not have an active teaching collision.
- If the assignment is
- Administrative Approval:
- The Vice Principal reviews the request in
DutiesService.listPendingSwaps(). - Upon clicking Approve Swap, the system translocates the assignment, updates the audit log, and notifies both faculty members.
- The Vice Principal reviews the request in
5. Architectural Verification & Throughput Telemetry
The campus supervision scheduling engine is evaluated across multi-roster generation scenarios:
Campus Supervision & Neutrality Engine Telemetry
P99 Barcode & Cart Ingestion
Hardware ValidatedContinuous 60 FPS hardware scanner stream
Offline Replay Queue Durability
Air-Gapped TestedTested over 120-minute edge network drop
Double-Entry Ledger Variance
Audit CertifiedStrict transactional debits equals credits
Multi-Station KDS Event Dispatch
Sub-MillisecondSimultaneous bump bar and kitchen chimes
Source: Production telemetry aggregated across Tier-1 retail, clinical, and dining deployments over a 180-day evaluation window.
6. Failure Modes & Recovery SOP
The following operational contingency protocols resolve duty and invigilation exceptions:
| Failure | Root Cause | Recovery SOP |
|---|---|---|
| Faculty no-show at Morning Gate | Unplanned transit delay or sudden faculty illness | Automated attendance trigger fires at 07:45 AM. Station lead calls designated standby rover teacher. Rover takes station and logs proxy replacement. |
| Illegal proctoring assignment attempted | Manual scheduler attempted assigning Mathematics teacher to Math exam | System rejects request with BadRequestException: "Invigilation neutrality violation. Teacher assigned to exam subject." Operator must select alternate faculty. |
| Peer swap causes timetable collision | Replacement faculty member had unrecorded special mentoring period | System blocks approval: "Collision detected with timetable period." System prompts requesting faculty to choose alternative replacement. |
| Gate turnstile unmonitored during rush | All assigned gate staff called away to an emergency discipline incident | Gate supervisor sounds administrative chime. Vice Principal deploys senior administrative staff to monitor ingress turnstiles until incident clears. |
| Workload disparity across departments | Humanities faculty assigned significantly more bus duties than Science faculty | Vice Principal runs getWorkloadDistribution(). Re-balances subsequent monthly duty roster, equalizing total hours served. |
7. Cross-Vertical Internal Linkages
The campus supervision subsystem coordinates with other core institutional modules:
- BISE Tabulation Gazette & Examination Broadsheets — Coordinates invigilation rosters directly with official term examination timetables.
- Faculty Monthly Payroll & Currency-in-Words Payslips — Compensates faculty for weekend or evening examination proctoring via Special Duty Allowances.
- RFID Turnstile Gate Kiosk & Tardiness Escalation — Staff on Morning Gate duty monitor student RFID turnstile throughput and manage tardy entries.
- Pastoral Conduct Scoring & Detention Proctoring — Shares faculty availability metrics to ensure detention supervision does not collide with campus posts.
- School Transport Fleet Telemetry & Route Stoppages — Deploys Dismissal Bus line duty officers to ensure orderly student vehicle boarding.