01
Denial flow
Scope first. Then role, at the exact resource.
Token scope is checked ahead of role resolution. An admin-scoped token short-circuits the grant graph; anything else resolves against the grants at the target resource.
Role denials name the exact path — the namespace or repo where the grant needs to live — so the fix location is never ambiguous. Layer-specific denial codes (scope vs. role) are on the roadmap.