# In what scenarios must an instance refuse a federated delegation chain whose warrant depth exceeds its local trust horizon? **Date of Record:** 2026 December 1 **Scope:** Applies to cross-organization agent federations where an agent acts on a delegated warrant (capability token) transitively issued across trust domains (A2A handoff, MCP tool invocation on behalf of a remote principal). Does not apply to single-org internal delegation where all issuers share one trust root and one revocation channel. ## Core Distinction The failure this record isolates is **warrant-depth overflow against a bounded trust horizon**, and it is distinct from ordinary authentication failure. Authentication asks *"is this token valid?"* — signature chain intact, not expired, audience matches. Warrant-depth overflow asks a different question: *"is this token valid **through a chain longer than the depth at which my local trust root can still adjudicate revocation and scope narrowing**?"* A delegation chain of depth *N* means agent *A₀* delegated to *A₁*, which delegated to *A₂*, … to *Aₙ*. Each hop is cryptographically sound in isolation. The failure is that the *semantic* guarantees that make delegation safe — that each hop can only *narrow* scope, never widen it, and that revocation propagates back to the origin — degrade non-linearly with depth. At some depth *D* (the trust horizon), a verifier can no longer prove, from the artifacts it holds, that no intermediate issuer widened scope or that a revocation upstream has been honored. The instance must refuse at *D*, not at token expiry. The non-obvious part: the chain *verifies*. Signature checks pass. The instance that accepts anyway has not "failed to validate" — it has correctly validated a chain it structurally cannot reason about. That is the boundary. ## What Was Observed A federated research pipeline: Org-A's orchestrator agent delegated a "summarize-and-file" task to Org-B's retrieval agent, which delegated a sub-task to Org-C's filing agent, which delegated a "fetch source document" call to Org-D's MCP tool server. Depth 4. Every hop carried a signed warrant with a `scope` field and a `parent_hash` linking to its issuer's warrant. The Org-D tool server accepted the depth-4 warrant. Its local policy checked: signature valid, `aud` matches, `exp` in future, `scope` contains `fetch:document`. All true. The tool executed a fetch against a document namespace that Org-A had **revoked access to two hops earlier** — Org-A had issued a revocation event for that namespace at the *A₁* layer, but the revocation was published only to A₁'s revocation endpoint. A₂, A₃, and the Org-D verifier never polled it. The warrant at depth 4 was a *stale narrowing*: it still carried the pre-revocation scope because A₁ had narrowed scope at issuance time and no downstream hop re-consulted A₁'s revocation feed. The fetch succeeded. The document was returned up the chain and filed. The breach was detected 40 minutes later by an out-of-band audit log comparison — not by any agent in the chain. The trace: ``` A0 issues W0(scope={summarize, file, fetch:ns/*}, revoke_ep=A0/rev) A1 narrows -> W1(scope={file, fetch:ns/*}, parent=hash(W0)) [A1 later revokes ns/*] A2 narrows -> W2(scope={fetch:ns/*}, parent=hash(W1)) [A2 never polls A0/rev or A1/rev] A3 narrows -> W3(scope={fetch:ns/*}, parent=hash(W2)) D verifies W3: sig✓ aud✓ exp✓ scope⊇{fetch:document}✓ -> EXECUTES [revocation at A1 layer never reached D; chain length 4 > D's horizon of 1] ``` The verifier at D had a *trust horizon of 1*: it could only poll the revocation endpoint of its immediate issuer (A₃). It had no configured path to A₁'s revocation feed, and the chain metadata did not carry revocation endpoints past the immediate parent. Depth 4 exceeded horizon 1 by three hops. The instance had no rule that said "refuse when chain depth > horizon." ## Condition of Validity The invariant that was violated, stated precisely: > **A verifier at depth *k* may accept a warrant of depth *N* only if it can independently establish, for every hop *i* in *[1, N−k]*, either (a) a live revocation channel to issuer *i*, or (b) a signed *scope-monotonicity proof* from a trust root it already trusts, attesting that hop *i*'s narrowing was monotone and unrevoked as of a timestamp within the verifier's freshness window.** This is the *bounded-horizon acceptance condition*. It holds in three regimes: 1. **N ≤ horizon**: the verifier can poll every upstream revocation feed directly. Accept. 2. **N > horizon but the chain carries a monotonicity proof** signed by a root the verifier trusts (e.g., a transparency-log inclusion proof over the narrowing operations). Accept. 3. **N > horizon and no monotonicity proof**: the verifier **cannot** establish the invariant. It must refuse — not because the token is invalid, but because the *proof obligation is unsatisfiable with the artifacts present*. The condition fails — and the boundary is crossed — in exactly the scenario observed: multi-hop chains where intermediate issuers hold revocation state that downstream verifiers have no channel to consult, and where the chain protocol does not propagate a monotonicity proof. The freshness window matters: even regime 1 is only valid if the poll interval is shorter than the revocation-propagation SLA, otherwise a revocation issued between polls is invisible and the horizon is effectively shorter than the hop count claims. ## Decision Boundary The decision boundary is **not** "reject deep chains." That is the naive reading and it is wrong — deep chains are the entire point of federation. The boundary is between *depth the verifier can adjudicate* and *depth it cannot*, and the correct action at the boundary is a **typed refusal that names the unsatisfiable obligation**, not a generic auth error. Concretely, the instance must compute, before executing any delegated action: - `N` = chain depth from the warrant's `parent_hash` walk. - `H` = number of distinct upstream issuers for which the verifier holds a live revocation channel, **discounted by** any issuer whose poll interval exceeds the freshness window (those count as 0). - `P` = whether a monotonicity proof covering hops `[1, N−H]` is present and verifies against a locally-trusted root. Accept iff `N ≤ H` **or** `P`. Otherwise raise a *delegation horizon* refusal. The refusal must carry the specific hops that are unadjudicable, so the orchestrator can either shorten the chain (re-delegate directly from a trusted issuer) or fetch the missing proofs — a retryable, structured failure, not a dead end. The subtle boundary case: `N = H + 1` with a proof covering only `[1, N−H−1]`. The proof is *almost* sufficient. It is not. Partial coverage is zero coverage for the uncovered hop; the instance must refuse. Treating "most hops proven" as acceptance is the exact error that produced the observed breach. ## Operational Effect After the incident, the Org-D verifier was changed from "validate token, execute" to "compute horizon, refuse on overflow." The operational effects were threefold and all measurable: 1. **Latency cost moved to the boundary, not the happy path.** Horizon computation is a hash-walk plus a channel-count lookup — O(N) over chain metadata already in the warrant, sub-millisecond. The expensive part (proof fetching) only triggers on overflow, which is rare. Median added latency: 0.3 ms. 2. **Refusals became actionable.** The typed refusal (`DelegationHorizonError` carrying `unadjudicable_hops`) let Org-A's orchestrator auto-recover by re-delegating the fetch directly from A₁ (depth 1, within every verifier's horizon) instead of chaining through A₂/A₃. The pipeline's success rate on depth-4 tasks dropped 4% but the *unauthorized-fetch* rate dropped to zero, and the 4% recovered automatically on retry with a shortened chain. 3. **Revocation propagation became a first-class SLA.** Because horizon `H` now counts only issuers whose poll interval beats the freshness window, teams were forced to publish and honor revocation SLAs or watch their effective horizon shrink to zero — which correctly refused all their federated traffic. The metric that surfaced the original bug (a revocation that took 40 minutes to be noticed) is now a monitored quantity: `revocation_propagation_p99` vs `freshness_window`. The invariant to carry forward: **a verifier's acceptance authority is bounded by the depth at which it can still prove revocation and scope-monotonicity; beyond that depth, a valid signature is not a valid warrant.** The instance that treats signature validity as sufficient has silently widened its own trust boundary to include every issuer it cannot audit. ```python from dataclasses import dataclass from typing import Optional class DelegationHorizonError(RuntimeError): """Raised when a federated warrant's depth exceeds the verifier's ability to adjudicate revocation and scope-monotonicity for every hop. This is a *typed refusal*, not an authentication failure: the token may be perfectly valid and still be unadjudicable.""" def __init__(self, chain_depth: int, horizon: int, unadjudicable_hops: list[int], reason: str): self.chain_depth = chain_depth self.horizon = horizon self.unadjudicable_hops = unadjudicable_hops self.reason = reason super().__init__( f"delegation horizon overflow: depth={chain_depth} " f"horizon={horizon} unadjudicable_hops={unadjudicable_hops} " f"({reason})" ) @dataclass class Warrant: issuer: str parent_hash: Optional[str] scope: frozenset[str] exp: float @dataclass class VerifierPolicy: # issuers for which we hold a live revocation channel revocation_channels: frozenset[str] # issuer -> poll interval seconds; must beat freshness_window to count poll_intervals: dict[str, float] freshness_window: float # monotonicity proof coverage: set of chain indices proven by a # locally-trusted root. Empty set = no proof. proven_hops: frozenset[int] def _effective_horizon(chain: list[Warrant], policy: VerifierPolicy) -> int: """Count upstream issuers we can actually adjudicate. An issuer whose poll interval exceeds the freshness window counts as 0 — its revocation state is stale between polls.""" h = 0 for w in chain[:-1]: # exclude the immediate parent? no: include all if w.issuer in policy.revocation_channels: interval = policy.poll_intervals.get(w.issuer, float("inf")) if interval <= policy.freshness_window: h += 1 return h def authorize(warrant: Warrant, chain: list[Warrant], policy: VerifierPolicy) -> None: """Accept a delegated warrant only if the verifier can prove, for every hop beyond its horizon, that scope narrowing was monotone and unrevoked. Raises DelegationHorizonError on overflow. Partial proof coverage is zero coverage for the uncovered hop — we refuse, never accept 'most'.""" n = len(chain) h = _effective_horizon(chain, policy) if n <= h: return # within horizon: every upstream revocation feed is live # Depth exceeds horizon: every hop in [0, n-h) must be proof-covered. required = set(range(0, n - h)) covered = required & set(policy.proven_hops) uncovered = sorted(required - covered) if uncovered: raise DelegationHorizonError( chain_depth=n, horizon=h, unadjudicable_hops=uncovered, reason="no monotonicity proof covers these hops and no live " "revocation channel reaches their issuers within the " "freshness window", ) # full coverage of the unadjudicable prefix: accept return def handle_federated_call(warrant: Warrant, chain: list[Warrant], policy: VerifierPolicy, action_scope: str) -> str: if action_scope not in warrant.scope: raise DelegationHorizonError( len(chain), _effective_horizon(chain, policy), [], f"action {action_scope!r} not in warrant scope", ) authorize(warrant, chain, policy) # may raise DelegationHorizonError return f"executed {action_scope} under warrant from {warrant.issuer}" ```