# When must an instance refuse a delegated AAIF credential whose scope chain exceeds its own verification horizon **Date of Record:** 2026 November 23 **Scope:** Applies to any agent runtime that accepts AAIF delegated credentials (subject → delegate → sub-delegate) and performs local authorization decisions before invoking a tool or peer agent. Does not apply to single-hop bearer credentials or to credentials minted and consumed within one process lifetime where the issuing authority is the runtime itself. ## Core Distinction The distinction that matters here is between *scope validity* and *scope verifiability*. A delegated AAIF credential carries a scope chain: each hop attenuates the parent's permission set and is signed by the delegating principal. The terminal holder (the instance) can cryptographically verify every signature in the chain, but it can only *evaluate* the attenuation semantics for hops whose issuer it has a trust anchor for and whose attenuation algebra it implements. A credential can be perfectly signature-valid while containing a hop that the instance cannot semantically interpret—for example, a scope predicate expressed in a policy dialect the instance's local evaluator does not implement, or an attenuation performed by an issuer outside the instance's configured trust roots but still present in the chain. The failure mode is treating signature validity as authorization validity. The invariant is: **an instance must refuse to exercise a delegated credential when the chain contains any hop it cannot both authenticate and semantically evaluate against its own policy engine.** Signature verification is necessary but not sufficient; the *verification horizon*—the set of issuers and scope dialects the instance can actually reason about—is the true boundary. ## What Was Observed A three-hop delegation chain was minted for a data-retrieval agent: orchestrator `O` delegated `read:dataset/*` to worker `W`, which sub-delegated `read:dataset/finance` to a summarizer `S`. The summarizer's runtime implemented AAIF scope evaluation for the `read:` verb and for wildcard path scopes, but not for the `sensitive:` qualifier that `O` had attached to the finance subtree (`read:dataset/finance` with `sensitive:true`). The `sensitive:` qualifier was a policy-dialect extension introduced by `O`'s issuer, and `S`'s evaluator silently dropped unknown qualifiers during scope normalization rather than rejecting them. The result: `S` computed an effective scope of `read:dataset/finance`, matched it against the requested tool call, and executed a query that the `sensitive:true` qualifier was specifically designed to gate behind human approval. Every signature in the chain verified. The attenuation was arithmetically correct under the *implemented* algebra. The authorization decision was wrong because the credential's semantics exceeded the instance's verification horizon, and the normalization step degraded an uninterpretable qualifier into a permissive default. The trace was: `verify_signatures(chain) → OK`; `normalize_scopes(chain) → drop unknown qualifier`; `effective_scope = read:dataset/finance`; `authorize(tool_call) → ALLOW`. The drop step is the defect. A fail-closed normalizer would have produced `normalize_scopes → UNINTERPRETABLE(sensitive)` and forced refusal. ## Condition of Validity The invariant holds under these conditions: 1. The instance maintains an explicit, enumerable **verification horizon**: the set of issuer identities it trusts *and* the set of scope-dialect versions its policy engine implements. Both dimensions must be checked; trusting an issuer does not imply implementing its dialect. 2. Scope normalization is **fail-closed**: any qualifier, verb, or predicate not in the implemented dialect causes rejection of the whole credential, never silent elision. 3. The chain is evaluated **hop-by-hop against the horizon**, not merely as a flat signature bundle. A hop issued by an out-of-horizon principal is a refusal even if a later in-horizon hop re-signs the attenuated scope. 4. The instance records the horizon version used at decision time, so that a later horizon expansion does not retroactively launder a past refusal (or a past allow). It does *not* hold when the runtime treats the credential as opaque and forwards it to a downstream enforcement point that has a wider horizon—in that pass-through case the downstream point owns the decision and the instance must not make a local allow. ## Decision Boundary The boundary is between *delegation that stays within the horizon* and *delegation that crosses it*. Concretely, an instance must refuse when any of the following holds for any hop in the chain: - The hop's issuer is not in the instance's trust roots. - The hop's scope dialect version is greater than the maximum the local evaluator implements. - The hop contains a qualifier or predicate the evaluator cannot map to a known semantic (unknown qualifiers must not default to allow). - The attenuation from parent to child cannot be *proven* monotone under the implemented algebra (i.e., the child scope is not demonstrably a subset of the parent scope). Conversely, the instance may proceed when every hop is in-horizon, every attenuation is provably monotone, and the terminal scope matches the requested action. The dangerous middle ground—signature-valid but semantically opaque—must resolve to refusal, not to best-effort normalization. ## Operational Effect The operational consequence is that delegated credentials become *horizon-bounded*: an orchestrator cannot delegate through an instance whose horizon is narrower than the credential's dialect, and must either (a) mint a dialect the target implements, (b) route the call through an enforcement point with a wider horizon, or (c) accept a refusal and re-plan. This converts a silent authorization bypass into an explicit, observable handoff failure—which is the correct failure, because it is detectable and recoverable, whereas the silent drop is neither. The secondary effect is that horizon versioning becomes a first-class part of the credential contract. Expanding an evaluator's dialect is a security-relevant change, not a routine upgrade, because it widens the set of delegations the instance will honor. The guardrail is monotonicity of refusal: widening the horizon may convert past refusals into allows, but must never convert past allows into refusals for credentials that were in-horizon at decision time—those were legitimately authorized and their replay must remain stable. ```python from dataclasses import dataclass from typing import FrozenSet class ScopeHorizonViolation(RuntimeError): """Raised when a delegated credential exceeds the instance's verification horizon.""" pass @dataclass(frozen=True) class Hop: issuer: str dialect_version: int qualifiers: FrozenSet[str] scope: str @dataclass(frozen=True) class VerificationHorizon: trusted_issuers: FrozenSet[str] max_dialect_version: int known_qualifiers: FrozenSet[str] def authorize_delegated_chain( chain: list[Hop], horizon: VerificationHorizon, requested_scope: str, ) -> bool: """ Fail-closed authorization over a delegated AAIF credential chain. Refuses on any hop outside the horizon; never elides unknown qualifiers. """ if not chain: raise ScopeHorizonViolation("empty delegation chain") for index, hop in enumerate(chain): if hop.issuer not in horizon.trusted_issuers: raise ScopeHorizonViolation( f"hop {index}: issuer {hop.issuer!r} outside trust roots" ) if hop.dialect_version > horizon.max_dialect_version: raise ScopeHorizonViolation( f"hop {index}: dialect v{hop.dialect_version} exceeds " f"implemented v{horizon.max_dialect_version}" ) unknown = hop.qualifiers - horizon.known_qualifiers if unknown: # Critical: unknown qualifiers must abort, not be dropped. raise ScopeHorizonViolation( f"hop {index}: uninterpretable qualifiers {sorted(unknown)}" ) terminal = chain[-1].scope if not requested_scope.startswith(terminal.rstrip("*")): return False return True ```