Full Platform Inventory: 9 Apps, 28 Modules, 84 Features (186 Routes)
Scanned directly from hop-local codebase · 4-Tier Segregation (App → Module → Feature → Scope)
Departmental Config & EA Delegation Console
Operational Proxy for Department Head · Scoped Writes + Sensitive Field Masking + Dual-Attribution Audit
The following fields are strictly masked from this console:
- Staff CTC & Salary:
*** REDACTED *** - Bank Account / IFSC:
*** REDACTED *** - Store Lease Rent & Deposits:
*** REDACTED *** - Mystery Shopper Schedule:
HIDDEN_UNTIL_EXEC
Rock-Tight Dual-Attribution Audit Trail
Cryptographic SHA-256 Hash Chain (actor_person_id + delegated_principal_id + HMAC)
| Timestamp | Actor (EA) | Principal (Dept Head) | Action & Target | Tamper-Evident SHA-256 Chain |
|---|---|---|---|---|
| 23:41:02 IST | H-000155 (EA) | H-000157 (VP Ops) | Reassigned Milk Chiller Probe → Ravi K. | sha256:7f8e3a...4b12 |
| 23:38:15 IST | H-000155 (EA) | H-000157 (VP Ops) | Shifted Nudge Grace Window: 10m → 15m | sha256:a19c4d...8e90 |
| 23:25:40 IST | H-000155 (EA) | H-000157 (VP Ops) | Approved Morning Opening Checklist Template | sha256:0d5c63...c5a0 |
The 3-Pillar Governance Hierarchy & Least-Privilege Boundaries
Config Delegate vs Directory Admin vs Constitutional Super Admin
| Governance Pillar | Primary Persona & Intent | Permitted Capabilities (Least-Privilege) | Hard Forbidden Boundaries |
|---|---|---|---|
| 1. CONFIG DELEGATE (EA) | Departmental Executive Assistant / Operational Specialist |
• Task/Checklist generation on behalf of Dept Head • Nudge rules, SLA timers, WhatsApp schedules • Master template authoring (audits, recipes) • Overdue CAPA follow-up & MIS roll-up |
✕ Zero cross-department writes ✕ Zero PII / Salary / CTC view ✕ Zero store lease rent view ✕ Zero feature kill-switches |
| 2. SYSTEM ADMIN | IT Directory & Cluster Operations Administrator |
• User onboarding/offboarding • Role assignment ( access.for)• Cluster-to-outlet mappings • Stage 1 & 2 feature rollout registry |
✕ Cannot exceed Super Admin Cap = 3 ✕ Cannot modify reserved founding codes ✕ Cannot alter/disable audit trail ✕ Cannot approve own elevation (M3) |
| 3. SUPER ADMIN | Constitutional Guardians (cfo, srinivas, vm) |
• Emergency Kill-Switches (bot_chat_live, pause)• Break-glass impersonation (audited & watermarked) • Database & schema policy enforcement • Final Oven Command sign-off gates |
✕ Strictly capped at 3 principals ✕ Cannot execute un-watermarked actions ✕ Subject to immutable append-only logs |
Zero-Latency O(1) Compiled Permission Bitmask Architecture
Single Bitwise Register Check vs 6-8 SQL Multi-Joins · Fulfilling Owner Zero-Latency Mandate
Runs 6–8 database joins on every HTTP request across user_roles × permissions × features × outlets × depts. Exhausts connection pool under kitchen kiosk polling load.
Pre-compiles permissions into a 128-bit unsigned vector + in-memory frozenset. Evaluates via single bitwise AND instruction in CPU register. Zero SQL queries on request load!
Live Register Bitwise AND Simulation
0x000000000000003F
&
Feature Bit: 0x0000000000000008 (COLD_CHAIN_PROBE)
=
0x08 ≠ 0 → GRANTED (0.000012 ms)