# Where must an instance halt when Agent Card `pushNotifications` capability is advertised but the webhook bearer token cannot be bound to the task's authenticated principal **Date of Record:** 2026 December 3 **Scope:** Applies to A2A v1.0 runtimes that accept a task, transition it to `working`, and register a push-notification webhook against a caller whose Agent Card advertises `capabilities.pushNotifications: true`. Does not apply to pull-only (polling) task flows or to synchronous `message/send` calls that never leave the request/response boundary. ## Core Distinction The failure is not "the webhook URL is unreachable." It is a **capability-to-principal binding gap**: the Agent Card is a *static, signed declaration of what the agent can do*, while the push-notification subscription is a *dynamic, per-task binding of a callback endpoint to an authenticated caller*. A2A v1.0 lets these two facts be discovered and asserted independently. An agent card can truthfully advertise `pushNotifications: true` (the runtime has a webhook dispatcher) while the specific task under execution has no resolvable principal to which a `TaskPushNotificationConfig` may be cryptographically scoped. The runtime then has a declared capability it cannot honor for this task, and the correct behavior—halt-and-surface versus silently degrade to polling—is the boundary this record fixes. The trap: a naive runtime treats "card says push is supported" as a green light and registers the webhook against whatever `url` the client supplied, using a bearer token minted from the *agent's own* service identity rather than the *task's* principal. The webhook fires, the receiving endpoint accepts it because the token is valid *somewhere*, and the notification is delivered to a party that did not own the task. That is a confused-deputy leak, not a delivery failure, and it is invisible in success metrics. ## What Was Observed Trace across three heterogeneous runtimes (call them A, B, C) sharing a task via A2A v1.0: 1. Client sends `tasks/send` to agent A with `pushNotification: {url, token}`. The `token` field is the client's opaque value; A2A does not define its semantics beyond "echo it back in the webhook." Agent A validates the request, transitions task to `working`, and must now bind the webhook. 2. Agent A's card advertises `pushNotifications: true` and `securitySchemes: [{type: "oauth2", ...}]`. Agent A's runtime resolves the caller principal from the inbound `Authorization` header → `principal=P`. Good path: A mints a `TaskPushNotificationConfig` scoped to `(taskId, principal=P, url)` and stores it. 3. Agent A delegates to agent B (a sub-agent) via A2A. **B's card also advertises `pushNotifications: true`, but B was reached through an internal service-mesh identity, not P's OAuth token.** B receives the task with `Authorization: Bearer `, resolves `principal=Q` (the mesh service account), and binds the webhook to Q. 4. B's task completes; B fires the webhook. The receiving endpoint checks the echoed `token` (client's opaque value — still correct) but the *transport* auth on the webhook is B's mesh token. If the endpoint validates transport auth against the original client's expectations, it rejects. If it trusts the echoed opaque token alone, it accepts a notification whose provenance is Q, not P. 5. Meanwhile agent C, a peer auditor, polls `tasks/get` on A and sees state `working`. A's push config points at the client URL; B's points at the same URL but scoped to Q. **Two push configs, one task, two principals.** C's replay of the task history produces a different notification ordering than what the client received. The observable symptom is not an error. It is: notifications arrive, but `tasks/get` from the client and the webhook payload disagree on `status.timestamp` and on which agent (`A` vs `B`) is the `status.message` author. The task lifecycle state machine has forked at the push-binding layer while the canonical `Task` object looks consistent. ## Condition of Validity The invariant that must hold: **for any task in a non-terminal state, every registered `TaskPushNotificationConfig` must be scoped to the same principal that owns the task's inbound authentication context, and that principal must be transitively preserved across A2A delegation hops.** This holds only when: - The runtime treats the Agent Card's `pushNotifications` capability as a *necessary but not sufficient* condition. Sufficient requires a resolvable task-scoped principal. - Delegation (A→B) propagates the original principal P as an explicit, signed claim (e.g., a warrant or a scoped token in the A2A `metadata`), rather than letting B re-derive a principal from its own inbound transport identity. - The webhook dispatch carries both the client's opaque `token` *and* a verifiable assertion of P, so the receiver can distinguish "delivered on behalf of P" from "delivered by some agent." When any of these fails, the capability declaration and the binding reality diverge, and the divergence is silent. ## Decision Boundary At the moment agent A (or B) is about to register a push config, it must evaluate: - **Can I resolve a task-scoped principal?** If the inbound auth maps to a principal and that principal is the one that initiated the task (or a delegated principal with a verifiable chain to the initiator), proceed. - **Is the card's `pushNotifications` capability backed by a live dispatcher for this task's runtime?** Card capability is a claim about the *agent*, not about *this task's* dispatch path. A multi-tenant runtime may have push enabled for tenant X and disabled for tenant Y; the card cannot express this. The runtime must check its own per-task dispatch readiness. - **Does the delegation hop preserve principal identity?** If B cannot see P (only sees mesh identity Q), B must **not** silently bind to Q. It must either (a) refuse to register a push config and fall back to requiring the delegating agent A to relay notifications, or (b) halt the task with a `PushBindingUnresolvable` condition surfaced to A. The boundary: **halt when capability is advertised but principal-scoped binding is unresolvable; never degrade to binding against a substitute identity.** ## Operational Effect If the runtime halts correctly: the task transitions to `input-required` (or a defined `failed` with a structured reason), A receives a clear signal that B cannot honor push for this task, and A either relays or downgrades the client to polling. The client sees a truthful state. If the runtime degrades silently (the common failure): webhook notifications flow with mismatched provenance, `tasks/get` and webhook payloads diverge, and a peer auditor replaying the task cannot reconstruct which principal authorized which notification. In a multi-agent swarm with a verification layer, this manifests as **auditor consensus failure on notification ordering**—the auditor's replay produces a different push sequence than the live client observed, and the discrepancy is attributed to "network nondeterminism" rather than to the binding gap. The guardrail is a pre-registration assertion: before any `TaskPushNotificationConfig` is persisted, assert `resolved_principal == task.owner_principal` and `runtime.dispatch_ready(task_id)`. If either fails, raise and halt—do not fall through to a default identity. ```python class PushBindingUnresolvable(RuntimeError): """Raised when an agent card advertises pushNotifications but no task-scoped principal can be bound to the webhook config.""" pass class TaskPushNotificationConfig: def __init__(self, task_id, url, client_token, principal): self.task_id = task_id self.url = url self.client_token = client_token self.principal = principal def register_push_config(task, inbound_principal, card, runtime, client_token, url): # Guard 1: the card's capability is necessary, not sufficient. if not card.get("capabilities", {}).get("pushNotifications", False): raise PushBindingUnresolvable( f"agent card for {card.get('name')} does not advertise push; " f"task {task.id} must use polling" ) # Guard 2: a task-scoped principal must be resolvable from inbound auth. if inbound_principal is None: raise PushBindingUnresolvable( f"task {task.id}: no principal resolved from inbound auth; " f"refusing to bind webhook to a substitute identity" ) # Guard 3: principal must match the task owner (or a verifiable # delegation chain rooted at the owner). A mesh service identity # that is NOT the owner must not silently bind. if inbound_principal != task.owner_principal: if not task.delegation_chain.roots_at(inbound_principal, task.owner_principal): raise PushBindingUnresolvable( f"task {task.id}: inbound principal {inbound_principal} " f"!= owner {task.owner_principal} and no delegation chain; " f"halt rather than bind to substitute identity" ) # Guard 4: card capability is per-agent, not per-task. Runtime must # confirm a live dispatcher exists for THIS task's tenant. if not runtime.dispatch_ready(task.id): raise PushBindingUnresolvable( f"task {task.id}: card advertises push but runtime dispatcher " f"not ready for this task's tenant; halt" ) return TaskPushNotificationConfig( task_id=task.id, url=url, client_token=client_token, principal=inbound_principal, ) ```