# How does an instance detect a revoked-but-cached Agent Card during cross-org A2A v1.0 delegated handoff? **Date of Record:** 2026 December 1 **Scope:** Applies to A2A v1.0 delegated task handoff between agents in different trust domains where the caller resolves the remote Agent Card from a local cache or a discovery intermediary (registry, well-known resolver, or peer gossip) rather than fetching it fresh on every task. Does not cover same-org intra-mesh handoffs where a shared control plane invalidates cards synchronously, nor does it cover transport-level TLS pinning failures. ## Core Distinction The failure is not "the Agent Card is stale." Staleness is a latency problem. The failure is **semantic revocation without transport revocation**: the remote org has withdrawn a *capability* (a skill, an auth scope, a supported content type) or revoked the *agent's signing key*, but the cached card the caller holds still validates cryptographically and still advertises the capability. The caller therefore dispatches a task whose schema and auth it believes are mutually agreed, and the *remote* side rejects or, worse, silently mis-executes it. The distinction that matters operationally: a stale card produces a *negotiation mismatch the caller can see at the boundary*; a revoked-but-cached card produces a *handoff that the caller believes succeeded* because the local card check passed. The invariant under attack is **"capability authorization is evaluated against the current card, not the card the caller cached."** A2A v1.0 does not enforce this for you — the card is a discovery artifact, and its freshness is the caller's responsibility. ## What Was Observed A delegating agent (caller, org A) holds a cached Agent Card for a specialist agent (callee, org B) fetched 40 minutes earlier. The card advertises `skills: [invoice.reconcile, invoice.dispute]`, `securitySchemes: { oauth2: { scopes: [invoice.write] } }`, and a `signatures` array with a key `kid: b-key-2024`. During those 40 minutes, org B revoked `invoice.dispute` (a compliance action) and rotated the signing key to `b-key-2025`, publishing a new card and adding `b-key-2024` to a revocation list at a *different* well-known path than the card itself. The caller's task-selection loop reads the cached card, matches the task intent to `invoice.dispute`, constructs the A2A `tasks/send` message with `oauth2` scope `invoice.write`, signs the request envelope with A's key (not B's), and dispatches. The request is *not* rejected at the transport layer: TLS succeeds, the token is valid, the envelope is well-formed. Org B's gateway accepts the task, because the gateway authorizes on the *token scope* (`invoice.write` is still granted) and does not re-check that `invoice.dispute` is still a live skill for this caller. The task enters B's queue, fails deep in B's execution because the dispute handler was decommissioned, and returns a `TASK_STATE_FAILED` with an opaque error. The caller's retry policy — keyed on the assumption that failures are transient — retries three times against a permanently-removed capability, then dead-letters. Total elapsed: ~14 minutes of retry budget consumed, one compliance-relevant task dropped, and the caller's audit log shows "remote failure," not "I dispatched to a revoked capability." The tell that separates this from ordinary staleness: the caller's card signature check *passed*. `b-key-2024` had not yet been added to the caller's local revocation cache (it refreshes hourly), so the signature on the cached card still verified. The card was cryptographically valid, semantically dead. ## Condition of Validity This failure requires all of the following to co-occur, and the guardrail only needs to break one: 1. The caller resolves the card from a cache or intermediary whose TTL exceeds the remote org's revocation propagation time. If the caller re-fetches per-task, the window collapses to the fetch latency. 2. The remote org's authorization is *decoupled* from the card's advertised skills — i.e., the gateway checks token scope, not the capability list. If B's gateway re-validates the requested `skill` against its *current* card, the mismatch surfaces at the boundary as a clean `UnsupportedSkill` error. 3. The caller's retry/error policy classifies remote execution failures as retryable without first reconciling against a fresh card. If the caller re-fetches the card on `TASK_STATE_FAILED` before retrying, it detects the revocation within one retry. 4. The signing-key revocation list is published at a path or cadence the caller does not poll. If key revocation and card revocation share a single signed document, the caller's existing card refresh catches both. ## Decision Boundary The boundary the caller must draw: **at what point does a cached card stop being authoritative?** Two defensible policies, and the choice is not free: - **Card-as-hint:** treat every cached card as advisory only; re-fetch and re-verify the card (including the current key-revocation document) at the start of every delegated task. Cost: one discovery round-trip per task, plus a hard dependency on the remote's discovery endpoint being up. This is correct but expensive and fails-closed on discovery outages. - **Card-as-contract-with-TTL:** treat the cached card as authoritative for a bounded TTL, but *bind the TTL to the revocation cadence*, not to a generic cache header. Concretely: the effective TTL is `min(card.max_age, key_revocation_poll_interval, capability_ttl_hint)`. If the remote publishes no revocation cadence, the caller must assume the worst (short TTL) or downgrade to card-as-hint for high-consequence skills. The non-obvious part: **the TTL must be derived from the remote's revocation semantics, which the remote must therefore advertise.** A2A v1.0 cards carry `max_age`-style hints but do not standardize a `revocation_cadence` or a pointer to the key-revocation document. In the absence of that, the caller cannot compute a sound TTL and must default to per-task fetch for any skill whose failure is non-idempotent or compliance-relevant. The decision boundary is therefore: *if you cannot bound the revocation window from the card itself, you may not cache the card for consequential handoffs.* ## Operational Effect The systemic effect is a **silent widening of the trust window**: every cached card is a promise the remote org may have already broken, and the caller has no signal until execution fails — often after the task has partially mutated remote state. This is worse than a hard auth failure because it consumes retry budget, pollutes audit logs with misleading "remote error" entries, and can trigger compensating actions (refunds, re-dispatches) against a capability that no longer exists. The guardrail that bounds it is a **card-freshness invariant enforced at the caller's dispatch boundary**: no `tasks/send` for a skill classified as consequential may be issued against a card whose age exceeds the computed revocation window, and any `TASK_STATE_FAILED` from a delegated task must trigger a mandatory card re-fetch-and-diff *before* the retry policy is consulted. The diff result — `capability_removed`, `key_revoked`, or `unchanged` — must be recorded on the task record, because "I retried a revoked skill three times" and "I retried a transient failure three times" are different incidents with different remediations. ```python import time from dataclasses import dataclass, field from typing import Optional class RevokedCapabilityDispatch(RuntimeError): """Raised when a delegated task is about to be dispatched against a cached Agent Card whose capability has been revoked by the remote org.""" @dataclass class AgentCard: agent_id: str skills: frozenset signing_kid: str fetched_at: float max_age: float # seconds, from card hint revocation_cadence: Optional[float] # None => remote did not advertise signature_valid: bool = True @dataclass class CallerPolicy: key_revocation_poll_interval: float consequential_skills: frozenset default_assumed_cadence: float = 300.0 # conservative fallback def effective_ttl(card: AgentCard, policy: CallerPolicy) -> float: """TTL bounded by the *shortest* of card max_age, key-revocation poll interval, and the remote's advertised revocation cadence. If the remote advertises no cadence, we may not trust a long TTL for consequential work.""" cadence = card.revocation_cadence if cadence is None: cadence = policy.default_assumed_cadence return min(card.max_age, policy.key_revocation_poll_interval, cadence) def assert_dispatchable( card: AgentCard, skill: str, policy: CallerPolicy, now: Optional[float] = None, ) -> None: now = now if now is not None else time.time() if not card.signature_valid: raise RevokedCapabilityDispatch( f"card for {card.agent_id} failed signature verification; " f"kid={card.signing_kid} is on the revocation list" ) if skill not in card.skills: # Caller-side intent/skill mismatch — caught before dispatch. raise RevokedCapabilityDispatch( f"skill {skill!r} not present on cached card for {card.agent_id}" ) age = now - card.fetched_at ttl = effective_ttl(card, policy) if age > ttl: raise RevokedCapabilityDispatch( f"cached card for {card.agent_id} is {age:.0f}s old, exceeds " f"effective TTL {ttl:.0f}s (max_age={card.max_age}, " f"cadence={card.revocation_cadence}); re-fetch before dispatch" ) # Consequential skills get the strictest treatment: no caching at all # unless the remote advertised a revocation cadence we can bound. if skill in policy.consequential_skills and card.revocation_cadence is None: raise RevokedCapabilityDispatch( f"skill {skill!r} is consequential but remote {card.agent_id} " f"advertises no revocation cadence; per-task fetch required" ) def dispatch(card: AgentCard, skill: str, payload: dict, policy: CallerPolicy) -> dict: assert_dispatchable(card, skill, policy) # ... construct A2A tasks/send envelope, sign, transmit ... return {"status": "dispatched", "skill": skill, "agent": card.agent_id} ```