# Which invariants prevent stale capability grants from surviving revocation across agent handoff chains **Date of Record:** 2026 December 1 **Scope:** Applies to multi-agent systems where an agent delegates a tool invocation to a peer using a capability token/warrant minted by a third-party issuer, and where that warrant can be revoked mid-flight. Does not apply to single-agent tool-calling where the agent holds its own credentials directly, nor to stateless request/response RPC that re-authenticates on every hop. ## Core Distinction The failure is not "revocation is slow." It is that **a delegated capability is a *copy*, and revocation is an *event on the original*.** Between the issuer's revocation and the moment the copy is re-validated, the copy is a valid-looking object that grants real authority. The distinguishing question is: *does the verifier check the warrant's liveness against the issuer, or does it check only the warrant's local integrity (signature, expiry, scope)?* Local-integrity-only verification is the boundary. It is correct for every warrant that was never revoked and catastrophically wrong for every warrant that was — and the two are indistinguishable at the point of use. ## What Was Observed A three-hop chain: planner agent `P` holds a warrant `W_root` for `tool:payments.execute` scoped to `budget<=500`. `P` mints a *derived* warrant `W_1` for worker `A` (attenuated to `budget<=200`), and `A` mints `W_2` for sub-worker `B` (attenuated to `budget<=50`), passing it as an opaque bearer string in the A2A handoff payload. Each hop verifies signature chain and scope-attenuation locally. This is the textbook correct construction — Biscuit/macaroons-style offline attenuation — and it is where the invariant breaks. At T0, a policy engine flagged `A` as compromised (prompt-injection causing it to over-delegate) and revoked `W_1` at the issuer. The revocation record propagated to `P` and `A` within ~2s. It did **not** propagate to `B`, because `B` never registered as a holder — it received `W_2` as a bearer token in a payload and has no channel to the issuer's revocation feed. At T0+40ms, `B` executed `payments.execute(amount=48)` using `W_2`. The execution path at the payment service verified `W_2`'s signature chain up to `W_root`, checked `48 <= 50`, and approved. The revocation of `W_1` had no cryptographic or structural effect on `W_2` — `W_2` is a *distinct signed object* that merely *cites* `W_1` in its parent field. The trace, in the order the verifier saw it: ``` verify(W_2): sig(W_2) by A -> ok sig(W_1) by P -> ok sig(W_root) by issuer -> ok scope: 48 <= 50 <= 200 <= 500 -> ok expiry: now < exp(W_2) -> ok liveness(W_1) -> NOT CHECKED <-- the gap => APPROVE ``` The revocation of `W_1` was a fact known to the issuer and to `P`, and *structurally invisible* to `W_2`'s verification. The warrant chain is a proof of *derivation*, not a proof of *current validity*. Those are different claims, and the second one is the one the payment service actually needs. ## Condition of Validity The invariant that must hold is: > **For any warrant `W` used to authorize an effect, the verifier must be able to establish, at the instant of effect, that no ancestor of `W` (including `W` itself) has been revoked — and this establishment must not depend on any holder in the chain having received the revocation.** This is strictly stronger than "revocation propagates to holders." Propagation-to-holders fails exactly when a holder is offline, ephemeral, or — as here — a *bearer* that was never enrolled. The invariant requires the *verifier* to be the party that resolves liveness, because the verifier is the only party guaranteed to be present at the moment of effect and guaranteed to have a channel to the issuer. The condition of validity therefore fails whenever any of the following is true, and the system must treat each as a boundary: 1. **Bearer handoff without enrollment.** `W_2` was passed as an opaque string. `B` has no issuer relationship. Any revocation of an ancestor is invisible to `B`. *This is the primary trigger.* 2. **Offline attenuation past the revocation horizon.** Even with enrollment, if `B`'s liveness cache for `W_1` has a TTL longer than the issuer's revocation SLA, there is a window. The window is `max(cache_ttl) - revocation_sla`, and it must be `<= 0` or the invariant is violated by construction. 3. **Revocation identified by warrant-id, not by derivation-root.** If the issuer revokes `W_1` by its id, but the verifier only knows `W_2`'s id and its parent *field* (which is attacker-controllable and may be a stale or forged reference), the verifier cannot map `W_2` back to `W_1` unless the parent reference is itself signed and the issuer indexes revocations by *reachable descendant*. Revoking a node must mean revoking its entire signed subtree. ## Decision Boundary The boundary is between two verifier designs that look identical in code review: - **Design A (local integrity):** verifier checks signature chain + scope + expiry. Fast, offline-capable, no issuer round-trip. Correct only if no ancestor can be revoked, or if revocation is expressed as expiry (short TTLs). - **Design B (liveness-resolved):** verifier additionally resolves, per ancestor, a *signed, monotonic* revocation state from the issuer, and rejects if any ancestor is revoked or if the state cannot be resolved within the decision deadline. The decision boundary is: **use Design A only when the warrant's remaining lifetime is shorter than the issuer's guaranteed revocation-propagation SLA, and the effect is idempotent/reversible.** For irreversible effects (payments, deletions, external sends), Design A is unsound regardless of TTL, because a TTL of 5s still admits a 5s window in which a revoked warrant executes. The concrete guardrail is a **revocation epoch embedded in the warrant and checked by the verifier**, not by the holder: ``` W_2 carries: parent_root = H(W_1), epoch = E_issue Verifier, at effect time: fetch issuer.revocation_state(root=H(W_root)) -> {revoked_set, current_epoch} reject if H(W_1) in revoked_set reject if current_epoch > W_2.epoch + tolerance # forces re-issue after revocation churn ``` Note the second clause: even if `W_1` is not *yet* in the revoked set, a verifier that sees the epoch has advanced past the warrant's issue epoch knows the warrant was minted under a policy generation that may since have been invalidated, and must re-validate rather than trust. This converts "did anyone revoke my ancestor?" into "is my ancestor's derivation still within the current policy epoch?", which is answerable from a single monotonic counter the issuer publishes. ## Operational Effect Without the liveness-resolution invariant, the system's effective revocation latency is `unbounded` for any warrant that has crossed a bearer handoff — which is precisely the handoff pattern that A2A and MCP delegation encourage. The observed consequence: a revoked `W_1` authorized a real `$48` payment 40ms after revocation, through a sub-worker that had no way to know. Scaling this, a compromised mid-chain agent can fan out `N` attenuated bearer warrants to `N` ephemeral sub-agents before revocation lands, and every one of them will pass local verification until its own expiry. The blast radius of a single revocation is bounded not by the revocation, but by the *maximum TTL of any descendant warrant in flight* — a number the issuer does not control and typically does not know. The operational rule that follows: **a warrant is only as revocable as its longest-lived descendant, and the issuer must be able to enumerate and invalidate descendants by derivation-root, not by holder enrollment.** If the issuer cannot do that, the only sound mitigation is to cap descendant TTL below the revocation SLA and to forbid bearer handoff for irreversible effects. Systems that adopt neither are running Design A against irreversible effects and calling it secure because the signatures verify. ```python import hashlib from dataclasses import dataclass, field class StaleCapabilityError(RuntimeError): """Raised when a warrant's ancestor was revoked but the verifier only checked local integrity.""" pass @dataclass class Warrant: warrant_id: str parent_id: str | None scope_budget: int epoch: int revoked: bool = False def _h(s: str) -> str: return hashlib.sha256(s.encode()).hexdigest()[:16] class Issuer: def __init__(self) -> None: self._warrants: dict[str, Warrant] = {} self._revoked_roots: set[str] = set() self.epoch: int = 1 def register(self, w: Warrant) -> None: self._warrants[w.warrant_id] = w def revoke(self, warrant_id: str) -> None: # Revoking a node revokes its entire signed subtree, indexed by derivation-root. self._warrants[warrant_id].revoked = True self._revoked_roots.add(_h(warrant_id)) self.epoch += 1 def is_ancestor_revoked(self, w: Warrant) -> bool: cur: Warrant | None = w while cur is not None: if cur.revoked or _h(cur.warrant_id) in self._revoked_roots: return True cur = self._warrants.get(cur.parent_id) if cur.parent_id else None return False def verify_and_execute(issuer: Issuer, w: Warrant, amount: int, epoch_tolerance: int = 0) -> str: # Local integrity checks (Design A) — necessary, not sufficient. if amount > w.scope_budget: raise StaleCapabilityError(f"scope violation: {amount} > {w.scope_budget}") # Liveness resolution (Design B) — the invariant that bounds revocation. if issuer.is_ancestor_revoked(w): raise StaleCapabilityError( f"warrant {w.warrant_id} has a revoked ancestor; bearer handoff hid revocation" ) if issuer.epoch > w.epoch + epoch_tolerance: raise StaleCapabilityError( f"warrant {w.warrant_id} minted at epoch {w.epoch}, issuer at {issuer.epoch}; " f"policy generation advanced, re-validation required" ) return f"executed {amount} under {w.warrant_id}" # --- Reproduction of the observed failure --- issuer = Issuer() root = Warrant("W_root", None, 500, epoch=1) w1 = Warrant("W_1", "W_root", 200, epoch=1) w2 = Warrant("W_2", "W_1", 50, epoch=1) # handed to B as opaque bearer for w in (root, w1, w2): issuer.register(w) issuer.revoke("W_1") # A compromised; revocation lands at issuer and P # B executes 40ms later. Local checks pass; liveness check fires. try: verify_and_execute(issuer, w2, amount=48) except StaleCapabilityError as e: print("BLOCKED:", e) # Without the liveness clause, this would have printed "executed 48 under W_2". ```