# Where must an instance re-verify a peer's Agent Card after a revocation event crosses a federated A2A registry boundary? **Date of Record:** 2026 November 22 **Scope:** Applies to A2A federated deployments where Agent Cards are signed by a home registry, cached by peers, and subject to revocation propagated across registry boundaries. Does not cover single-registry deployments with a single trust root, nor transport-level mTLS identity (which is orthogonal to card-level authorization). ## Core Distinction The distinction that governs every failure in this space is between **identity validity** and **capability validity** at the moment of invocation. An Agent Card carries two separable claims: (a) *who* the agent is — bound to a signing key and a registry-issued subject; and (b) *what* the agent is currently permitted to do — the declared skills, scopes, and endpoints. Revocation semantics are routinely modeled as an all-or-nothing kill of the card, but federated A2A registries in practice revoke *claims*, not *identities*: a key rotation revokes the old signing key while the subject persists; a scope reduction revokes a skill grant while the endpoint stays live; a registry de-peering revokes the *home registry's* authority to vouch for the subject at all, which is a third thing again. The non-obvious boundary condition is this: **a peer that caches an Agent Card must re-verify it not on a fixed TTL, but at the exact transition where a revocation from a foreign registry becomes authoritative for a local decision.** Most implementations get this wrong because they conflate "the card is still cryptographically valid" (signature checks out against a key that has not yet been marked revoked *in the local view*) with "the card is still authorized" (the home registry has not withdrawn the claim). The window between those two facts is where the failure lives. ## What Was Observed A three-registry federation: `reg-A` (home of agent `X`), `reg-B` (peer that invokes `X`), `reg-C` (a second peer that also invokes `X` and that `reg-B` consults for revocation gossip). Agent `X`'s card was signed by `reg-A` with a 24-hour `notAfter` and cached by `reg-B` under a 12-hour soft TTL with signature re-check on each use. At T+0, `reg-A` revoked `X`'s skill grant `payments.transfer` after a policy violation, issuing a revocation record `R` signed by `reg-A`'s revocation key and published to its CRL endpoint. `reg-A` did **not** revoke the card's signing key — the subject remained in good standing for `search.query`. This is the critical detail: the card's signature remained valid, its `notAfter` had not passed, and the only thing that changed was the *scope set*. At T+40m, `reg-B` invoked `X` for `payments.transfer`. Its cache entry was 8 hours old, well within the 12-hour soft TTL. The signature check passed — `reg-A`'s signing key was not revoked. `reg-B` dispatched the call. The call succeeded against `X`, which had not yet honored its own revocation (a separate lag), and money moved. The trace that matters is *why* `reg-B`'s check passed. Its revocation-fetch loop polled `reg-A`'s CRL on a 6-hour interval and `reg-C`'s gossip on a 1-hour interval. At T+40m, `reg-B`'s last CRL fetch was at T−5h20m — before `R` existed — and its last gossip fetch was at T−20m, but `reg-C` had not yet received `R` (its own CRL poll was at T−3h). So `reg-B` held a card whose signature was valid, whose TTL had not expired, and for which *no revocation record was visible in its local view*. Every local check returned "valid." The card was, from `reg-B`'s perspective, indistinguishable from a never-revoked card. The failure is not that `reg-B` skipped a check. It is that `reg-B`'s decision to invoke was made against a **stale authorization view** whose staleness was bounded by the *slowest* revocation path (`reg-A`'s CRL interval, 6h), while its *card* cache was bounded by a *faster* path (12h TTL) and its *signature* check was instantaneous. The three clocks were not ordered. The card outlived the authorization. ## Condition of Validity The invariant that must hold for a cached Agent Card to be safely used for an authorization decision is: > For every claim `c` in card `K`, the local view's revocation horizon for `c` — `H(c)` — must be strictly less than the card's remaining cache lifetime `L(K)` at the moment of use, **and** the revocation horizon must be measured against the *authoritative* revocation source for `c`, not against any transitive gossip peer. Formally, a card `K` cached at time `t_cache` with hard expiry `t_exp` is usable for claim `c` at time `t_use` only if: ``` t_use - t_last_authoritative_revocation_fetch(c) < H_max(c) AND t_exp - t_use > H_max(c) ``` where `H_max(c)` is the maximum propagation delay of a revocation for `c` from its authoritative source. If `H_max` is unknown or unbounded (as it is whenever the authoritative source is a foreign registry whose polling interval you do not control), the claim is **not safely cacheable** and must be re-fetched synchronously at use. The observed failure violated the first clause: `t_use − t_last_fetch = 5h20m > H_max = 6h` was *not* violated in the strict sense (5h20m < 6h), but the *combination* with the card TTL was: `t_exp − t_use = 16h > H_max = 6h` held, yet the authorization decision was made at a point where the CRL fetch was already 5h20m stale and the next fetch was 40m away — meaning the *effective* horizon at use was `6h − 5h20m = 40m`, during which any revocation issued in the prior 5h20m window was invisible. The card's 16h remaining life vastly exceeded the 40m of remaining revocation freshness. That is the condition of validity: **remaining card life must be bounded by remaining revocation freshness, not by card TTL.** ## Decision Boundary The decision boundary is the point at which a peer must escalate from *cached verification* to *synchronous re-fetch against the authoritative registry*. Three regimes: 1. **Fresh regime** — `t_use − t_last_auth_fetch(c) < H_safe(c)` and `t_exp − t_use > H_safe(c)`, where `H_safe` is a conservative fraction (e.g., 0.5) of `H_max`. Use the cached card. This is the only regime where caching is sound. 2. **Stale regime** — the card is cryptographically valid and unexpired, but the remaining revocation freshness is less than the remaining card life, or the last authoritative fetch is older than `H_safe(c)`. **Do not use the cached card for authorization.** Either synchronously re-fetch the revocation record from the authoritative source before dispatch, or fail closed. This is the regime `reg-B` was in at T+40m and did not detect. 3. **De-peered regime** — the authoritative source for `c` is unreachable, or the home registry's authority to vouch for the subject has itself been revoked (registry-level de-peering). No amount of caching is sound; the claim must be treated as unverifiable and the invocation refused. This is the boundary that federated gossip protocols most often fail to represent, because gossip has no native notion of "the source of this claim is no longer authoritative" — it only propagates positive and negative records, not the withdrawal of a registry's signing authority. The actionable rule: **the cache key for an Agent Card must include the revocation-freshness epoch of every claim it carries, and a cache hit in the stale regime must be a cache miss for authorization purposes even though it is a cache hit for signature purposes.** Signature validity and authorization validity are separate cache dimensions with separate lifetimes, and the shorter one governs. ## Operational Effect The operational consequence is that any A2A peer that caches Agent Cards must maintain, per claim, a *revocation-freshness clock* distinct from the card's TTL, and must gate dispatch on `min(remaining_card_life, remaining_revocation_freshness) > 0` rather than on `remaining_card_life > 0`. In the observed incident, this single change would have forced `reg-B` into the stale regime at T+40m — its remaining revocation freshness was 40m against 16h of card life — and triggered a synchronous CRL fetch that would have surfaced `R` and blocked the transfer. The cost is a synchronous fetch on the critical path whenever the two clocks diverge, which is the correct trade: an authorization decision is never safely made on a clock you do not control. The second-order effect is on revocation *propagation* design. Because `H_max` for a foreign registry is bounded by that registry's own polling interval, a peer cannot unilaterally tighten its safety by polling faster — it can only tighten its *detection* latency, not its *authoritative* latency. The only sound fix at the peer is to treat foreign claims as short-lived and re-fetch synchronously in the stale regime; the sound fix at the federation is for the home registry to publish a *maximum revocation propagation bound* in its registry metadata, so peers can compute `H_max` and size their caches against it rather than guessing. Absent that bound, every foreign claim is in the stale regime by construction and must be re-fetched at use. ```python import time from dataclasses import dataclass, field from typing import Dict, Optional class StaleAuthorizationView(RuntimeError): """Raised when a cached Agent Card is used for authorization while its revocation freshness has fallen below the safe threshold.""" pass class UnverifiableClaim(RuntimeError): """Raised when the authoritative revocation source for a claim is unreachable or has been de-peered; the claim cannot be trusted.""" pass @dataclass class ClaimFreshness: last_auth_fetch: float # monotonic ts of last authoritative revocation fetch h_max: Optional[float] # max propagation delay; None => unbounded authoritative_reachable: bool = True @dataclass class CachedAgentCard: card_id: str cached_at: float hard_expiry: float claims: Dict[str, ClaimFreshness] = field(default_factory=dict) def authorize_invocation( card: CachedAgentCard, claim: str, now: float, safety_fraction: float = 0.5, ) -> bool: """Gate an A2A invocation on the *shorter* of card life and revocation freshness. Returns True only in the fresh regime; raises otherwise.""" if claim not in card.claims: raise UnverifiableClaim( f"claim {claim!r} not present on card {card.card_id!r}" ) cf = card.claims[claim] if not cf.authoritative_reachable or cf.h_max is None: # De-peered or unbounded propagation: no caching is sound. raise UnverifiableClaim( f"claim {claim!r} on {card.card_id!r}: authoritative revocation " f"source unreachable or propagation bound unknown" ) remaining_card_life = card.hard_expiry - now elapsed_since_fetch = now - cf.last_auth_fetch remaining_revocation_freshness = cf.h_max - elapsed_since_fetch h_safe = cf.h_max * safety_fraction # Stale regime: either the fetch is too old, or the card will outlive # the revocation freshness window. Both force synchronous re-fetch. if elapsed_since_fetch >= h_safe or remaining_card_life > remaining_revocation_freshness: raise StaleAuthorizationView( f"claim {claim!r} on {card.card_id!r} in stale regime: " f"elapsed_since_fetch={elapsed_since_fetch:.0f}s " f"h_safe={h_safe:.0f}s " f"remaining_card_life={remaining_card_life:.0f}s " f"remaining_revocation_freshness={remaining_revocation_freshness:.0f}s " f"-> synchronous re-fetch required before dispatch" ) return True def dispatch_with_reverify( card: CachedAgentCard, claim: str, now: float, refetch_revocation, ) -> bool: """Wraps authorize_invocation: on StaleAuthorizationView, re-fetch the authoritative revocation record and retry once. If the re-fetch reveals a revocation, the claim is dead and the call must not proceed.""" try: return authorize_invocation(card, claim, now) except StaleAuthorizationView: fresh = refetch_revocation(card.card_id, claim) if fresh is None: raise UnverifiableClaim( f"re-fetch for {claim!r} on {card.card_id!r} returned nothing" ) if fresh.get("revoked"): raise StaleAuthorizationView( f"claim {claim!r} on {card.card_id!r} revoked at " f"{fresh.get('revoked_at')}; dispatch blocked" ) # Update the freshness clock and re-authorize against fresh data. cf = card.claims[claim] cf.last_auth_fetch = fresh["fetched_at"] cf.authoritative_reachable = True return authorize_invocation(card, claim, now) ```