Design decisions behind the identity layer. Reconstructed from the code (status "Accepted (in force)") — these record why the surprising parts are the way they are, so future changes don't undo them by accident.
| RFD | Decision | Why it matters |
|---|---|---|
| 001 | Tenant ids are encrypted claims, resolved server-side | A decoded JWT leaks no raw tenant id; clients never pass org/company ids |
| 002 | Access is tier (coarse) + per-permission (fine), two catalogs joined by alias |
Explains the 26 tiers vs 230 permissions and why both exist |
| 003 | Admin tier int IDs are non-contiguous | Don't renumber — external data references the exact ints |
| 004 | Primary/Secondary Admins bypass all per-permission checks | Owner tiers are all-access; the catalog only constrains everyone else |
Related, in the People set: RFD-001 two-database identity · RFD-004 multi-profile switch — the identity split and profile-switch mechanism this layer builds on.
RFD-001: tenant identifiers are encrypted JWT claims, resolved server-side
RFD-002: authorization is a coarse tier + a fine per-permission grant
RFD-003: admin tier integer ids are non-contiguous and stable
RFD-004: primary & secondary admins bypass all per-permission checks