A role assignment MUST grant one role to one principal of any kind in one tenant, with who granted it, how it came to be, its status and its time, and MUST be unique by a key made of the principal, the role, the tenant and the resource, so that it is not made twice where the resource is empty; and an invitation MUST name the roles it grants once each.
Enforced (check): .github: cd commons/data && bun run verify — suite/identity.test.ts: on three engines any kind of principal holds roles once, roles inherit and are separated, attributes of any principal and resource are one value each, policies and relation tuples and the permissions they grant are unique; suite/identity.test.ts: on three engines invitations grant roles once, domains and policies and the audit chain keep what the model says, and a hash in the chain is unique
Proved by: data/suite/identity.test.ts
Written in: data/models/identity-access/concepts.ts
Tests: passed: suite/identity.test.ts on three engines invitations grant roles once, domains and policies and the audit chain ke; passed: suite/identity.test.ts on three engines any kind of principal holds roles once, roles inherit and are separated,