# Which invariants prevent a federated agent's delegated warrant from silently outliving its home-domain revocation during cross-org handoff **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization agent federations where a home domain (Domain A) issues a signed capability warrant to a foreign domain (Domain B), and B's agents act on that warrant against A's resources or downstream peers. Does not cover single-domain MCP tool invocation, intra-org A2A transport, or stateless request/response APIs where the caller re-authenticates per call. ## Core Distinction The failure is not "a revoked agent keeps acting." That is a well-understood authorization bug with an obvious fix (check revocation before every action). The non-obvious failure is *warrant propagation into a foreign trust boundary*: when Domain A delegates capability to Domain B, B re-signs or re-asserts that capability to Domain C under B's own identity, and A's later revocation never reaches C because C trusts B, not A. The warrant is cryptographically intact, the signature chain verifies, and C has no channel to learn that the root of the chain was invalidated three hops back. The distinction is between **warrant authenticity** (the chain verifies) and **warrant liveness** (the root is still valid *now*, at the moment of use, in the domain that owns the resource). Federation protocols overwhelmingly guarantee the first and treat the second as an out-of-band concern that nobody implements. ## What Was Observed A three-domain federation: A (resource owner, issues warrants), B (broker/orchestrator, holds a delegation from A and re-delegates to C), C (executor, calls A's resource endpoints using a warrant it received from B). A's warrant format carried an `exp` of 3600s and an `aud` of `did:B`. B's re-delegation to C narrowed scope and preserved A's signature as an embedded chain element, then added B's own signature over the composite. At T+0, A issued the warrant to B. At T+1800, A's policy engine revoked B's delegation because an auditor flagged B for a policy violation (B had begun fanning the warrant out to more sub-agents than its `max_delegation_depth` allowed). A updated its revocation list. A's own resource endpoints checked the list on each call. At T+1900, C called A's resource endpoint. The request carried the full chain: A→B→C. A's endpoint verified the chain, saw a valid A-signature at the root, checked `exp` (still 900s remaining), checked `aud` on the *leaf* (which was `did:C`, not `did:B`), and **admitted the request**. The revocation list keyed on the warrant ID that A had issued to B. The chain presented by C carried a *derived* warrant ID minted by B, not the original. A's revocation check looked up the derived ID, found nothing, and passed. The failure trace in order: 1. A revokes warrant `W_A` (ID `w-a-001`) at T+1800. 2. B, unaware or indifferent, had already minted `W_B` (ID `w-b-77`) at T+1700 embedding `W_A` as parent, and handed it to C. 3. C presents `W_B` at T+1900. A's verifier walks the chain: `W_B` signed by B ✓, parent `W_A` signed by A ✓, `exp` valid ✓. 4. A's revocation check runs against `W_B.id` (`w-b-77`). Revocation list contains `w-a-001`. No match. Admit. 5. The parent warrant `W_A` is never re-checked against the revocation list because the verifier treats the parent as "already validated at issuance" rather than "must be re-validated at use." The invariant that was missing: **revocation must be evaluated against every element of the delegation chain at the point of use, not only against the leaf, and the revocation set must be keyed on the root-issued warrant identity that survives re-delegation.** B's derived ID is a *new* identity; the original identity must be carried forward as a mandatory, non-strippable field (`root_warrant_id`) and checked. A second, compounding observation: B's `max_delegation_depth` was 1, but B minted `W_B` with `depth=2` (counting itself as depth 1, C as depth 2). A's verifier did not recompute depth from the chain; it read the `depth` field from `W_B`, which B had set. The depth constraint was self-reported by the party being constrained. This is the same class of error as revocation: a constraint owned by A was being *asserted* by B rather than *verified* by A. ## Condition of Validity The guardrail holds only under these conditions, and each is a place where real deployments quietly fail: - **Root identity is carried, not recomputed.** Every derived warrant MUST embed `root_warrant_id` and `root_issuer` as fields covered by the re-delegator's signature. A verifier that reconstructs root identity by walking signatures is vulnerable to chain-splicing where a malicious B presents a different valid root. - **Revocation is checked at every hop at use time.** The verifier MUST check the revocation set against `root_warrant_id` AND every intermediate warrant ID in the chain, not just the leaf. This requires the revocation set to be queryable by root ID, which means A's revocation endpoint must index by `root_warrant_id`, not by the ID it minted (they are the same only at depth 1). - **Depth and scope are recomputed, never read.** `max_delegation_depth` and scope-narrowing MUST be verified by recomputing from the chain structure, treating all depth/scope fields inside the warrant as *claims* subject to verification, not as authoritative values. - **The revocation check is fresh.** A cached revocation set with a TTL longer than the warrant's remaining `exp` reopens the window. The freshness bound must be ≤ min(remaining `exp`, revocation propagation SLA). It does **not** hold when: the resource endpoint trusts the leaf's `aud` without checking that the leaf's `aud` is reachable from the root's `aud` via the chain (audience laundering); or when B is permitted to mint warrants offline and batch-sync them later (the batch is a revocation-bypass window by construction). ## Decision Boundary The architect must choose, per federation edge, between two postures: - **Short-lived warrants + synchronous revocation check per use.** Every call re-queries A's revocation endpoint. Latency cost: one RTT to A per resource call. Acceptable when warrant `exp` ≤ 300s and revocation propagation SLA ≤ 60s. This is the only posture that bounds the revocation window to the check latency. - **Long-lived warrants + push-based revocation with mandatory freshness proof.** A pushes revocations to B and C; each call carries a signed `revocation_epoch` the verifier compares against A's current epoch. Requires C to hold a channel to A (breaking the "C only trusts B" simplification) or to accept B-attested epochs (which reintroduces the trust-the-broker problem). The boundary is crossed when `warrant_exp > revocation_propagation_SLA + check_latency`. Past that line, the window in which a revoked warrant still admits is non-zero and unbounded by the protocol; the only remaining bound is the auditor who eventually notices. If the deployment cannot meet the freshness condition, the correct decision is to **refuse cross-domain re-delegation entirely** and require C to obtain a direct warrant from A — collapsing the federation to depth 1, where revocation is trivially checkable. A concrete decision rule: if `max_delegation_depth > 1`, the protocol MUST carry `root_warrant_id` in every derived warrant and the verifier MUST check it against a revocation set indexed by root ID. If either is absent, the federation must be treated as depth-1-only and any depth-2 warrant rejected at verification with a hard error, not a warning. ## Operational Effect The observable effect of the missing invariant is a **revocation shadow**: after A revokes, requests continue to be admitted for the full remaining `exp` of any downstream-derived warrant, across every domain that received a re-delegation. In the observed incident, the shadow lasted 900s and spanned two hops. The blast radius scales with fan-out: B had delegated to four sub-agents, each of which could delegate once more within B's self-asserted depth, producing up to sixteen live warrants whose root was dead. None of them failed verification. All of them were revoked-in-fact and valid-in-form. The remediation that restored the invariant was not "revoke harder." It was structural: (1) A's warrant format gained a mandatory `root_warrant_id` field, signed and non-strippable, that B is required to copy verbatim into every derived warrant; (2) A's revocation endpoint was re-indexed to answer queries by `root_warrant_id`; (3) A's verifier was changed to walk the entire chain and check every ID against the revocation set, and to recompute depth and scope from chain structure rather than reading claimed fields; (4) any chain missing `root_warrant_id` is rejected at verification with a hard failure. Post-remediation, the revocation shadow collapsed to the check latency (one RTT, ~40ms observed) regardless of delegation depth. The generalizable operational lesson: in a federation, every constraint that the *resource owner* cares about must be either (a) cryptographically bound to the root and re-verified at use, or (b) recomputed by the verifier from structure the delegator cannot forge. Constraints that are merely *asserted* by the delegator — depth, scope, revocation status, audience — are not constraints; they are suggestions from a party with an incentive to overstate them. The invariant is: **no property owned by the root may be trusted when asserted by an intermediate.** ```python class RevocationShadowError(RuntimeError): """Raised when a delegation chain would admit a request whose root warrant is revoked but whose leaf is not, i.e. a revocation shadow.""" pass def verify_chain(chain, revocation_set, now, max_depth): # chain: list of warrants ordered root -> leaf. # Each warrant: {"id", "root_warrant_id", "issuer", "aud", "depth", "scope", # "exp", "sig_ok"} if not chain: raise RevocationShadowError("empty delegation chain") root = chain[0] root_id = root["root_warrant_id"] # Invariant 1: every element must carry the same root identity. for w in chain: if w.get("root_warrant_id") != root_id: raise RevocationShadowError( f"warrant {w['id']} has root {w.get('root_warrant_id')!r}, " f"expected {root_id!r}; chain splicing or stripped root id" ) # Invariant 2: revocation checked against EVERY hop, at use time. for w in chain: if w["id"] in revocation_set or root_id in revocation_set: raise RevocationShadowError( f"warrant {w['id']} (root {root_id}) is revoked; " f"refusing admission despite valid signature chain" ) # Invariant 3: depth recomputed from structure, never read from claim. recomputed_depth = len(chain) - 1 if recomputed_depth > max_depth: raise RevocationShadowError( f"recomputed depth {recomputed_depth} exceeds max {max_depth}; " f"claimed depth {chain[-1].get('depth')!r} is not authoritative" ) # Invariant 4: freshness — every hop still within exp at use time. for w in chain: if now >= w["exp"]: raise RevocationShadowError( f"warrant {w['id']} expired at {w['exp']}, now {now}" ) # Invariant 5: scope must narrow monotonically root -> leaf. for parent, child in zip(chain, chain[1:]): if not set(child["scope"]).issubset(parent["scope"]): raise RevocationShadowError( f"warrant {child['id']} widens scope beyond parent {parent['id']}" ) # Invariant 6: audience reachability — leaf aud must be reachable from root aud. if chain[-1]["aud"] not in root.get("delegable_audiences", []): raise RevocationShadowError( f"leaf audience {chain[-1]['aud']!r} not reachable from root audience" ) return True ```