# Under what conditions must an instance treat a peer's revocation as authoritative before its own cached warrant expires? **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent deployments where an instance (the *verifier*) accepts capability warrants issued by a remote trust authority (the *issuer*) and caches them locally to avoid per-call round trips. Does not apply to single-authority deployments with a single revocation list, nor to stateless request/response agents that never carry a warrant across a handoff. ## Core Distinction The failure here is not "the revocation was slow." It is the divergence between two clocks that the agent protocol never reconciles: the **warrant's local TTL** (a lease the verifier granted itself) and the **issuer's revocation epoch** (the authoritative point after which the warrant is dead). A verifier that honors a warrant past its issuer's revocation epoch is not merely stale — it is executing under a *forged* authority from the perspective of every downstream peer that has already processed the revocation. The non-obvious part: in a federated graph, revocation propagates along *trust edges*, not along the *call graph*. The verifier's peers may learn of a revocation before the verifier does, and the verifier's next outbound handoff will therefore present a warrant that the receiving peer considers invalid. The failure surfaces not at the verifier, but at the *next hop* — as a rejected handoff or, worse, a silently accepted one under a stale peer cache. ## What Was Observed A three-node federation: issuer `A` (root authority), verifier `B`, peer `C`. `B` caches a warrant `W = (subj=B, cap=tool:write, exp=T+300s, epoch=e7)` issued by `A`. At `T+40s`, `A` revokes `B`'s capability and bumps its revocation epoch to `e8`, publishing the revocation to `C` (a direct trust edge) but not yet to `B` (an indirect edge, two hops). `C`'s local revocation set now contains `e8`. At `T+55s`, `B` initiates an A2A handoff to `C`, presenting `W` with `epoch=e7`. `C` has two contradictory facts: the warrant is cryptographically valid and unexpired, and `C`'s own revocation state says `e7 < e8`. The observed behaviors across replay: - **Naive accept:** `C` validates the signature, checks `exp`, sees `T+55s < T+300s`, accepts. `B`'s revoked capability executes at `C`. This is the primary defect. - **Naive reject:** `C` rejects because `e7 < e8`, but returns a generic `AUTH_FAILED`. `B` retries the handoff twice, each time re-presenting the same stale warrant, exhausting `B`'s retry budget and aborting a task that a re-issued warrant would have completed. - **Correct-but-rare:** `C` rejects with `REVOKED_EPOCH` and includes `e8` in the rejection, allowing `B` to invalidate its cache and re-request from `A`. This only occurred when `C`'s rejection carried the epoch delta — which the default schema did *not* include. The replay discrepancy: two `C` instances with different revocation-set freshness (one polled at `T+30s`, one at `T+60s`) produced opposite verdicts on the identical warrant. Consensus across the auditor pair failed not because either was wrong, but because the revocation epoch is a *monotonic fact with per-node observation lag*, and the protocol treated it as a boolean. ## Condition of Validity A verifier `B` may honor a cached warrant `W` past the arrival of a revocation signal only if **all** of the following hold: 1. `W.epoch >= max_observed_epoch(B)` — i.e., `B` has not observed any epoch at or beyond the one that kills `W`. The moment `B` observes `epoch >= W.epoch + 1` from any trusted edge, `W` is dead regardless of `exp`. 2. The revocation propagation path from issuer to `B` has a **bounded, declared latency** `L` such that `W.exp <= T_revoke + L` is guaranteed by the issuer's own lease discipline. If the issuer does not bound `L` (it issues warrants with TTL longer than the worst-case propagation), no cached warrant is safe and `B` must re-validate per call. 3. The handoff schema carries `W.epoch` **and** the receiver's `max_observed_epoch` in the rejection, so that epoch divergence is a *repairable* signal rather than an opaque failure. Condition 2 is the load-bearing one and the one most often violated: issuers routinely set `exp = T + 300s` while revocation propagation across a two-hop federated edge takes 90–200s under load. The warrant outlives its own revocation window. ## Decision Boundary The boundary is crossed the instant `B` presents a warrant whose epoch is strictly less than a peer's observed epoch. At that point the correct behavior is **not** "reject and retry" (which re-presents the same dead warrant) and **not** "accept" (which executes revoked authority). It is a **terminal epoch fault**: abort the handoff, invalidate the local cache entry, and re-request issuance from `A`. Retrying with the same warrant is always wrong; the warrant is a monotonic fact, not a transient error. Symmetrically, a receiver `C` must treat a presented warrant with `epoch < max_observed_epoch(C)` as *invalid*, but must distinguish this from *expired* — the former means "the sender's cache is stale and repairable," the latter means "the lease lapsed." Conflating them produces the retry storm observed above. ## Operational Effect The guardrail is a two-part invariant enforced at both ends: - **Issuer side:** `warrant.exp <= revocation_propagation_bound + safety_margin`. The issuer refuses to issue a warrant whose TTL exceeds its own declared propagation latency. This bounds the window in which a stale-cache accept is possible to zero in the worst case. - **Verifier side:** a monotonic `max_observed_epoch` that only increases, checked against every cached warrant on every handoff. Any observed epoch `>= W.epoch + 1` immediately and permanently invalidates `W`, independent of `exp`. When both hold, the federation has a *linearizable* revocation semantics: no peer can ever accept a warrant that any other peer has already observed as revoked. When either is absent, the system degrades to eventual consistency with an unbounded window — and in a multi-agent swarm doing baton-passing, that window is exactly where revoked authority executes. ```python from dataclasses import dataclass from typing import Optional class RevocationEpochFault(RuntimeError): """Raised when a cached warrant's epoch is provably dead per an observed epoch.""" class WarrantTTLExceedsPropagationBound(ValueError): """Raised at issuance when a warrant would outlive its revocation propagation bound.""" @dataclass(frozen=True) class Warrant: subject: str capability: str exp: float epoch: int class VerifierCache: def __init__(self, propagation_bound: float, safety_margin: float = 5.0): self.propagation_bound = propagation_bound self.safety_margin = safety_margin self.max_observed_epoch = 0 self._cache: dict[str, Warrant] = {} def issue(self, subject: str, capability: str, now: float, ttl: float) -> Warrant: # Invariant: a warrant must not outlive the issuer's revocation propagation bound. if ttl > self.propagation_bound + self.safety_margin: raise WarrantTTLExceedsPropagationBound( f"ttl={ttl}s exceeds propagation bound " f"{self.propagation_bound}s + margin {self.safety_margin}s; " f"stale-cache accept window would be non-zero" ) w = Warrant(subject=subject, capability=capability, exp=now + ttl, epoch=self.max_observed_epoch) self._cache[subject] = w return w def observe_epoch(self, epoch: int) -> None: # Monotonic: epochs never decrease. if epoch > self.max_observed_epoch: self.max_observed_epoch = epoch def validate_for_handoff(self, warrant: Warrant, now: float) -> None: # Terminal epoch fault takes precedence over expiry: it is repairable, expiry is not. if warrant.epoch < self.max_observed_epoch: raise RevocationEpochFault( f"warrant epoch {warrant.epoch} < observed epoch " f"{self.max_observed_epoch}; peer cache is stale, " f"re-request issuance from authority (do NOT retry same warrant)" ) if now >= warrant.exp: raise RevocationEpochFault( f"warrant expired at {warrant.exp} (now={now}); lease lapsed, " f"not a revocation — re-issue, do not treat as epoch fault" ) ```