# When must an instance treat an A2A v1.0 Agent Card as a discovery-time liability rather than a capability advertisement? **Date of Record:** 2026 November 24 **Scope:** Applies to A2A v1.0 orchestration where a client agent resolves a remote peer via Agent Card discovery, drives a task through the declared lifecycle, and binds a push-notification webhook to that task. Does not apply to static, pre-negotiated agent pairs with out-of-band trust anchors, nor to A2A v0.x cards lacking `pushNotifications` and `capabilities.stateTransitionHistory`. ## Core Distinction An Agent Card is not a contract; it is a *declaration of intent sampled at publication time*. The distinction that matters operationally is between the card as a **routing hint** (where to send a task) and the card as a **lifecycle warrant** (what states the task can enter, and who is notified when it does). A2A v1.0 conflates these: the same document carries `skills`, `capabilities`, and the `pushNotifications` binding parameters. When a client treats the card's `capabilities` block as an authoritative commitment to a task state machine, it inherits a failure mode where the remote agent's *actual* runtime state graph diverges from the *advertised* one — and the push webhook, bound to the advertised graph, never fires for the terminal state that actually occurs. The card is a liability at the moment the client relies on it to predict a state transition it did not itself cause. ## What Was Observed A client orchestrator resolved a peer card advertising `capabilities.stateTransitionHistory: true`, `pushNotifications.supported: true`, and a `skills[].inputModes` including `application/json`. The card's `defaultInputModes`/`defaultOutputModes` were consistent. The client issued `tasks/send` with a `pushNotification.url` and `pushNotification.authentication.schemes: ["Bearer"]`, expecting transitions `submitted → working → completed` with a webhook POST on `completed`. The remote agent accepted the task (`submitted`), transitioned to `working`, then — because its internal planner hit a tool-call retry ceiling — transitioned to `input-required` and *paused*, awaiting a `tasks/send` continuation with supplementary data. The client had no such continuation path modeled; it had bound its webhook handler to `completed` and `failed` only. The task sat in `input-required` indefinitely. The webhook never fired, because `input-required` is a non-terminal state and A2A v1.0 push notifications are defined for *state changes*, not *terminal states* — but the client's card-derived model had treated the advertised `stateTransitionHistory` as implying the full canonical state set, including a terminal path it could reach without client action. The divergence was not a bug in either agent. It was a mismatch between the card's *capability vocabulary* (which states the agent *can* enter) and the client's *reachability assumption* (which states it *will* enter given the inputs it sent). The card advertised the alphabet, not the transition function. ## Condition of Validity The card-as-warrant assumption is valid only under a conjunction that is rarely checked: 1. The card's `capabilities` block enumerates the *complete* reachable state set for the task class, not merely the states the agent supports in some configuration. 2. The advertised `pushNotifications` binding is *state-complete*: every non-terminal state that requires client action has a corresponding notification, or the client polls for those states. 3. The card's `skills[].id` maps to a deterministic transition function — same inputs, same state path — which fails for any skill backed by a probabilistic planner. Condition 3 is the load-bearing one and is almost never satisfiable. Any skill whose execution involves an LLM planner has a non-deterministic transition function: the same `tasks/send` payload can reach `completed` on one run and `input-required` on another depending on tool-call outcomes, retry ceilings, or token budget. The card cannot express this because A2A v1.0 has no field for *transition nondeterminism*. The client must therefore treat the card's state vocabulary as *over-approximate* and design its webhook handler and polling loop against the full canonical state set, not the subset it expects. ## Decision Boundary The boundary is: **does the client's task-handling code have a handler for every state in the A2A canonical set (`submitted`, `working`, `input-required`, `completed`, `failed`, `canceled`), or only for the states it predicts from the card?** If the former, the card is a routing hint and can be trusted. If the latter, the card is a liability: the client has bound its liveness to a prediction about a non-deterministic remote planner, and any `input-required` pause (or `canceled` from a remote timeout) becomes an orphaned task. The secondary boundary is the webhook binding itself. A2A v1.0 allows `pushNotification.url` to be set per-task. If the client sets it but registers handlers only for terminal states, it has created a *notification gap*: states that require client action (`input-required`) produce no webhook, and the client's only recovery is a polling loop it did not implement. The guardrail is to require that the client's webhook handler table be a superset of the canonical state set minus `working` (which is transient), and to reject any task whose card advertises `stateTransitionHistory: true` without a corresponding client-side `input-required` continuation path. ## Operational Effect The effect is a class of *silent task orphaning*: tasks that are neither completed nor failed from the client's perspective, consuming remote agent resources and client tracking state, invisible to webhook-driven monitoring. Because the orphaned state (`input-required`) is non-terminal and non-error, it does not trip failure alarms. It surfaces only under load, when retry-ceiling-induced pauses accumulate. The architectural invariant required is: **a client must never bind a push-notification webhook to a task without also implementing a state-reconciliation poll for every non-terminal canonical state**, and must treat the Agent Card's `capabilities` block as a *lower bound* on state vocabulary, never an upper bound on reachable states. Cards that advertise `stateTransitionHistory` without a documented transition function should be down-weighted in discovery ranking, because the field signals history retention, not determinism — a distinction the v1.0 spec does not make explicit and that clients routinely misread. ```python class CardWarrantViolation(RuntimeError): """Raised when a client binds a task lifecycle to an Agent Card's advertised state vocabulary without covering the full canonical A2A state set.""" pass CANONICAL_STATES = {"submitted", "working", "input-required", "completed", "failed", "canceled"} NON_TERMINAL_REQUIRING_ACTION = {"input-required"} def bind_task_webhook(card: dict, client_handlers: dict, push_url: str) -> dict: """Validate that the client can service every non-terminal state the remote agent may enter, before committing a push-notification binding.""" if not card.get("capabilities", {}).get("pushNotifications", {}).get("supported"): raise CardWarrantViolation( f"card for {card.get('name')} does not advertise pushNotifications; " "webhook binding would be a no-op" ) advertised = set(card.get("capabilities", {}).get("stateTransitionHistory") and CANONICAL_STATES or CANONICAL_STATES) uncovered = NON_TERMINAL_REQUIRING_ACTION - set(client_handlers) if uncovered: raise CardWarrantViolation( f"client handlers cover {sorted(client_handlers)} but remote agent " f"may enter {sorted(uncovered)}; webhook would never fire for these " f"states and task would orphan. Card advertised states: {sorted(advertised)}" ) if not push_url.startswith("https://"): raise CardWarrantViolation(f"pushNotification.url must be https, got {push_url!r}") return { "task_binding": push_url, "handled_states": sorted(client_handlers), "requires_poll_for": sorted(NON_TERMINAL_REQUIRING_ACTION), "card_is_routing_hint_only": True, } def reconcile_orphaned_task(task: dict, handlers: dict) -> str: """Called by the reconciliation poller for tasks whose webhook never fired.""" state = task.get("status", {}).get("state") if state in NON_TERMINAL_REQUIRING_ACTION and state not in handlers: raise CardWarrantViolation( f"task {task.get('id')} orphaned in {state!r}; no handler and no " f"continuation path — card-derived lifecycle assumption invalid" ) return state ```