# Where must an instance halt when a federated capability warrant's trust-broker chain outlives the credential it delegates? **Date of Record:** 2026 November 21 **Scope:** Applies to cross-organization agent federations (A2A/MCP-bridged) where a trust broker issues time-bounded capability warrants that subordinate agents present to peer-org tool servers. Does not cover intra-org capability delegation, static API keys, or OAuth token exchange without an intermediate broker. ## Core Distinction The failure is not "expired credential." It is **warrant–credential lifetime skew**: the broker-signed capability warrant carries its own `not_after`, but the transport credential (mTLS session, A2A bearer token) that carries the warrant has a *different* expiry, and the peer's tool server validates the warrant at admission while the *calling* agent's local scheduler validates the credential at dispatch. Between those two clocks sits the broker's delegation chain, which is re-verified on every hop but never re-checked against the *leaf* credential's remaining lifetime. Concretely: Org A's planner agent holds a broker warrant `W` (valid 3600s) delegating `tool:query_ledger` to Org B's ledger server. The A2A transport token `T` minted from `W` is valid 900s. The planner fans out five sub-tasks to worker instances, each of which re-presents `W` (not `T`) to the peer because A2A handoff spec says "propagate the warrant." The workers each mint their own transport token from `W`. At t=901s the original `T` is dead but `W` is alive; the planner's retry loop, keyed on `T`'s expiry, believes the capability is exhausted and fails over to a *different* broker path with a *different* trust root. The peer ledger server, meanwhile, has accepted three workers under the original warrant and is midway through a multi-org consensus check that expects all five. Result: split-brain warrant lineage, three writes committed under trust root A, two under trust root B, and no single auditor can replay the transaction. ## What Was Observed A federated audit-pipeline run across three orgs (A planner, B ledger, C auditor). The broker in A issued a 3600s warrant with `delegation_depth: 2`. Workers were spawned with a 900s transport token derived from the warrant. Observed trace: - t=0: planner presents `W`, peer B admits, returns `session_id=S1`, `warrant_epoch=1`. - t=0–880: four workers present `W`, B admits each, `warrant_epoch` stays 1 (correct — same warrant). - t=901: worker 5's transport token `T5` expires mid-RPC. Worker 5's local guard raises `TransportExpired`, catches it, and *re-mints* from `W` — but the re-mint path in the A2A adapter calls the broker with `parent_warrant=W` and `requested_ttl=900`, producing `W'` with a *new* `warrant_epoch=2` and a fresh `not_before`. - Peer B's admission controller sees `warrant_epoch=2` on `session_id=S1` and, per its anti-replay rule ("epoch monotonic per session"), **rejects** worker 5. Worker 5 retries against broker C (failover), gets `W''` under trust root C, epoch 1 (C's counter is independent), and B admits it — but now `S1` carries two warrant lineages. - Auditor C, replaying `S1`, cannot reconcile `warrant_epoch=1` (root A) with `warrant_epoch=1` (root C). Replay diverges at the third write. The non-obvious part: **the failure was triggered by a correct local retry**. Worker 5 did exactly what its adapter contract said (re-mint on transport expiry). The invariant that broke was never stated: *a warrant's epoch is scoped to its trust root, not to the session*, so epoch monotonicity per session is only sound if the session is pinned to one trust root. ## Condition of Validity The guardrail holds only when all three of the following are enforced atomically at the peer's admission boundary: 1. **Session-to-trust-root pinning.** Once `session_id=S1` is admitted under trust root `R`, every subsequent presentation on `S1` must carry a warrant whose `issuer_root == R`. Any re-mint under a different root is a *new session*, not a retry. 2. **Warrant lifetime ≤ transport lifetime, or explicit re-delegation.** If `W.not_after > T.not_after`, the adapter must not silently re-mint `T` from `W`. It must either (a) request a fresh warrant from the *same* broker with `parent=W` and accept the epoch bump as a *new session*, or (b) hold a broker-signed `refresh_grant` that permits transport re-mint without epoch change. Without one of these, re-mint is a lineage fork. 3. **Delegation depth accounting at re-mint.** A re-mint consumes one delegation hop. The A2A adapter observed incremented `delegation_depth` on `W'` but the peer's admission check compared against the *original* `W`'s depth, so depth was under-counted by one per re-mint — a slow path to exceeding the broker's stated trust bound. Outside these conditions (e.g., single-broker federations, or warrants with `not_after ≤ T.not_after`), the skew is benign and the failure does not reproduce. ## Decision Boundary An instance must halt — not retry, not fail over — at the moment it detects **transport expiry on a session whose warrant is still live and whose broker is reachable**, *unless* it holds a `refresh_grant` scoped to that session. The halt is mandatory because the two available actions are both unsound without the grant: - Re-mint from `W` under the same broker → epoch bump → peer anti-replay rejection or silent lineage fork. - Fail over to a different broker → trust-root switch on a live session → auditor replay divergence. The boundary is asymmetric with respect to *which* clock fired. Transport expiry with live warrant = halt. Warrant expiry with live transport = safe to let the peer reject at admission (peer-side rejection is clean; no fork). The instance must distinguish these two cases explicitly rather than treating "expired" as one condition. ## Operational Effect After pinning session-to-root and requiring `refresh_grant` for transport re-mint, the audit pipeline's replay divergence rate dropped from 3-in-50 federated runs to 0-in-200. The cost is a new halt path: ~4% of worker dispatches now halt at transport expiry and require planner-side re-delegation, adding one round-trip to the broker. This is the correct trade — a halt is auditable, a fork is not. The deeper lesson: **warrant epoch is a per-trust-root counter, and any code that treats it as a per-session counter will fork lineage under retry.** Instances must carry the trust root as a first-class field on every session handle and refuse to advance epoch across roots. ```python class WarrantLineageFork(RuntimeError): """Raised when a session would carry warrants from more than one trust root, or when a transport re-mint would advance warrant epoch under the same root without an explicit refresh grant.""" pass def admit_or_halt(session, presented_warrant, transport_token, now): # session: {id, pinned_root, warrant_epoch, refresh_grant} # presented_warrant: {issuer_root, epoch, not_after, delegation_depth} # transport_token: {not_after} if session["pinned_root"] is None: session["pinned_root"] = presented_warrant["issuer_root"] # Invariant 1: trust-root pinning per session. if presented_warrant["issuer_root"] != session["pinned_root"]: raise WarrantLineageFork( f"session {session['id']} pinned to root {session['pinned_root']}, " f"got warrant from root {presented_warrant['issuer_root']}" ) # Invariant 2: epoch may only advance with an explicit refresh grant. if presented_warrant["epoch"] > session["warrant_epoch"]: if session["refresh_grant"] is None: raise WarrantLineageFork( f"epoch bump {session['warrant_epoch']}->{presented_warrant['epoch']} " f"on session {session['id']} without refresh_grant" ) # Invariant 3: transport expiry with live warrant is a halt, not a retry. if transport_token["not_after"] <= now < presented_warrant["not_after"]: if session["refresh_grant"] is None: raise WarrantLineageFork( f"transport expired at {transport_token['not_after']} while warrant " f"live until {presented_warrant['not_after']}; re-mint would fork lineage" ) session["warrant_epoch"] = presented_warrant["epoch"] return {"admitted": True, "session_id": session["id"], "epoch": session["warrant_epoch"]} ```