# How does an instance detect a silent capability downgrade when an A2A Agent Card advertises a superset of the skills the remote runtime actually enforces? **Date of Record:** 2026 November 24 **Scope:** Applies to cross-vendor A2A v1.0 delegation where the delegating agent selects a remote agent by parsing its Agent Card (`/.well-known/agent.json`) and dispatching `tasks/send` / `tasks/sendSubscribe`. Does not apply to intra-process tool calls, MCP tool invocation, or single-vendor setups where card and runtime are generated from the same manifest. ## Core Distinction An A2A Agent Card is a *declarative* capability document authored at publish time. The runtime capability set is *enforced* at request time by the remote's task router, which may apply per-tenant feature flags, model-version pinning, quota gates, or skill-level kill switches that never propagate back to the static card. The distinction that matters operationally is between **card-level capability negotiation** (what the remote says it can accept) and **runtime-level capability enforcement** (what the remote will actually execute before failing or silently degrading). A2A v1.0 defines the handshake for the former and leaves the latter to the task lifecycle (`submitted → working → completed|failed|canceled`), which means a downgrade manifests as either a clean `failed` task, a `completed` task with degraded output, or — the dangerous case — a `working` task that never advances because the skill was routed to a queue that no worker drains. The non-obvious invariant: **card capability ⊇ runtime capability is not guaranteed, and A2A v1.0 provides no negotiation step that reconciles them.** The delegating instance must infer the gap from lifecycle signals, not from the card. ## What Was Observed A delegating orchestrator parsed a vendor's Agent Card advertising three skills: `summarize`, `translate`, and `extract_structured`. The card declared `capabilities.streaming: true`, `capabilities.pushNotifications: true`, and a `defaultInputModes`/`defaultOutputModes` pair of `["text/plain", "application/json"]`. The orchestrator selected the remote for a `translate` subtask with `outputMode: application/json`. Trace: 1. `tasks/send` accepted with `task.id = t-9f2a`, state `submitted`. HTTP 200. 2. State transitioned to `working` within 400 ms — the remote's router accepted the task. 3. The router resolved `translate` to a model endpoint pinned to a *text-only* build (tenant flag `json_output_enabled=false`). The skill was registered, but its output-mode capability was gated. 4. No `status.message` was emitted. The runtime did not treat the mode mismatch as a task failure; it fell back to `text/plain` and produced a prose translation. 5. Task transitioned to `completed` with an artifact of `mimeType: text/plain` — a *legal* artifact under the card's declared `defaultOutputModes`, because the card advertised a superset. 6. The orchestrator's downstream parser expected JSON, received prose, and raised a parse error *two hops later*, attributing the failure to its own extraction stage rather than to the delegation. The card was not wrong in the sense of lying: `application/json` was a valid output mode for the agent *as a whole*. The downgrade was scoped to a single skill under a single tenant flag. A2A v1.0 Agent Cards have no per-skill output-mode declaration that would have caught this, and no `capabilities` field that reflects runtime gating. A second trace with the same remote: a `tasks/sendSubscribe` for `extract_structured` returned a stream that opened with `working`, emitted zero artifact chunks, and closed with `completed` and an empty artifact list. The skill had been kill-switched at the router (returned a no-op handler), but the task lifecycle still completed cleanly. The delegating agent, which treated `completed` as success, propagated an empty result into a downstream aggregation and produced a silently truncated report. ## Condition of Validity The failure requires all of the following to co-occur: - The remote card declares a capability superset (multi-skill card, multi-mode `defaultOutputModes`, or `streaming: true`) whose *intersection* with the actual runtime is narrower than the card. - The delegating agent selects the remote on card-level fields alone, without a probe task or a capability-confirmation step. - The remote's router degrades rather than fails: it substitutes a legal-but-wrong output mode, returns an empty artifact, or parks the task in a state that the delegating agent's timeout does not cover. - The delegating agent's success predicate is `state == completed` rather than a schema/artifact assertion. It does *not* apply when the remote fails loudly (`state == failed` with a `status.message`), when the card is generated from the same manifest the router enforces, or when the caller validates artifacts against the requested `outputMode` before accepting `completed`. ## Decision Boundary The boundary is: **accept `completed` as success only when the returned artifact's `mimeType` matches the requested `outputMode` and the artifact is non-empty; otherwise treat `completed` as a *degraded* terminal state and escalate.** Concretely, the delegating instance must: - Bind the requested `outputMode` into the task's acceptance predicate, not just the request. A `completed` task whose artifact `mimeType` differs from the requested mode is a downgrade, not a success. - Treat `completed` with an empty artifact list, or with a stream that closed without any artifact chunk, as a *capability denial* — the skill was routed to a no-op. - Distinguish `working`-with-no-progress from `working`-with-progress by tracking the last `status.timestamp` and any artifact/`status.message` delta; a `working` task whose timestamp has not advanced within the negotiated deadline is a routing failure, not a slow task. - On first contact with a remote, run a cheap *canary task* per skill the orchestrator intends to use, asserting the artifact mode and non-emptiness, before trusting the card for a real subtask. Cache the canary result with a TTL and invalidate on any `failed`/downgrade signal. The invariant to enforce: **a remote's effective capability for a given (skill, outputMode) pair is established by a successful canary, not by the Agent Card.** The card is a hint; the canary is the contract. ## Operational Effect Without the canary and the artifact-mode predicate, capability downgrades are absorbed silently and surface as downstream parse errors, empty aggregations, or truncated reports attributed to the wrong stage — the delegating agent's own reasoning, not the remote's gating. The blast radius is proportional to fan-out: a single downgraded `translate` skill in a 50-subtask delegation produces 50 prose artifacts that each fail extraction, and the orchestrator's error-compounding loop retries the *extraction* stage rather than re-routing the *delegation*, burning the token budget on a fix that cannot succeed. With the predicate and canary in place, the downgrade is caught at the delegation boundary: the orchestrator sees `completed` + `mimeType: text/plain` against a requested `application/json`, classifies it as `CapabilityDowngrade`, and either re-negotiates (request `text/plain` and run its own JSON extraction) or re-routes to a remote whose canary passed. The failure is contained to one hop and attributed correctly. ```python from dataclasses import dataclass from enum import Enum class CapabilityDowngradeError(RuntimeError): """Raised when a remote A2A agent completes a task but the artifact violates the requested (skill, outputMode) contract, indicating the runtime capability is narrower than the Agent Card advertised.""" class TaskState(Enum): SUBMITTED = "submitted" WORKING = "working" COMPLETED = "completed" FAILED = "failed" CANCELED = "canceled" @dataclass class Artifact: mime_type: str payload: bytes @dataclass class TaskResult: task_id: str state: TaskState artifacts: list[Artifact] status_message: str | None = None def accept_delegated_result( result: TaskResult, requested_skill: str, requested_output_mode: str, canary_passed: bool, ) -> Artifact: if result.state == TaskState.FAILED: raise CapabilityDowngradeError( f"task {result.task_id} failed on remote: {result.status_message!r}" ) if result.state != TaskState.COMPLETED: raise CapabilityDowngradeError( f"task {result.task_id} terminal state {result.state.value} " f"is not a success for skill={requested_skill!r}" ) if not canary_passed: raise CapabilityDowngradeError( f"skill={requested_skill!r} has no passing canary; " f"Agent Card capability is unverified for outputMode={requested_output_mode!r}" ) if not result.artifacts: raise CapabilityDowngradeError( f"task {result.task_id} completed with empty artifact list; " f"skill={requested_skill!r} likely routed to a no-op handler" ) artifact = result.artifacts[0] if artifact.mime_type != requested_output_mode: raise CapabilityDowngradeError( f"task {result.task_id} returned mimeType={artifact.mime_type!r} " f"but requested outputMode={requested_output_mode!r}; " f"remote silently downgraded skill={requested_skill!r}" ) return artifact ```