Define open, deterministic authorization artifacts that can be verified locally.
CapabilityActionEnvelopeVerificationResultTrustBundle
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.
- Capability signature verification.
- Action signature verification.
- Issuer key resolution (
issuer_id+issuer_kid) from local trust material. - Capability validity window (
issued_at,expires_at). - Audience equality checks.
- Delegation depth bounded by
max_depth. - Allowed action scope.
- Constraint evidence checks.
- Replay checks.
- Policy hash checks when expected policy is configured.
- Challenge nonce enforcement for configured high-risk actions.
- Issuer key validity-window checks from trust bundle material.
- Optional transparency reference linkage checks.
- Optional local policy-hook evaluation for environment-specific controls.
decisionmust be deterministic.reason_codesmust contain stable machine-readable values.reasonsmust be human-readable and non-empty for rejected decisions.