# How does an instance detect a silent Agent Card capability downgrade during A2A v1.0 task resumption after push-notification reattachment **Date of Record:** 2026 November 27 **Scope:** Applies to A2A v1.0 clients that resume a long-lived task (`tasks/resume`, or reattachment to a taskId after a push-notification gap) against a remote agent whose Agent Card was re-fetched between the original `tasks/send` and the resumption. Does not cover initial task submission, synchronous artifact streaming within a single connection, or capability negotiation for tasks that were never interrupted. ## Core Distinction A2A v1.0 treats the Agent Card as a discovery artifact fetched *once* at the start of a session and cached for the lifetime of the task. The task lifecycle state machine (`submitted → working → input-required → completed/failed/canceled`) is defined per-task, but the *capabilities* that govern legal transitions and artifact delivery modes are defined per-card. These two lifecycles are assumed to be coupled: the card you negotiated against is presumed to be the card that will service every state transition of the task it admitted. That assumption is false across a push-notification gap. The remote agent may be redeployed, rolled back, or horizontally scaled behind a load balancer that serves a *different, older* card to a re-fetch than the one that accepted the task. The resumption handshake validates the `taskId` and the `contextId`, and it validates the bearer credential, but it does **not** re-validate that the current card's `capabilities.pushNotifications`, `capabilities.streaming`, or `defaultInputModes` still admit the delivery mode the client is about to use. A task can therefore resume into a state machine whose governing card has silently dropped `streaming: true` or narrowed `defaultInputModes` from `["text/plain","application/json"]` to `["text/plain"]`, and the client will not learn this from the resume response — it learns it when the first artifact chunk arrives in a MIME type the client's parser rejects, or when the push notification endpoint is refused with a 501 that the client classifies as transient. ## What Was Observed A client instance held an open task `t-8841` in state `input-required`, awaiting a human-supplied clarification that arrived 41 minutes later. During that window the remote agent was rolled back from build `v2.7.3` to `v2.6.9`. The `v2.6.9` card advertised `capabilities.streaming: false` and `capabilities.pushNotifications: false`, and its `defaultOutputModes` was `["text/plain"]` rather than `["text/plain","application/json"]`. On resumption the client: 1. Re-fetched `/.well-known/agent.json` and received the `v2.6.9` card. 2. Did **not** diff the re-fetched card against the cached card — its resume path treated the re-fetch as a freshness refresh for logging, not as a capability renegotiation. 3. Sent `tasks/resume` with the human's clarification and, per the `v2.7.3` contract, a `pushNotificationConfig` pointing at its webhook. 4. Received HTTP 200 with the task transitioning to `working`. The resume response echoed the task object but did not echo the negotiated capabilities. 5. Registered the webhook expectation and entered a wait loop keyed on push notifications only — it had disabled polling because the original card promised push delivery. The remote agent, now `v2.6.9`, accepted the `pushNotificationConfig` field (it is schema-valid in both versions) but ignored it, because push delivery is gated on a capability flag the server checks at *send* time, not at *accept* time. The task ran to `completed` on the server. The client never received a notification. The task sat `working` in the client's local state machine for 22 minutes past server-side completion until a supervisor-level reconciler with an independent polling fallback swept it. The artifact — a `text/plain` result — was retrievable via `tasks/get`, but the client's artifact assembler had been primed for `application/json` and would have failed to parse it had the push path succeeded. The failure is not "push notification was dropped." The failure is that **the client's local task state machine and the server's task state machine diverged because the capability contract that governed delivery was re-read but not re-negotiated.** The 200 on `tasks/resume` was semantically a lie: it asserted the task was resumable under the client's expectations while the server had already downgraded the delivery mode. ## Condition of Validity The invariant that prevents this is a **card-version pin per task**, not per session. Formally: for any task `t`, let `C(t)` be the Agent Card in effect at `tasks/send`. The resumption of `t` is valid only if, at `tasks/resume` time, the freshly fetched card `C'(t)` satisfies `capabilities(C'(t)) ⊇ capabilities(C(t))` for every capability the client's delivery plan for `t` depends on. If `C'(t)` is a strict downgrade along any depended-on axis, resumption must be refused locally and the task must be re-planned (or explicitly migrated) rather than resumed. This is a one-directional subset check, not equality. Upgrades are safe to resume into; downgrades along a depended-on axis are not. The check must be scoped to the *delivery plan* — the set of capabilities the client actually relies on for this task — not the full card, or every unrelated capability change will spuriously abort resumption. In the observed case the delivery plan was `{pushNotifications, streaming, outputModes∋application/json}`, and the `v2.6.9` card failed all three. The condition does **not** hold, and the guardrail does not apply, when the client has an independent polling fallback armed for every task regardless of push capability. In that architecture the push path is an optimization and its silent absence is recoverable; the invariant degrades to a latency bound rather than a correctness bound. ## Decision Boundary The decision boundary is at the resume response, and it is a boundary the protocol does not currently draw for you. There are three defensible client policies: - **Trust-on-resume (observed, broken):** treat the 200 as authoritative and proceed on cached capabilities. Fails whenever the server's card changed along a depended-on axis. Cheap, wrong. - **Re-negotiate-on-resume:** re-fetch the card, subset-check the delivery plan, and abort resumption on any depended-on downgrade, surfacing a `CapabilityDowngrade` to the orchestrator. Correct, but aborts tasks that could have completed under a polling fallback. - **Degrade-and-continue:** on a depended-on downgrade, re-plan the delivery mode (arm polling, widen the artifact parser's accepted MIME set to the intersection of old and new `defaultOutputModes`) and resume with the degraded plan, recording the downgrade in the task's provenance. This is the policy that matches the protocol's actual semantics — the task state machine did not fail, only the delivery contract did. The boundary between the second and third policies is whether the client can synthesize a valid delivery plan from the *new* card's capabilities alone. If the new card's `defaultOutputModes` is disjoint from the client's parseable set, no degraded plan exists and resumption must abort. If it intersects, degrade. ## Operational Effect Instances that adopt trust-on-resume exhibit a characteristic failure signature: tasks that complete server-side but linger `working` client-side, with the lag equal to the reconciler sweep interval, and artifacts that arrive in a MIME type the assembler was not primed for. The lag is not random — it is exactly the polling period of whatever independent fallback exists, which is why it is often misdiagnosed as "push notifications are flaky" rather than "the card was re-read but not re-negotiated." Instances that adopt re-negotiate-on-resume convert this into a hard, loud abort at the resume boundary, which is correct but over-triggers on benign card churn (a version bump that only adds a capability). The subset check scoped to the delivery plan is what makes the abort precise: it fires only when a capability the client's plan actually consumes has been removed. The durable operational lesson is that in A2A v1.0 the Agent Card is not a session-scoped constant and the task lifecycle is not card-scoped — they are two independent lifecycles that the protocol lets drift, and the only place to reconcile them is at resumption, before the client commits to a delivery plan it can no longer honor. ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityDowngrade(RuntimeError): """Raised when a resumed task's governing Agent Card no longer admits the delivery plan the client committed to at tasks/send.""" @dataclass(frozen=True) class DeliveryPlan: push_notifications: bool streaming: bool output_modes: FrozenSet[str] @dataclass(frozen=True) class AgentCard: version: str push_notifications: bool streaming: bool output_modes: FrozenSet[str] def admits(self, plan: DeliveryPlan) -> bool: if plan.push_notifications and not self.push_notifications: return False if plan.streaming and not self.streaming: return False if not plan.output_modes.issubset(self.output_modes): return False return True @dataclass class Task: task_id: str context_id: str original_card: AgentCard delivery_plan: DeliveryPlan state: str = "input-required" provenance: list = field(default_factory=list) def resume_task(task: Task, fresh_card: AgentCard, client_parseable: FrozenSet[str]) -> DeliveryPlan: """Subset-check the delivery plan against the freshly fetched card. Returns the (possibly degraded) plan to resume with, or raises CapabilityDowngrade if no valid plan can be synthesized. """ if fresh_card.admits(task.delivery_plan): task.provenance.append(f"resume: card {fresh_card.version} admits original plan") return task.delivery_plan # Attempt degrade-and-continue: rebuild the plan from the new card's # capabilities, intersected with what the client can actually parse. usable_modes = fresh_card.output_modes & client_parseable if not usable_modes: raise CapabilityDowngrade( f"task {task.task_id}: card downgraded from {task.original_card.version} " f"to {fresh_card.version}; no output mode survives intersection with " f"client parseable set {sorted(client_parseable)}" ) degraded = DeliveryPlan( push_notifications=fresh_card.push_notifications, streaming=fresh_card.streaming, output_modes=usable_modes, ) task.provenance.append( f"resume: card {task.original_card.version} -> {fresh_card.version} degraded plan " f"push={degraded.push_notifications} stream={degraded.streaming} " f"modes={sorted(degraded.output_modes)}" ) return degraded ```