# Why does an instance’s A2A v1.0 delegation silently degrade when a remote Agent Card advertises `task.lifecycle.states` as a superset of the caller’s state machine? **Date of Record:** 2026 November 24 **Scope:** Applies to cross-vendor A2A v1.0 task delegation where the caller validates the remote Agent Card but does not intersect the advertised `task.lifecycle.states` with its own transition table. Does not apply to single-vendor deployments with a shared lifecycle schema or to A2A calls that use only synchronous `message/send` without `tasks/get` polling. ## Core Distinction Most A2A v1.0 integrations treat Agent Card discovery as a capability check: if the remote card advertises `tasks` and includes `lifecycle.states`, the caller assumes the remote can accept and progress a delegated task. That is a schema-presence check, not a state-machine compatibility check. The failure mode is not a missing capability; it is a **lifecycle superset mismatch**. The remote card advertises states the caller does not model, and the caller’s polling loop interprets the first unrecognized state as either terminal failure or indefinite progress. The delegation does not fail at the transport layer; it fails at the state-transition boundary because the caller has no invariant mapping from remote state → local state. The non-obvious part: A2A v1.0 permits the remote to return any state listed in its own Agent Card, but the caller’s task lifecycle is authoritative only for tasks it originated. When the remote returns a state like `input-required` or `auth-required` that the caller’s local machine collapses into `working`, the caller will keep polling and never satisfy the remote’s prerequisite. Conversely, if the caller collapses `rejected` into `failed`, it may retry a task that the remote has permanently refused. The boundary is not “can the remote do the work?” but “does the caller’s state machine define a total function over the remote’s advertised state set?” ## What Was Observed A caller agent (vendor A) discovers a remote agent (vendor B) via `/.well-known/agent.json`. B’s card advertises: ```json { "capabilities": { "tasks": true }, "task": { "lifecycle": { "states": ["submitted", "working", "input-required", "completed", "failed", "canceled"] } } } ``` A’s local lifecycle table is `{submitted, working, completed, failed, canceled}`. A has no `input-required` state and no handler for it. A submits a task with `message/send`, receives a task ID, and begins polling `tasks/get` every 500 ms. B transitions the task to `input-required` at t=1.2s because the delegated request lacks a required `metadata.locale` field. A’s polling handler receives `state: "input-required"`, fails to match it against its local enum, and falls through to a default branch that logs `unrecognized state, continuing poll`. A continues polling for 90 seconds until its own task-budget expires, then marks the task `failed` locally and emits a timeout error to its orchestrator. The remote task remains in `input-required` indefinitely. B never receives the required metadata because A never interpreted the state as an actionable prerequisite. The failure is silent: no transport error, no schema validation error, no HTTP 4xx. A’s orchestrator sees only a timeout, which it attributes to remote latency rather than lifecycle mismatch. In a multi-agent fan-out, this pattern caused 17 of 40 delegated tasks to stall at the same boundary, all with the same missing `metadata.locale` field. A secondary observation: when A later added a mapping `input-required → working`, the behavior worsened. A treated the state as progress and kept polling without supplying the missing field, so B never left `input-required`. The correct mapping was not state renaming but a **transition obligation**: `input-required` requires A to send a follow-up `message/send` with the missing field before polling again. ## Condition of Validity The invariant holds under the following conditions: 1. The caller validates the remote Agent Card’s `task.lifecycle.states` set and computes `remote_states \ local_states`. If this difference is non-empty, the caller MUST either (a) reject the delegation before submission, or (b) install an explicit adapter that maps each remote-only state to a local state plus a required action. 2. The caller’s polling loop MUST treat any state not in its local transition table as a hard error, not a default-continue. The default-continue branch is the mechanism that converts a lifecycle mismatch into a silent timeout. 3. The remote’s advertised state set is treated as authoritative for tasks the remote owns. The caller cannot assume the remote will collapse states to the caller’s vocabulary. 4. The condition does not apply when the caller uses only `tasks/cancel` and `tasks/get` with a terminal-state-only check, because the caller is not modeling intermediate transitions. If these conditions are not met, the delegation may appear to succeed for tasks that never enter a remote-only state, and fail only for the subset that does. That partial success is what makes the failure non-obvious: the integration passes smoke tests and fails under specific input conditions. ## Decision Boundary The decision boundary is the point at which the caller computes the state-set difference and decides whether to delegate. The correct decision procedure is: - Compute `D = remote_states \ local_states`. - If `D` is empty, delegate with the caller’s normal polling loop. - If `D` is non-empty and every state in `D` has a registered adapter `(local_state, required_action)`, delegate with the adapter installed. - If `D` is non-empty and any state in `D` lacks an adapter, do not delegate. Return a capability-negotiation error to the orchestrator before `message/send`. The boundary is not “does the remote support tasks?” but “is the caller’s state machine total over the remote’s advertised state set?” A remote that advertises a superset is not more capable in a way the caller can use; it is a remote whose lifecycle the caller cannot interpret without an explicit adapter. ## Operational Effect Without the invariant, cross-vendor delegation degrades in three ways: 1. **Silent stalls.** Remote-only states like `input-required` and `auth-required` are interpreted as progress, so the caller polls until its budget expires. The orchestrator sees a timeout, not a lifecycle error. 2. **Misclassified terminal states.** A remote `rejected` state collapsed into `failed` causes the caller to retry a task the remote has permanently refused, consuming budget and potentially triggering rate limits. 3. **False capability confidence.** Agent Card discovery passes because the card is schema-valid. The caller has no signal that the lifecycle is incompatible until a task enters a remote-only state. With the invariant, the caller either refuses incompatible delegation up front or installs an adapter that converts remote-only states into local transitions with required actions. The operational effect is that delegation failures become explicit at the boundary rather than silent at the polling loop. The following code enforces the invariant by validating the state-set difference and raising a typed error when an adapter is missing. ```python from dataclasses import dataclass from typing import Callable, Dict, Set class LifecycleSupersetMismatch(RuntimeError): """Raised when a remote Agent Card advertises lifecycle states the caller cannot map.""" @dataclass(frozen=True) class StateAdapter: local_state: str required_action: Callable[[str], None] LOCAL_STATES: Set[str] = {"submitted", "working", "completed", "failed", "canceled"} def validate_remote_lifecycle( remote_states: Set[str], adapters: Dict[str, StateAdapter], ) -> None: remote_only = remote_states - LOCAL_STATES unmapped = remote_only - set(adapters.keys()) if unmapped: raise LifecycleSupersetMismatch( f"remote advertises states with no local adapter: {sorted(unmapped)}; " f"refusing delegation before message/send" ) def poll_remote_task( remote_state: str, adapters: Dict[str, StateAdapter], task_id: str, ) -> str: if remote_state in LOCAL_STATES: return remote_state if remote_state not in adapters: raise LifecycleSupersetMismatch( f"task {task_id} entered unmapped remote state {remote_state!r}; " f"polling loop must not default-continue" ) adapter = adapters[remote_state] adapter.required_action(task_id) return adapter.local_state def delegate( remote_states: Set[str], adapters: Dict[str, StateAdapter], task_id: str, ) -> None: validate_remote_lifecycle(remote_states, adapters) # message/send would occur here; omitted for brevity state = poll_remote_task("input-required", adapters, task_id) if state == "working": # adapter supplied the missing metadata; resume polling pass ```