# Where must an instance reject a signed Agent Card whose `capabilities.pushNotifications` is true but whose `securitySchemes` omits the webhook verification material — the A2A v1.0 capability/security asymmetry boundary **Date of Record:** 2026 November 23 **Scope:** Applies to A2A v1.0 clients that resolve a remote Agent Card, verify its JWS signature, and then elect to register a push-notification webhook based on advertised capabilities. Does not apply to pull-only task polling, nor to transport-level mTLS that is negotiated independently of the card body. ## Core Distinction The Agent Card is a *self-description*, and its JWS signature attests only to **integrity and origin of the bytes** — that the card was emitted by the holder of the key referenced in `signatures[].protected.kid` and has not been mutated in transit. It does **not** attest that the advertised capability set is *operationally satisfiable* by the security material the same card declares. A2A v1.0 makes `capabilities.pushNotifications` a plain boolean and `securitySchemes` an independent map, with no schema-level cross-constraint tying them together. The signing key attests "this agent claims push notifications," not "this agent can authenticate the callbacks it will send you." The distinction that matters at the boundary: a card can be **cryptographically valid and semantically incoherent at the same time**. Signature verification (JWS over the canonicalized card) and capability/security coherence are two separate gates, and the spec only mandates the first. A conformant client that trusts the signature as a proxy for "safe to register a webhook" has collapsed two independent invariants into one, and the collapse is exactly where the failure lives. ## What Was Observed A client agent (`orchestrator`) resolved a remote `worker` Agent Card over HTTPS. The card verified cleanly: `alg: ES256`, `kid` resolved against the worker's published JWKS, canonical JSON matched, signature valid. The card body contained: - `capabilities.pushNotifications: true` - `capabilities.streaming: true` - `securitySchemes: { "a2a-bearer": { "type": "http", "scheme": "bearer" } }` - `security: [ { "a2a-bearer": [] } ]` The `securitySchemes` block declared **only inbound** authentication — how a caller authenticates *to* the worker. It declared nothing about how the worker authenticates *itself* to the client's webhook endpoint. There was no `pushNotificationAuth` material, no webhook signing key, no shared secret, no declared `jwks_uri` for callback JWS. The orchestrator registered a webhook URL and dispatched a long-running task. The task transitioned `submitted → working`. The worker, per its advertised capability, attempted a push notification to the registered URL. The webhook receiver on the orchestrator side had been built to verify an inbound callback against the same `securitySchemes` it had parsed from the card — and found no verification material to check against. Two outcomes were observed across runs: 1. **Fail-open path:** the receiver, unable to locate verification material, logged a warning and accepted the unsigned callback, transitioning the task to `completed` on unauthenticated input. This is a state-machine integrity break: an unauthenticated party can now drive `working → completed`. 2. **Fail-closed path:** the receiver rejected the callback, the worker retried per its backoff policy, exhausted retries, and the task stalled in `working` until the worker's TTL reaper forced `working → failed`. The orchestrator's own state machine, meanwhile, still believed the task was live because it had no inbound signal to the contrary. Both outcomes trace to the same root: the orchestrator treated `pushNotifications: true` as sufficient to *provision* a webhook receiver, when it was only sufficient to know the worker *intends* to push. The verification material — the thing that makes the `working → completed` transition trustworthy — was never in the card, and the signature did not require it to be. The subtle part: **the card was not malformed.** Re-serializing it, re-canonicalizing it, re-verifying the JWS all succeeded. A schema validator passed. The asymmetry is legal under v1.0. The failure is not a spec violation by the worker; it is a *client-side inference* that the signature covers more than it does. ## Condition of Validity The invariant "a signed card advertising `pushNotifications: true` is safe to register against" holds **only if** the following conjunction is true at resolution time: 1. `capabilities.pushNotifications == true`, **and** 2. the card's `securitySchemes` contains at least one scheme whose declared purpose is *callback authentication* (a webhook signing key, a `jwks_uri` for outbound JWS, or an HMAC secret reference resolvable via a declared, authenticated channel), **and** 3. that scheme's material is resolvable *before* the webhook is registered — not lazily at first callback. If (2) or (3) is false, the card is signed-but-unprovisionable for push, and the client must treat `pushNotifications: true` as advisory metadata, not as an actionable capability. The condition of validity is **not** "the signature verifies." It is "the signature verifies **and** the capability/security pair is coherent for the direction of trust the capability implies." Note the directionality that makes this non-obvious: `securitySchemes` in A2A describes *inbound* auth to the agent. Push notifications invert the trust direction — the worker becomes the caller, the client becomes the callee. A card can be perfectly specified for inbound auth and silently under-specified for outbound callbacks, and the two live in the same `securitySchemes` map with no discriminator separating them. The map's presence creates a false impression of completeness. ## Decision Boundary The boundary is sharp: **verify signature → check capability/security coherence → only then register.** The decision function must reject, not degrade, when the conjunction fails. Concretely: - If `pushNotifications == true` and no callback-auth scheme is declared: **do not register a webhook.** Downshift the task to polling (`tasks/get` on an interval bounded by the task's declared TTL), and record the downshift as an explicit capability downgrade in the task's local state, not a silent fallback. - If a callback-auth scheme is declared but its material is unresolvable at registration time (JWKS unreachable, secret reference dangling): **treat as unregistered** and downshift. Lazy resolution at first callback is the fail-open trap — by then the worker is already mid-push and the client is under pressure to accept. - If the card declares `pushNotifications: true` but the client's own receiver cannot be provisioned with the verification material the card *does* name: **abort registration and surface a provisioning error**, do not register a receiver that cannot verify. The boundary is *not* "reject cards that lack callback auth." A card without push capability is fine. The boundary is specifically the **conjunction of an affirmative push capability with the absence of the material that makes push verifiable** — and the guardrail is that this conjunction must resolve to *downshift*, never to *register-and-hope*. ## Operational Effect Downstream of the boundary, the state machine's integrity depends on which side of it you landed: - **Registered against an incoherent card (fail-open):** the `working → completed` edge becomes forgeable by any party that can reach the webhook URL. The task's terminal state no longer reflects worker attestation. Any auditor replaying the task's event log will find a `completed` transition with no verifiable callback signature — a replay discrepancy that cannot be resolved after the fact because the verification material was never there to record. - **Registered against an incoherent card (fail-closed):** the task deadlocks in `working` from the client's view while the worker has already reaped it to `failed`. The two state machines diverge permanently; the client's `working` is a zombie. Reconciliation requires a `tasks/get` poll the client never scheduled because it believed push would carry the signal. - **Downshifted to polling:** the state machine stays coherent. `completed` is only reachable via a `tasks/get` response the client itself authenticated inbound, using the `securitySchemes` that *were* correctly declared for that direction. The trust direction matches the auth direction, and the invariant holds. The operational lesson generalizes: **a signature over a self-description is a claim about bytes, and capability booleans are claims about intent; neither is a claim about the security material required to honor the intent.** The client must independently check that the material exists and is resolvable before it provisions any receiver whose trust depends on it. The failure is silent because every individual artifact — the card, the signature, the schema — is valid; only the *inference* between them is wrong, and inferences are not covered by any signature. ```python import json from typing import Any class PushCapabilityIncoherenceError(RuntimeError): """Raised when a signed Agent Card advertises pushNotifications but declares no resolvable callback-authentication material, making any webhook registration unverifiable (and the task state machine forgeable).""" # Scheme types that can authenticate an *outbound* callback FROM the worker # TO the client. Inbound-only schemes (e.g. plain http bearer for callers) # do NOT satisfy this — directionality is the whole point. CALLBACK_AUTH_SCHEME_TYPES = frozenset({"webhook-signature", "hmac", "jws-callback"}) def _has_resolvable_callback_auth(card: dict[str, Any]) -> bool: schemes = card.get("securitySchemes") or {} for name, spec in schemes.items(): if not isinstance(spec, dict): continue if spec.get("type") in CALLBACK_AUTH_SCHEME_TYPES: # Material must be named, not implied. if spec.get("jwks_uri") or spec.get("secretRef") or spec.get("keyRef"): return True return False def gate_push_registration(card: dict[str, Any], signature_verified: bool) -> str: """Decide whether a verified Agent Card may be used to register a webhook. Returns one of: 'register', 'downshift-poll', 'provision-error'. """ if not signature_verified: raise PushCapabilityIncoherenceError( "refusing to evaluate capability on an unverified card" ) caps = card.get("capabilities") or {} advertises_push = bool(caps.get("pushNotifications")) if not advertises_push: return "register" # nothing to provision; polling is the default anyway if _has_resolvable_callback_auth(card): return "register" # Signed, push-advertising, but no callback-auth material: the exact # incoherence boundary. Do NOT register-and-hope. agent_name = card.get("name", "") raise PushCapabilityIncoherenceError( f"agent {agent_name!r} advertises pushNotifications=true but declares " f"no callback-auth scheme (types {sorted(CALLBACK_AUTH_SCHEME_TYPES)} " f"with resolvable material). Downshift to polling; do not register a " f"webhook whose callbacks cannot be verified." ) def resolve_and_provision(card_json: str, signature_verified: bool) -> str: card = json.loads(card_json) try: return gate_push_registration(card, signature_verified) except PushCapabilityIncoherenceError: # Explicit, recorded downshift — never a silent fallback. return "downshift-poll" ```