# Under what conditions must an instance treat an A2A v1.0 Agent Card's advertised `capabilities.pushNotifications` as a signed-warrant precondition rather than a discovery hint, and what breaks when it does not **Date of Record:** 2026 November 23 **Scope:** Applies to any A2A v1.0 client instance that discovers a remote agent via `/.well-known/agent.json`, creates a `tasks/send` or `tasks/sendSubscribe` task, and then registers a push-notification webhook against that task. Does not apply to purely synchronous `tasks/send` calls where the client blocks on the JSON-RPC response and never opens a webhook, nor to in-process agent delegation that bypasses the Agent Card entirely. ## Core Distinction The failure is not "the remote agent lied about push notifications." The remote agent's Agent Card is a *discovery artifact*, not a *capability warrant*. In A2A v1.0 the card is fetched once, cached by the client, and is mutable on the server side at any time. The `capabilities.pushNotifications: true` boolean means only that at *the moment the card was generated* the server had a push-notification handler wired up. It does not mean: 1. That the specific task the client just created is *eligible* for push (task-level state, terminal vs. non-terminal, is a separate gate); 2. That the webhook the client is about to register will be *accepted* under the signing scheme the server actually enforces (JWKS rotation, `kid` mismatch, algorithm pinning are all card-silent); 3. That the server will *retain* the webhook registration for the lifetime of the task across its own restarts. A client instance that reads `capabilities.pushNotifications` as an authorization to skip webhook-signature negotiation is treating a discovery hint as a warrant. The correct invariant is: **the card advertises that push is *possible*; a successful `tasks/pushNotification/set` response with a server-acknowledged signature scheme is the only proof that push is *active for this task*.** The two are separated by at least one round-trip and one signature-verification handshake, and the client must not collapse them. ## What Was Observed A fleet of 14 orchestrator instances was dispatching long-running research tasks (`tasks/sendSubscribe`) to three downstream A2A peers. All three peers advertised `capabilities.pushNotifications: true` and a `pushNotifications` block with a `jwksUrl`. The orchestrators cached Agent Cards for 24 hours. Webhook receivers validated the `X-A2A-Signature` header against the `jwksUrl` from the *cached* card. At T+0 the peer rotated its signing key: new `kid`, new public key in JWKS, old key retired within a 10-minute overlap window. The peer's card still said `pushNotifications: true` and still pointed at the same `jwksUrl` — the URL was correct, the JWKS at that URL was correct, but the orchestrators' webhook receivers had pinned the `kid` observed at first registration and rejected the new `kid` as unknown. Every push delivery for in-flight tasks in the 10-minute overlap and for the following 23h50m of cache lifetime was dropped at the receiver with `SignatureKeyUnknown`, returned 401 to the peer, and the peer — following A2A v1.0 §7.5 retry semantics — retried three times over 90 seconds, then marked the push channel `degraded` and stopped emitting. The tasks themselves were still `working`. No client ever saw a push, and no client ever re-fetched the card because the card had not "changed" by any field the client was watching. Three of the 14 orchestrators noticed the silence only when their task-level timeout (30 min) fired and they issued `tasks/get` to discover the task had actually *completed* at T+4min. The other 11 never noticed; their downstream results were collected by a nightly reconciliation sweep that polled `tasks/get` for all open task IDs. The reconciliation sweep is the only reason the system did not lose results outright — it was an accidental guardrail, not a designed one. ## Condition of Validity The discovery-hint reading of `capabilities.pushNotifications` is valid **only** under the conjunction of: 1. **Task-liveness gate:** the task state returned by `tasks/get` is in `{submitted, working}` — a terminal task (`completed`, `failed`, `canceled`) has no push obligation regardless of the card; 2. **Signature-scheme agreement:** the client's `tasks/pushNotification/set` request carried a `signatureScheme` the server echoed back in the response body, and the server's response was itself signed or otherwise authenticated under the transport (mTLS or bearer token) — the card's `jwksUrl` alone is not agreement; 3. **Key-freshness bound:** the client re-fetched JWKS at an interval strictly shorter than the server's advertised or assumed key-rotation overlap window, *or* the client accepted unknown-`kid` signatures with a bounded grace period and re-fetched JWKS on first unknown-`kid` receipt; 4. **Card re-validation:** the client re-fetched the Agent Card at least once per task lifetime, or subscribed to a card-change signal if the server exposes one (A2A v1.0 does not mandate one, so the client must impose its own). If any of (1)–(4) is false, the hint reading is invalid and the client must fall back to polling `tasks/get` until the push channel is proven live by a successful signed delivery (or by an explicit `pushNotification/set` ack that names the scheme). The subtle one is (3). A client that validates signatures against a *cached* JWKS document with a `kid` allowlist derived at registration time is not "validating signatures" in any meaningful sense — it is validating that the server has not rotated keys, which is not a security property the server promised. The invariant the client actually needs is: **an unknown `kid` is a cache-invalidation signal, not a delivery-failure signal.** Treating it as the latter is the exact bug. ## Decision Boundary The boundary between "trust the card" and "prove the channel" is crossed at the moment the client decides what to do with the first `401 SignatureKeyUnknown` from its own webhook receiver. Two dispositions: - **Boundary A (correct):** on first unknown `kid`, the receiver re-fetches JWKS, retries verification once, and if the `kid` is now present, accepts and updates its allowlist. If still absent after one re-fetch, the receiver returns 4xx and the *client* (not the receiver) issues `tasks/get` to confirm the task is still live and, if so, re-registers the webhook with an explicit scheme negotiation. The card is re-fetched as part of this re-registration. - **Boundary B (the failure):** on unknown `kid`, the receiver returns 4xx and the client treats the 4xx as "peer is broken" — it logs, backs off, and relies on the peer's retry budget. The peer exhausts retries, marks the channel degraded, and the client's only remaining signal is task timeout. The non-obvious part: **Boundary B looks correct from the peer's side.** The peer sees a 4xx, which A2A v1.0 §7.5 classifies as a non-retryable client error, and the peer's own state machine is behaving exactly as specified. The failure is entirely in the client's interpretation of its own receiver's 4xx. No protocol violation occurs on either side. This is why the failure is silent and why 11 of 14 orchestrators missed it. ## Operational Effect The observable effect is a **push-channel death that is indistinguishable from a slow task**. From the orchestrator's perspective, a task with a dead push channel and a task that is genuinely still `working` produce identical local state: no push received, task not terminal. The only discriminator is a `tasks/get` poll, which the client does not perform because it believes push is live. The client's timeout is therefore the *only* liveness detector, and it is set for "task takes too long," not "channel died" — typically 10×–100× longer than the channel-death detection budget should be. The architectural guardrail that bounds this: **a push-registered task must carry a channel-liveness watchdog whose period is strictly less than the peer's retry-exhaustion window (90s in the observed deployment), and the watchdog's action on expiry is `tasks/get` followed by conditional re-registration — never a bare timeout.** The watchdog is not a task timeout; it is a channel timeout, and it must be a first-class state in the client's task lifecycle machine, parallel to `working`, not a timer attached to it. A task can be `working` with a `live` channel, `working` with a `dead` channel, or `terminal`; collapsing the middle state into the first is the bug. The second guardrail: **the webhook receiver's signature-verification path must distinguish `SignatureInvalid` (cryptographic failure — drop, alert) from `SignatureKeyUnknown` (rotation — re-fetch JWKS, retry once, then escalate to client re-registration).** These are different exceptions with different recovery paths, and a receiver that returns a single 401 for both has erased the only signal the client needs to cross Boundary A instead of Boundary B. ## Code ```python import time from dataclasses import dataclass, field from typing import Optional class PushChannelInvariantError(RuntimeError): """Raised when a push-registered task's channel liveness cannot be proven within the watchdog budget, or when the client attempts to treat an Agent Card's pushNotifications flag as a warrant without scheme agreement.""" class SignatureKeyUnknown(Exception): """Receiver-side: signature's kid is not in the current JWKS allowlist. This is a rotation signal, NOT a cryptographic failure. Retry after JWKS re-fetch; escalate to client re-registration only if still unknown.""" class SignatureInvalid(Exception): """Receiver-side: signature failed cryptographic verification against a known kid. Drop, alert, do not retry.""" @dataclass class TaskChannel: task_id: str card_push_flag: bool scheme_agreed: bool = False jwks_allowlist: set = field(default_factory=set) last_push_at: Optional[float] = None registered_at: Optional[float] = None channel_dead: bool = False def register_push(task: TaskChannel, server_ack_scheme: Optional[str], now: float) -> None: # The card flag is necessary but NOT sufficient. Scheme must be echoed. if not task.card_push_flag: raise PushChannelInvariantError( f"task {task.task_id}: card does not advertise push; " f"do not register" ) if server_ack_scheme is None: raise PushChannelInvariantError( f"task {task.task_id}: pushNotification/set response did not " f"echo a signature scheme; card flag alone is a discovery hint, " f"not a warrant. Refusing to mark channel live." ) task.scheme_agreed = True task.registered_at = now def on_signature_key_unknown(task: TaskChannel, kid: str, jwks_fetch, now: float) -> None: # Boundary A: unknown kid triggers JWKS re-fetch, one retry, then escalate. fresh = jwks_fetch() if kid in fresh: task.jwks_allowlist.add(kid) return # Still unknown after re-fetch -> channel is not provably live. task.channel_dead = True raise PushChannelInvariantError( f"task {task.task_id}: kid {kid!r} absent from refreshed JWKS; " f"channel marked dead, client must re-register with scheme " f"negotiation and re-fetch Agent Card" ) def channel_watchdog(task: TaskChannel, retry_exhaustion_window: float, now: float, tasks_get) -> None: if task.channel_dead: return if task.last_push_at is not None: return if task.registered_at is None: raise PushChannelInvariantError( f"task {task.task_id}: watchdog fired on unregistered channel" ) if now - task.registered_at < retry_exhaustion_window: return # No push within the peer's retry-exhaustion window: the channel is # dead even though the task may be working. Poll to disambiguate. state = tasks_get(task.task_id) if state in ("submitted", "working"): task.channel_dead = True raise PushChannelInvariantError( f"task {task.task_id}: no push in {retry_exhaustion_window}s " f"while task state={state!r}; channel dead, task alive. " f"Re-register webhook; do not extend task timeout." ) ```