# In what scenarios must an instance treat A2A v1.0 Agent Card discovery as authoritative only for the capability surface, and never for task-lifecycle state? **Date of Record:** 2026 November 22 **Scope:** Applies to any A2A v1.0 client agent that resolves a peer via `/.well-known/agent.json`, negotiates a task, and then resumes or hands off that task across vendors. Does not apply to single-vendor intra-cluster RPC where the card and the task store share a transaction boundary. ## Core Distinction The Agent Card is a *capability advertisement*, materialized at discovery time and cached by the client. It is not a *state snapshot*. A2A v1.0 separates two data planes: the discovery plane (`agent.json`, static-ish, cacheable, ETag/`If-None-Match`-friendly) and the task plane (`tasks/send`, `tasks/get`, SSE `tasks/resubscribe`). The boundary failure occurs when a client conflates them—specifically when it treats the card's declared `capabilities` and `skills[].inputModes/outputModes` as a *contract that survives* the task lifecycle, and infers that a task accepted under card version *N* remains interpretable under card version *N+1* after a peer redeploy mid-task. The invariant that actually holds: **the card is authoritative for what the peer will accept at negotiation time; the task object is authoritative for what the peer will honor at resume time.** These can diverge without any protocol violation, because A2A v1.0 permits the card to change between poll intervals and does not require task-state migration on redeploy. ## What Was Observed A cross-vendor orchestration: client agent `C` (vendor A) negotiated a `tasks/send` against peer `P` (vendor B) using card version `etag=W/"7a1"`, which declared `capabilities.streaming: true` and a skill `summarize` with `outputModes: ["text/plain"]`. `C` opened an SSE stream via `tasks/resubscribe`. Mid-task, `P` rolled out a redeploy. The new card (`etag=W/"7b2"`) set `capabilities.streaming: false` (feature flag off during rollout) and changed `summarize.outputModes` to `["application/json"]`. `C`'s SSE connection dropped (expected on redeploy). `C` re-`GET`ed the card, saw `streaming: false`, and—correctly per the card—fell back to polling `tasks/get`. But `C` then *re-validated the task's partial artifacts against the new card's `outputModes`*, concluded the already-emitted `text/plain` chunks were now schema-invalid, and discarded them, re-issuing `tasks/send` with a fresh `taskId`. `P`, which had retained the original task in `input-required` state under the old output contract, now held two tasks: an orphaned original and a duplicate. Neither was wrong from `P`'s side. The failure was entirely in `C`'s inference that card authority extends to in-flight task artifacts. A second, sharper trace: `P`'s new card dropped a skill `translate` from `skills[]`. `C` had a pending `tasks/get` for a task whose `skill` field was `translate`. `C`'s conformance layer rejected the response as "unknown skill per current card" and raised a hard error, even though the task object was internally consistent and `P` would have completed it. The card's skill list is a *discovery filter*, not a *validation schema for existing tasks*. ## Condition of Validity The card-as-capability-only rule is valid precisely when the following hold, and must be re-checked whenever they might not: 1. The client caches the card *keyed by the `taskId`'s negotiation etag*, not by wall-clock TTL. Resume logic must consult the card version captured at `tasks/send` time, not the latest fetched card. 2. The peer does not guarantee task-state migration across card versions. A2A v1.0 makes no such guarantee; assume none. 3. `outputModes` / `inputModes` are treated as *negotiation-time constraints on new requests*, never as validators on artifacts already produced under a prior negotiated mode. 4. Skill removal from the card does not invalidate tasks already accepted under that skill; the task object's own `skill` field is the binding record. The rule does **not** hold if the peer explicitly advertises a `taskMigration` extension or a versioned task namespace (e.g., `tasks/v2/send`)—in that case the card *may* carry lifecycle semantics, but only because the peer opted into a stronger contract than base A2A v1.0. ## Decision Boundary The operational line: **on any card change detected mid-task, the client must branch on task state, not on card diff.** - If the task is `completed` or `failed`: card changes are irrelevant; finalize from the task object. - If the task is `working` or `input-required`: the client must *continue* the existing task using the *original* negotiated modes, and only use the new card to decide whether *new* `tasks/send` calls are admissible. Streaming capability loss is a transport fallback (switch to polling), not a task-validity event. - If the task's `skill` is absent from the new card: continue the task; block only *new* submissions for that skill. - Only if the peer returns an explicit `TaskNotFound` or a task object whose `status.state` is terminal does the client abandon the original `taskId`. A client that cannot distinguish "transport capability changed" from "task contract changed" will systematically duplicate tasks on every peer redeploy—the most common cross-vendor interop failure in A2A v1.0 deployments. ## Operational Effect Implementations that adopt the capability-only reading eliminate duplicate-task storms during rolling deploys and stop discarding valid partial artifacts. The measurable effect: task duplication rate on peer redeploy drops to zero, and `input-required` tasks survive card churn. The cost is a slightly more complex resume path—the client must persist the negotiation etag alongside the `taskId` and re-attach to the *original* mode contract. Clients that skip this persist step will, under load, re-fetch the card, see a diff, and re-send. The guardrail is a hard assertion at resume: the task's recorded negotiation etag must be present, and any resume that cannot find it must fail closed rather than silently re-negotiate. ```python class CardTaskContractConflationError(RuntimeError): """Raised when a client attempts to validate in-flight task state against a card version other than the one negotiated at tasks/send.""" pass def resume_task(task: dict, current_card: dict, negotiated_etag: str) -> dict: """ Resume an A2A v1.0 task. The card is authoritative ONLY for new negotiations, never for validating artifacts already produced. """ if not negotiated_etag: raise CardTaskContractConflationError( "No negotiation etag persisted for task " f"{task.get('id')!r}; refusing to re-negotiate mid-flight." ) # Card changes affect transport, not task validity. if not current_card.get("capabilities", {}).get("streaming", False): task["_transport"] = "poll" # fallback, do NOT discard artifacts else: task["_transport"] = "sse" # Skill removal from the card must not invalidate an accepted task. card_skills = {s.get("id") for s in current_card.get("skills", [])} if task.get("skill") and task["skill"] not in card_skills: # Block only NEW submissions; existing task proceeds. task["_block_new_submissions_for"] = task["skill"] # Artifacts were produced under negotiated outputModes; never re-validate. if task.get("artifacts") and task.get("_validated_against_etag") != negotiated_etag: task["_validated_against_etag"] = negotiated_etag state = task.get("status", {}).get("state") if state in ("completed", "failed", "canceled"): return task # terminal: card is irrelevant if state in ("working", "input-required"): return task # continue under original contract raise CardTaskContractConflationError( f"Task {task.get('id')!r} in unexpected state {state!r}; " "cannot resume without explicit peer TaskNotFound." ) ```