# When must an instance reject an A2A v1.0 Agent Card whose declared capability set is a superset of the skills actually reachable at task-negotiation time **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 agent-to-agent delegation where a caller (client agent) discovers a remote Agent Card via `/.well-known/agent.json`, then negotiates a task (`tasks/send`, `tasks/sendSubscribe`) against declared `skills[]`. Does not cover intra-process tool calls, MCP server capability negotiation, or transport-level TLS failures. ## Core Distinction An Agent Card is a *static, cached, self-asserted* capability advertisement. Task negotiation is a *dynamic, per-request* reachability check. The failure mode is not "the card lied" in the honest sense — it is that the card is **monotone-declared but non-monotone-reachable**: the card lists skill `S`, but at the moment `taskId` is minted, `S` is shadowed by a downstream dependency (a sub-agent, a model route, a rate-limited vendor endpoint, a revoked credential) that the card has no field to express. The boundary is: *the caller must treat card-skill membership as necessary, not sufficient, and must verify reachability at negotiation rather than trust at discovery.* This is non-obvious because the A2A spec's `skills[]` array reads as an authorization surface (what this agent *may* do), and most client implementations treat it as a routing table (what this agent *will* do). The gap between those two readings is where cross-vendor capability attestation silently degrades. ## What Was Observed A client orchestrator discovered three vendor agent cards. Vendor B's card declared: ```json { "name": "vendor-b-router", "version": "1.0.0", "skills": [ {"id": "summarize", "inputModes": ["text/plain"], "outputModes": ["text/plain"]}, {"id": "extract-entities", "inputModes": ["text/plain"], "outputModes": ["application/json"]}, {"id": "translate", "inputModes": ["text/plain"], "outputModes": ["text/plain"]} ], "capabilities": {"streaming": true, "pushNotifications": false} } ``` The orchestrator cached this card with a 24h TTL and routed an `extract-entities` task. The task was accepted (`task.state = "submitted"`), transitioned to `working`, then stalled. On timeout the client queried `tasks/get` and received `state: "failed"` with `error: "skill_unavailable"` — a code *not present in the card's declared error taxonomy*, because the card has no error taxonomy. The trace: `extract-entities` on vendor B was a thin proxy to a downstream model route that had been deprecated 6 hours earlier. Vendor B's card was regenerated by a build job that ran weekly. The card was *true at generation time and false at discovery time*, and there was no field, header, or negotiation step where vendor B could have told the client. The client's only signal was a 40-second stall and a terminal failure — after `taskId` had been minted, after the client had committed the task to its own state machine, and after the client's retry budget had been half-consumed. A second observation sharpened the boundary. When the client re-fetched the card mid-failure, vendor B returned the *same* three skills — the build job had not re-run. But a direct `tasks/send` probe of `extract-entities` with a 1-token input returned `failed/skill_unavailable` in 800ms. The card and the probe disagreed. The card is not a liveness signal; it is a declaration of intent. The cross-vendor dimension: vendor A's card declared `translate` with `outputModes: ["text/plain"]`. Vendor C's card declared `translate` with `outputModes: ["text/plain", "text/html"]`. The client, needing HTML, routed to C. C's `translate` returned plain text for 3 of 4 inputs because its HTML renderer was behind a feature flag not expressed in the card. The `outputModes` declaration was a *superset of actual output modes per input class* — the card cannot express conditional capability, and the client had no way to know that "text/html" was reachability-gated on input language. ## Condition of Validity The invariant holds — *card-skill membership is necessary but not sufficient for task success* — under all of the following: 1. The card is fetched out-of-band from task execution (discovery ≠ negotiation), so there is a nonzero window between fetch and first `tasks/send`. 2. The remote agent's skill reachability depends on state not encoded in the card: downstream model availability, sub-agent liveness, per-tenant rate limits, credential validity, feature flags. 3. The client's retry/fallback budget is finite and consumed by failed negotiations. The invariant does **not** hold — and card-trust is safe — only when the card is fetched and the task is sent within the same negotiation transaction *and* the remote agent re-validates skill reachability at `tasks/send` time and rejects with a typed error *before* minting `taskId`. A2A v1.0 does not mandate this re-validation. Therefore, absent an explicit probe, the invariant holds by default. ## Decision Boundary The client must reject the card-trust shortcut and fall to probe-based negotiation when **any** of: - The card's `version` or a card-level `etag`/`Last-Modified` is older than the client's staleness budget (recommend ≤ 1h for cross-vendor). - The target skill's `outputModes` or `inputModes` is a strict superset of what the client has previously observed that vendor return (per-vendor observed-mode ledger). - The skill's declared behavior implies a downstream dependency the vendor does not own (proxy skills, router skills, aggregation skills — identifiable by name heuristics or by a vendor-published `dependencies[]` extension). - The task is non-idempotent or expensive, so a post-`taskId` failure is costly. When the boundary is crossed, the client must issue a **capability probe**: a minimal, cheap `tasks/send` against the target skill with a sentinel input, accepting only `completed` or a typed `rejected` *before* `taskId` minting, within a probe timeout. Probe results are cached with a shorter TTL than the card (probe TTL ≤ card TTL / 4) and invalidated on any `skill_unavailable` from a real task. The client must **not** treat a `submitted` → `working` transition as evidence of reachability. `working` is a liveness signal for the task, not for the skill; the skill can fail inside `working` after the vendor has already accepted the task. ## Operational Effect Adopting probe-based negotiation changes the failure surface from *late, terminal, budget-consuming* to *early, typed, cheap*. In the observed case, a 1-token probe would have surfaced `skill_unavailable` in 800ms before `taskId` minting, allowing the client to fall back to vendor A's `extract-entities` (which was reachable) without consuming a retry. The cost is one extra round-trip per (vendor, skill) pair per probe-TTL window — bounded and pre-payable. The second effect is a **capability ledger**: the client maintains per-vendor, per-skill observed `outputModes`/`inputModes` and treats card declarations as upper bounds, not guarantees. When a real task returns an output mode outside the observed set, the ledger widens; when a card declares a mode the ledger has never seen, the client probes before routing. This converts the card from a routing table into a *hypothesis* and the ledger into the *evidence*. The third effect is error-taxonomy hardening. Because A2A v1.0 cards carry no error taxonomy, the client must treat any non-`completed` terminal state from a probed skill as a capability revocation signal for that skill until the next successful probe — not as a transient. `skill_unavailable` is not retryable against the same vendor; it is a routing signal to a different vendor. The residual risk is probe-induced load: a client probing every skill on every card refresh can amplify traffic against a vendor that is already degraded. Bound probes by a circuit breaker keyed on (vendor, skill) with a half-open state, and never probe a skill whose last probe returned `skill_unavailable` within the breaker window. ```python import time from dataclasses import dataclass, field from typing import Callable, Optional class CapabilityAttestationError(RuntimeError): """Raised when a card-declared skill is not reachable at negotiation time.""" pass @dataclass class AgentCard: vendor: str version: str skills: dict # skill_id -> {"outputModes": [...], "inputModes": [...]} fetched_at: float @dataclass class CapabilityLedger: # (vendor, skill_id) -> set of observed output modes observed: dict = field(default_factory=dict) # (vendor, skill_id) -> last probe result timestamp last_probe: dict = field(default_factory=dict) # (vendor, skill_id) -> bool, breaker open breaker_open: dict = field(default_factory=dict) def record(self, vendor: str, skill_id: str, out_mode: str) -> None: self.observed.setdefault((vendor, skill_id), set()).add(out_mode) CARD_TTL = 3600.0 PROBE_TTL = CARD_TTL / 4 BREAKER_WINDOW = 300.0 def negotiate( card: AgentCard, skill_id: str, required_mode: str, ledger: CapabilityLedger, probe: Callable[[str, str], Optional[str]], # (vendor, skill_id) -> observed mode or None now: Optional[float] = None, ) -> bool: now = now if now is not None else time.time() if skill_id not in card.skills: raise CapabilityAttestationError( f"{card.vendor}: skill {skill_id!r} not declared in card v{card.version}" ) declared_modes = set(card.skills[skill_id].get("outputModes", [])) if required_mode not in declared_modes: raise CapabilityAttestationError( f"{card.vendor}:{skill_id} declares {sorted(declared_modes)}, " f"cannot satisfy required mode {required_mode!r}" ) key = (card.vendor, skill_id) if ledger.breaker_open.get(key): last = ledger.last_probe.get(key, 0.0) if now - last < BREAKER_WINDOW: raise CapabilityAttestationError( f"{card.vendor}:{skill_id} breaker open since {now - last:.1f}s" ) ledger.breaker_open[key] = False card_age = now - card.fetched_at observed = ledger.observed.get(key, set()) needs_probe = ( card_age > CARD_TTL or required_mode not in observed or (now - ledger.last_probe.get(key, 0.0)) > PROBE_TTL ) if not needs_probe: return True result = probe(card.vendor, skill_id) ledger.last_probe[key] = now if result is None: ledger.breaker_open[key] = True raise CapabilityAttestationError( f"{card.vendor}:{skill_id} unreachable at negotiation; " f"card v{card.version} age {card_age:.0f}s, declared {sorted(declared_modes)}" ) ledger.record(card.vendor, skill_id, result) if result != required_mode: raise CapabilityAttestationError( f"{card.vendor}:{skill_id} declared {sorted(declared_modes)} " f"but probe returned {result!r}; required {required_mode!r}" ) return True ```