# What structural signals indicate a capability-negotiation deadlock in A2A v1.0 agent card discovery **Date of Record:** 2026 December 3 **Scope:** Applies to A2A v1.0 (and v0.x-compatible) agent-to-agent sessions where a client agent discovers a remote agent via `/.well-known/agent.json`, then negotiates a task whose required skills cross vendor boundaries. Does not apply to single-vendor intra-cluster calls where both peers share a capability registry and schema version. ## Core Distinction The failure that matters is not "the remote agent card is missing a skill." That is a clean, detectable negative. The failure that matters is **schema-shape agreement masking semantic disagreement**: the client's `capabilities` object and the server's `capabilities` object both validate against the A2A JSON schema, both advertise the same skill `id` string, and both return `200 OK` on `tasks/send` — yet the two sides disagree on the *meaning* of the negotiated parameters, so the task either silently degrades or blocks forever waiting on an input the peer believes it already sent. The structural signal is this: **the agent card's `skills[].inputModes` / `outputModes` and `capabilities.streaming` / `capabilities.pushNotifications` are negotiated independently of `skills[].examples` and `skills[].tags`.** A deadlock is indicated when the *transport-level* capability set intersects non-empty but the *semantic* surface (tags, examples, parameter names inside `examples`) intersects empty. The negotiation succeeds at the protocol layer and fails at the vocabulary layer. ## What Was Observed Two vendor agents, a procurement orchestrator (client) and a contract-extraction agent (server), negotiated a `extract_obligations` task. 1. Client fetched `https://vendor-b.example/.well-known/agent.json`. Card declared: - `capabilities: { streaming: true, pushNotifications: false, stateTransitionHistory: true }` - `skills: [{ id: "extract_obligations", inputModes: ["text/plain"], outputModes: ["application/json"], tags: ["legal", "contracts"], examples: ["Extract the obligations from this MSA."] }]` 2. Client's own card declared `inputModes: ["text/plain", "application/json"]`, `outputModes: ["application/json"]`. The intersection on modes is non-empty on both sides. The client proceeded. 3. Client sent `tasks/send` with `message.parts: [{ type: "text", text: "" }]` and a `metadata` block carrying `{ "jurisdiction": "US-DE", "obligation_types": ["payment", "notice"] }`. 4. Server's handler read only `parts[0].text`. It did not read `metadata.obligation_types` because its card's `examples` never mentioned a filtering parameter — the client inferred the parameter from its own internal convention. The server returned a full unfiltered extraction with `status: "completed"`. 5. Client's verifier rejected the result (it expected only two obligation types), and — critically — the client's retry policy re-sent the same task with the same `metadata`, because the card gave it no signal that the parameter was unsupported. Five retries, five identical semantically-wrong results, then a circuit-break at `max_retries`. The observable trace: `stateTransitionHistory` on the server showed `submitted → working → completed` five times, each with byte-identical `artifacts`. The client's own history showed five `failed_verification` transitions. Neither side's logs contained an error, because neither side's schema validation failed. ## Condition of Validity This analysis holds only under the following joint condition: - The A2A card is the **sole** capability source (no out-of-band registry, no OpenAPI spec, no human-authored integration doc). - The client's parameter vocabulary is derived from `examples` and `tags` heuristically (i.e., the client LLM is prompted to "infer supported parameters from the card"). - The server treats unknown `metadata` keys as advisory and non-erroring (the common A2A v1.0 default, since `metadata` is `additionalProperties: true`). It does **not** hold when the server returns `400` on unrecognized metadata (then the failure is loud), nor when a shared capability registry pins parameter names (then the vocabulary is closed). ## Decision Boundary The boundary between "safe to proceed" and "must halt and re-negotiate" is drawn on the **card's self-description of its output schema**, not on its input modes. - If `skills[].examples` contains at least one example whose *parameters* are named and the client's intended parameters are a superset of those names → proceed; the vocabulary is open and the server is expected to ignore extras. - If the client's intended parameters include any key **not** derivable from `examples` or `tags`, and `capabilities.stateTransitionHistory` is `true` → the client must send a probe task and inspect the returned `artifacts` schema before committing the real payload. `stateTransitionHistory: true` is the structural signal that the server will faithfully record a probe's round-trip, so the probe is cheap and auditable. - If `stateTransitionHistory` is `false` and the parameter is underivable → halt. There is no structural way to distinguish "server ignored my parameter" from "server honored it but the output is empty." This is the hard boundary. ## Operational Effect The practical consequence: **retry loops under silent parameter-drop are indistinguishable from genuine extraction failures, and they burn the token budget of both peers.** The client's verifier rejects, the retry re-sends, the server re-processes identically, and the loop terminates only on `max_retries` — never on a protocol error. In the observed case, five retries consumed ~48k tokens on the server side for byte-identical output. The guardrail is a **capability-negotiation probe with schema assertion**: before the real task, send a minimal `tasks/send` with the intended `metadata` keys populated with sentinel values, require the server's `artifacts` to echo the sentinel (or to explicitly reject it), and only then commit. This converts an underivable-vocabulary deadlock into a detectable `400` or a sentinel mismatch. The invariant to enforce in the client: *never send a parameter that the peer's card does not structurally acknowledge, unless a probe has confirmed the peer echoes it.* ```python import json from dataclasses import dataclass from typing import Any class CapabilityNegotiationDeadlock(RuntimeError): """Raised when transport-level capability intersection is non-empty but semantic parameter vocabulary is underivable from the peer's agent card.""" @dataclass class AgentCard: streaming: bool push_notifications: bool state_transition_history: bool skill_tags: set[str] skill_examples: list[str] input_modes: set[str] output_modes: set[str] def _derivable_parameter_names(card: AgentCard) -> set[str]: # Parameters are only "structurally acknowledged" if they appear verbatim # in the card's tags or in the free-text of its examples. This is the # conservative reading of A2A v1.0, which does not schema-bind metadata. names: set[str] = set(card.skill_tags) for ex in card.skill_examples: for token in ex.replace(",", " ").replace(".", " ").split(): if token.isidentifier(): names.add(token) return names def negotiate( client_params: set[str], client_modes: set[str], card: AgentCard, ) -> None: mode_intersection = client_modes & (card.input_modes | card.output_modes) if not mode_intersection: # Clean, loud failure: transport mismatch. raise CapabilityNegotiationDeadlock( f"no mode intersection: client={client_modes} peer={card.input_modes}" ) derivable = _derivable_parameter_names(card) underivable = client_params - derivable if not underivable: return # vocabulary is structurally acknowledged; proceed if card.state_transition_history: # Probe is auditable; caller must run a sentinel round-trip next. raise CapabilityNegotiationDeadlock( "probe required: underivable params " f"{sorted(underivable)} but stateTransitionHistory=True" ) # Hard boundary: no probe path, no vocabulary signal. Halt. raise CapabilityNegotiationDeadlock( "deadlock: underivable params " f"{sorted(underivable)} with stateTransitionHistory=False; " "silent parameter-drop is undetectable from card alone" ) def run_negotiation(card_json: dict[str, Any], client_params: set[str]) -> None: card = AgentCard( streaming=card_json["capabilities"]["streaming"], push_notifications=card_json["capabilities"]["pushNotifications"], state_transition_history=card_json["capabilities"]["stateTransitionHistory"], skill_tags=set(card_json["skills"][0].get("tags", [])), skill_examples=list(card_json["skills"][0].get("examples", [])), input_modes=set(card_json["skills"][0]["inputModes"]), output_modes=set(card_json["skills"][0]["outputModes"]), ) negotiate(client_params, {"text/plain"}, card) if __name__ == "__main__": peer_card = { "capabilities": { "streaming": True, "pushNotifications": False, "stateTransitionHistory": False, }, "skills": [{ "id": "extract_obligations", "inputModes": ["text/plain"], "outputModes": ["application/json"], "tags": ["legal", "contracts"], "examples": ["Extract the obligations from this MSA."], }], } # Client intends to send `obligation_types`, which the card never names. run_negotiation(peer_card, {"obligation_types", "jurisdiction"}) ```