# What happens when an instance keeps a revoked peer’s warrant cached past trust-domain epoch rotation **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent systems where peer instances present signed capability warrants (e.g., A2A/MCP-style identity tokens) whose validity is bounded by a trust-domain epoch and a revocation set. Does not apply to single-domain deployments with a single monotonically trusted issuer, nor to stateless request/response APIs where warrants are re-verified against the issuer on every call. ## Core Distinction The failure is not "an agent used an expired token." Expiry is local and monotonic: a warrant carries a `not_after` and every verifier can check it against its own clock. The failure is subtler: **a revoked-but-not-yet-expired warrant that a verifying instance accepted and then cached across a trust-domain epoch rotation.** Two clocks are in play. The *warrant clock* (`not_after`) is checked locally and cheaply. The *revocation clock* — the epoch number under which the issuer published its revocation set — is checked only when the verifier refreshes from the issuer. When an instance holds a warm warrant cache and the issuer rotates the epoch to revoke a peer, the verifier's cached copy remains *locally valid* (not expired) while being *globally revoked*. The verifier cannot distinguish "still good" from "revoked since I last looked" without a refresh, and nothing in the cached warrant forces that refresh. The invariant that must hold is: **a warrant accepted at epoch E is only trustworthy while the verifier's observed issuer epoch is ≥ E and its revocation set has been refreshed at or after the revocation event.** Caching breaks this because the cache key is the warrant, not the epoch. ## What Was Observed A three-domain federation: `issuer-A` (root trust), `verifier-B` (an orchestrator agent), `peer-C` (a worker agent holding a warrant from A to act on B's tools). B caches C's warrant with a TTL of 300s to avoid an issuer round-trip per tool call. Trace: 1. `t=0` — A issues warrant `W_C` to C, epoch `E=41`, `not_after = t+3600`. B fetches and caches it, recording `observed_epoch=41`. 2. `t=120` — C's key is compromised. A revokes `W_C` and rotates to epoch `E=42`, publishing a new revocation set. `W_C.not_after` is untouched — it is still an hour from expiry. 3. `t=121…419` — B serves tool calls from C using the cached `W_C`. Every check passes: signature valid, `now < not_after`, `observed_epoch(41) ≥ issued_epoch(41)`. B never contacts A because the cache is warm. 4. `t=420` — cache TTL expires, B refreshes, sees `E=42` and `W_C ∈ revoked`, and finally rejects. For ~300 seconds a revoked identity executed with full warrant authority. The window is exactly `min(cache_TTL, not_after − revocation_time)` — bounded by the cache, not by the credential. The non-obvious part: the peer C did not need to do anything adversarial after revocation. The verifier's own optimization (caching) laundered a dead identity into a live one. Worse, in a baton-passing swarm, C could forward `W_C` to a downstream agent D at `t=200`; D verifies against B's *cached* acceptance and inherits the same stale validity, propagating the revocation gap one hop further. ## Condition of Validity The cached-acceptance pattern is only sound under a condition that is almost never stated explicitly in agent code: > A verifier may treat a cached warrant as valid iff `observed_epoch == current_issuer_epoch` AND the cache entry was populated at or after the issuer's last epoch rotation. Because the verifier cannot observe rotation without a refresh, the only safe forms are: - **Epoch-pinned cache with rotation probe:** the cache key includes the issuer epoch; a cheap "epoch head" call (returning only the current epoch number, not the full set) is made per call or per short interval. If `head_epoch > observed_epoch`, the entry is invalidated *before* use, not after TTL. - **Short-TTL bounded staleness with explicit budget:** the system declares a maximum revocation-propagation delay `Δ` and sets `cache_TTL ≤ Δ`, accepting that a revoked peer retains authority for at most `Δ`. This is a *deliberate* choice, not an accident of a default TTL. The condition fails whenever `cache_TTL` is chosen for latency reasons independent of the revocation-propagation budget, or when `not_after` is mistaken for the revocation horizon. ## Decision Boundary The boundary between "safe cache" and "laundered revocation" is a single comparison the verifier must make *before* honoring the warrant: ``` accept iff signature_ok(W) and now < W.not_after and W.issued_epoch == issuer_head_epoch(now) # <-- the missing clause and W ∉ revocation_set(issuer_head_epoch) ``` The `issued_epoch == head_epoch` clause is the decision boundary. It is strictly stronger than `issued_epoch ≤ head_epoch` (the naive check), because a warrant issued at an *older* epoch is precisely the one that may have been revoked in the rotation to the current epoch. Equality forces "issued under the currently active epoch," which cannot be true for a warrant revoked by a rotation. Corollary for handoffs: when C passes `W_C` to D, D must verify against the *issuer's* head epoch, not against B's cached assertion. A peer's "I already checked this" is not a warrant; it is a claim about a warrant, and claims do not carry revocation freshness. ## Operational Effect Without the epoch-equality clause, revocation is advisory rather than enforced, and the enforcement gap equals the verifier's cache TTL — an implementation detail that no security review of the *issuer* will catch. The blast radius scales with fan-out: in a swarm where one warm cache feeds N downstream verifications, a single stale entry grants a revoked peer N concurrent execution slots for the full TTL window. The guardrail is to make the epoch head a first-class, cheap, cacheable-for-milliseconds artifact and to gate every warrant acceptance on `issued_epoch == head_epoch`. If the head call is too expensive per invocation, that cost is the true price of revocation propagation and must be paid in the latency budget or explicitly converted into a declared `Δ`. The failure mode to log and alert on is not "expired warrant rejected" (routine) but "warrant accepted whose `issued_epoch < head_epoch`" — that is a revocation that arrived late, and every occurrence is a measured leak of the propagation window. ```python from dataclasses import dataclass from typing import Optional class RevocationPropagationError(RuntimeError): """Raised when a warrant is honored despite a stale issuer epoch.""" pass @dataclass(frozen=True) class Warrant: subject: str issued_epoch: int not_after: float signature_ok: bool def accept_warrant( warrant: Warrant, now: float, issuer_head_epoch: int, revocation_set: frozenset[str], observed_epoch: Optional[int], ) -> None: # Local checks: cheap, but insufficient for revocation. if not warrant.signature_ok: raise RevocationPropagationError( f"bad signature for {warrant.subject}" ) if now >= warrant.not_after: raise RevocationPropagationError( f"warrant for {warrant.subject} expired at {warrant.not_after}" ) # The boundary clause: a warrant issued under an older epoch may have # been revoked by the rotation to the current epoch. Equality is required. if warrant.issued_epoch != issuer_head_epoch: raise RevocationPropagationError( f"stale epoch: warrant issued at {warrant.issued_epoch}, " f"issuer head is {issuer_head_epoch}; revocation freshness unknown" ) if warrant.subject in revocation_set: raise RevocationPropagationError( f"{warrant.subject} revoked at epoch {issuer_head_epoch}" ) # Cache coherence: a cached acceptance recorded under a different epoch # must not be reused even if the live check above would pass. if observed_epoch is not None and observed_epoch != issuer_head_epoch: raise RevocationPropagationError( f"cache populated at epoch {observed_epoch}, " f"head moved to {issuer_head_epoch}; invalidate before use" ) ```