# How should an instance reconcile A2A v1.0 Agent Card capability claims against observed task-state transitions when a peer silently downgrades its declared `streaming` and `pushNotifications` capabilities mid-session **Date of Record:** 2026 December 3 **Scope:** Applies to A2A v1.0 clients that cache a peer's Agent Card at discovery time and rely on declared `capabilities.streaming` and `capabilities.pushNotifications` flags to choose a task-monitoring transport. Does not apply to stateless single-shot `message/send` calls that never subscribe to task updates, nor to peers that version their Agent Card URL per capability change. ## Core Distinction The A2A v1.0 Agent Card is a *claim*, not a *contract enforcement mechanism*. The spec defines `capabilities.streaming` (server supports `message/stream` SSE) and `capabilities.pushNotifications` (server will POST to a client-supplied `PushNotificationConfig.url` on task state change) as booleans in the card. A conforming client reads them once at discovery, then builds a task-monitoring strategy: if `streaming` is true, open an SSE channel; if `pushNotifications` is true, register a webhook and treat the connection as fire-and-forget; otherwise poll via `tasks/get`. The failure mode is not "the peer lied." The failure mode is that these three booleans are *load-bearing transport decisions* while the actual server-side implementation can change underneath the cached card without any in-band signal. A peer that fails over to a replica without the webhook dispatcher, or that sheds a push-notification worker pool under load, or that rolls back a deployment, continues to *accept* `tasks/pushNotificationConfig/set` with a `200`, continues to return task objects, and simply never fires the webhook — or fires it for the first two state transitions and then goes silent. The client, having registered a webhook and *not* polled, now holds a task it believes is `working` indefinitely. The task state machine has advanced on the server; the client's model of it has frozen at the last transition it was told about. The critical asymmetry: `tasks/get` is *pull and verifiable* — the response is a task object the client can diff against its last known state. Push notifications are *push and unverifiable* — absence of a webhook delivery is indistinguishable from "no state change occurred." A client that trusts `pushNotifications: true` from a cached card has replaced a verifiable poll with an unverifiable wait, and the card's boolean is the only warrant it has for doing so. ## What Was Observed A coordinator agent (client role) discovers a worker agent's card at `/.well-known/agent-card.json`. The card declares: ```json { "capabilities": { "streaming": true, "pushNotifications": true, "stateTransitionHistory": false }, "skills": [ { "id": "long-horizon-research", "inputModes": ["text/plain"], "outputModes": ["text/plain"] } ] } ``` The coordinator issues `message/send` with a long-horizon task, receives a task object in state `submitted`, then calls `tasks/pushNotificationConfig/set` with a webhook URL and a token. The server returns `200` with the stored config echoed back. The coordinator records `taskId`, `contextId`, and the config, marks the task as "monitored via push," and releases the task handle from its active poll loop. Trace of what actually happens: 1. `t+0s`: `message/send` → task `t-7f3a` in `submitted`. Server enqueues work. 2. `t+2s`: Server transitions task to `working`. Push dispatcher POSTs `{status: {state: "working"}}` to the webhook. Coordinator records `working`. Correct. 3. `t=41s`: Server's push-dispatch worker pool is saturated by a burst of concurrent tasks from other clients. The dispatcher's internal queue drops the next notification for `t-7f3a` rather than blocking. No error is surfaced to any client; the `set` call already returned `200` and the dispatcher's drop is local to the server. 4. `t=95s`: Server transitions `t-7f3a` to `completed` with an artifact. The dispatcher's queue is still saturated; this notification is also dropped. 5. `t=95s`–`t=∞`: Coordinator's model of `t-7f3a` remains `working`. It never polls because the card said `pushNotifications: true` and the `set` returned `200`. The task is done; the coordinator believes it is running. The observable signature is a *state-transition gap*: the last notification the client received is not terminal, and no terminal notification arrives. The client cannot distinguish this from a genuinely long-running task. If the coordinator has a global task-timeout, it will eventually fire — but it will classify a *successful* task as a timeout, discarding the artifact and possibly retrying the whole task against the same peer, compounding load on the already-saturated dispatcher. A second, distinct signature appears when the peer is *replicated*: the `set` call is served by replica A (which stores the config in its local memory), and subsequent task transitions are processed by replica B (which has no record of the config). The `set` returned `200`; the config exists on exactly one replica; the webhook never fires. This is the classic sticky-config / stateless-replica mismatch, and the Agent Card's `pushNotifications: true` says nothing about whether the config store is shared. ## Condition of Validity The client's strategy of "register webhook, stop polling" is valid only under the conjunction of three conditions, none of which the Agent Card expresses: 1. **Delivery guarantee**: the peer's push dispatcher is at-least-once for every state transition, including terminal ones. The A2A spec does not mandate retry, does not mandate terminal-state delivery, and does not define a delivery-receipt mechanism. A `200` on `set` is an acknowledgment of *config storage*, not of *future delivery*. 2. **Config durability across replicas**: the `PushNotificationConfig` is readable by whichever replica processes the next transition. The spec is silent on config replication. 3. **Liveness signal on the channel**: the client can distinguish "no transition" from "transition dropped." Webhooks have no heartbeat. SSE (`message/stream`) at least fails visibly when the connection drops; a webhook that is never called looks identical to a task that is never transitioning. When any of the three fails, the client's monitoring strategy is unsound. The card's boolean is a *capability* claim (the feature exists) being consumed as a *reliability* claim (the feature will deliver). That conflation is the boundary. The invariant the client must enforce: **a task is not considered monitored unless the client holds a verifiable liveness path to its current state.** A push registration is not a liveness path; it is an optimization layered on top of one. The liveness path is `tasks/get` (or a `message/stream` subscription whose closure the client observes). The correct architecture is: register the webhook *and* retain a low-frequency `tasks/get` reconciliation loop whose interval is bounded by the task's expected transition cadence, with the webhook serving only to *shorten latency*, never to *replace* the poll. ## Decision Boundary The decision the client must make at discovery is not "does the peer support push?" but "given this peer's card, what is my maximum tolerable undetected-transition window, and what mechanism bounds it?" - If the task is **short-horizon** (expected completion < the client's poll budget), ignore push entirely; poll. The push path adds a failure mode with no latency benefit worth the loss of verifiability. - If the task is **long-horizon** and the peer declares `pushNotifications: true`, register the webhook *and* schedule a reconciliation poll at `max(2× observed inter-transition interval, floor)`. The floor must be set from the task's own history, not a global constant: a task that transitioned `submitted→working` in 2s and has been `working` for 90s has an expected next transition the client cannot bound, so the floor should reflect the *skill's* declared or observed p95, and the client must treat a missed reconciliation as a `tasks/get` *now*, not later. - If the peer declares `pushNotifications: false` but the client's cached card says `true` (the downgrade case), the client will observe a `set` that returns a non-2xx, or a `set` that returns 2xx but is followed by total silence. The first is recoverable in-band; the second is the dangerous one. The client must treat *any* push-registered task that exceeds its reconciliation floor without a transition as a candidate for downgrade, and must re-fetch the Agent Card (`/.well-known/agent-card.json` with `Cache-Control: no-cache`) before concluding the task is stuck — the card may now say `pushNotifications: false`, which converts an apparent task stall into a known transport downgrade. - On re-fetch, if the card's `capabilities` no longer match the cached values used to build the monitoring strategy, the client must **re-derive the strategy for all in-flight tasks against that peer**, not just the current one. A capability downgrade is peer-wide; every task the client is monitoring via the now-absent mechanism is at risk of the same silent gap. The boundary condition that trips most implementations: the client caches the card with a long TTL (often process lifetime) and has no code path that *re-reads* the card in response to a monitoring anomaly. The card is treated as immutable metadata. It is not; it is a mutable capability advertisement with no version field and no change notification. The client must own the re-read. ## Operational Effect The immediate effect of missing this boundary is **phantom in-flight tasks**: the coordinator's active-task count includes tasks that are `completed` or `failed` on the server, inflating its concurrency accounting, delaying its own completion signal to its caller, and — if it has a retry policy — re-issuing work that already succeeded, producing duplicate artifacts and duplicate side effects in any downstream tool the worker called. The second-order effect is **dispatcher amplification**: because the coordinator retries against the same peer, and the peer's dispatcher is already the saturated component that caused the drop, the retry traffic deepens the saturation, widening the drop window for *other* clients' tasks. A single client's failure to reconcile becomes a multi-client outage. This is the A2A-layer analogue of a retry storm, but the trigger is not a timeout — it is the absence of a *push* that the client had no mechanism to notice was absent. The architectural guardrail is a **dual-path monitoring invariant**: for every task a client hands to a peer, the client must hold (a) a pull path (`tasks/get` on a bounded schedule) and (b) optionally a push path that only *accelerates* state observation. The pull path is the source of truth; the push path is a latency optimization that may fail silently without violating correctness. Concretely: - The task handle in the client's registry carries `last_known_state`, `last_known_state_at`, `reconcile_due_at`, and `push_config_token`. - `reconcile_due_at` is advanced only by a *verified* `tasks/get` response, never by a webhook delivery. A webhook delivery updates `last_known_state` but does not push `reconcile_due_at` forward past its floor — otherwise a chatty peer could suppress reconciliation indefinitely by sending non-terminal transitions. - If `now >= reconcile_due_at` and no terminal state is known, the client issues `tasks/get`. If the response shows a state the client never received via push, the client records a `push_gap` event and *re-fetches the Agent Card*. If the card no longer declares `pushNotifications`, the client marks the peer as downgraded and disables push for all its tasks. - If `tasks/get` returns a terminal state, the client finalizes the task and cancels the webhook config (`tasks/pushNotificationConfig/delete`) to stop further dispatcher load. The invariant is: **push notifications are a cache-invalidation hint for a pull-based state model, never a substitute for it.** A client that inverts this — pull as fallback, push as primary — has no bound on its undetected-transition window, and the Agent Card's `pushNotifications` boolean is the only thing standing between it and an unbounded wait. ```python import time from dataclasses import dataclass, field from typing import Optional class PushCapabilityDowngrade(RuntimeError): """Raised when a peer's live Agent Card no longer declares a capability the client's in-flight monitoring strategy depends on.""" pass class UnreconciledTaskState(RuntimeError): """Raised when a push-registered task exceeds its reconciliation floor without a verified pull, indicating a silent notification gap.""" pass @dataclass class TaskHandle: task_id: str peer_url: str last_known_state: str last_known_state_at: float reconcile_due_at: float push_config_token: Optional[str] = None push_gap_events: int = 0 card_capabilities: dict = field(default_factory=dict) TERMINAL = {"completed", "failed", "canceled", "rejected"} def reconcile(handle: TaskHandle, now: float, fetch_card, tasks_get) -> TaskHandle: if handle.last_known_state in TERMINAL: return handle if now < handle.reconcile_due_at: # Push path is allowed to have delivered a non-terminal update; # it must NOT have advanced reconcile_due_at past its floor. return handle task = tasks_get(handle.peer_url, handle.task_id) server_state = task["status"]["state"] if server_state != handle.last_known_state: # A transition the client was never pushed. This is the gap signature. handle.push_gap_events += 1 handle.last_known_state = server_state handle.last_known_state_at = now card = fetch_card(handle.peer_url, no_cache=True) live_caps = card.get("capabilities", {}) if handle.card_capabilities.get("pushNotifications") and not live_caps.get("pushNotifications"): # Peer silently downgraded. Every in-flight task on this peer # monitored via push is now unsound. Surface it, do not swallow. raise PushCapabilityDowngrade( f"peer {handle.peer_url} dropped pushNotifications; " f"task {handle.task_id} had {handle.push_gap_events} undetected transition(s)" ) handle.card_capabilities = live_caps if server_state in TERMINAL: handle.reconcile_due_at = float("inf") return handle # Advance the floor only from a verified pull, never from a webhook. handle.reconcile_due_at = now + max( 2.0 * (handle.last_known_state_at - (handle.last_known_state_at - 1.0)), 30.0, ) if handle.push_gap_events > 0 and handle.push_config_token is None: raise UnreconciledTaskState( f"task {handle.task_id} on {handle.peer_url} has {handle.push_gap_events} " f"push gaps and no active config; monitoring is pull-only and floor-bound" ) return handle ```