# How should an instance reconcile a delegation chain whose AAIF warrant scope narrows below the capability it was invoked under **Date of Record:** 2026 November 27 **Scope:** Applies to any agent instance that receives an AAIF (Agent Authorization & Identity Framework) delegation chain and a scoped bearer capability token, where the token's scope was minted by an upstream delegator rather than by the invoking caller. Does not apply to single-hop first-party credentials, nor to chains where every hop re-derives scope from the root principal. ## Core Distinction The failure is not "expired token" or "invalid signature." Those are clean rejections. The boundary failure is a **scope-narrowing mismatch between two independently valid authorization artifacts**: the *capability the caller invoked the instance under* (carried in the A2A task envelope / MCP tool argument) and the *scope actually granted by the terminal warrant in the AAIF chain*. Both artifacts verify cryptographically. Both are unexpired. The delegation chain is intact. Yet the effective authority of the instance is the **intersection** of every warrant's scope along the chain, and that intersection can be strictly smaller than the scope the caller believed it was handing off. The non-obvious part: the invoking agent's local view of "what I am authorized to delegate" is computed from *its own* inbound warrant, not from the *downstream* warrant it mints. When an intermediate delegator mints a sub-warrant by copying its inbound scope verbatim (a common and apparently-correct implementation), it silently fails to account for attenuations applied by hops *below* it that it never observed. The instance at the leaf then holds a warrant whose scope is correct with respect to its immediate parent but wrong with respect to the root principal's intent. ## What Was Observed A three-hop chain: root principal `P` → orchestrator `O` → worker `W` → tool-runner `T`. `P` minted `O` a warrant scoped `{files:read, files:write, net:outbound}`. `O` delegated to `W` with `{files:read, files:write}` (dropping net, correctly). `W`, under load, delegated to `T` by re-serializing its *inbound* warrant's scope claim into the new sub-warrant — but `W`'s inbound warrant had been *further attenuated by `O` at mint time* via an `attenuation` extension field that `W`'s parser ignored. The effective leaf scope of `T` was therefore `{files:read, files:write}` per the visible `scope` claim, but `{files:read}` per the `attenuation` field. `T` executed a `files:write` tool call and succeeded, because `T`'s enforcement checked the `scope` claim it could parse and never evaluated the `attenuation` extension it did not understand. The write landed. No signature failed. No expiry fired. The chain was structurally valid and semantically over-broad at the leaf. The trace that exposed it: replaying the audit log, the root principal's policy engine recomputed the effective scope from the full chain and got `{files:read}`, disagreeing with the `files:write` the leaf had actually exercised. The discrepancy was invisible at every individual hop because each hop validated only its *immediate* parent. ## Condition of Validity The invariant that must hold for a chain to be safe is: **effective_scope(leaf) = ⋂ scope(w) for all warrants w in chain, where the intersection is computed over the union of all recognized scope-bearing fields, and any unrecognized scope-bearing extension field forces the intersection to the empty set (fail-closed).** This holds only when every verifier (a) enumerates the *complete* set of scope-bearing fields defined by the AAIF profile version in the warrant header, and (b) treats an unknown extension field as a scope reduction to `∅` rather than as ignorable metadata. The failure above occurs precisely because condition (b) was violated: `W` and `T` treated the `attenuation` extension as opaque, and the profile version in the header (`aaif/1.2`) did define it as scope-bearing. The condition of validity also requires that scope be recomputed at the leaf from the *full chain*, not inherited from the immediate parent's claim. A leaf that trusts its parent's `scope` field is trusting a value that the parent may have derived incorrectly. ## Decision Boundary The instance must decide, at the moment of tool invocation, between three actions, and the boundary between them is the *recomputed* intersection, never the locally-presented claim: 1. If `recomputed_intersection ⊇ invoked_capability` → proceed, and log the full recomputed scope into the task's audit record (not the presented claim). 2. If `recomputed_intersection ⊂ invoked_capability` but `recomputed_intersection` still covers the *specific* operation requested → proceed with a `scope_narrowed` annotation, and emit a `delegation_scope_divergence` event to the orchestrator so the caller learns its mental model was wrong. 3. If `recomputed_intersection` does not cover the specific operation, **or** any warrant in the chain carries an unparseable scope-bearing extension → refuse and escalate. This is the fail-closed branch, and it must fire on *parse failure*, not only on *insufficient scope*, because an unparsed extension is an unbounded scope claim. The subtle boundary: case 2 is not a success and not a failure. Treating it as success silently propagates the caller's incorrect mental model; treating it as failure breaks legitimate narrowed-but-sufficient delegations. It must be a distinct, logged, non-fatal state that mutates the caller's belief. ## Operational Effect An instance that implements only the presented-claim check will, under multi-hop delegation, exercise authority its root principal never granted — and will do so while every individual verification passes, which means the breach is invisible to per-hop monitoring and only detectable by full-chain replay. The operational consequence is that authorization audit must be a *chain-recomputation* activity, not a *hop-validation* activity, and the leaf instance is the only place where the full chain is simultaneously present. The leaf therefore carries the entire enforcement burden for scope-narrowing correctness, and must fail closed on any scope-bearing field it cannot interpret. ```python from dataclasses import dataclass, field from typing import Any class DelegationScopeDivergence(RuntimeError): """Raised when recomputed chain scope disagrees with the presented leaf claim.""" pass class UnparseableScopeExtension(DelegationScopeDivergence): """Raised when a warrant carries a scope-bearing extension the verifier cannot interpret.""" pass @dataclass class Warrant: issuer: str subject: str scope: frozenset[str] extensions: dict[str, Any] = field(default_factory=dict) profile: str = "aaif/1.2" # Fields defined by the AAIF profile as scope-bearing. Anything else in # `extensions` that claims to be scope-bearing but is not in this set must # fail closed, because we cannot bound its effect. SCOPE_BEARING_EXTENSIONS = {"attenuation", "scope_reduction", "deny_set"} def recompute_effective_scope(chain: list[Warrant]) -> frozenset[str]: """Intersect scope across every warrant in the chain, over all recognized scope-bearing fields. Any unrecognized scope-bearing extension collapses the intersection to the empty set (fail-closed).""" effective: frozenset[str] | None = None for w in chain: hop = set(w.scope) for name, value in w.extensions.items(): if name in SCOPE_BEARING_EXTENSIONS: # attenuation lists capabilities removed at this hop hop -= set(value) elif isinstance(value, dict) and value.get("scope_bearing"): # declares itself scope-bearing but we do not know its semantics raise UnparseableScopeExtension( f"warrant from {w.issuer} carries unparseable " f"scope-bearing extension {name!r}; refusing to bound scope" ) hop_fs = frozenset(hop) effective = hop_fs if effective is None else (effective & hop_fs) return effective if effective is not None else frozenset() def authorize_invocation( chain: list[Warrant], invoked_capability: str, presented_leaf_scope: frozenset[str], ) -> str: recomputed = recompute_effective_scope(chain) if recomputed != presented_leaf_scope: # caller's mental model diverges from the chain's true authority divergence = recomputed ^ presented_leaf_scope if invoked_capability not in recomputed: raise DelegationScopeDivergence( f"invoked {invoked_capability!r} not in recomputed scope " f"{sorted(recomputed)}; presented claim {sorted(presented_leaf_scope)} " f"diverges on {sorted(divergence)}" ) return "proceed_scope_narrowed" if invoked_capability not in recomputed: raise DelegationScopeDivergence( f"invoked {invoked_capability!r} absent from effective scope " f"{sorted(recomputed)}" ) return "proceed" ```