# Why does an instance continue to authorize a revoked peer across an A2A trust mesh until its local warrant cache epoch advances? **Date of Record:** 2026 November 21 **Scope:** Applies to federated A2A meshes where peer authorization is enforced via cryptographically signed capability warrants cached locally per agent instance, and revocation is propagated asynchronously as signed revocation deltas. Does not apply to centrally brokered meshes with synchronous online introspection on every call, nor to single-tenant deployments where the warrant issuer and verifier share one process. ## Core Distinction The distinction that matters is between *identity revocation* and *warrant invalidation*. Revoking a peer's long-term identity key (the DID or equivalent) does not, by itself, invalidate the short-lived capability warrants that identity previously minted and that downstream instances have already cached. A verifier checks two independent things: (1) is the signature on this warrant valid under the issuer's key, and (2) is this warrant still within its validity window and not on the local revocation set. A revoked identity still produces warrants whose signatures verify perfectly, because the signature was made before revocation and the public key has not changed. The mesh therefore has a window—bounded by the warrant TTL and the revocation-delta propagation latency, whichever is larger—during which a revoked agent's cached warrants remain locally authorizable. This is not a bug in signature checking; it is a structural gap between two clocks. ## What Was Observed In a five-node mesh (planner, two executors, an auditor, and a tool-broker), the auditor issued a revocation for executor-B's identity after detecting a prompt-injection-driven capability escalation. The revocation delta was signed, published to the mesh's gossip topic, and acknowledged by three of four remaining nodes within 340 ms. The planner node, however, had entered a long-running multi-step plan and was mid-`await` on a tool call when the delta arrived. Its A2A transport layer applied the delta to the *inbound* warrant cache (warrants it would accept) but the outbound session cache—the set of peer warrants it had already validated and bound to an open task context—was keyed by task ID and only re-validated at task boundaries. The planner's active task had been opened 11 minutes earlier and had a warrant TTL of 15 minutes. For the remaining 4 minutes of that task, the planner continued to dispatch subtasks to executor-B, which accepted them because executor-B's own inbound cache had the same structure and had not yet evicted the planner's now-stale authorization of B. The failure trace was: revocation delta arrives → applied to inbound cache → outbound task-bound session entry untouched → planner issues `task/send` to B with a warrant reference → B verifies signature (valid, minted pre-revocation) → B checks its inbound revocation set (does not contain its own identity, because the delta was about B, not about the planner) → B accepts and executes. The revocation was *correct* and *propagated*; it was simply not *consulted* on the path that mattered, because the consultation point was task-scoped and the task was already open. A second, subtler observation: the auditor's own verification replay, run after the incident, reported the mesh as consistent, because replay reconstructs state from the delta log and evaluates each warrant against the revocation set *as of log-replay time*, not as of the original dispatch time. The replay therefore cannot see the window at all. Verification replay discrepancies of this kind are the reason this failure mode survives post-hoc audit. ## Condition of Validity The invariant that must hold for safe operation is: *for every outbound dispatch, the authorizing warrant must be validated against the revocation set at a freshness no older than the dispatch itself, not at the freshness of the enclosing task.* This is a per-dispatch invariant, not a per-session invariant. It holds only when all of the following are true: - The revocation set is versioned by a monotonic epoch, and every dispatch carries the epoch at which its authorization was last confirmed. - The receiving peer rejects any dispatch whose carried epoch is older than the receiver's current epoch *for the issuing identity*, not merely older than the receiver's global epoch. - Warrant TTL is strictly less than the maximum tolerable revocation-propagation latency plus the maximum task duration; if TTL exceeds this sum, the window is unbounded by design and no cache discipline can close it. - Task-bound session caches are treated as *advisory* (performance hints) and never as *authoritative* (authorization decisions). The invariant does not hold, and this failure mode is live, whenever any dispatch path can reach a peer using a cached authorization decision whose epoch predates the most recent revocation delta affecting either endpoint. ## Decision Boundary The boundary is between two legitimate designs and one illegitimate one: - **Online introspection per dispatch** (authoritative, high latency): every dispatch queries the issuer or a revocation oracle. Safe, but the A2A latency budget often forbids it for high-frequency tool calls. - **Epoch-stamped cached authorization** (authoritative, bounded staleness): dispatch carries `(warrant_id, issuer_epoch)`; receiver rejects on epoch mismatch. Safe if TTL ≤ propagation bound. This is the recommended boundary. - **Task-scoped session cache** (advisory treated as authoritative): the observed failure. Unsafe regardless of TTL, because the re-validation point is decoupled from the dispatch point. The decision to make is not "cache or not cache" but "at what granularity is the epoch checked." Checking at task open is the wrong granularity; checking at dispatch is the right one. A mesh that checks at task open has a window equal to the remaining task duration, which is unbounded by anything the protocol controls. ## Operational Effect The practical effect is that revocation in an A2A mesh is *eventually consistent by construction*, and the consistency bound is a function of task duration, not of network latency. Operators who measure revocation propagation by delta-acknowledgment time (340 ms in the observed case) will systematically underestimate the true window by orders of magnitude. The correct metric is *time from revocation issuance to the last dispatch authorized under the revoked warrant*, which requires instrumenting the dispatch path, not the gossip path. Two guardrails bound the effect. First, epoch-stamp every dispatch and make the receiver's epoch check per-issuer, so a stale dispatch is rejected at the receiver even if the sender's cache is stale. Second, cap task duration below the warrant TTL minus the propagation bound, so that no task can outlive the authorization that opened it. The second is a scheduling constraint that most planners do not currently enforce, and it is the one that would have prevented the observed incident: the 11-minute task should have been checkpointed and re-authorized at minute 10, before the 15-minute TTL expired against a revocation that had already landed. ```python from dataclasses import dataclass class StaleWarrantEpochError(RuntimeError): """Raised when a dispatch carries an authorization epoch older than the receiver's current revocation epoch for the issuing identity.""" @dataclass(frozen=True) class Dispatch: warrant_id: str issuer_id: str issuer_epoch: int task_id: str class MeshNode: def __init__(self, node_id: str) -> None: self.node_id = node_id # Per-issuer revocation epoch. Absent issuer means epoch 0. self.revocation_epochs: dict[str, int] = {} def apply_revocation_delta(self, issuer_id: str, new_epoch: int) -> None: current = self.revocation_epochs.get(issuer_id, 0) if new_epoch <= current: return self.revocation_epochs[issuer_id] = new_epoch def accept_dispatch(self, dispatch: Dispatch) -> None: current_epoch = self.revocation_epochs.get(dispatch.issuer_id, 0) if dispatch.issuer_epoch < current_epoch: raise StaleWarrantEpochError( f"dispatch {dispatch.warrant_id} on task {dispatch.task_id} " f"carries epoch {dispatch.issuer_epoch} for issuer " f"{dispatch.issuer_id}, but receiver {self.node_id} is at " f"epoch {current_epoch}; authorization predates revocation" ) # Epoch is current: proceed to signature and scope checks. def dispatch_subtask( sender: MeshNode, receiver: MeshNode, dispatch: Dispatch, task_opened_epoch: int, ) -> None: """Re-validate at dispatch time, not at task-open time. The sender must stamp the dispatch with the epoch at which it last confirmed authorization. If that epoch is older than the sender's own current epoch for the issuer, the sender must refuse locally before the wire, rather than relying on the receiver. """ sender_epoch = sender.revocation_epochs.get(dispatch.issuer_id, 0) if dispatch.issuer_epoch < sender_epoch: raise StaleWarrantEpochError( f"sender {sender.node_id} refuses to dispatch {dispatch.warrant_id}: " f"stamped epoch {dispatch.issuer_epoch} < local epoch {sender_epoch}" ) if dispatch.issuer_epoch < task_opened_epoch: raise StaleWarrantEpochError( f"dispatch {dispatch.warrant_id} predates its task's open epoch " f"{task_opened_epoch}; task-scoped cache treated as authoritative" ) receiver.accept_dispatch(dispatch) ```