# Under what conditions must an instance reject an A2A v1.0 Agent Card whose `capabilities.stateTransitionHistory` is false but whose advertised `taskStates` lifecycle implies resumable `input-required` parking **Date of Record:** 2026 November 27 **Scope:** Applies to A2A v1.0 client agents that discover a remote Agent Card, negotiate a task, and rely on the `input-required` → `working` resumption path across a process or connection boundary. Does not apply to single-shot `message/send` calls with no mid-task human-in-the-loop or clarification step, nor to in-process agents that share a durable store with the caller. ## Core Distinction The A2A v1.0 Agent Card advertises two independent things that are easy to conflate: the *set* of task states the remote agent may emit (`taskStates` / the `TaskState` enum it supports), and the *capability* to replay and resume those states across a discontinuity (`capabilities.stateTransitionHistory`). A card can truthfully advertise `input-required` as a reachable state while truthfully setting `stateTransitionHistory: false`. This is not a contradiction—it means the remote agent can *enter* a parked state but does not guarantee it can *reconstruct* the path that led there, nor serve a `tasks/get` that returns enough prior state for a *different* client instance to resume the task. The failure is a boundary-condition mismatch at the discovery layer: the client reads `taskStates` as a promise of resumability and reads `stateTransitionHistory` as an optional optimization. It is the inverse. `stateTransitionHistory: false` is a *negative invariant on continuity*: the remote agent is telling you that task state is not durably addressable by `taskId` across instances. Any client that parks a task in `input-required`, releases the connection, and expects a cold instance to resume via `tasks/resubscribe` or `tasks/get` is relying on a guarantee the card explicitly withheld. ## What Was Observed A client instance performed `GET /.well-known/agent.json` against a remote A2A v1.0 endpoint and received a card with: - `capabilities.stateTransitionHistory: false` - a `skills` entry whose declared task lifecycle included `submitted → working → input-required → working → completed` - `capabilities.streaming: true` The client's planner treated `input-required` as an ordinary yield point: it emitted `message/send`, received a `Task` in state `input-required` with a `status.message` asking for a missing parameter, checkpointed only the `taskId` and the pending question into its own episodic store, and released the worker. Forty minutes later a *different* instance (cold-start, different pod, no shared memory) picked up the checkpoint and issued `tasks/get` with the stored `taskId`. The remote agent returned `TaskNotFoundError` — not because the task had expired by TTL, but because the task record was held in the remote worker's in-process memory and had been garbage-collected when the original HTTP/SSE connection closed. The remote agent's `input-required` state was *connection-scoped*, not *task-scoped*. The client had checkpointed a `taskId` that was only meaningful while a socket remained open. Because `stateTransitionHistory: false`, the remote agent had never promised to persist the transition log, and its `tasks/get` implementation returned the honest answer: no such durable task. The compounding damage: the client's resumption logic had already transitioned its own local task state machine to `working` on the assumption that `tasks/get` would succeed, so the local record now claimed progress that the remote never acknowledged. A subsequent `tasks/resubscribe` (also attempted, since `streaming: true`) hung until the transport timeout because there was no event stream to attach to for a task the remote no longer held. ## Condition of Validity The resumption path is only valid when **all** of the following hold at discovery time: 1. `capabilities.stateTransitionHistory == true`, OR the task's parked state is guaranteed to be reconstructable from the `Task` object returned inline at park time (i.e., the client persisted the *entire* `Task` payload including `status` and any `artifacts`, not just the `taskId`). 2. The client's checkpoint contains the full last-known `Task` object, not a pointer. A `taskId` alone is a dangling reference under `stateTransitionHistory: false`. 3. The client does not transition its own local state past the last state *acknowledged by the remote* until a `tasks/get` or `tasks/resubscribe` confirms the remote still holds the task. If `stateTransitionHistory` is `false` and the client holds only a `taskId`, the resumption is **invalid by construction** and must be refused at checkpoint time, not attempted at resume time. The correct behavior is to treat `input-required` under a non-history card as a *synchronous* interaction: the client must answer within the same logical session or explicitly abandon and re-issue a fresh `message/send` with the accumulated context, accepting a new `taskId`. ## Decision Boundary The boundary is between *parking* and *abandoning*. Under `stateTransitionHistory: true`, a parked task is a durable handle: the client may release the connection, cold-start, and resume. Under `stateTransitionHistory: false`, a parked task is a *live session token*: it is valid only while the transport is open (or within whatever undocumented in-memory retention the remote happens to have). The client must decide at *checkpoint time* which regime it is in, because at *resume time* it is too late—the remote will return `TaskNotFoundError` and the client's local state has already diverged. Concretely, the guard is: on receiving a `Task` in `input-required`, inspect the card's `stateTransitionHistory`. If `false`, the client must either (a) keep the session open and answer inline, or (b) serialize the *complete* `Task` payload into its checkpoint and mark the task as `resumable: false`, forcing a fresh `message/send` on resume. It must never write a bare `taskId` checkpoint against a non-history card. The decision is made once, at park, and is immutable for the life of that task. ## Operational Effect The observable effect of getting this wrong is a *silent* state divergence: the client believes a task is resumable, the remote has forgotten it, and the two state machines are now permanently out of sync with no shared log to reconcile them (because the log was never persisted—that is what `stateTransitionHistory: false` means). The failure surfaces as `TaskNotFoundError` on resume, or as a `tasks/resubscribe` that never emits, or—worst case—as a *new* task silently created by a retry that the remote treats as a fresh `message/send`, producing duplicate side effects because the client's idempotency key was scoped to the dead `taskId`. The architectural invariant required: **a checkpoint is only as durable as the remote's transition history.** The client must derive its own resumability guarantee from `stateTransitionHistory`, not from the presence of `input-required` in `taskStates`. Treat the two card fields as a conjunction: resumable parking requires `input-required ∈ taskStates ∧ stateTransitionHistory == true`. Any other combination is a synchronous-only interaction, and the client's checkpoint writer must refuse to emit a resumable record for it. ```python class NonResumableParkError(RuntimeError): """Raised when a client attempts to checkpoint a resumable task handle against an A2A v1.0 Agent Card that does not guarantee transition history.""" pass def checkpoint_parked_task(card: dict, task: dict, local_store: dict) -> None: """ Called when a remote A2A agent returns a Task in state 'input-required'. Enforces the continuity invariant: a bare taskId checkpoint is only valid when the card advertises stateTransitionHistory == true. """ caps = card.get("capabilities", {}) history = bool(caps.get("stateTransitionHistory", False)) state = task.get("status", {}).get("state") task_id = task.get("id") if state != "input-required": # Not a park point; nothing to checkpoint here. return if not history: # Non-history card: the taskId is a live session token, not a durable # handle. We may only persist the FULL task payload and mark it # non-resumable, forcing a fresh message/send on any later resume. if "status" not in task or "artifacts" not in task: raise NonResumableParkError( f"Card for task {task_id!r} has stateTransitionHistory=false; " "cannot checkpoint a bare taskId, and the inline Task payload " "is incomplete. Refusing to write a resumable record." ) local_store[task_id] = { "resumable": False, "full_task": task, # serialize everything the remote gave us "resume_via": "message/send", # fresh send, new taskId expected } return # History-enabled card: a durable handle is legitimate. local_store[task_id] = { "resumable": True, "full_task": task, "resume_via": "tasks/get", } def resume_task(card: dict, task_id: str, local_store: dict) -> dict: """ Resume path. Refuses to call tasks/get on a non-history card, because the remote has no durable record and the call would return TaskNotFoundError after the client has already advanced its local state machine. """ record = local_store.get(task_id) if record is None: raise NonResumableParkError(f"No checkpoint for task {task_id!r}") if not record["resumable"]: raise NonResumableParkError( f"Task {task_id!r} was parked against a card with " "stateTransitionHistory=false. tasks/get is invalid; " "re-issue message/send with accumulated context instead." ) # Only reached when the card promised durable transition history. return record["full_task"] ```