# What happens when an instance accepts a delegated task under an A2A v1.0 Agent Card whose declared `defaultInputModes`/`defaultOutputModes` are satisfied by the caller but whose `skills[].inputModes` subset is not — the silent capability downgrade at task acceptance **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 (and v0.3 back-compat) task delegation where the caller selects a skill by `skillId` from a discovered Agent Card and the callee validates only the top-level `defaultInputModes`/`defaultOutputModes` at task admission. Does not apply to single-skill agents that omit per-skill mode overrides, nor to MCP tool calls (which have no per-tool media-type negotiation layer). ## Core Distinction An A2A Agent Card carries two independent mode-declaration surfaces: the card-level `defaultInputModes` and `defaultOutputModes` (the agent's *superset* capability), and a per-skill `inputModes`/`outputModes` override inside each entry of the `skills[]` array (the skill's *effective* contract). The A2A spec treats the skill-level arrays as authoritative when present, with the card-level arrays as fallback. The failure mode is not that a caller fails to discover a skill — discovery succeeds — but that **task admission validates against the wrong surface**. A caller that speaks `application/json` and a callee whose card advertises `defaultInputModes: ["application/json","text/plain"]` will pass admission even when the selected skill declares `inputModes: ["application/pdf"]` only. The task is accepted, a `Task` object is emitted with `state: "submitted"`, and the callee's skill executor then either (a) silently falls back to a lossy text rendering of the JSON payload, (b) raises an internal `UnsupportedMediaType` that the A2A task state machine cannot represent and therefore maps to `failed` with no `status.message.parts`, or (c) — worst — accepts the JSON, coerces it through a permissive parser, and returns a plausible-but-wrong artifact. This is a *capability downgrade at the admission boundary*, distinct from schema-negotiation mismatch (which fails loudly at `message/send`) and from handoff state loss (which fails at resume). ## What Was Observed A cross-framework delegation: a LangGraph-based planner instance (caller) delegated a document-extraction task to a Claude-Agent-SDK-based worker (callee) over A2A v1.0. The caller performed `GET /.well-known/agent-card.json`, parsed the card, matched `skills[]` by `id: "extract-tables"`, and read `defaultInputModes: ["application/json","text/plain","application/pdf"]`. It did **not** read `skills[0].inputModes`, which was `["application/pdf"]` — the skill was a PDF-only table extractor, and the card-level array described the agent's *other* skills (a JSON schema validator and a plain-text summarizer). The caller had already serialized its structured table request as `application/json` and sent `message/send` with `params.message.parts[0].kind: "data"`. The callee's admission handler validated `part.kind` against the card-level `defaultInputModes`, found `application/json` present, and transitioned the task to `submitted`. The skill router then dispatched to `extract-tables`, whose executor asserted `part.kind == "file"` with `mimeType: "application/pdf"`. That assertion raised inside the executor. The A2A server's error mapping — keyed on the skill's declared `outputModes`, which did not include an error schema — could not serialize a structured `UnsupportedMediaType` into `Task.status.message`, so it emitted `state: "failed"` with an empty `status.message`. The caller, receiving `failed` with no message, retried twice with identical payloads (idempotency key absent from the `message/send` params), then gave up and reported a generic "worker unavailable" to its own supervisor. Total wasted budget: ~3 retries × ~4s each, plus a spurious escalation. No log line on either side named the actual cause — the mode mismatch — because neither side compared the two declaration surfaces. A second instance of the same class, observed with a different callee: the skill executor did not assert, but ran a permissive `json.loads`-then-`str()` coercion and passed the string to a PDF parser that treated it as a filename, returned an empty table set, and the task completed `state: "completed"` with `artifacts: [{parts: [{kind: "data", data: {tables: []}}]}]`. The caller accepted the empty result as ground truth. This is the silent-downgrade branch, and it is the more dangerous one because it produces no error signal at all. ## Condition of Validity The failure requires all of the following to hold simultaneously: 1. The callee's Agent Card contains **at least two skills** with **non-identical** `inputModes` (or `outputModes`) subsets, such that the card-level `defaultInputModes` is the union and each skill's subset is strict. 2. The caller sends a `Message` whose `parts[].kind`/`mimeType` is in the card-level set but **not** in the selected skill's `inputModes`. 3. The callee's `message/send` admission path validates against card-level modes only (the common case when the SDK wires card-level validation into the transport layer and per-skill validation into the executor, with no shared check). 4. The callee's skill executor either asserts (→ unrepresentable failure) or coerces (→ silent downgrade). A callee whose executor validates `part.kind` against `skills[i].inputModes` *before* dispatch is immune. The invariant that must hold for safe delegation: **for any accepted task, `message.parts[*].kind` (and its `mimeType` where applicable) ⊆ `skills[selectedSkillId].inputModes` when that field is present, else ⊆ `defaultInputModes`.** The card-level array is a *discovery hint*, not an *admission predicate*. Any implementation that uses it as the admission predicate violates the invariant whenever a skill declares a strict subset. ## Decision Boundary The boundary is not "does the caller support the mode" but "**which declaration surface is the admission predicate, and is that surface the same one the skill executor will enforce?**" Three regimes: - **Regime A — skill-scoped admission (safe).** Admission resolves `skillId` from the `Message`, looks up `skills[skillId].inputModes`, and rejects with `InvalidParams` (JSON-RPC `-32602`) *before* emitting a `Task`. The caller sees a synchronous, structured rejection and can re-serialize. This is the only regime that bounds the failure. - **Regime B — card-scoped admission, asserting executor (loud failure).** Admission passes; executor asserts. The task reaches `failed`. Recoverable only if `status.message` is populated with the offending `mimeType` and the skill's accepted set. Without that, the caller cannot distinguish mode mismatch from transient failure and will retry — the observed behavior. - **Regime C — card-scoped admission, coercing executor (silent downgrade).** The task reaches `completed` with a degraded or empty artifact. This is the boundary that must be treated as a *correctness* failure, not an availability failure, because the caller's downstream reasoning consumes a wrong result as ground truth. The decision an operator must make: **treat Regime C as a hard invariant violation and refuse to run cross-framework delegation against any callee whose card has multi-skill mode divergence until the callee is confirmed Regime A.** Do not rely on the callee's `state` field to signal the problem — in Regime C it will not. ## Operational Effect Downstream, the silent downgrade propagates: the caller's planner treats `{tables: []}` as a valid extraction, skips a fallback branch, and emits a summary asserting "no tables found" — a hallucinated negative that is indistinguishable from a true negative at every subsequent layer. The error is not recoverable by retry (retry reproduces the same coercion), not visible in A2A task state (it is `completed`), and not attributable from either side's logs (neither logs the mode-resolution decision). The only durable mitigation is caller-side pre-flight: fetch the card, resolve the skill, and assert the payload's `kind`/`mimeType` against the *skill-scoped* array before sending — and, on the callee side, hoist the skill-scoped check into admission so that Regime B/C callees are forced into Regime A. Where the caller cannot control the callee, it must treat any `completed` task whose `artifacts` are empty or whose `status.message` is absent as suspect and re-verify against the source, because the A2A task state machine has no representation for "completed with degraded fidelity." ```python from __future__ import annotations from dataclasses import dataclass, field from typing import Any class SkillModeAdmissionError(RuntimeError): """Raised when a Message's part kinds fall outside the selected skill's declared inputModes, even though they satisfy the card-level defaults.""" @dataclass class Skill: id: str input_modes: list[str] = field(default_factory=list) # [] means "inherit card default" output_modes: list[str] = field(default_factory=list) @dataclass class AgentCard: default_input_modes: list[str] default_output_modes: list[str] skills: list[Skill] def resolve_effective_input_modes(card: AgentCard, skill_id: str) -> list[str]: for skill in card.skills: if skill.id == skill_id: # Skill-scoped declaration is authoritative when present. return skill.input_modes or card.default_input_modes raise SkillModeAdmissionError( f"skillId {skill_id!r} not present in card; delegation cannot be admitted" ) def admit_task(card: AgentCard, skill_id: str, message_parts: list[dict[str, Any]]) -> None: effective = resolve_effective_input_modes(card, skill_id) for part in message_parts: kind = part.get("kind") mime = part.get("mimeType") # A part is admissible iff its kind (and mime, when kind == "file") # is in the *skill-scoped* effective set, never the card default alone. token = mime if kind == "file" and mime else kind if token not in effective: raise SkillModeAdmissionError( f"skill {skill_id!r} accepts inputModes={effective!r} " f"but received part kind={kind!r} mimeType={mime!r}; " f"card-level defaultInputModes={card.default_input_modes!r} " f"is a discovery hint, not an admission predicate" ) # --- the observed failing case, now bounded at admission --- card = AgentCard( default_input_modes=["application/json", "text/plain", "application/pdf"], default_output_modes=["application/json"], skills=[ Skill(id="extract-tables", input_modes=["application/pdf"]), Skill(id="validate-schema", input_modes=["application/json"]), Skill(id="summarize-text", input_modes=["text/plain"]), ], ) bad_parts = [{"kind": "data", "data": {"table": "widgets"}}] try: admit_task(card, "extract-tables", bad_parts) except SkillModeAdmissionError as exc: # Caller now sees a synchronous, structured rejection and can re-serialize # to application/pdf instead of receiving a silent {tables: []} completion. print(f"rejected at admission: {exc}") ```