# What happens when an instance accepts a push-notification binding before its Agent Card is re-signed **Date of Record:** 2026 November 25 **Scope:** Applies to A2A v1.0 servers that register push-notification webhook bindings against a task whose `AgentCard` was mutated (skill set, `pushNotifications` capability flags, or authentication schemes) after the card was first published. Does not apply to pull-only task polling, nor to servers that treat the card as immutable per process lifetime. ## Core Distinction The failure is not "webhook delivery failed." It is a **binding/authority skew**: the push-notification binding is established against a *task-scoped* authorization decision derived from the *Agent Card version that was live at `tasks/send` time*, while the card itself is a separately-versioned artifact that a client may re-fetch, re-verify, and re-trust between the send and the terminal-state callback. A2A v1.0 specifies the card as the discovery contract and the task lifecycle as a state machine, but it does not pin the card version into the task record. So a task can legally transition `submitted → working → completed` while the card that justified its `pushNotifications` capability has been superseded by a card that *removes* that capability or *narrows* the allowed webhook origins. The binding remains live; the authority that created it no longer exists. This is the boundary: **capability at bind-time ≠ capability at notify-time**, and the spec leaves the reconciliation to the implementer. ## What Was Observed A card was published with `capabilities.pushNotifications: true` and `skills[].security` permitting an `apiKey` scheme scoped to `https://hooks.partner.example`. A client issued `tasks/send` with a `pushNotificationConfig` pointing at `https://hooks.partner.example/a2a/task-{id}`. The server minted a `taskId`, stored the binding, returned `submitted`. Six minutes later, during `working`, the operator rotated the card: `pushNotifications` was gated behind an additional `oauth2` scheme and the allowed origin was tightened to `https://hooks.partner.example/v2/`. The card was re-signed and republished. The task then reached `completed`. The server's dispatcher, reading the *stored binding*, POSTed the terminal `TaskStatusUpdateEvent` to the old `/a2a/` path. The partner's ingress, having re-fetched and cached the new card, rejected the request with `403` because the origin no longer matched the card's `security` block — but the server's delivery layer treated `403` as a transient and retried with exponential backoff for 40 minutes. During that window the task sat at `completed` in the server's store while the partner's client, which had never received the callback, re-issued `tasks/get` and observed `completed` — a *correct* terminal state delivered through a *stale authority path*. The observable symptom was a verification mismatch: the partner's audit log showed a completed task with no corresponding signed notification, and the server's audit log showed 47 delivery attempts against a binding the current card forbade. The non-obvious part: **nothing in the lifecycle state machine transitioned incorrectly.** `completed` was the right state. The bug lived entirely in the gap between the card's version and the binding's provenance. ## Condition of Validity The invariant that must hold is: *a push-notification binding is valid only while the card version under which it was created is still the card version the server will present for re-verification.* Formally, for a binding `B(task, url, authScheme)` created at card version `C_v`, the dispatcher must refuse to deliver if the currently published card `C_now` has `C_now.version != C_v` **and** the delta touches `capabilities.pushNotifications`, `security`, or the origin allowlist. If the delta is orthogonal (e.g., a new skill was added), delivery may proceed — the binding's authority is unchanged. The condition is therefore not "card changed" but "card changed in an authority-bearing field relative to the binding." This is valid only when the server can (a) record `C_v` into the task record at `tasks/send`, and (b) re-evaluate the binding against `C_now` at dispatch time rather than trusting the stored binding. Servers that treat the binding as an immutable snapshot fail this condition by construction. ## Decision Boundary At dispatch time, before every POST, the server must compute `authority_delta = diff(C_now, C_v)` restricted to `{pushNotifications, security, allowedOrigins}`. The decision is three-valued: - `authority_delta == ∅` → deliver, retry on transient as normal. - `authority_delta` non-empty **and** the binding's `url`/`authScheme` still satisfies `C_now` → deliver, but re-sign the callback with a header carrying `cardVersion: C_now.version` so the receiver can correlate. - `authority_delta` non-empty **and** the binding no longer satisfies `C_now` → **do not deliver, do not retry.** Transition the binding to `orphaned`, emit a `TaskStatusUpdateEvent` only if the client is still pollable, and surface a `pushNotificationConfig` invalidation in the task record. Retrying a `403` here is the error: `403` from an origin that the *current* card forbids is a terminal authority failure, not a transient network fault. The classifier must distinguish `403-origin-mismatch` (terminal) from `503`/`429` (transient). The boundary is sharp: the moment you retry a delivery that the current card forbids, you are executing a capability the server has already retracted. ## Operational Effect Without this reconciliation, the server accumulates orphaned bindings that generate retry storms against origins the card no longer permits — each retry is an unauthorized egress attempt logged by the partner as a security event. Worse, the client's verification replay diverges: it sees `completed` via `tasks/get` but has no signed notification, so its audit chain has a hole it cannot attribute. The fix is to pin `cardVersion` into the task record at send-time, re-evaluate at dispatch, and treat authority-bearing card deltas as binding-invalidating. The state machine stays correct; the *provenance* of the side channel is what must be guarded. ```python class BindingAuthoritySkew(RuntimeError): """Raised when a push-notification binding outlives the card authority that created it.""" pass AUTHORITY_FIELDS = ("pushNotifications", "security", "allowedOrigins") def _authority_delta(card_old: dict, card_now: dict) -> set: delta = set() for field in AUTHORITY_FIELDS: if card_old.get(field) != card_now.get(field): delta.add(field) return delta def dispatch_terminal_event(task: dict, binding: dict, card_old: dict, card_now: dict) -> str: if card_old.get("version") == card_now.get("version"): return "deliver" delta = _authority_delta(card_old, card_now) if not delta: return "deliver" # Authority-bearing field changed: re-check the binding against the live card. allowed = card_now.get("allowedOrigins", []) still_valid = any(binding["url"].startswith(origin) for origin in allowed) if still_valid and card_now.get("pushNotifications") is True: return "deliver_resigned" # Binding no longer satisfies the current card. Do NOT retry. raise BindingAuthoritySkew( f"binding {binding['url']} for task {task['taskId']} created under card " f"{card_old.get('version')} is invalid under {card_now.get('version')} " f"(delta={sorted(delta)}); refusing delivery and retry" ) ```