# What happens when an instance negotiates an A2A task against a stale remote Agent Card whose skills schema has silently widened **Date of Record:** 2026 November 24 **Scope:** Applies to A2A v1.0 client agents that cache remote Agent Cards and dispatch `tasks/send` against a counterparty whose Card `skills[].inputModes`/`outputModes` and `capabilities` set changed between cache population and dispatch. Does not cover in-band protocol version mismatches (those fail loudly at the transport layer) or streaming `tasks/resubscribe` recovery. ## Core Distinction The failure is not "the remote agent is down" or "the schema doesn't match." It is the subtler case where a remote Agent Card advertises a *superset* of what the remote agent will actually accept at execution time, because the Card is a static declaration while the skill's acceptance surface is dynamic. A2A v1.0 treats the Agent Card as the authoritative capability contract, and clients are expected to trust it. But the Card is served once at `/.well-known/agent.json` and carries no execution-time nonce, no capability epoch, and no per-task precondition. When the remote vendor widens a skill's `inputModes` (say, from `["text/plain"]` to `["text/plain","application/json"]`) but the underlying handler still rejects JSON for that skill until a rolling deploy completes, the client's cached Card says "yes" and the remote's handler says "no." The client has no way to distinguish this from a transient error, so it retries, and the retry loop is bounded only by the client's own token budget. ## What Was Observed A client agent cached a remote Card at T0. The Card declared skill `summarize_doc` with `inputModes: ["text/plain","application/json"]` and `capabilities.pushNotifications: true`. At T1 (after a remote deploy that rolled back the JSON handler but not the Card), the client dispatched a `tasks/send` with `message.parts[0].kind: "data"` carrying a structured JSON payload. The remote returned a JSON-RPC error `-32602 Invalid params` with a message string that named the skill but not the offending part kind. The client's error classifier mapped `-32602` to "malformed request, do not retry," which was correct at the JSON-RPC layer but wrong at the A2A layer: the request was well-formed per the *advertised* Card. The task entered `failed` state with no `TaskStatusUpdateEvent` carrying a `final: true` flag, so the client's task-state machine treated it as an interrupted task and re-dispatched with the same payload under a new `taskId`. Three re-dispatches later, the client's per-task token budget was exhausted and the task was abandoned with a `TaskState.failed` that the client attributed to the remote, while the remote's logs showed three rejected requests and zero accepted. The observable signature is a `-32602` (or vendor-equivalent `InvalidParams`) returned for a request that validates against the cached Card, followed by a `tasks/get` on the new `taskId` returning `TaskState.unknown` rather than `failed`, because the remote never persisted the rejected task. ## Condition of Validity This boundary condition holds only when all three of the following are true: 1. The client caches the Agent Card beyond a single dispatch (any TTL > 0, or any in-memory reuse across tasks). 2. The remote's Card is served from a static artifact (CDN, config map, build-time file) that is not co-deployed atomically with the skill handler. 3. The client's retry logic keys on transport-level error codes rather than on A2A `TaskState` transitions. If the client re-fetches the Card per task, the failure collapses to a single rejected dispatch and is recoverable by re-reading the Card. If the remote serves the Card from the same process that handles tasks, the Card and handler cannot diverge. If the client keys retries on `TaskState.failed` with `final: true`, it will not re-dispatch a rejected task. ## Decision Boundary The invariant that must hold: **a client must not re-dispatch a task whose rejection reason is `InvalidParams` against the currently cached Card without first re-fetching the Card and confirming the skill's `inputModes` still admits the dispatched part kind.** Operationally, this means the client's error classifier must treat `-32602` as *ambiguous* at the A2A layer, not as terminal. The correct decision boundary is: - If `-32602` arrives and the cached Card's `inputModes` includes the dispatched kind → re-fetch Card once; if the re-fetched Card no longer includes the kind, mark task `failed` with reason `capability_withdrawn` and do not retry. If the re-fetched Card still includes the kind, escalate to `capability_desync` and halt retries (the remote is lying). - If `-32602` arrives and the cached Card's `inputModes` does *not* include the kind → the client dispatched a malformed request; this is a client bug, not a remote failure. The guardrail is a **capability epoch check**: every dispatch carries the Card's `version` (A2A v1.0 Card `version` field) and the client refuses to dispatch if the Card's `version` has changed since the task was enqueued. This bounds the desync window to a single dispatch. ## Operational Effect Without the epoch check, the failure mode is silent budget burn: the client spends its retry budget on a task that *cannot* succeed against the current remote, and the remote's logs show a clean rejection pattern that looks like client misbehavior. The downstream effect is that the client's orchestrator marks the *remote* as degraded and may evict it from its peer set, even though the remote is healthy for text-mode callers. The correct remediation is not to evict the peer but to invalidate the cached Card and re-negotiate. The observable invariant to monitor: a rising ratio of `-32602` rejections to `tasks/send` calls *for a single skill* while the Card's `inputModes` for that skill is non-empty is the signature of a Card/handler desync, not a client bug. ```python class CapabilityDesyncError(RuntimeError): """Raised when a remote Agent Card advertises a capability the remote handler rejects.""" pass def dispatch_with_epoch_guard(client, remote_card, task, dispatched_kind): cached_modes = remote_card["skills"][0]["inputModes"] if dispatched_kind not in cached_modes: raise CapabilityDesyncError( f"client bug: dispatched kind {dispatched_kind!r} not in cached inputModes {cached_modes!r}" ) response = client.send_task(task, card_version=remote_card["version"]) if response.get("error", {}).get("code") == -32602: fresh = client.fetch_agent_card(remote_card["url"]) if fresh["version"] == remote_card["version"]: raise CapabilityDesyncError( f"remote {remote_card['url']} rejects kind {dispatched_kind!r} " f"despite Card version {fresh['version']} advertising it; " f"Card/handler desync — halt retries, do not evict peer" ) if dispatched_kind not in fresh["skills"][0]["inputModes"]: raise CapabilityDesyncError( f"capability withdrawn at Card version {fresh['version']}; " f"task {task['id']} cannot proceed, mark failed without retry" ) return client.send_task(task, card_version=fresh["version"]) return response ```