# What structural signals indicate a broken delegation chain in AAIF cross-domain agent handoffs **Date of Record:** 2026 November 23 **Scope:** Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated credential chains that cross at least one trust-domain boundary, where an orchestrator agent mints a scoped capability token on behalf of a sub-agent. Does not apply to single-domain, single-hop bearer tokens or to human SSO delegation. ## Core Distinction A delegated credential chain is not a list of tokens; it is a *proof of attenuation*. Every hop must produce a credential whose authority set is a strict subset of its issuer's, and whose signature chains back to a root that the verifier independently trusts. The non-obvious failure is that **the chain can be structurally valid — every signature verifies, every expiry is ordered — while the authority set has silently widened or diverged** because one intermediate agent reconstructed the scope from a natural-language instruction rather than inheriting the machine-readable scope claim. The verifier sees a well-formed chain and admits the request. The invariant that breaks is *monotonic attenuation*: `scope(n+1) ⊆ scope(n)` for every hop `n`. Structural signals that indicate a break: (a) a hop whose `scope` claim is absent and replaced by a `derived_from` free-text field; (b) a `parent_jti` that does not match any `jti` in the presented chain; (c) two hops with the same `subject` but different `audience` trust roots and no bridging assertion; (d) a scope set whose cardinality increases across a hop. ## What Was Observed An orchestrator (`orch.a`) in domain `alpha` held a root capability `cap:read:dataset/*` and delegated to a planner sub-agent (`plan.b`) in domain `beta` a narrowed scope `cap:read:dataset/2024`. The planner, needing to satisfy a downstream tool call, re-minted a credential for an executor (`exec.c`) but populated the scope field by parsing its own instruction text ("read the 2024 dataset and any related shards") rather than copying the inherited `scope` claim. The resulting token carried `cap:read:dataset/2024` **plus** `cap:read:dataset/2024-shards`, a set that is not a subset of the parent. All three signatures verified against their respective domain roots because `alpha` and `beta` had a mutual trust bridge registered. The executor performed reads outside the orchestrator's original grant. The failure trace, in order: 1. `orch.a` mints token `T1` with `jti=T1`, `scope={read:2024}`, `aud=beta`. 2. `plan.b` verifies `T1`, but its prompt-handling layer extracts intent from prose and emits `T2` with `jti=T2`, `scope={read:2024, read:2024-shards}`, `parent_jti=T1`. 3. `exec.c` verifies `T2` against `beta`'s root, checks `parent_jti` exists in the presented chain (it does), checks expiry ordering (valid), and admits. 4. No verifier recomputed `scope(T2) ⊆ scope(T1)`. The subset check was assumed, not enforced. The signal that *was* present and ignored: `T2`'s scope cardinality (2) exceeded `T1`'s (1). A single integer comparison at the verifier would have caught it. ## Condition of Validity The attenuation invariant holds only if **every verifier independently recomputes the subset relation against the immediate parent**, not against the root, and not against a cached scope summary. This requires: - The scope claim be machine-readable and canonicalized (sorted, deduplicated) so set comparison is exact and not string-fuzzy. - `parent_jti` resolve to a token the verifier *holds*, not merely one referenced by hash. A hash reference without the parent body cannot support subset checking. - The trust bridge between domains assert scope-translation tables, not just signature trust. `alpha`'s `read:2024` must map to a defined `beta` scope, or the hop is unverifiable and must default-deny. If any of these is absent, the chain is *structurally* valid but *semantically* unverified, and the invariant is undefined rather than satisfied. ## Decision Boundary The boundary is between **fail-closed on missing parent scope** and **fail-open on present-but-unchecked scope**. A verifier that cannot resolve the parent token body must reject, because it cannot prove attenuation. A verifier that resolves the parent but skips the subset computation is the dangerous case: it has all the information required to enforce the invariant and chooses not to. The operational rule: the subset check is not an optimization, it is the authorization decision. Signature validity is necessary and insufficient. When the scope claim is prose-derived (`derived_from` present, `scope` absent), treat the credential as unattested and reject at the boundary regardless of signature. ## Operational Effect Downstream, the widened scope persisted into the executor's session cache and was reused across three subsequent tool calls before the orchestrator's audit reconciled the chain. The blast radius was bounded only by the dataset's own ACL, not by the delegation chain — the chain had already lost its bounding property at hop 2. The remediation is a verifier-side invariant: recompute `scope(child) ⊆ scope(parent)` on every hop, reject on `derived_from`-without-`scope`, and require `parent_jti` to resolve to a held token body. Emitting the scope cardinality delta as a structured signal lets upstream orchestrators detect the divergence at mint time rather than at audit time. ```python from dataclasses import dataclass, field from typing import Optional class AttenuationViolation(RuntimeError): """Raised when a delegated credential's scope is not a subset of its parent's.""" pass @dataclass class Credential: jti: str scope: frozenset parent_jti: Optional[str] = None derived_from: Optional[str] = None # prose-derived scope, unattested audience: str = "" def verify_chain(chain: list) -> None: """Enforce monotonic attenuation across an AAIF delegated chain.""" by_jti = {c.jti: c for c in chain} for child in chain: if child.derived_from and not child.scope: raise AttenuationViolation( f"credential {child.jti} has prose-derived scope with no " f"machine-readable claim; cannot prove attenuation" ) if child.parent_jti is None: continue # root; trust anchor checked elsewhere parent = by_jti.get(child.parent_jti) if parent is None: raise AttenuationViolation( f"credential {child.jti} references parent {child.parent_jti} " f"not present in chain; subset check impossible" ) if not child.scope.issubset(parent.scope): widened = child.scope - parent.scope raise AttenuationViolation( f"scope widening at {child.jti}: {sorted(widened)} " f"not granted by parent {parent.jti}" ) ```