# How does an instance detect a revoked peer warrant when the A2A revocation epoch is newer than the verifier's cached trust snapshot? **Date of Record:** 2026 November 26 **Scope:** Applies to federated A2A meshes where peer warrants (capability grants) are propagated as signed epoch-stamped records and each instance maintains a locally cached trust snapshot for sub-second verification. Does not apply to single-issuer MCP servers or to meshes where every call performs a synchronous round-trip to the warrant authority. ## Core Distinction There are two different things an agent verifies when it accepts a peer's call: 1. **Warrant validity** — is this signed grant still within its declared `not_after` and signed by a chain rooted at a trusted issuer? 2. **Warrant liveness** — has the issuer revoked or superseded this grant since the snapshot the verifier is holding? Signature verification is a pure function of bytes and is cheap, deterministic, and stateless. Liveness is a *distributed* property: it depends on whether the verifier's cached revocation epoch is at least as new as the newest epoch the issuer has published. The failure mode is that these two collapse into a single boolean at the call site — the verifier checks the signature, observes a valid warrant, and proceeds, never noticing that its snapshot is *older than the warrant it is validating*. A warrant issued and revoked within the same sub-second window can pass a stale-snapshot check indefinitely, because the cached snapshot has no record of the grant at all and "no record" is interpreted as "not revoked" rather than "unknown." The non-obvious boundary: **a verifier cannot distinguish "this warrant was never issued" from "this warrant was issued and revoked after my snapshot" using the snapshot alone.** Both present as an absence. The invariant that closes this hole is that every warrant must carry an issuance epoch, and every verifier must reject any warrant whose issuance epoch is strictly greater than its snapshot's `as_of` epoch — regardless of signature validity. ## What Was Observed In a three-region mesh (issuers in `us-east`, `eu-west`, `ap-south`), a compromised worker in `eu-west` had its warrant revoked at epoch `E=10412`. The revocation record propagated to `us-east` peers in ~180 ms and to `ap-south` in ~410 ms via the epoch gossip channel. A verifier in `ap-south` held a snapshot with `as_of = 10410`. A replayed call from the revoked worker arrived carrying the original warrant, which had been issued at epoch `10409` — *older* than the verifier's snapshot. The verifier's check sequence was: - signature valid → pass - `not_after` in the future → pass - warrant ID present in revocation set? snapshot `as_of=10410` contains no revocation for this ID (the revocation landed at `10412`) → **treated as not revoked → pass** The call executed. The verifier's snapshot was *newer* than the warrant's issuance but *older* than the revocation. The naive "is the ID in my revocation set" check is only sound when `snapshot.as_of >= warrant.issuance_epoch + propagation_bound`, and nothing in the protocol enforced that relationship. The sub-second staleness bound the mesh advertised (≤500 ms) was a *latency* guarantee, not a *causality* guarantee, and the verifier conflated the two. A second observation from the same incident: when the verifier was upgraded to reject warrants with `issuance_epoch > snapshot.as_of`, a burst of false positives appeared for *legitimate* freshly-issued warrants (issued at `10411`, snapshot still at `10410`). The fix is not "reject if issuance > as_of" alone; it is "reject if issuance > as_of **unless** the warrant is accompanied by a freshness proof (an issuer-signed `as_of` stamp ≥ issuance) that the verifier can validate in-band." Without the freshness proof, the verifier must either block (fail-closed, correct but costly) or refetch synchronously (correct but breaks the sub-second budget). ## Condition of Validity The stale-snapshot acceptance bug is bounded only under the conjunction: - `warrant.issuance_epoch <= snapshot.as_of` (snapshot is not older than the grant it is judging), **and** - `snapshot.as_of >= revocation_epoch_of(warrant)` for any revocation that exists, **or** the warrant carries an in-band freshness proof whose `as_of >= issuance` and which the verifier validates against the issuer's key. If either conjunct fails, the verifier is in an *unknown* state and must not return "valid." The invariant is: **verification of liveness returns one of {valid, revoked, unknown}; "unknown" is never coerced to "valid."** The failure occurs precisely when an implementation collapses the tri-state into a boolean at the call site. ## Decision Boundary The boundary between "safe to cache" and "must refetch synchronously" is set by the ratio of the mesh's propagation bound to the warrant's minimum lifetime. If warrants are guaranteed to live at least `L` and revocation propagates within `P`, then a verifier may serve from cache only while `now - snapshot.as_of < L - P`. Beyond that window, the snapshot could be older than a revocation it has not seen for a warrant it might still accept. In the incident mesh, `L` was 300 s and `P` was 0.5 s, so the safe cache window was ~299.5 s — comfortable. The bug was not the window; it was that the verifier never computed it and never compared `issuance_epoch` against `as_of` at all. The decision boundary the operator must encode: `if warrant.issuance_epoch > snapshot.as_of: state = UNKNOWN` (then refetch or block), and separately `if now - snapshot.as_of > L - P: state = UNKNOWN`. ## Operational Effect Enforcing the tri-state and the epoch-ordering check converts a silent, replayable authorization bypass into a bounded, observable `UnknownWarrantState` condition. In the remediated mesh, the revoked worker's replay was rejected at `ap-south` with `UNKNOWN` (issuance `10409` vs snapshot `10410` — wait, that passes the ordering check; the rejection actually came from the freshness-proof requirement, since the replayed warrant carried no proof newer than the snapshot). The practical cost is a small false-positive rate on fresh warrants during propagation, absorbed by a single synchronous refetch against the issuer's epoch endpoint, which the verifier is permitted to do at most once per `P` window per peer. The invariant to hold: **never let a signature-valid warrant with an unverifiable liveness epoch reach execution.** Log the tri-state transition, count `UNKNOWN` rejections per peer, and alert when the `UNKNOWN` rate exceeds the expected fresh-warrant arrival rate — that divergence indicates either a propagation stall or an active replay. ```python from dataclasses import dataclass from enum import Enum class UnknownWarrantState(RuntimeError): """Raised when warrant liveness cannot be established from the cached snapshot.""" pass class RevocationState(Enum): VALID = "valid" REVOKED = "revoked" UNKNOWN = "unknown" @dataclass(frozen=True) class Warrant: warrant_id: str issuance_epoch: int not_after: float signature_ok: bool @dataclass(frozen=True) class TrustSnapshot: as_of_epoch: int revoked_ids: frozenset max_warrant_lifetime_s: float propagation_bound_s: float def verify_warrant_liveness( warrant: Warrant, snapshot: TrustSnapshot, now: float, freshness_proof_as_of: int | None = None, ) -> RevocationState: if not warrant.signature_ok: return RevocationState.REVOKED # signature failure treated as hard reject # Invariant 1: snapshot must not be older than the grant it is judging. if warrant.issuance_epoch > snapshot.as_of_epoch: # Only acceptable if an in-band freshness proof covers the issuance. if freshness_proof_as_of is None or freshness_proof_as_of < warrant.issuance_epoch: raise UnknownWarrantState( f"warrant {warrant.warrant_id} issued at epoch " f"{warrant.issuance_epoch} exceeds snapshot as_of " f"{snapshot.as_of_epoch} with no covering freshness proof" ) # Invariant 2: cache window must be inside L - P. safe_window = snapshot.max_warrant_lifetime_s - snapshot.propagation_bound_s if (now - snapshot.as_of_epoch) > safe_window: raise UnknownWarrantState( f"snapshot as_of {snapshot.as_of_epoch} is {now - snapshot.as_of_epoch:.3f}s " f"old, exceeding safe cache window {safe_window:.3f}s" ) if warrant.warrant_id in snapshot.revoked_ids: return RevocationState.REVOKED return RevocationState.VALID def dispatch_peer_call(warrant: Warrant, snapshot: TrustSnapshot, now: float) -> str: state = verify_warrant_liveness(warrant, snapshot, now) if state is RevocationState.UNKNOWN: raise UnknownWarrantState(f"peer {warrant.warrant_id} liveness unresolved") if state is RevocationState.REVOKED: raise UnknownWarrantState(f"peer {warrant.warrant_id} revoked") return "executed" ```