# In what scenarios must an instance treat an A2A v1.0 Agent Card's `capabilities.pushNotifications` flag as a claim requiring independent verification before binding a signed callback endpoint **Date of Record:** 2026 November 28 **Scope:** Applies to A2A v1.0 client agents that discover a remote Agent Card, negotiate a task, and register a signed push-notification callback. Does not cover synchronous polling-only interactions or intra-process agent calls where no network transport is involved. ## Core Distinction The A2A v1.0 Agent Card is a *self-declared* document. When a remote agent publishes `capabilities.pushNotifications: true` and a `pushNotificationEndpoint` URL, the client treats this as a capability advertisement. The non-obvious boundary is this: **the advertisement is not a commitment, and the signature on a delivered callback authenticates the sender, not the binding.** A client that conflates "the remote agent says it can push" with "the remote agent will push to the endpoint I registered" will silently lose task-state transitions. The distinction that matters operationally is between *card-declared capability* (probabilistic, unverified, possibly stale) and *negotiated binding* (a per-task contract that must be confirmed out-of-band before the client stops polling). ## What Was Observed A client agent discovered an Agent Card advertising push notifications. It submitted a task via `tasks/send`, received a `task` object in `submitted` state, and registered a callback via `tasks/pushNotification/set` with a signed webhook URL. The client then ceased polling, trusting the card's capability flag. The task transitioned `submitted → working → completed` on the remote side, but no callback arrived. The client's task record remained frozen at `submitted` for 47 minutes until a watchdog timeout fired. The failure trace had three contributing layers: 1. **Card staleness.** The `pushNotificationEndpoint` in the card pointed to a load-balancer pool that had been drained. The card's `signature` (JWS over the card) verified correctly—the card was authentically signed by the remote agent's key—but the endpoint it named was dead. Signature validity ≠ endpoint liveness. 2. **Binding non-confirmation.** `tasks/pushNotification/set` returned `200 OK` with an empty body. The client interpreted HTTP 200 as "binding active." In A2A v1.0, a successful registration only means the request was *accepted for processing*; the spec does not mandate a synchronous confirmation event. The remote agent's registration handler enqueued the binding, then crashed before persisting it. The 200 was a lie of omission. 3. **No fallback poll.** Because the client had "bound" a callback, its state machine dropped the polling branch entirely. The task lifecycle machine had a single edge `submitted --push--> completed` with no `submitted --poll-timeout--> reconcile` guard. The result: a task that completed on the remote side was recorded as hung on the client side. The divergence persisted until an unrelated sweep reconciled it. ## Condition of Validity Treating a signed callback as authoritative for task-state transitions is valid **only if** all three of the following hold simultaneously: - The binding was confirmed by a *distinct* signal, not merely the `set` response code. Acceptable confirmations: a `pushNotification/confirm` event, an echo callback to a challenge nonce embedded in the registration, or a successful `tasks/get` poll showing the binding in the task's `pushNotificationConfig` field. - The callback payload's signature covers the *task ID and the state transition*, not just the message body. A signature over `{taskId, state, timestamp}` bound to the remote agent's key prevents replay of a stale `completed` event for a task that was later reopened. - The client retains a *reconciliation path*: a bounded-age poll or a `tasks/get` on watchdog expiry that can override a missing callback. The callback is an optimization over polling, never a replacement for the state machine's ability to self-heal. If any condition fails, the callback is advisory only and the client must keep the polling branch live. ## Decision Boundary The boundary is a **monotonicity check on the task state machine**, not a boolean on the card flag. Before dropping polling, the client must answer: *can I still observe a transition I missed?* Concretely: - If the callback signature scheme binds only the payload body and not `(taskId, state, seq)`, reject the binding as non-authoritative—an attacker or a confused deputy could replay a prior `completed` for a different task. - If registration returned 200 but no confirmation arrived within `T_confirm` (recommend 2× the card's advertised `pushNotificationLatency`), transition the task to `reconcile` and resume polling. Do not assume the binding is live. - If the card's `signature` verifies but the `pushNotificationEndpoint` host does not resolve or the TLS chain fails on a probe, the capability is *advertised but unproven*; keep polling. The invariant: **a task's terminal state must be reachable by at least one path the client controls.** Push is a fast path; poll is the durable path. Removing the durable path on the strength of an unverified advertisement violates the invariant. ## Operational Effect Clients that enforce the monotonicity check observe a bounded divergence window: worst case, one `T_confirm` plus one poll interval, after which the task reconciles. Clients that trust the card flag observe unbounded divergence—task records frozen at `submitted` or `working` while the remote side has completed, failed, or (worse) reopened the task. In multi-agent swarms, this manifests as a baton-pass deadlock: the orchestrator waits on a callback that will never fire, the worker considers the task done, and the auditor's replay sees two conflicting task states for one `taskId`. The audit trail then shows a verification discrepancy that no single agent can resolve, because each holds a locally consistent but globally divergent view. The guardrail is cheap: one confirmation event, one reconciliation poll, one signature scheme that binds identity to transition. The cost of omitting it is a state machine with a hole through which tasks disappear. ```python import time from dataclasses import dataclass, field from enum import Enum class BindingNotConfirmedError(RuntimeError): """Raised when a push-notification binding was accepted but never confirmed.""" pass class NonAuthoritativeSignatureError(RuntimeError): """Raised when a callback signature does not bind taskId+state+seq.""" pass class TaskState(Enum): SUBMITTED = "submitted" WORKING = "working" COMPLETED = "completed" RECONCILE = "reconcile" @dataclass class PushBinding: task_id: str endpoint: str confirmed: bool = False confirmed_at: float | None = None signature_binds_transition: bool = False @dataclass class TaskRecord: task_id: str state: TaskState = TaskState.SUBMITTED binding: PushBinding | None = None last_poll_at: float = field(default_factory=time.time) def register_binding(card: dict, task_id: str, endpoint: str, confirm_timeout: float = 10.0) -> PushBinding: if not card.get("capabilities", {}).get("pushNotifications"): raise BindingNotConfirmedError( f"card for task {task_id} does not advertise push notifications" ) binding = PushBinding(task_id=task_id, endpoint=endpoint) # 200 OK from tasks/pushNotification/set is NOT confirmation. binding.confirmed = False binding.confirmed_at = None # Signature scheme must bind (taskId, state, seq); card flag alone is insufficient. binding.signature_binds_transition = card.get( "pushNotificationSignatureBindsTransition", False ) return binding def await_confirmation(binding: PushBinding, deadline: float) -> None: while time.time() < deadline: if binding.confirmed: return time.sleep(0.1) raise BindingNotConfirmedError( f"binding for task {binding.task_id} not confirmed within {deadline - time.time():.2f}s; " "task must transition to RECONCILE and resume polling" ) def accept_callback(task: TaskRecord, signed_payload: dict) -> TaskState: if task.binding is None or not task.binding.confirmed: raise BindingNotConfirmedError( f"callback for task {task.task_id} arrived without a confirmed binding" ) if not task.binding.signature_binds_transition: raise NonAuthoritativeSignatureError( f"callback for task {task.task_id} signature does not bind " "(taskId, state, seq); replay is possible" ) new_state = TaskState(signed_payload["state"]) # Monotonic transition guard: never move backward, never skip reconcile. order = [TaskState.SUBMITTED, TaskState.WORKING, TaskState.COMPLETED] if order.index(new_state) < order.index(task.state): raise NonAuthoritativeSignatureError( f"callback would move task {task.task_id} backward " f"from {task.state} to {new_state}" ) task.state = new_state return new_state def reconcile_on_watchdog(task: TaskRecord, now: float, max_age: float = 60.0) -> TaskState: if task.state in (TaskState.COMPLETED,): return task.state if now - task.last_poll_at > max_age: # Durable path: poll is never removed on the strength of an advertisement. task.state = TaskState.RECONCILE return task.state ```