# Which invariants prevent revoked agent warrants from resurrecting through cached capability handshakes in federated meshes **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent meshes where peer agents present short-lived, signed warrants (capability tokens) to call one another, and where a revocation event must propagate faster than the warrant's own TTL. Does not cover single-tenant deployments with a shared trust root and synchronous token introspection, nor does it cover human-user OAuth revocation. ## Core Distinction The failure lives at the seam between two correctness properties that are usually reasoned about separately: **warrant freshness** (is this credential still within its validity window?) and **revocation authority** (has the issuer rescinded it?). A short TTL is not a revocation mechanism. It is a *latency ceiling on staleness*. The common design assumption — "warrants expire in 90 seconds, so revocation propagates within 90 seconds" — is true only if every verifier re-validates against the issuer at use time. In a mesh, verifiers cache. Caching collapses the TTL ceiling into an *unbounded* staleness window, because the cached decision was made against a warrant that was valid *at cache-fill time*, and the cache key is typically the warrant's own identity — which does not change when the warrant is revoked. The non-obvious part: the revoked warrant is cryptographically indistinguishable from a live one. Signature still verifies. `exp` is still in the future. `aud` still matches. Every local check passes. The only thing that changed is a bit in the issuer's revocation list, and the verifier's cache never asks. So a revoked agent does not lose its ability to act — it loses it *only at the subset of peers whose caches happen to have missed*. That produces a mesh that is simultaneously partially-revoked and internally inconsistent: Agent A is dead to Peer 1 and fully alive to Peer 2, and Peer 2 will happily relay A's downstream calls with a fresh warrant *it* mints on A's behalf. ## What Was Observed A three-hop delegation chain: orchestrator `O` mints a warrant `W_O→A` for agent `A` (TTL 120s). `A` uses `W_O→A` to obtain a delegated warrant `W_A→B` from `B`'s warrant service (TTL 60s), and `B` in turn calls `C` with `W_B→C`. At t=15s, `O` revokes `W_O→A` after `A` begins emitting tool calls that violate its declared scope (a prompt-injection state poisoning event). `O` publishes the revocation to its own revocation endpoint. Trace of what happened next: 1. `A`'s next call to `B` presents `W_O→A`. `B`'s warrant cache holds a positive entry keyed on `W_O→A`'s `jti`, filled at t=8s. Cache hit, no issuer round-trip. **Call admitted.** 2. `B` mints `W_B→C` for `C`. `B`'s minting path checks *its own* authority (`W_A→B` is valid, and `B`'s cache of `W_O→A` is positive) but does **not** re-check `O`'s revocation list. `W_B→C` is issued with `B`'s signature and a fresh 60s TTL. 3. `C` receives `W_B→C`, validates against `B`'s key, and — critically — has no path to `O`'s revocation list at all. `C` trusts `B`. **Call admitted.** 4. The revoked `A` now has an effective lifetime bounded not by its 120s TTL nor by `O`'s revocation, but by `B`'s cache TTL for the positive entry (300s in this deployment) *plus* the 60s of `W_B→C` already minted on its behalf. Net: revocation latency was ~6× the warrant TTL, and the revocation never reached the third hop. The failure was not a signature failure, a TTL failure, or a scope failure. It was a **cache-fill-time authority decision being reused after the authority was withdrawn**, compounded by **downstream re-minting that laundered the revoked identity into a fresh, unrevoked warrant**. ## Condition of Validity The invariant that must hold for revocation to be sound across a mesh: > For any warrant `W` minted by issuer `I` with subject `S`, every verifier `V` that admits a call on `W` — or mints a derived warrant on `S`'s behalf — must have observed `I`'s revocation state for `W` at a time no earlier than the most recent revocation epoch published by `I`, *and* `V`'s positive cache entry for `W` must be invalidated by any epoch advance, not merely by `W`'s expiry. This is the **revocation-epoch monotonicity** condition. It fails whenever any of the following is true: - The verifier's cache key is `W.jti` alone and the invalidation trigger is `W.exp`, so a revocation event never touches the entry. - A re-minting hop (`B`) treats "my inbound warrant was valid when I cached it" as sufficient authority to issue a derived warrant, without binding the derived warrant to the inbound warrant's *current* revocation state. - The chain crosses a trust boundary (`B`→`C`) where `C` has no route to `O`'s revocation endpoint, so the epoch can never be observed at all. The condition is *not* satisfied by shortening TTLs. Shorter TTLs shrink the window but never close it, and they increase mint/validate churn, which increases cache pressure and paradoxically lengthens effective staleness under load. ## Decision Boundary The boundary is between **two admissible designs**, and there is no safe middle: **Design A — epoch-bound caching.** Positive warrant cache entries carry the issuer's revocation epoch at fill time. Every cache hit re-reads a cheap, signed, monotonically increasing epoch counter from the issuer (a single small GET, cacheable at the edge but never *stale beyond one epoch*). On epoch advance, all entries filled under the prior epoch are invalidated. Derived warrants embed the parent warrant's `jti` and the epoch under which the parent was verified, so a re-minting hop can be audited and its output retroactively invalidated. This is the only design that closes the multi-hop laundering path. **Design B — no positive caching, introspect every call.** Every admission round-trips to the issuer. Correct, but the mesh's availability is now coupled to the issuer's availability, and p99 call latency inherits the introspection latency. Acceptable only when call volume is low or the issuer is co-located. The boundary that must **not** be crossed: caching a positive decision on `W.jti` with invalidation keyed only on `W.exp`, *and* allowing re-minting from that cached decision. That combination is the exact mechanism observed above. If you must cache, bind the cache to the epoch. If you cannot bind to the epoch (because the hop has no route to the issuer), you must **not** cache and you must **not** re-mint — you must treat the warrant as single-use and forward the caller to a hop that *can* see the epoch. A secondary boundary: **derived warrants must be revocable transitively.** If `O` revokes `W_O→A`, every warrant minted downstream of it — `W_A→B`, `W_B→C` — must be invalidated, even though `O` never signed them. This requires the mint chain to carry a parent pointer and the revocation list to be queried *by ancestry*, not just by `jti`. Deployments that skip this are the ones where revocation "works" at hop 1 and silently fails at hop 2. ## Operational Effect When the epoch-monotonicity invariant is enforced, revocation latency becomes bounded by the epoch publication interval (typically sub-second to a few seconds), *independent of warrant TTL and independent of cache TTL*. The 6× overshoot observed above collapses to a single epoch tick. The cost is one small signed read per cache hit and a parent-pointer field in every minted warrant. When it is not enforced, the mesh exhibits **partial revocation**: the revoked agent remains live at the subset of peers whose caches are warm and whose mint paths do not consult the epoch. This is worse than no revocation at all, because operators believe the agent is contained while it continues to act — and its downstream minted warrants (`W_B→C`) are, from `C`'s perspective, entirely legitimate, so `C` has no signal that anything is wrong. The failure is silent, asymmetric, and self-healing in the wrong direction: as caches expire, the agent's *reach* shrinks, but the warrants it already minted persist for their full TTL, and any peer that re-mints from a still-warm cache re-extends the reach. The guardrail is a hard refusal at the mint boundary: a hop that cannot observe the parent warrant's current revocation epoch must refuse to mint a derived warrant and must surface the failure to the caller rather than degrading to a cached decision. The code below encodes exactly that refusal. ```python import time from dataclasses import dataclass, field from typing import Optional class RevocationEpochUnobservable(RuntimeError): """Raised when a hop cannot confirm the parent warrant's current revocation epoch. Minting a derived warrant from an unobservable epoch would launder a possibly-revoked identity into a fresh, unrevoked credential. We refuse rather than degrade to a cached positive decision. """ pass @dataclass class Warrant: jti: str issuer: str subject: str parent_jti: Optional[str] minted_epoch: int expires_at: float signature_valid: bool = True @dataclass class RevocationView: """A verifier's local view of an issuer's revocation state.""" issuer: str epoch: int revoked_jtis: set = field(default_factory=set) last_synced: float = 0.0 def mint_derived_warrant( parent: Warrant, derived_jti: str, derived_subject: str, ttl_seconds: float, view: RevocationView, issuer_epoch_now: Optional[int], ) -> Warrant: """Mint a child warrant only if the parent's revocation epoch is observable and current. Refuses otherwise. Enforces transitive revocability by recording parent_jti so downstream revocation can walk ancestry. """ # 1. Signature and expiry are necessary but not sufficient. if not parent.signature_valid: raise RevocationEpochUnobservable( f"parent {parent.jti} signature invalid; refusing to mint" ) if parent.expires_at <= time.time(): raise RevocationEpochUnobservable( f"parent {parent.jti} expired; refusing to mint" ) # 2. The epoch must be observable at all. No route to issuer => no mint. if issuer_epoch_now is None: raise RevocationEpochUnobservable( f"cannot observe revocation epoch for issuer {parent.issuer}; " f"refusing to mint derived warrant for {derived_subject}" ) # 3. The epoch we hold must not lag the issuer's current epoch. A lagging # view is a stale positive decision; minting from it is the laundering bug. if view.issuer != parent.issuer: raise RevocationEpochUnobservable( f"revocation view is for {view.issuer}, parent issued by {parent.issuer}" ) if view.epoch < issuer_epoch_now: raise RevocationEpochUnobservable( f"revocation view epoch {view.epoch} lags issuer epoch " f"{issuer_epoch_now}; refusing to mint from stale authority" ) # 4. The parent itself must not be revoked in the current epoch. if parent.jti in view.revoked_jtis: raise RevocationEpochUnobservable( f"parent {parent.jti} is revoked at epoch {view.epoch}; refusing to mint" ) # 5. Mint, carrying parent_jti and the epoch under which authority was verified # so the child is transitively revocable when the parent is revoked later. return Warrant( jti=derived_jti, issuer=view.issuer, subject=derived_subject, parent_jti=parent.jti, minted_epoch=issuer_epoch_now, expires_at=time.time() + ttl_seconds, signature_valid=True, ) def admit_call( warrant: Warrant, view: RevocationView, issuer_epoch_now: Optional[int], ) -> bool: """Admission check. A cached positive entry is only reusable if the epoch has not advanced since the entry was filled. Otherwise re-sync or refuse. """ if issuer_epoch_now is None: raise RevocationEpochUnobservable( f"cannot observe epoch for {warrant.issuer}; refusing admission" ) if view.epoch < issuer_epoch_now: raise RevocationEpochUnobservable( f"admission view epoch {view.epoch} < issuer epoch {issuer_epoch_now}" ) # Transitive check: revoked parent poisons the child even if child's jti is clean. if warrant.jti in view.revoked_jtis: return False if warrant.parent_jti is not None and warrant.parent_jti in view.revoked_jtis: return False return warrant.expires_at > time.time() and warrant.signature_valid ```