decide MUST allow a principal that holds a permission through a role assigned to it directly, to a group it is in (to any depth up to five), or inherited from a role it holds, within the tenant, the resource and the time of the assignment, and MUST refuse a principal that is not known or is not active.
Enforced (check): .github: cd commons/data && bun run verify — suite/identity-operations.test.ts: one decision answers for a person, a group's members and an agent: roles, inheritance and groups permit, a privileged role is never an agent's, entitlements gate, relationships permit, a refusal wins, unknown never allows, and a disabled principal can do nothing; suite/identity-operations.test.ts: what a group passes on reaches a member three groups down and not one six down, and a delegation made in one tenant gives nothing in another though its root holds the role there; suite/identity-operations.test.ts: a permission is for people, machines and groups unless it names the kinds it is for, and a role that names the kinds that may hold it is not held by another kind
Proved by: data/suite/identity-operations.test.ts
Written in: data/sql/extensions/operations/identity/decide.ts, data/sql/extensions/operations/identity/mod.ts
Tests: passed: suite/identity-operations.test.ts one decision answers for a person, a group's members and an agent: roles, inheritance and ; passed: suite/identity-operations.test.ts what a group passes on reaches a member three groups down and not one six down, and a dele; passed: suite/identity-operations.test.ts a permission is for people, machines and groups unless it names the kinds it is for, and a