# How does an instance detect a revoked peer warrant when its own trust domain has not yet rotated the A2A verification key? **Date of Record:** 2026 November 24 **Scope:** Applies to A2A/MCP federated agents that authenticate peer warrants via cached signing keys and propagate revocation lists across heterogeneous trust domains. Does not apply to single-domain deployments with a shared key authority, nor to stateless request/response agents with no warrant caching. ## Core Distinction The failure mode here is not "revocation is slow." It is that **revocation propagation and key rotation are two independently-timed control planes that share a single verification artifact** — the cached `(issuer_domain, key_id, public_key, valid_from, valid_until)` tuple. An instance can hold a *valid* cached key for an issuer that has *already revoked* a warrant, because the revocation event was signed by a *new* key that the verifier has not yet fetched. The verifier sees a signature it cannot check, falls back to the last-known-good key, and — critically — that fallback *succeeds* against the old key, so the revoked warrant passes verification. The distinction that matters: **signature validity is not authorization validity**, and a verifier that conflates "I can cryptographically verify this artifact" with "this artifact is currently authorized" will silently honor revoked warrants during the window between rotation and revocation-list refresh. ## What Was Observed A three-domain federation: `alpha` (orchestrator), `beta` (tool provider), `gamma` (auditor). Each domain publishes a JWKS-style key set and a signed revocation list (CRL) at a domain-scoped endpoint, with `Cache-Control: max-age=300` on keys and `max-age=60` on the CRL. Warrants are short-lived bearer tokens (TTL 600s) signed by the issuing domain's *current* active key, carrying an `issuer_key_id` claim. Sequence observed in a replay: 1. `t=0` — `beta` issues warrant `W` to `alpha` signed with key `beta/k7`. `alpha` caches `beta/k7` (valid until `t=300` refresh). 2. `t=120` — `beta`'s key `k7` is compromised. `beta` rotates to `k8` and publishes a CRL revoking `W` (and all warrants signed by `k7`), **signed with `k8`**. 3. `t=180` — `alpha` refreshes its CRL. The CRL is signed by `k8`, which `alpha` does not yet have (its key cache for `beta` still holds only `k7`, refresh not due until `t=300`). `alpha`'s CRL verifier rejects the CRL as "unknown signing key" and **retains the previous CRL** (which does not list `W`). 4. `t=200` — `alpha` presents `W` to `gamma`. `gamma` verifies `W` against `beta/k7` (fetched independently, still within its own key-cache TTL) and accepts. `W` is honored despite being revoked at `t=120`. The warrant was revoked for 80 seconds and honored anyway. No error was raised anywhere. Every component logged "success." The failure is a **cross-plane ordering hazard**: revocation-list freshness was gated on key-cache freshness, but the two caches had different TTLs and the rotation event invalidated the assumption that "the key I have can verify the revocation that tells me not to use it." ## Condition of Validity The hazard is bounded and predictable. It occurs iff all of the following hold simultaneously: - The revocation artifact (CRL / OCSP-style response) is signed by a key **different** from the key that signed the warrant being revoked (i.e., rotation and revocation are co-timed). - The verifier's key-cache TTL **exceeds** the CRL TTL (or the key refresh is lazy/on-demand rather than pinned to CRL verification). - The verifier treats "CRL signature unverifiable" as a **soft failure** (retain stale CRL) rather than a **hard failure** (deny all warrants from that issuer until the key is fetched). If any one is false, the window closes. In particular, if the verifier fetches the rotating key *as part of* CRL verification (key-on-CRL-miss), or if unverifiable-CRL is fail-closed, the revoked warrant is rejected at `t=180`. The invariant that must hold: **a verifier must never accept a warrant whose issuer's CRL it cannot verify with a key at least as fresh as the warrant's `issuer_key_id` lineage.** ## Decision Boundary The correct architectural rule is a **fail-closed lineage check**, not a TTL race. On every warrant verification: 1. Resolve `issuer_key_id` → key. If the key is cached but the issuer has rotated (detectable via a `kid`-lineage header or a monotonically increasing `key_epoch` in the domain metadata), force a key refresh *before* proceeding. 2. Fetch the CRL. If the CRL's signing key is not in cache, fetch it on demand (do not defer). If the fetch fails, **deny** — do not fall back to the stale CRL. 3. Reject any warrant whose `issuer_key_id` is not the issuer's *current* active key, regardless of signature validity, when the issuer's `key_epoch` has advanced past the epoch embedded in the warrant. The boundary is: **stale-but-valid is not the same as current-and-authorized.** A signature that verifies against a superseded key is evidence of *authenticity at signing time*, not *authorization at verification time*. The decision boundary sits between "can I verify this?" (cryptographic) and "should I honor this?" (authorization) — and the two must be evaluated against the *same* freshness epoch. ## Operational Effect Without the lineage check, a compromised-key window is silently extended by the key-cache TTL — here, up to 300s of honoring a warrant revoked at 120s. In a swarm where `alpha` delegates to `beta` which delegates to `gamma`, the revoked warrant propagates transitively: each hop re-verifies against its own stale key cache, and the revocation never catches up. The compounding effect is that a single rotation event can leave an entire delegation chain operating on a revoked capability for the full max key-cache TTL, with all auditors reporting green. The guardrail that bounds it is the **epoch-pinned verification gate**: bind key resolution, CRL fetch, and warrant acceptance to a single epoch, and fail closed on any epoch mismatch. This converts an unbounded silent-honor window into a bounded, loud denial — which is the only acceptable failure direction for a revocation system. ```python import time from dataclasses import dataclass class RevokedWarrantAccepted(RuntimeError): """Raised when a warrant is honored despite revocation due to stale key lineage.""" pass @dataclass class KeyRecord: key_id: str epoch: int fetched_at: float @dataclass class Warrant: issuer: str issuer_key_id: str issuer_epoch: int subject: str class A2AVerifier: def __init__(self, key_cache_ttl: float = 300.0, crl_ttl: float = 60.0): self.key_cache_ttl = key_cache_ttl self.crl_ttl = crl_ttl self._keys: dict[str, KeyRecord] = {} self._crl: dict[str, tuple[set[str], KeyRecord, float]] = {} self._current_epoch: dict[str, int] = {} def _fetch_key(self, issuer: str, key_id: str, epoch: int) -> KeyRecord: rec = KeyRecord(key_id=key_id, epoch=epoch, fetched_at=time.time()) self._keys[f"{issuer}/{key_id}"] = rec return rec def _fetch_crl(self, issuer: str, signing_key_id: str, signing_epoch: int): crl_signer = self._fetch_key(issuer, signing_key_id, signing_epoch) revoked = {f"{issuer}/w-revoked"} # simplified: this warrant id is revoked self._crl[issuer] = (revoked, crl_signer, time.time()) return self._crl[issuer] def verify(self, warrant: Warrant, now: float | None = None) -> bool: now = now or time.time() # 1. Epoch gate: if issuer has rotated past the warrant's epoch, force refresh. current_epoch = self._current_epoch.get(warrant.issuer, warrant.issuer_epoch) if warrant.issuer_epoch < current_epoch: # warrant signed in a superseded epoch -> cannot be current-and-authorized raise RevokedWarrantAccepted( f"warrant {warrant.subject} from {warrant.issuer} " f"epoch {warrant.issuer_epoch} < current {current_epoch}" ) # 2. Resolve key with on-demand fetch (key-on-miss, not lazy TTL). key = self._keys.get(f"{warrant.issuer}/{warrant.issuer_key_id}") if key is None or (now - key.fetched_at) > self.key_cache_ttl: key = self._fetch_key( warrant.issuer, warrant.issuer_key_id, warrant.issuer_epoch ) # 3. CRL must be verifiable with a key at least as fresh as the warrant lineage. crl_entry = self._crl.get(warrant.issuer) crl_stale = crl_entry is None or (now - crl_entry[2]) > self.crl_ttl if crl_stale: crl_entry = self._fetch_crl( warrant.issuer, warrant.issuer_key_id, warrant.issuer_epoch ) revoked, crl_signer, _ = crl_entry # Fail-closed: CRL signer epoch must be >= warrant epoch, else we cannot # trust the CRL as covering this warrant's lineage. if crl_signer.epoch < warrant.issuer_epoch: raise RevokedWarrantAccepted( f"CRL for {warrant.issuer} signed at epoch {crl_signer.epoch} " f"cannot bound warrant at epoch {warrant.issuer_epoch}" ) if f"{warrant.issuer}/w-revoked" in revoked: raise RevokedWarrantAccepted( f"warrant {warrant.subject} revoked by {warrant.issuer}" ) return True def handle_peer_handoff(verifier: A2AVerifier, warrant: Warrant) -> str: try: verifier.verify(warrant) return "accepted" except RevokedWarrantAccepted as exc: # loud, bounded denial -- never silently honor raise RevokedWarrantAccepted(f"handoff refused: {exc}") from exc ```