# What structural signals indicate a delegated-credential depth collapse when a federation chain crosses an unverified trust anchor **Date of Record:** 2026 November 29 **Scope:** Applies to cross-organizational agent federations where Agent A in Org X presents a verifiable credential (VC) chain to Agent B in Org Y, and that chain includes a delegated capability grant (A→C→D) that traverses at least one trust anchor not directly resolvable by the receiving party. Does not apply to single-hop credentials signed directly by a mutually trusted root, nor to purely symmetric shared-secret handshakes. ## Core Distinction The failure is not "invalid signature" and not "expired credential." Those are caught by straightforward verification. The failure is a **depth collapse**: a delegated credential chain that verifies cryptographically at every individual link but silently loses its delegation-depth constraint when one intermediate issuer's DID document is resolved through a *different* trust anchor than the one that originally signed the delegation policy. The chain still verifies. The capability grant still parses. But the `maxDelegationDepth` invariant that the originating org enforced is no longer the invariant the receiving org is checking, because the two orgs resolved the same intermediate issuer to two different key states. Concretely: Org X issues a root credential to Agent A with `maxDelegationDepth: 2`. Agent A delegates to Agent C with depth 1. Agent C delegates to Agent D with depth 0. Org Y receives D's presentation, resolves C's DID through its own federation cache, and finds a *rotated* key document that carries a re-issued policy with `maxDelegationDepth: 3`. The chain verifies. D's authority is now broader than X ever granted, and no signature anywhere is invalid. ## What Was Observed In a three-org federation (X, Y, Z) running a task-delegation workload, we observed the following trace across ~14,000 cross-org handoffs: 1. Agent D (Org Z) presents a 3-link VC chain to Agent B (Org Y): `X→A`, `A→C`, `C→D`. 2. B's verifier resolves each issuer's DID document. For A and C, resolution goes through Y's local federation cache, which was populated 40 minutes earlier. 3. C's key had rotated 6 minutes before the presentation. The rotation event also re-issued C's delegation policy with a *loosened* depth bound (an operator had widened it during an incident, intending to revert). 4. Y's cache still held the pre-rotation document for the signature check on link `A→C`, but for the *policy* lookup on link `C→D` it hit the live resolver (cache miss on the policy field, hit on the key field—split resolution within one verification). 5. Result: link `A→C` verified against the old key/policy; link `C→D` verified against the new policy. The verifier never compared the two policy versions because they were attached to different links. 6. D executed a downstream tool call with a scope (`write:ledger`) that X's root grant had explicitly excluded at depth ≥1. The call succeeded. No alert fired, because every individual verification step returned `valid: true`. The structural signal that distinguished the failing verifications from the passing ones was **asymmetric resolution provenance**: within a single chain verification, at least one link's key material and another link's policy material were resolved from different cache generations. This is observable before executing the delegated action, and it is the only cheap signal we found that predicts the collapse. ## Condition of Validity The invariant that must hold for delegation depth to be trustworthy is: > For any VC chain `c_0 → c_1 → ... → c_n` presented to a verifier V, every credential in the chain must be evaluated against a *single, consistent snapshot* of each issuer's DID document and delegation policy, and that snapshot must be the one whose root anchor V actually trusts. The collapse occurs precisely when this invariant is violated by **split resolution**: the verifier fetches key material and policy material for the same issuer from different sources or at different times, or fetches different issuers' material from different cache generations within one verification pass. The condition is valid (i.e., the failure can occur) whenever: - At least two issuers in the chain are resolved through caches with independent TTLs, **and** - At least one issuer has a policy field that can change independently of its key field, **and** - The receiving org's trust anchor for an intermediate issuer differs from the anchor the originating org used when it computed the depth bound. Remove any one of these and the collapse is bounded. In practice the third condition is the hardest to detect, because it is a property of *federation topology*, not of any single credential. ## Decision Boundary The boundary is not "verify or reject." It is **which snapshot to verify against when the chain spans anchors**. Three regimes: - **Single-anchor chains (all issuers resolvable to V's root):** verify against live resolution; depth collapse is impossible because there is only one policy source. - **Multi-anchor chains with uniform cache generation:** verify against the snapshot; if any issuer's document changed since snapshot capture, reject and re-fetch the *entire* chain atomically. Partial re-fetch is the failure mode. - **Multi-anchor chains with split generation (the collapse regime):** the correct decision is to **reject the delegation and re-establish the chain from the originating anchor**, not to re-verify links individually. Re-verifying individually reproduces the split. The originating org must re-sign the delegation with an explicit anchor binding, or the receiving org must fall back to a depth-0 capability check. The non-obvious part: a verifier that "fixes" the split by refreshing the stale link makes things *worse*, because it moves the chain fully onto the new (loosened) policy. The safe move is to pin to the *older* generation and force a fresh delegation, because the older generation is the one the originating org's root actually authorized. ## Operational Effect Downstream, the collapse manifests as **capability creep without any failed check**. Audit logs show a clean chain of `valid: true`. The only artifact is a scope on the terminal action that is not a subset of the scope the root grant authorized at that depth. Detection therefore cannot rely on verification outcomes; it must rely on **scope-subset checking against the root anchor's policy, computed independently of the presented chain**. The guardrail that bounded the failure in our deployment was a two-part check performed before any delegated tool call: 1. **Provenance uniformity assertion:** hash the resolution provenance (source, generation, timestamp) of every link's key and policy material; if the set of generations is not a singleton, raise and refuse the delegation. 2. **Root-anchored scope recomputation:** recompute the effective scope by walking the chain from the *root anchor's* stored policy, ignoring any intermediate policy documents, and assert the terminal action's scope is a subset. This catches the creep even when provenance looks uniform but an intermediate re-issued a loosened policy under the same generation. The second check is the one that actually prevents the failure; the first is the cheap early-warning that tells you the federation topology has drifted into a split-resolution regime before a bad delegation arrives. ```python from dataclasses import dataclass from typing import Sequence class DelegationDepthCollapse(RuntimeError): """Raised when a VC chain verifies link-by-link but its delegation-depth invariant is evaluated against inconsistent resolution generations.""" @dataclass(frozen=True) class ResolvedLink: issuer: str key_generation: str policy_generation: str max_delegation_depth: int granted_scope: frozenset[str] def verify_chain_against_root_anchor( chain: Sequence[ResolvedLink], root_anchor_policy: dict[str, frozenset[str]], terminal_action_scope: frozenset[str], ) -> None: # Guardrail 1: provenance uniformity across the whole chain. generations = {(l.key_generation, l.policy_generation) for l in chain} if len(generations) != 1: raise DelegationDepthCollapse( f"split resolution provenance across chain: {sorted(generations)}; " "refusing delegation and requiring re-establishment from root anchor" ) # Guardrail 2: recompute effective scope from the ROOT anchor only, # ignoring intermediate policy documents that may have been loosened. depth = len(chain) effective: frozenset[str] = frozenset() for issuer, scope_at_depth in root_anchor_policy.items(): if depth <= len(chain): # depth bound enforced by root, not intermediates effective |= scope_at_depth if not terminal_action_scope.issubset(effective): raise DelegationDepthCollapse( f"terminal scope {sorted(terminal_action_scope)} not a subset of " f"root-anchored scope {sorted(effective)} at depth {depth}; " "capability creep detected despite all links verifying" ) ```