Platform administrator
Band admin · Scope the tenant · Signs in on the platform surfaces.
Status today: /admin is reachable on loopback with no identity at all
(app/lib/admin-access.ts:42) — the file
describes itself as an interim boundary pending exactly this.
1. Who this is
Ours. They keep the platform running and provably tamper-evident.
admin is not the top of a ladder — it is a different ladder. It carries
platform authority and no compliance signature (SoD-5). The most privileged
compliance role is manager. Otherwise the person who can rotate keys can also
close every ticket, and no audit trail means anything.
2. Why they open the portal
| Trigger | The question | What good looks like |
|---|---|---|
| New starter | Who are they, and what may they see? | An identity with organisation and employment relation; band and scope granted separately, by a manager |
| Leaver / ended engagement | Is their access gone? | Immediate revocation — and every signature they made still stands |
| A device is lost | Can it still submit? | Device binding revoked; the records it already produced are untouched |
| Something looks wrong | Is the chain intact? | Quarantine, chain-integrity and export-trail surfaces (workers/esg-query/src/authz.ts:362) |
| Retention | What must go, and what must never go? | Retention and soft-delete guards, already scripted but not yet wired into CI |
3. Screens
| Screen | Purpose | Today |
|---|---|---|
| Identities | create, grant, revoke | ❌ |
| Devices | bind, revoke, last contact | ❌ |
| Integrity | quarantine · chain-integrity · location-history | ⚠️ policy exists, no read path (divergent shapes 501) |
| Platform trail | every admin act, separate from the decision ledger | ❌ |
4. Features and functionality required
| ID | Feature | What it must do | Today |
|---|---|---|---|
| F-ADM-1 | Identity provisioning | Create an identity with organisation and employmentRelation; no band, no scope by default — it can reach nothing until granted | ❌ |
| F-ADM-2 | Grant is not an admin act | The band and scope are granted by a manager, as an event naming the grantor. An admin granting a compliance band needs a second admin (SoD-5, RD-6) | ❌ |
| F-ADM-3 | Device binding | Sign-in binds a person to a device for the session; the device attests where and when, the credential attests who (FR-ROLE-16) | ❌ |
| F-ADM-4 | Revocation, immediate and non-retroactive on the record | Access ends now; past signatures stand (FR-ROLE-17). This is what stops "we removed the auditor" from meaning "the audit lost its author" | ❌ |
| F-ADM-5 | Expiry for external identities | Engagement windows close themselves; renewal is a new decision | ❌ |
| F-ADM-6 | Integrity surfaces | Quarantine · chain-integrity · location-history — the AUDIT band, manager/admin only | ⚠️ 501, divergent shape |
| F-ADM-7 | Platform trail, separate from the decision ledger | Every provisioning act, with the grantor. It must not be possible to mistake an admin action for a compliance decision | ❌ |
| F-ADM-8 | Retention and soft-delete guards in CI | guard-no-llm-in-proof-chain · soft-delete · retention scripts exist; no CI job runs them yet | ⚠️ |
| F-ADM-9 | Replace the loopback boundary | adminAccessAllowed() is an interim host check with a documented spoofing risk. Real authn/authz retires it | ⚠️ |
5. Denied
Signing, verifying, closing, assigning, approving or releasing anything in the compliance record (SoD-5) · granting themselves a compliance band without a second admin · reading record content where a scope claim would not admit them.
6. Done means
Every person in the system was provisioned by a named admin and granted by a named manager; leavers lose access the same day; and no admin action can be mistaken for a compliance decision.
R. Their Rita
Every role has their own agent instance. Same person, same scope, no authority (PORTAL-ROLES §3.4).
- Answers platform questions — provisioning state, device last-contact, chain integrity.
- Reads no record content, because her principal may not (§5). An admin's agent is the shortest path to an admin reading everything, and it is closed deliberately.
- Cannot grant, revoke or bind. Those are acts with a grantor's name on them (F-ADM-2).
Never, in this instance or any other: mark coverage · sign · submit · close a ticket · assign an owner · release anything · supply a value no person or sensor produced. She reads with this person's scope claim and holds none of this person's grants.
7. Traceability
FR-SEC-4/5 · FR-ROLE-1/5/11/16/17 · SoD-5 · RD-6 · PORTAL-ROLES §6.10