Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.35 KB

File metadata and controls

42 lines (31 loc) · 1.35 KB

SPEC

Objective

Define open, deterministic authorization artifacts that can be verified locally.

Normative objects

  • Capability
  • ActionEnvelope
  • VerificationResult
  • TrustBundle

Verification function

verify(capability, action, trust_bundle, local_policy, replay_cache, now) -> VerificationResult

Verification MUST NOT require network calls. Network-assisted bundle refresh is optional, but verifier behavior must remain correct with cached bundles only.

Mandatory checks

  1. Capability signature verification.
  2. Action signature verification.
  3. Issuer key resolution (issuer_id + issuer_kid) from local trust material.
  4. Capability validity window (issued_at, expires_at).
  5. Audience equality checks.
  6. Delegation depth bounded by max_depth.
  7. Allowed action scope.
  8. Constraint evidence checks.
  9. Replay checks.
  10. Policy hash checks when expected policy is configured.
  11. Challenge nonce enforcement for configured high-risk actions.
  12. Issuer key validity-window checks from trust bundle material.
  13. Optional transparency reference linkage checks.
  14. Optional local policy-hook evaluation for environment-specific controls.

Output requirements

  • decision must be deterministic.
  • reason_codes must contain stable machine-readable values.
  • reasons must be human-readable and non-empty for rejected decisions.