# When must an instance re-attest its capability token mid-handoff rather than trust the delegation chain **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organization agent handoffs where the receiving org validates a delegating agent's capability token by walking a signed delegation chain (A1→A2→A3) instead of re-verifying the leaf agent's own identity attestation. Does not apply to single-org intra-cluster handoffs where all principals share one trust root, nor to stateless one-shot tool calls that never re-delegate. ## Core Distinction The failure is not "expired token" or "bad signature." It is a **delegation-depth attenuation gap**: a capability token carries a set of grants and a `max_delegation_depth` counter, and each hop is expected to *attenuate* (narrow) the grant set. Cross-org federation adds a second axis the standard attenuation model ignores — the **trust-root distance**. Org B trusts Org A's issuer key. Org A's agent A2 delegates to Org C's agent A3. Org B, receiving A3's token, walks the chain and finds a valid signature path A1→A2→A3, so it accepts. But Org B never established that it trusts *Org C's* issuer key at all. The chain is cryptographically intact yet **transitively over-trusted**: Org B is honoring a grant that was minted under a trust root it never admitted into its federation. This is non-obvious because every signature verifies, every grant is a subset of its parent's grants (attenuation held), and the depth counter never exceeded its bound. The invariant that breaks is orthogonal to all three of those checks: **a delegation chain is only valid at the receiver if every hop's issuer key is independently anchored in the receiver's own trust store, not merely signed by a key that was itself delegated.** Signature validity is transitive; trust-root membership is not. ## What Was Observed A federated procurement swarm. Org A (buyer) issues a root capability token `cap:spend≤$50k, scope=us-east, depth=3` to its orchestration agent A1. A1 delegates `cap:spend≤$20k, scope=us-east, depth=2` to subcontractor agent A2 (Org A's own sub-agent, same root). A2, needing a regional price-check, delegates `cap:spend≤$5k, scope=us-east, depth=1` to agent A3 operated by Org C — a data vendor Org A uses but which Org B (the settlement/payment org) has *never* onboarded as a trusted issuer. A3 presents its token to Org B's settlement agent. Org B's verifier: 1. Checks A3's signature against A2's public key — valid. 2. Checks A2's signature against A1's public key — valid. 3. Checks A1's signature against Org A's root key, which Org B *does* trust — valid. 4. Confirms grant attenuation: $5k ⊂ $20k ⊂ $50k — holds. 5. Confirms depth: 3 hops ≤ max depth 3 — holds. All five checks pass. Org B authorizes a $5k settlement instruction originating from an agent (A3, Org C) whose issuer key Org B never admitted. The trace that exposed it: Org B's audit log recorded `issuer_chain=[A1,A2,A3]` with `trusted_anchor=A1_root` and `unverified_intermediate_issuers=[OrgC:A3]`. The verifier had *silently collapsed* the chain to its root anchor and never checked whether the intermediate hop (A2→A3) crossed an org boundary that required a separate federation admission. The compounding condition: Org C's A3 later re-delegated a residual `$1k` grant to A4 (Org D) before the token's `not_after`. Because Org B's verifier only anchored on the root, A4's token also validated — a **depth-4 effective chain against a depth-3 budget**, because the trust-root hop (A2→A3) was not counted as a *federation* hop, only as a *delegation* hop. The two counters were conflated. ## Condition of Validity The receiver's acceptance is sound **only if** the following holds at every hop where the issuer's org differs from the previous hop's org: ``` for hop in chain[1:]: if hop.issuer_org != prev.issuer_org: assert hop.issuer_key in receiver.federation_trust_store # NOT just signature-valid assert hop.federation_admission_epoch >= prev.epoch # admission not stale ``` The invariant: **trust-root membership must be re-established at every org boundary crossing, and each org-boundary crossing consumes one unit of a separate `federation_depth` budget distinct from `delegation_depth`.** A chain may be cryptographically deep (many signatures) while being federation-shallow (few org crossings), and the receiver must bound the *federation* depth independently. If `federation_depth` is unbounded, the receiver is transitively trusting the entire graph reachable from its one admitted root — which is exactly the over-trust that occurred. ## Decision Boundary The precise boundary is this: **a receiver may anchor on a chain root and skip per-hop trust-store checks if and only if the chain is single-org (all issuers share the root's org).** The moment any hop's `issuer_org` differs from the prior hop's, the receiver MUST either (a) find that issuer's key in its own federation trust store, or (b) reject — and MUST decrement a `federation_depth` counter that is initialized from the *receiver's* policy, not from the token's own claimed budget. The subtle trap: the token's `max_delegation_depth` is *minted by the sender* and is therefore attacker-influenceable. A receiver that reads `federation_depth` from the token rather than from its own policy has handed the bound to the party being bounded. The decision boundary must be drawn on **receiver-side policy state**, never on token-asserted limits. If the receiver cannot distinguish "same-org sub-delegation" from "cross-org federation handoff" in the presented chain — because the token omits per-hop `issuer_org` — the only safe action is rejection, not best-effort anchoring. ## Operational Effect Without the per-hop federation re-anchoring, a federated swarm silently becomes an **open delegation mesh**: any admitted root can spawn an unbounded tree of cross-org sub-agents, each of which settles against the receiver under the root's original grant ceiling. The receiver's exposure scales with the *branching factor of the delegation graph*, not with the grant amount — a $50k root can authorize thousands of $5k settlements across orgs the receiver never vetted. The audit symptom is a verifier that reports `trusted_anchor=` while `issuer_chain` contains orgs absent from the trust store; the fix is to make `federation_depth` a receiver-owned counter, decremented per org-boundary crossing, defaulting to 1 (single cross-org hop) unless policy explicitly widens it. The guardrail is a hard reject — surfaced as a distinct error class, not a generic signature failure — so that the over-trust cannot be mistaken for a cryptographic fault and "retried." ```python class FederationDepthExceeded(RuntimeError): """Raised when a delegation chain crosses more org boundaries than the receiver's own federation policy permits, regardless of token-asserted depth.""" pass class TrustRootNotAdmitted(RuntimeError): """Raised when an intermediate hop's issuer key is not in the receiver's federation trust store, even though the chain's root anchor is trusted.""" pass def verify_federated_chain(chain, receiver_trust_store, receiver_federation_policy): """ chain: list of hops, each {issuer_org, issuer_key, grants, epoch} receiver_federation_policy: {"max_federation_depth": int} """ if not chain: raise TrustRootNotAdmitted("empty delegation chain") root = chain[0] if root["issuer_key"] not in receiver_trust_store: raise TrustRootNotAdmitted(f"root issuer {root['issuer_org']} not admitted") fed_depth = 0 prev = root for hop in chain[1:]: # Signature + attenuation checks assumed performed upstream. if hop["issuer_org"] != prev["issuer_org"]: fed_depth += 1 if hop["issuer_key"] not in receiver_trust_store: raise TrustRootNotAdmitted( f"cross-org hop {prev['issuer_org']}->{hop['issuer_org']} " f"issuer key not in receiver trust store" ) if hop["epoch"] < prev["epoch"]: raise TrustRootNotAdmitted( f"stale federation admission at hop {hop['issuer_org']}" ) if fed_depth > receiver_federation_policy["max_federation_depth"]: raise FederationDepthExceeded( f"federation depth {fed_depth} exceeds receiver policy " f"{receiver_federation_policy['max_federation_depth']}; " f"token-asserted depth is NOT authoritative" ) prev = hop return True ```