The portal, role by role
One file per role: who they are · why they open the portal · which screens · what features and functionality that role requires · what they must be denied.
Scope (Pete, 2026-08-03). All current activity is operational — environmental review, inspection, NCR, incident and investigation, audit. No planning, no costing, no bidding. No file here contains a bid, budget or mobilisation feature.
The model these files implement is ../PORTAL-ROLES.md:
four bands (inspector · reviewer · manager · admin — the closed enum already
enforced on the read plane at
workers/esg-query/src/authz.ts:50),
plus scope (tenant · project(s) · sites) and grants (named
capabilities). These files add nothing to that model; they say what each role
needs built.
The roles
| File | Role | Band | Primary client |
|---|---|---|---|
| field-inspector.md | Field inspector / environmental technician | inspector | esg-field app; portal is a receipt |
| environmental-monitor.md | Environmental monitor (often subcontracted) | inspector | esg-field app + portal queue |
| site-supervisor.md | Site supervisor / superintendent / foreman | inspector, narrow | portal — assigned work only |
| hse-lead.md | HSE lead | reviewer | portal — one project |
| environmental-manager.md | Environmental manager | manager | portal — one project, all sites |
| environmental-director.md | Environmental director | manager, all projects | portal — portfolio |
| internal-auditor.md | Internal auditor | reviewer + audit grant | esg-field (walk) + portal (report) |
| external-auditor.md | External auditor | reviewer, time-boxed | portal — evidence only |
| client-representative.md | Client representative | reviewer, released-only | portal — released records |
| platform-administrator.md | Platform administrator | admin | platform surfaces |
Sixteen actors, ten of them roles with logins. The ten above are the ones who sign in and therefore the ones with feature files. The other six are in parties-and-non-human-actors.md.
Parties and non-human actors — one file
Site representative (countersigns a walk on the inspector's device) · crew, operator or vendor (performs corrective work) · regulator (receives notifiable reports) · board (receives a released pack) · the device, which is a bearer of a key and not an actor · and Rita, of whom there is one per person: every role has their own instance, each reading with that person's scope and holding no grant, ever (FR-UX-9 / FR-SEC-5). What each role's Rita does is in that role's file, under "Their Rita"; how those instances research, collaborate and get disclosures approved is in agent-collaboration.md.
None of them opens the portal, so none has a feature file — but each imposes
requirements on the roles that do (F-PTY-1..18), because *an identity in the
record is not a login*.
Reading the status marks
✅ exists · ⚠️ partial — derivation exists, the write or the identity does not · ❌ absent.
Two facts colour every file, and both are cited rather than asserted:
- Every field actor is the literal string
"device"(apps/esg-field/screens/inspect/TaskFlow.tsx:262,app/api/ncrs/route.ts:90). Until that is a person, no feature below is attributable. - The console writes on ingest and never on governance. Every ⚠️ in these files is the same missing thing: an appended decision event naming a person and the grounds.
Written 2026-08-03 · Claude Opus 5 (Claude Code).