docs: roles & ABAC quick reference
Add docs/reference/roles-and-access.md — a short, scannable reference for the three dev roles (drafter/approver/admin), that login is faked and role is a separate dev-only stand-in, how to switch (dev switcher / ?role=), a per-role capability table, and the one ABAC principle (server emits + enforces; UI renders). Points to PRD-0002 + the code. Adds a pointer from CLAUDE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -184,6 +184,8 @@ atomic layer it is (a context organism doesn't get its own `Organisms/` bucket).
|
||||
components keep referencing tokens). System-font stack (licensed RO/Rijks fonts not shipped). See ADR-0003.
|
||||
- Scenario toggle (**dev-only**, not wired in prod builds): `?scenario=slow|loading|empty|error`
|
||||
on data pages (`scenario.interceptor.ts`) to see every async state.
|
||||
- Dev role stand-in (**dev-only**): `?role=drafter|approver|admin` (or the `⚙ state` dev panel).
|
||||
Roles, how to switch, and what each unlocks: `docs/reference/roles-and-access.md`.
|
||||
- Prettier; `.editorconfig`. tsconfig: `noImplicitReturns`,
|
||||
`noPropertyAccessFromIndexSignature`, `noFallthroughCasesInSwitch`, `isolatedModules`.
|
||||
- **Enforced, not just hoped-for:** `npm run lint` (`eslint.config.mjs`) fails the build
|
||||
|
||||
Reference in New Issue
Block a user