# When must an instance refuse a delegated capability after a trust-broker rotation: the warrant-lineage gap in cross-org agent federation **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent systems where a trust broker (an identity/capability issuer owned by one organization) mints capability warrants that downstream agents in *other* organizations present to invoke tools or sub-agents. Does not apply to single-org deployments where the broker and the verifier share a root of trust and a single revocation clock. ## Core Distinction The failure is not "expired token" and not "bad signature." It is a **warrant-lineage gap**: a capability warrant that is cryptographically valid, unexpired, and signed by a currently-trusted broker key, yet whose *delegation chain* was minted under a broker epoch that the receiving organization has since rotated out of its trust anchor set. The warrant verifies against the *new* broker key because the broker re-signs the leaf, but the parent link in the chain (the delegation grant from org A's broker to org B's edge agent) was issued under the *old* epoch and is no longer anchored. The non-obvious part: **leaf validity and chain validity are checked against different trust sets at different times.** A verifier that checks "does this leaf signature chain to a trusted root?" passes. A verifier that checks "was every link in this chain anchored at the epoch in which it was minted?" fails. Most implementations only do the first. ## What Was Observed Federation topology: Org A runs the trust broker `broker.a`; Org B runs an edge agent `edge.b` that accepts delegated capabilities and fans them out to worker agents. A user in Org A requests `edge.b` to run a long-horizon task (multi-hour, hundreds of tool calls). At task start, `broker.a` mints: - **Root grant** `G0`: `broker.a@epoch-7` → `edge.b`, scope `{tool:search, tool:fetch, delegate:worker}`, TTL 6h. - **Leaf warrants** `L1..Ln`: `edge.b` → workers, each derived from `G0`, TTL 30m, refreshed by `edge.b` every 25m. At T+2h, Org A rotates `broker.a` to `epoch-8` for a routine key-rotation (compromise of an unrelated signing subkey). Org A's verifier drops `epoch-7` from its accepted-anchor set after a 15-minute grace window. `edge.b` does **not** re-fetch `G0`; it continues minting leaf warrants `L_k` by re-signing with its own key and referencing the cached `G0` chain. The leaves are structurally valid. `edge.b`'s local verifier — which checks leaf → `edge.b` → `broker.a` signature chain against a *cached* anchor set refreshed lazily every 60 minutes — accepts them. Workers in Org B, however, call back to Org A's resource server to exercise `tool:fetch`. The resource server verifies the full chain against the *live* anchor set (`epoch-8` only). `G0` is anchored at `epoch-7`. Result: **every `tool:fetch` from T+2h15m onward returns `403 chain-unanchored`, while every `tool:search` (served by an Org B-local resource that trusts `edge.b` directly) keeps succeeding.** The agent does not see a hard failure — it sees a *partial* capability degradation and begins reasoning around it, retrying, substituting tools, and burning budget on a task that is structurally doomed. The compounding agent-level damage: the worker agents interpret the 403s as transient (they are HTTP 403, not 401, and the body says "unanchored," which the agents' tool-schema maps to a generic auth error class), so they enter a retry loop. Over 40 minutes, three workers each retried `tool:fetch` ~120 times, exhausting the task's token budget on error-handling reasoning before the orchestrator's own timeout fired. The actual capability never recovered because nothing in the loop re-derived `G0`. ## Condition of Validity The invariant that must hold for a federated delegation to remain sound across broker rotation: > For every warrant `L` presented to a verifier `V`, the *entire* delegation chain `L → G_{n-1} → … → G0` must be anchored under a single broker epoch `e`, and `V`'s accepted-anchor set must contain `e` at verification time. If `V`'s anchor set has rotated past `e`, `L` is invalid regardless of leaf signature validity. Two corollaries that make this a *boundary* condition rather than a routine check: 1. **Epoch pinning must be carried in the warrant, not inferred.** If the epoch is not an explicit field in each link (or in a signed chain manifest), the verifier cannot distinguish "minted under epoch-7, still valid" from "minted under epoch-7, rotated out." The warrant must self-describe its anchor epoch. 2. **The delegating agent must treat anchor-set rotation as a chain-invalidation event for cached grants.** `edge.b` cached `G0` and never re-derived it. The correct behavior is: on observing a `chain-unanchored` response (or on any anchor-set version bump propagated via the federation metadata channel), `edge.b` must *invalidate all cached grants anchored below the new epoch* and re-request `G0` from `broker.a@epoch-8` before minting further leaves. The condition of validity therefore is not "the leaf is unexpired." It is "the leaf's anchor epoch is still in the verifier's set *and* the delegating agent has not cached a grant across an epoch boundary it has been told about." ## Decision Boundary The decision an instance must make at each tool invocation is not binary "authorized / not authorized." It is a three-way classification that determines whether the agent should retry, re-derive, or abort: - **`ANCHORED`** — chain anchors under an epoch in the verifier's live set. Proceed. - **`ROTATED_REPAIRABLE`** — chain anchors under an epoch the verifier has retired, *but* the delegating agent still holds a live channel to the broker and can re-derive the root grant. Action: **do not retry the leaf.** Invalidate the cached grant, re-request `G0` under the current epoch, re-mint leaves, resume. This is a state-repair transition, not an error. - **`ROTATED_UNREPAIRABLE`** — chain anchors under a retired epoch and the broker channel is unavailable or the re-derivation is denied (e.g., the user's original consent scope no longer covers the re-issued grant). Action: **abort the task and surface to the orchestrator.** Retrying is guaranteed to fail and will only consume budget. The boundary that most implementations get wrong: they collapse `ROTATED_REPAIRABLE` into the generic error class, so the agent's retry policy treats it as `TRANSIENT`. The retry policy must be *aware of the anchor epoch* to route correctly. A 403 with `unanchored` in the body and a known-retired epoch is a **repair signal**, not a transient fault. A 403 with `unanchored` and an *unknown* epoch (the verifier has rotated to an epoch the delegating agent has never seen) is `UNREPAIRABLE` until metadata sync completes. ## Operational Effect The practical consequence for federation design: **capability delegation across organizational boundaries requires an epoch-versioned chain manifest and an explicit repair protocol, or long-horizon tasks will silently degrade at every routine key rotation.** The degradation is silent because the leaf keeps verifying locally and only *some* downstream resources reject it — so the agent's world model remains internally consistent while its effective capability set shrinks. Concretely, the guardrails that bound this failure: 1. **Signed chain manifest with `anchor_epoch` per link**, carried alongside the leaf warrant. The verifier checks `anchor_epoch ∈ accepted_set` for *every* link, not just the leaf's signer. 2. **Federation metadata channel** that pushes anchor-set version bumps to delegating agents, so `edge.b` learns of `epoch-8` within seconds rather than on its lazy 60-minute refresh. 3. **Repair-aware retry policy** in the worker agents: classify `unanchored + known-retired-epoch` as `REPAIR`, trigger grant re-derivation at the delegating agent, and *pause* rather than retry the leaf. 4. **Budget guard on repair loops**: cap re-derivation attempts (e.g., 2) and total repair-window tokens; on exhaustion, abort to orchestrator with the chain state, not a generic timeout. Without (1) and (2), the system has no way to distinguish a valid long-lived grant from a stale one, and the only signal is a partial 403 that agents will misread as transient. Without (3) and (4), the misread becomes a budget-exhaustion failure that looks like a model problem but is actually a trust-rotation problem. ```python from dataclasses import dataclass from enum import Enum from typing import FrozenSet class ChainUnanchoredError(RuntimeError): """Raised when a delegation chain cannot be anchored under any live epoch.""" class AnchorVerdict(Enum): ANCHORED = "anchored" ROTATED_REPAIRABLE = "rotated_repairable" ROTATED_UNREPAIRABLE = "rotated_unrepairable" @dataclass(frozen=True) class WarrantChain: leaf_id: str # anchor_epoch of every link, leaf-first link_epochs: tuple delegator_has_broker_channel: bool def classify_chain( chain: WarrantChain, live_anchor_epochs: FrozenSet[int], known_retired_epochs: FrozenSet[int], ) -> AnchorVerdict: if not chain.link_epochs: raise ChainUnanchoredError( f"warrant {chain.leaf_id} has empty delegation chain" ) # Invariant: every link must share one anchor epoch. if len(set(chain.link_epochs)) != 1: raise ChainUnanchoredError( f"warrant {chain.leaf_id} spans multiple anchor epochs " f"{sorted(set(chain.link_epochs))}; chain is not single-anchored" ) epoch = chain.link_epochs[0] if epoch in live_anchor_epochs: return AnchorVerdict.ANCHORED if epoch in known_retired_epochs: if chain.delegator_has_broker_channel: return AnchorVerdict.ROTATED_REPAIRABLE return AnchorVerdict.ROTATED_UNREPAIRABLE # Epoch is neither live nor known-retired: metadata sync incomplete. raise ChainUnanchoredError( f"warrant {chain.leaf_id} anchors at unknown epoch {epoch}; " f"live={sorted(live_anchor_epochs)} retired={sorted(known_retired_epochs)}" ) def dispatch_tool_call( chain: WarrantChain, live_anchor_epochs: FrozenSet[int], known_retired_epochs: FrozenSet[int], repair_attempts: int, max_repair_attempts: int = 2, ) -> str: verdict = classify_chain(chain, live_anchor_epochs, known_retired_epochs) if verdict is AnchorVerdict.ANCHORED: return "proceed" if verdict is AnchorVerdict.ROTATED_REPAIRABLE: if repair_attempts >= max_repair_attempts: raise ChainUnanchoredError( f"warrant {chain.leaf_id}: repair budget exhausted " f"({repair_attempts}/{max_repair_attempts}) at epoch " f"{chain.link_epochs[0]}" ) return "repair:invalidate_grant_and_rederive_root" # ROTATED_UNREPAIRABLE raise ChainUnanchoredError( f"warrant {chain.leaf_id}: chain anchored at retired epoch " f"{chain.link_epochs[0]} with no broker channel; abort to orchestrator" ) ```