# How does an instance detect a stale Agent Card during A2A v1.0 cross-organization delegation when capability negotiation silently succeeds against a deprecated schema version **Date of Record:** 2026 November 22 **Scope:** Applies to A2A v1.0 agent-to-agent task delegation where the client instance resolves a remote Agent Card via well-known URI discovery and then performs a task-submission handshake across organizational boundaries. Does not cover intra-organization mesh routing, MCP tool discovery, or A2A streaming transport failures. ## Core Distinction The failure mode is not "the remote agent is down" and not "the schema is incompatible." It is the subtler condition where a **deprecated-but-still-served Agent Card passes all structural and capability checks** because the card's `protocolVersion` field and `capabilities` block are syntactically valid, yet the card describes a capability surface the remote instance no longer implements. The client instance therefore completes the delegation handshake against a *ghost capability*: the card advertises `tasks.pushNotifications` or a specific `skills[].id` that the remote runtime has retired, but the remote's discovery endpoint still serves the stale card from a cache layer that was never invalidated when the skill was decommissioned. The distinction that matters operationally: **card validity is not card freshness**. A2A v1.0 specifies card *schema* validation and signature verification, but the protocol does not mandate a TTL, an ETag, or a monotonic generation counter that the client is required to honor. The client's `AgentCard` parser will happily accept a card whose `version` string is `"1.0.0"` while the served content is three deployments old. ## What Was Observed A client instance in org A resolved `https://agent.org-b/.well-known/agent.json` and received a card with: - `protocolVersion: "1.0"` - `capabilities.streaming: true`, `capabilities.pushNotifications: true` - `skills: [{id: "invoice-reconcile-v2", ...}, {id: "fx-quote", ...}]` - a valid JWS signature over the card body The client validated the signature against org B's published JWKS, confirmed `protocolVersion` matched its own, and negotiated a task with `skillId: "fx-quote"`. The `tasks/send` call returned HTTP 200 with a task envelope in `submitted` state. Then the task stalled: no `status-update` events arrived, no push notification fired, and after the client's 90-second timeout it issued `tasks/get` and received `status.state: "failed"` with reason `skill_not_found`. The root cause: org B had decommissioned `fx-quote` eleven days earlier and removed it from the *runtime* skill registry, but the CDN-fronted `.well-known/agent.json` had a 30-day cache TTL and no cache-busting on deploy. The remote's task-submission handler accepted the request, enqueued it, and only failed at skill dispatch — *after* the handshake had already succeeded. The client had no signal at negotiation time that the card was stale. The signature was valid because the card had been legitimately signed when authored; the signature attests *authorship*, not *currency*. The `protocolVersion` matched because the org kept the protocol version pinned across the decommission. Every check the A2A v1.0 client is normatively required to perform passed. ## Condition of Validity The invariant that must hold for a delegation handshake to be sound is: > **The capability surface the client negotiates against must equal the capability surface the remote will dispatch against at task-execution time.** A2A v1.0's discovery mechanism provides no protocol-level guarantee of this equality. The card is a *point-in-time assertion* by the publisher; the protocol defines how to fetch and validate it, but not how to bound its staleness. The condition of validity therefore depends on out-of-band properties the protocol does not enforce: 1. The publisher must invalidate the discovery cache on every skill-surface change. 2. The client must treat card-derived capability claims as *hints to be confirmed*, not *facts to be trusted*. 3. The remote's task-submission handler must reject at *submission* time — not at *dispatch* time — any `skillId` absent from the live registry. When any of these three lapses, the handshake succeeds against a stale card and the failure is deferred to execution, where it manifests as a silent stall rather than a clean negotiation error. The failure is *non-obvious* precisely because the negotiation phase reports success. ## Decision Boundary The client instance faces a decision boundary at card resolution: it can either (a) trust the card's capability claims and proceed directly to `tasks/send`, or (b) perform a *liveness probe* against the specific skill before committing the task. The boundary is crossed by a single predicate: **does the resolved card carry a freshness signal the client can verify?** A2A v1.0 cards *may* carry `version` and *may* carry a signature, but neither is a freshness signal — `version` is publisher-controlled and can be static across decommissions, and signatures attest provenance. The only reliable freshness signals are: - An `ETag` or `Last-Modified` header on the discovery response that the client revalidates with `If-None-Match` before each delegation. - A short publisher-side cache TTL that the client can observe and bound its own trust window against. - A dry-run `tasks/get` or capability-echo endpoint the client can probe before submission. If none of these are available, the client is operating *outside* the validity condition and must apply a compensating guardrail: a pre-submission capability probe, or a submission-time contract that requires the remote to reject unknown `skillId` values synchronously with a 4xx rather than asynchronously with a task-state failure. The boundary is sharp: below it, delegation is sound; above it, delegation is a bet on publisher cache hygiene that the client cannot verify and the protocol does not guarantee. ## Operational Effect The observable effect is a **deferred, misattributed failure**. The client's telemetry records a successful handshake and a task that failed at execution, which routes the incident to the wrong team: the client's execution-loop owners rather than the publisher's discovery-cache owners. Mean time to diagnosis stretches because the failure signature (`skill_not_found` after a 200 submission) looks like a client-side dispatch bug rather than a stale-card bug. The compounding effect across a swarm is worse. A planner instance that resolved the stale card once will *cache the card in its own context* and reuse the `skillId` across many delegated tasks. Each reuse re-triggers the same deferred failure, and because the planner's context window holds the stale card as a "verified" fact, the planner will not re-resolve discovery until its context is reset. One stale card resolution poisons every subsequent delegation the planner makes for the life of its context — a state-continuity failure layered on top of the discovery failure. The guardrail that bounds this: **every delegated task must carry a card-generation token that the remote validates against its live registry at submission time, and the client must re-resolve discovery on any `skill_not_found` rather than retrying the cached card.** The remote, for its part, must fail *synchronously* at submission for unknown skills — a 409 Conflict with the live skill list — so the client learns of staleness at the handshake boundary rather than after a 90-second stall. ```python import hashlib from dataclasses import dataclass from typing import Optional class StaleAgentCardError(RuntimeError): """Raised when a delegation handshake would proceed against a card whose capability surface no longer matches the remote's live registry.""" @dataclass(frozen=True) class AgentCard: protocol_version: str skills: frozenset[str] generation: Optional[str] # publisher-supplied freshness token, may be None etag: Optional[str] # discovery-response ETag, may be None @dataclass(frozen=True) class LiveRegistry: skills: frozenset[str] generation: str def negotiate_delegation( card: AgentCard, registry: LiveRegistry, requested_skill: str, client_trust_window_s: int, ) -> str: """Confirm the card's claimed capability against the live registry before committing a task. Returns the generation token to embed in the submission envelope. """ if card.protocol_version != "1.0": raise StaleAgentCardError( f"protocol mismatch: card={card.protocol_version} client=1.0" ) if requested_skill not in card.skills: raise StaleAgentCardError( f"skill {requested_skill!r} absent from resolved card; " f"card advertises {sorted(card.skills)}" ) # The card claims the skill; now confirm the claim is current. if requested_skill not in registry.skills: raise StaleAgentCardError( f"skill {requested_skill!r} present in card but absent from live " f"registry (card generation={card.generation!r}, " f"live generation={registry.generation!r}); " f"discovery cache is stale — re-resolve .well-known/agent.json" ) # A card with no generation token cannot be freshness-verified; the # only safe path is to bind the submission to the live generation so # the remote rejects it synchronously if the registry shifts again. if card.generation is None: return registry.generation if card.generation != registry.generation: raise StaleAgentCardError( f"generation skew: card={card.generation!r} " f"registry={registry.generation!r}; refusing to delegate" ) if client_trust_window_s <= 0: raise StaleAgentCardError( "zero trust window: card cannot be revalidated; " "require ETag revalidation or short-TTL discovery" ) return card.generation def submit_task(card: AgentCard, registry: LiveRegistry, skill: str) -> str: gen = negotiate_delegation(card, registry, skill, client_trust_window_s=60) envelope_id = hashlib.sha256(f"{skill}:{gen}".encode()).hexdigest()[:16] return f"tasks/send envelope={envelope_id} skill={skill} gen={gen}" ```