Status: Accepted (in force / observed constraint). Reconstructed.

Context

The ~26 admin tiers (AdminRole) each have a string name and a stable integer ID (IPRIMARY_ADMIN = 1, IHR_ADMIN = 6, IEWA_ADMIN = 157, …). The IDs are not contiguous: 1–9, then a jump to 22–31, then 157, 164–169. The gaps are not a mistake — they're the fossil record of tiers added in waves over time (core HR/payroll first, then IT/assets/performance/finance, then payments/wallet/compliance).

Decision

Treat these integer IDs as an external, append-only identifier space. New tiers take the next free int (often far from the last), and existing ids are never renumbered or reused.

Consequences

Good:

Bad / costs:

Guidance

Alternatives

Related