# When must an instance reject a delegated AAIF capability token whose attestation chain re-roots mid-flight **Date of Record:** 2026 November 25 **Scope:** Applies to AAIF (Agent Identity and Authorization Interoperability Framework) delegated-capability tokens exchanged between agents across vendor boundaries, where the presenting agent's attestation chain is re-evaluated at each hop. Does not apply to single-vendor intra-tenant tokens, nor to bearer tokens without an embedded attestation chain. ## Core Distinction The failure mode is not "expired token" or "bad signature." It is **attestation re-rooting**: at a mid-flight hop, the presenting agent's attestation chain terminates at a *different* trust anchor than the one the capability token was minted against, yet every individual signature in the chain verifies. AAIF delegated-capability tokens bind a capability grant to a *root of trust* (the issuer's attestation anchor) via a chain of attestation statements. When an agent is re-attested by a new anchor (e.g., it was migrated to a new enclave, re-imaged onto a different host, or its workload identity was rotated by a different control plane), the chain it presents at hop *N+1* is internally valid but **re-roots** to an anchor the capability token never authorized. The naive verifier checks two things: (1) does the capability token signature verify against the presenter's leaf key, and (2) does the leaf's attestation chain verify up to *some* trusted anchor. Both pass. The invariant that must hold is stricter: **the attestation chain's terminal anchor MUST be a member of the anchor set bound into the capability token's `aud`/`root_of_trust` claim at mint time.** Re-rooting violates this even when all signatures are pristine. ## What Was Observed A three-hop delegation: Vendor A's orchestrator agent (`A-orch`) minted a delegated capability token `cap` granting `tool:write` to Vendor B's worker agent (`B-worker`), scoped to `root_of_trust = anchor-A1`. `B-worker` presented `cap` to Vendor C's tool service (`C-tool`) at hop 3. At hop 3, `C-tool` received: - `cap` — validly signed by `A-orch`, `root_of_trust=anchor-A1`, `aud=B-worker` leaf key `K_B`. - `B-worker`'s attestation chain — leaf `K_B`, intermediate `att-B2`, terminal `anchor-B7`. Every signature verified. `K_B` matched `cap.aud`. But the chain terminated at `anchor-B7`, not `anchor-A1`. The chain had re-rooted: `B-worker` had been re-attested under a new anchor `B7` after `cap` was minted (a routine workload-identity rotation), and its old chain to `anchor-A1` was no longer served. `C-tool`'s verifier accepted the token because it validated the chain against *its own* configured trust store, which happened to include `anchor-B7` (C-tool trusted B's fleet broadly). The capability executed. The authorization decision was correct by accident — `C-tool` never checked that `anchor-B7` was the anchor `cap` was minted against. In a second incident, `C-tool`'s trust store did *not* include `anchor-B7`, and the verifier fell back to "chain unverifiable → treat as un-attested → allow under legacy compatibility mode," executing `tool:write` with no attestation at all. ## Condition of Validity The invariant holds — and the failure is bounded — only when the verifier enforces anchor-set membership as a *conjunctive* condition with signature validity, evaluated against the token's embedded claim rather than the verifier's local trust store: 1. `cap.root_of_trust` is a set of anchors fixed at mint time (not a single mutable pointer). 2. The presented chain MUST verify to a terminal anchor `a*`. 3. `a* ∈ cap.root_of_trust` MUST hold. 4. The legacy-compatibility fallback ("unverifiable chain → allow") MUST be disabled for any token carrying a `root_of_trust` claim. Condition 3 is the load-bearing one and the one routinely skipped: verifiers conflate "chain verifies to *a* trusted anchor" with "chain verifies to *the* authorized anchor." These diverge exactly when re-rooting occurs. The failure only manifests when the mint-time anchor and the presentation-time anchor differ — i.e., after any re-attestation event, which is invisible to the token holder because the token itself is unchanged and still validly signed. ## Decision Boundary The verifier must reject when **`a* ∉ cap.root_of_trust`**, and must do so as a hard authorization failure, not a soft downgrade. The boundary conditions: - **Re-root to an anchor in the token's set:** accept. Re-rooting is legitimate if the new anchor was pre-authorized at mint time (multi-anchor grants). - **Re-root to an anchor outside the set, chain verifies:** reject with `AttestationReRootedError`. This is the non-obvious case — everything cryptographic is valid. - **Re-root to an anchor outside the set, chain does not verify locally:** reject. Never fall back to un-attested allow when a `root_of_trust` claim is present. - **No `root_of_trust` claim present:** this is a pre-AAIF or misconfigured token; reject under strict mode, since the anchor cannot be bound. The decision must be made at the *presenting* hop against the *token's* claim, never deferred to the relying party's ambient trust configuration. ## Operational Effect Without anchor-set enforcement, delegated capability tokens become **anchor-laundering vectors**: any agent that can obtain a valid attestation under *any* anchor trusted by the relying party can present a capability minted under a *different* anchor and have it honored. The capability's authorization scope silently decouples from the identity it was granted to, because the binding is to a root the verifier never checks. Re-attestation events — routine, frequent, and invisible in the token — become the trigger. The guardrail is a single conjunctive check that most implementations omit because the happy path (no re-rooting) makes it look redundant. It is not redundant; it is the only thing that keeps the capability bound to the identity it was issued for. ```python from dataclasses import dataclass class AttestationReRootedError(RuntimeError): """Raised when a presented attestation chain terminates at an anchor outside the capability token's mint-time root_of_trust set.""" @dataclass(frozen=True) class CapabilityToken: subject_leaf_key: str root_of_trust: frozenset[str] # anchors authorized at mint time scope: str @dataclass(frozen=True) class AttestationChain: leaf_key: str terminal_anchor: str signatures_valid: bool def authorize_presentation( cap: CapabilityToken, chain: AttestationChain, strict_mode: bool = True, ) -> str: # 1. Leaf binding: the chain must attest the key the token was issued to. if chain.leaf_key != cap.subject_leaf_key: raise AttestationReRootedError( f"chain leaf {chain.leaf_key!r} != token subject " f"{cap.subject_leaf_key!r}" ) # 2. The token must carry a bound anchor set. Without it, the anchor # cannot be checked, and legacy fallback would launder the anchor. if not cap.root_of_trust: if strict_mode: raise AttestationReRootedError( "token has no root_of_trust claim; anchor cannot be bound" ) return "allow_unbound_legacy" # 3. Chain must be cryptographically valid. if not chain.signatures_valid: # Never downgrade to un-attested allow when a root_of_trust exists. raise AttestationReRootedError( "attestation chain failed signature verification; " "refusing legacy un-attested fallback" ) # 4. THE load-bearing invariant: terminal anchor must be a member of the # mint-time anchor set, not merely trusted by the local verifier. if chain.terminal_anchor not in cap.root_of_trust: raise AttestationReRootedError( f"chain re-rooted to {chain.terminal_anchor!r}; " f"authorized anchors are {sorted(cap.root_of_trust)}" ) return f"authorized:{cap.scope}" ```