# In what scenarios must an instance reject an A2A v1.0 task acceptance when a signed Agent Card's declared capability set diverges from the negotiated `Task` schema after cross-vendor discovery **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 clients that discover remote agents via signed Agent Cards and negotiate a `Task` object whose `skills`/`capabilities` fields must be honored at acceptance time. Does not cover transport-level TLS failures, DNS resolution, or plain unauthenticated JSON-RPC without an Agent Card. ## Core Distinction The failure that matters here is not "the remote agent can't do the work." It is the divergence between two capability surfaces that A2A treats as one: the **declared capability set** frozen inside the signed Agent Card (a static, cryptographically attested document), and the **negotiated capability set** materialized in the `Task` request/response envelope (a dynamic, per-task object the remote runtime builds at accept time). The Agent Card signature proves *who said what they could do*. It says nothing about *what the remote runtime will actually bind to this task*. A conforming client must treat a mismatch between these two surfaces as a hard rejection at task-acceptance, not a soft warning, because the Task envelope is what downstream tool dispatch and state transfer will actually key on. The non-obvious part: the signature is valid. The card is authentic. The task was accepted with a 2xx-class response. Everything *looks* consistent, and yet the runtime has silently bound a narrower or different skill set than the card attested. This is the boundary where "verified identity" is mistaken for "verified capability." ## What Was Observed Cross-vendor discovery sequence, v1.0: 1. Client fetches `/.well-known/agent-card.json`, verifies the JWS over the card body against the `kid` in `signatures[].protected`. Verification passes. 2. Card declares `capabilities.streaming: true`, `capabilities.pushNotifications: true`, and `skills: [{id: "invoice.extract", inputModes: ["application/json"], outputModes: ["application/json"]}, {id: "invoice.reconcile", ...}]`. 3. Client sends `tasks/send` with a `Task` whose `skill` field references `invoice.reconcile` and whose `metadata.a2a.capabilityRequirements` includes `streaming`. 4. Remote runtime returns `TaskStatus: accepted` with a `Task` object whose `artifacts[].parts[]` are populated, but whose echoed `metadata.a2a.boundCapabilities` shows `streaming: false` and a `skill` value of `invoice.reconcile@v0` — a minor version the card did not advertise. 5. Client proceeds, opens an SSE stream per the card's `streaming: true`, and receives a single terminal event then a 204 close. Mid-task progress events were never emitted because the runtime's bound capability was non-streaming. The client's checkpoint logic waited for intermediate `TaskStatusUpdateEvent`s that never arrived and eventually hit its own `token-budget` watchdog, marking the task `failed` while the remote considered it `completed`. The observable signature in logs: `TaskStatus accepted` on the wire, `boundCapabilities.streaming=false` in the echoed metadata, and a downstream `STREAM_CLOSED_EARLY` in the client's event loop. The signed card was never wrong; the binding was. A second observed variant: card declares `skills: [invoice.extract]` with `inputModes: ["application/json"]` only. Client sends `text/plain`. Runtime accepts (returns `accepted`) and then fails at execution with `UnsupportedInputMode` — but only *after* the client has already committed a checkpoint and advanced its own state machine to `in_progress`. The acceptance was the lie; the rejection came too late to be a rejection. ## Condition of Validity The rejection invariant holds **only** when all of the following are true: - The Agent Card is signature-verified against a trusted `kid` and the JWS payload hashes to the fetched body (no TOCTOU between fetch and verify). - The client has parsed the card's `skills` and `capabilities` into a normalized set `C_declared`. - The `Task` acceptance response carries an explicit binding surface — either echoed `metadata.a2a.boundCapabilities`/`boundSkill` or a `Task.skill` field with a resolvable version — that the client can normalize into `C_bound`. - The client's own state machine has not yet committed durable side effects keyed on the task (no checkpoint written, no downstream tool invoked on the assumption of acceptance). If the acceptance response omits any binding metadata entirely, the invariant does **not** hold: the client cannot distinguish "runtime bound the full declared set" from "runtime bound nothing and will fail lazily." In that case the correct posture is to treat the task as *provisionally* accepted and gate all side effects behind the first successful `TaskStatusUpdateEvent` that echoes a bound skill. Absent that echo, the client must not advance. The invariant also does **not** hold when the card is self-signed by an untrusted issuer, when `signatures` is empty, or when the card was fetched over a channel that permits body mutation between fetch and verification — in those cases there is no attested `C_declared` to compare against and the whole comparison is void. ## Decision Boundary The precise boundary between "accept and proceed" and "reject and renegotiate": - **Accept** iff `C_bound ⊇ C_required`, where `C_required` is the client's per-task capability requirement set (derived from the `Task` payload, not from the card), and `C_required ⊆ C_declared` was already checked at discovery time. The second condition guards against the client asking for something the card never claimed; the first guards against the runtime binding less than it attested. - **Reject (hard)** iff `C_bound ⊉ C_required` **and** the client has not committed a checkpoint. Emit a `TaskRejected` with reason `CAPABILITY_BINDING_DIVERGENCE`, include the normalized diff (`C_required \ C_bound`), and do not retry against the same endpoint without re-fetching the card — the card may have been rotated mid-session. - **Reject (soft, with state rollback)** iff the divergence is discovered *after* a checkpoint commit but *before* any downstream tool side effect. Roll back the checkpoint to the pre-acceptance state and renegotiate. This is the only case where "reject after accept" is safe; if a downstream tool has already fired, the divergence is unrecoverable and must be surfaced as a `TaskStateInconsistency` to the orchestrator, not retried. - **Never accept** when `C_bound` references a skill version not present in `C_declared` (the `invoice.reconcile@v0` case). A version the card did not attest is an unverified capability, and accepting it silently widens the trust surface the signature was supposed to bound. The subtle rule: divergence in *optional* capabilities (e.g., `pushNotifications`) is a soft warning; divergence in *required* capabilities (the skill id, the input/output modes the task actually uses) is a hard rejection. The client must classify each capability as required-for-this-task or merely-declared before comparing, because comparing full sets produces false rejections on every task that doesn't use streaming. ## Operational Effect Without this invariant, two failure classes propagate: 1. **Silent capability narrowing.** The runtime binds a subset, the client proceeds on the card's promise, and the task fails deep in execution — after checkpoints, after partial artifact emission, after the client's own state machine has advanced. Recovery requires replaying from the last pre-acceptance checkpoint, which the client may not have retained because it trusted the acceptance. The compounding error is not in any single step but in the client's *belief* that `accepted` implies `bound-to-declared`. 2. **Version drift across vendor boundaries.** Cross-vendor, the card is often generated by a build pipeline and the runtime is a separately-deployed service; they can be minutes or hours out of sync. The signature validates the *card*, not the *runtime's current binding*. A client that treats card verification as sufficient will accept a `@v0` binding against a `@v1` card and never notice until output schema validation fails downstream — at which point the failure is attributed to the wrong layer. The guardrail is structural: make task acceptance a *two-phase* operation. Phase one verifies the card and checks `C_required ⊆ C_declared`. Phase two verifies `C_bound ⊇ C_required` against the acceptance response's echoed binding, *before* any checkpoint commit or downstream dispatch. The two phases must be separated by a durable boundary the client controls, so that phase-two failure can unwind phase-one state without replaying the whole discovery. This is the continuity invariant: **acceptance is not a fact until the binding is echoed and checked; the card's signature bounds what may be requested, not what will be delivered.** ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityBindingDivergence(RuntimeError): """Raised when a task acceptance binds a capability set that does not cover the client's required set, despite a validly signed Agent Card.""" @dataclass(frozen=True) class CapabilitySet: skills: FrozenSet[str] streaming: bool input_modes: FrozenSet[str] output_modes: FrozenSet[str] @dataclass class TaskAcceptance: task_id: str bound: CapabilitySet | None checkpoint_committed: bool = False downstream_dispatched: bool = False def normalize_bound(acceptance: TaskAcceptance) -> CapabilitySet: if acceptance.bound is None: # No binding echo: cannot prove coverage. Treat as unbound, not as # "assume declared" — the card attests intent, not delivery. raise CapabilityBindingDivergence( f"task {acceptance.task_id}: acceptance carried no boundCapabilities; " "cannot verify coverage against declared card" ) return acceptance.bound def enforce_binding( declared: CapabilitySet, required: CapabilitySet, acceptance: TaskAcceptance, ) -> None: # Phase one precondition: the client must never require what the card # did not attest. This is a programming error, not a remote fault. missing_from_card = required.skills - declared.skills if missing_from_card: raise CapabilityBindingDivergence( f"required skills {sorted(missing_from_card)} not present in signed " "Agent Card; refuse to request un-attested capability" ) bound = normalize_bound(acceptance) # Phase two: the runtime must bind at least what the task requires. uncovered = required.skills - bound.skills if uncovered: if not acceptance.checkpoint_committed and not acceptance.downstream_dispatched: raise CapabilityBindingDivergence( f"task {acceptance.task_id}: bound skills {sorted(bound.skills)} " f"do not cover required {sorted(required.skills)}; " "reject before checkpoint commit" ) if acceptance.downstream_dispatched: # Unrecoverable: a side effect already fired on a false acceptance. raise CapabilityBindingDivergence( f"task {acceptance.task_id}: divergence discovered after downstream " "dispatch; surface TaskStateInconsistency to orchestrator" ) # Checkpoint committed but no side effect yet: rollback is safe. raise CapabilityBindingDivergence( f"task {acceptance.task_id}: divergence after checkpoint; " "rollback to pre-acceptance state and renegotiate" ) if required.streaming and not bound.streaming: raise CapabilityBindingDivergence( f"task {acceptance.task_id}: required streaming but runtime bound " "streaming=false; SSE progress events will not arrive" ) if not required.input_modes.issubset(bound.input_modes): raise CapabilityBindingDivergence( f"task {acceptance.task_id}: input modes {sorted(required.input_modes)} " f"not covered by bound {sorted(bound.input_modes)}" ) ```