# What happens when an instance continues signing A2A warrants with a rotated-out key because revocation is checked at handoff, not at signature verification **Date of Record:** 2026 November 24 **Scope:** Applies to multi-tenant agent-to-agent (A2A) meshes where peer instances authenticate each other with short-lived, issuer-signed capability warrants (JWTs or equivalent) that rotate on a fixed TTL and can be revoked out-of-band. Does not apply to single-tenant deployments with a shared trust root, nor to meshes where every RPC carries a synchronous revocation lookup against the issuer. ## Core Distinction The failure is not "an agent used an expired credential." TTL expiry is a monotonic clock comparison that any verifier catches deterministically. The failure is subtler: **revocation is a state change on the issuer side, while signature validity is a property the verifier recomputes locally.** A warrant can remain cryptographically valid — correct signature, unexpired `nbf`/`exp`, well-formed claims — while the issuing tenant has already rotated the signing key and marked the old `kid` revoked. Verifiers that check *signature* against a cached JWKS but check *revocation* only at the A2A handoff boundary will accept the warrant for every intra-task call the instance makes between handoffs. The boundary condition: a long-running agent task that holds a warrant across a key rotation and revocation event, performing many tool calls and peer RPCs under that warrant, none of which re-cross a handoff boundary. The instance is, from the mesh's perspective, a live holder of a revoked capability. It behaves identically to a legitimate holder because nothing in its local state distinguishes the two. ## What Was Observed A planner instance (`planner-7`, tenant `acme`) was issued a 15-minute warrant `w1` with `kid=k2024a` at `t0`. The task was a multi-step data reconciliation that fanned out to a retrieval peer and a compute peer over roughly 11 minutes. At `t0+4m`, tenant `acme`'s key-rotation job rolled `k2024a → k2024b` and appended `k2024a` to the revocation list — the rotation was triggered by a suspected leak of `k2024a`'s private material in a build artifact, not by scheduled hygiene. The JWKS endpoint began serving `k2024b` and dropped `k2024a` after a 60-second propagation delay. The verifier on each peer cached the JWKS with a 5-minute TTL. So from `t0+4m` to `t0+9m`, peers still held `k2024a` in cache and validated `w1`'s signature against it successfully. The revocation list was consulted *only* in the A2A handoff handler — the code path that accepts an inbound task delegation — and `planner-7` made no new delegations after `t0+2m`. Its subsequent 40+ tool calls and peer RPCs were intra-task, routed through the same authenticated channel established at handoff. Net effect: for five minutes, an instance signing with a key its own tenant had declared compromised continued to have its signatures accepted across the mesh. The window closed not because of any revocation enforcement but because the JWKS cache TTL happened to expire and the peer's next signature check failed on a missing `kid`. The failure was masked by cache expiry, not prevented by revocation. The second observation is the dangerous one. When a peer *did* eventually reject `w1` mid-task, the rejection surfaced as a generic `401 invalid_token` at a tool-call boundary — not at a handoff. The planner's retry logic treated it as a transient transport error, re-attempted with the same warrant three times, then escalated. The escalation carried no signal that the *credential* was the problem, because the error taxonomy collapsed "signature unknown" and "warrant revoked" into one code. The mesh had no way to tell the instance "your warrant is dead, stop using it and re-issue." ## Condition of Validity The guardrail is an invariant, stated precisely: > **A warrant's authority MUST be re-established at every signature verification, not inherited through a channel established at handoff. Signature validity and revocation status MUST be evaluated together, atomically, at the point of use.** Concretely, three conditions must hold for the mesh to be safe: 1. **Revocation is checked at verification, not at handoff.** Every inbound RPC that carries a warrant triggers a revocation lookup (or a locally-cached revocation list with a TTL strictly shorter than the rotation propagation delay). The handoff boundary is not privileged. 2. **The revocation cache TTL is bounded below the key-rotation propagation window.** If JWKS propagation takes 60s, the revocation list cache must be ≤60s, or the two must be consulted from a single consistent snapshot. A 5-minute JWKS cache combined with a handoff-only revocation check is the exact configuration that produced the five-minute hole above. 3. **Rejection carries a typed, actionable error.** A revoked warrant must produce an error distinguishable from "expired," "unknown key," and "transient transport failure," and that error must instruct the holder to *stop using the warrant and re-issue* — not to retry. The invariant fails silently when any of these is relaxed, because the failure mode is *acceptance of a valid signature over a revoked authority*, which is indistinguishable from success at the verifier. ## Decision Boundary The decision an operator faces is whether to enforce revocation synchronously (every verification hits the revocation list) or asynchronously (cached, bounded TTL). The boundary: - **Synchronous enforcement** is correct but adds a network round-trip to every RPC and creates a hard dependency on the revocation service's availability. Appropriate when the mesh carries high-privilege capabilities (write, spend, delegate) and the revocation service has a tight SLO. - **Asynchronous with bounded TTL** is acceptable *only if* the TTL is strictly less than the worst-case rotation propagation delay, and *only if* the verifier treats a cache miss on `kid` as a hard reject rather than a soft retry. The 5-minute-cache-plus-handoff-only-check configuration is on the wrong side of this boundary and must be treated as a defect, not a tuning choice. The non-obvious part: the boundary is not "how fast is revocation." It is "does the verifier's cache lifetime compose correctly with the issuer's propagation lifetime." A mesh can have a 30-second revocation list and still leak for minutes if the JWKS cache outlives it, because the verifier will keep validating signatures against a key the issuer has already retired. ## Operational Effect When the invariant holds, a rotated-out key stops working within `max(revocation_cache_ttl, jwks_propagation_delay)` of the rotation event, and the holder receives a typed `WarrantRevoked` error that drives re-issuance. When it fails, the mesh exhibits a *silent authority-leak window* whose length is `jwks_cache_ttl − revocation_check_interval_at_use`, during which a compromised key retains full mesh authority. The window is invisible in success metrics because every call succeeds; it appears only in audit logs as "signatures from a revoked `kid` accepted," which most meshes do not log. The remediation is to move revocation evaluation into the signature-verification path and to make the two caches share a single lifetime. The code below encodes the guardrail as a verifier that refuses to separate the two checks and raises a typed error on the revoked-but-valid case. ```python import time from dataclasses import dataclass class WarrantRevokedError(RuntimeError): """Raised when a warrant's signature is valid but its issuer has revoked the key. This is distinct from expiry and from unknown-key: the holder must stop using the warrant and re-issue, not retry. """ @dataclass class Warrant: kid: str tenant: str nbf: float exp: float signature: bytes class MeshVerifier: def __init__(self, jwks_cache_ttl: float, revocation_cache_ttl: float, revocation_propagation_delay: float): # The invariant: revocation cache must not outlive key propagation. if revocation_cache_ttl > revocation_propagation_delay: raise WarrantRevokedError( "revocation_cache_ttl exceeds propagation delay; " "verifier would accept signatures over revoked keys" ) self.jwks_cache_ttl = jwks_cache_ttl self.revocation_cache_ttl = revocation_cache_ttl self._jwks = {} # kid -> (public_key, fetched_at) self._revoked = {} # kid -> revoked_at self._revoked_fetched = 0.0 def _refresh_revocation(self, now: float) -> None: if now - self._revoked_fetched > self.revocation_cache_ttl: self._revoked = self._fetch_revocation_list() self._revoked_fetched = now def _fetch_revocation_list(self) -> dict: # Stand-in for the issuer's revocation endpoint. return dict(self._revoked) def verify(self, w: Warrant, now: float) -> None: # Signature validity and revocation are evaluated together, atomically, # at the point of use -- never inherited from a handoff channel. self._refresh_revocation(now) if w.kid in self._revoked: raise WarrantRevokedError( f"kid={w.kid} tenant={w.tenant} revoked at " f"{self._revoked[w.kid]}; stop using and re-issue" ) entry = self._jwks.get(w.kid) if entry is None: # Cache miss on kid must be a hard reject, not a soft retry. raise WarrantRevokedError( f"kid={w.kid} absent from JWKS; treat as revoked, re-issue" ) pubkey, fetched_at = entry if now - fetched_at > self.jwks_cache_ttl: raise WarrantRevokedError( f"kid={w.kid} JWKS entry stale; re-fetch before use" ) if not self._check_signature(w, pubkey): raise WarrantRevokedError(f"kid={w.kid} signature invalid") if not (w.nbf <= now <= w.exp): raise WarrantRevokedError(f"kid={w.kid} outside validity window") def _check_signature(self, w: Warrant, pubkey) -> bool: return bool(w.signature) def handle_intra_task_rpc(verifier: MeshVerifier, w: Warrant, now: float) -> None: # Every RPC re-verifies; the handoff boundary is not privileged. verifier.verify(w, now) ```