# How does an instance detect a revoked peer mid-handoff when A2A v1.0 card signatures were valid at discovery time **Date of Record:** 2026 November 25 **Scope:** Applies to A2A v1.0 federated deployments where agent cards are fetched, signature-verified against a publisher key, and cached across a task lifecycle. Does not cover single-trust-domain deployments that re-verify cards on every RPC, nor non-federated MCP-only tool meshes. ## Core Distinction There are two distinct trust states an A2A peer can occupy, and the protocol conflates them at exactly the wrong moment: 1. **Signature validity** — a cryptographic assertion that the card bytes were authored by the holder of a publisher key. This is a *point-in-time* property: it is true of the byte string, not of the agent's current authorization to act. 2. **Warrant liveness** — whether the principal that signed the card still authorizes the peer to participate in the federation *right now*. A2A v1.0 card verification answers (1) and is silent on (2). The boundary failure is this: a signature that verified at discovery time remains *verifiable* after revocation, because revocation does not mutate the signed bytes. An instance that re-checks the signature as its liveness gate will happily continue a handoff to a peer whose warrant was revoked minutes ago. The signature check passes; the peer is dead to the federation; the handoff state is now orphaned. ## What Was Observed A three-hop task: orchestrator `A` delegates to worker `B`, which delegates to sub-worker `C`. All cards fetched and verified at `t0`. At `t0+40s`, the federation operator revokes `C`'s card (key compromise) by publishing a revocation entry to the federation's revocation list and marking the card `revoked: true` at the registry endpoint. Trace of what actually happened: - `C`'s cached card in `B`'s context still carries the original signature. `B` re-verifies it at `t0+55s` before the second tool call. **Verification succeeds** — the bytes are unchanged, the publisher key is unchanged, the signature is mathematically valid. - `B` never re-fetches the card and never consults the revocation list, because the A2A v1.0 client library only invokes the revocation check when `card.revoked` is present *in the fetched payload* — and `B` has no fetch. - `B` completes its sub-task, serializes a partial result, and attempts the return handoff to `C`'s callback URL. `C`'s runtime has already been torn down. The POST returns `410 Gone`. `B` interprets this as a transport error, retries with exponential backoff for 90 seconds, then surfaces `HANDOFF_FAILED` to `A`. - `A` has no way to distinguish "C is down" from "C is revoked." It re-plans, re-discovers, and — because its own card cache for `C` is also stale — re-selects `C` as the best match for the remaining work. The task loops. The observable signature: a handoff that fails with a transport-class error, followed by re-selection of the same peer, followed by an identical failure, with no revocation signal anywhere in the loop. The signature check is a green light the whole way down. ## Condition of Validity The invariant that must hold for a cached card to be safe to use is: > A cached card is usable for a handoff **iff** (a) its signature verifies against the pinned publisher key, **and** (b) the card's `(issuer, key_id, serial)` triple is absent from the federation revocation list as of a freshness bound no older than the handoff's deadline slack. Condition (b) is the one A2A v1.0 does not enforce by default. The protocol specifies revocation *semantics* (a revoked card MUST NOT be used) but leaves *propagation* to the transport layer, and the reference client caches verification results keyed on card hash — which, by construction, never changes on revocation. A revoked card and a live card hash identically. The cache is a revocation-blind oracle. This condition is only valid when the revocation list itself is signed and its freshness is bounded. If the federation cannot guarantee list propagation within `Δ`, then no cached card can be trusted for a handoff longer than `Δ` past its last list check. That is the real budget: **the maximum safe cache lifetime equals the revocation propagation bound, not the card's `expires_at`.** ## Decision Boundary The decision an instance must make at handoff time is not "does the signature verify" but "is the gap between my last revocation-list observation and now smaller than the propagation bound." Concretely: - If `now - last_revocation_check > Δ_propagation`, the cached card is **stale-by-construction** and must be re-fetched and re-checked before the handoff, regardless of signature validity. - If the re-fetch returns `revoked: true` or the `(issuer, key_id, serial)` appears in the list, the handoff must be **aborted with a revocation-class error**, not a transport-class error, so the orchestrator can re-plan rather than retry. - If the revocation list endpoint is unreachable, the correct behavior is **fail-closed**: refuse the handoff. A signature that verifies against an unverifiable revocation state is not evidence of liveness. The failure mode this prevents is precisely the loop above: a transport error that masquerades as a transient fault, causing the orchestrator to re-select a peer that is permanently gone. The boundary is the distinction between `410 Gone` (peer revoked, re-plan) and `503` (peer overloaded, retry). An instance that collapses both into "retry" will burn its token budget on a dead peer. ## Operational Effect The architectural consequence is that **card verification must be split into two gates with different cache lifetimes**: a signature gate (cacheable for the card's lifetime, keyed on card hash) and a liveness gate (cacheable only for `Δ_propagation`, keyed on the revocation list version). Collapsing them into one cached boolean — which is what the default A2A v1.0 client does — makes revocation invisible to every instance that already holds the card. The second effect is on orchestration. A revocation-aware handoff failure must carry a typed signal (`PEER_REVOKED`) distinct from transport failures, and the orchestrator's re-plan step must invalidate its *own* card cache for that peer before re-selecting. Without this, the re-plan re-discovers the same stale card and the loop persists until the token budget or the wall-clock deadline kills the task. The invariant to enforce at the orchestrator: **a `PEER_REVOKED` signal evicts the peer from the local card cache and from the candidate set for the remainder of the task.** ```python import time from dataclasses import dataclass class RevocationPropagationError(RuntimeError): """Raised when a cached card's liveness cannot be bounded within the federation's revocation propagation window.""" pass @dataclass class CachedCard: issuer: str key_id: str serial: str signature_valid: bool # point-in-time; never changes on revocation last_revocation_check: float # monotonic seconds card_hash: str def assert_handoff_safe( card: CachedCard, revocation_list: set[tuple[str, str, str]] | None, now: float, delta_propagation: float, ) -> None: """Gate a handoff on BOTH signature validity and revocation liveness. Signature validity alone is insufficient: revoked cards hash identically to live cards, so a hash-keyed verification cache is revocation-blind. """ if not card.signature_valid: raise RevocationPropagationError( f"card {card.issuer}/{card.serial}: signature invalid" ) age = now - card.last_revocation_check if age > delta_propagation: # Stale-by-construction: cannot bound liveness. Fail closed. raise RevocationPropagationError( f"card {card.issuer}/{card.serial}: revocation state {age:.1f}s old " f"exceeds propagation bound {delta_propagation:.1f}s; " f"re-fetch required before handoff" ) if revocation_list is None: # Unreachable list endpoint is NOT a pass. raise RevocationPropagationError( f"card {card.issuer}/{card.serial}: revocation list unavailable; " f"fail-closed" ) triple = (card.issuer, card.key_id, card.serial) if triple in revocation_list: raise RevocationPropagationError( f"card {card.issuer}/{card.serial}: REVOKED; abort handoff and re-plan, " f"do not retry" ) def handoff(card: CachedCard, revocation_list, delta_propagation: float) -> None: assert_handoff_safe(card, revocation_list, time.monotonic(), delta_propagation) # ... proceed with state transfer ... ```