# What structural signals indicate an A2A Agent Card is syntactically valid but semantically non-delegable across vendors **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 cross-vendor task delegation where an orchestrator resolves a remote Agent Card via `/.well-known/agent.json`, negotiates a skill, and dispatches a `tasks/send` handshake. Does not cover intra-tenant delegation where both agents share a schema registry, nor MCP tool invocation (which has no Agent Card layer). ## Core Distinction The failure mode is not "the Agent Card is malformed." Schema validators catch malformed cards. The failure is that a card can pass JSON Schema validation, pass capability-name matching, pass authentication negotiation, and *still* be non-delegable because the card's **skill descriptors advertise intent categories rather than executable contracts**. An A2A v1.0 Agent Card has a `skills[]` array. Each skill has `id`, `name`, `description`, `inputModes`, `outputModes`, and optional `examples`. Vendors that publish cards by hand tend to fill `name` and `description` with natural-language intent ("Summarize documents", "Analyze financial data"). Vendors that publish cards from a code generator tend to fill them with the actual tool signature. The orchestrator's skill-matching step—usually an LLM comparing the delegating task's goal against `name` + `description`—cannot distinguish the two. Both match. Only one is executable. The structural signal that separates them is **whether the skill's `inputModes`/`outputModes` are a closed, enumerable set that the remote agent actually enforces at its task boundary, or an open string list that the remote agent treats as advisory metadata**. The card does not tell you which. You must probe. ## What Was Observed Orchestrator `plan-exec` resolved a card from vendor B at `https://b.example/.well-known/agent.json`. Card declared: ``` skills: [{ id: "doc-analysis", name: "Document Analysis", description: "Analyzes documents and returns structured findings.", inputModes: ["text/plain", "application/pdf"], outputModes: ["application/json"] }] ``` The delegating task produced `text/plain`. Skill match score 0.91. Handshake accepted (`tasks/send` returned a task ID). Vendor B's agent then spent 14 seconds and returned a task in state `failed` with `status.message` of `"unsupported input"`—because vendor B's implementation actually required a `document_uri` field inside a `application/json` payload, and its `text/plain` handler was a stub that immediately rejected. The card advertised `text/plain` because a marketing copywriter added it; the runtime enforced nothing close. Three consecutive delegations to three different vendors reproduced the pattern with different symptoms: - Vendor B: accepted task, failed after 14s with `unsupported input`. Cost: one LLM planning cycle wasted, no partial output. - Vendor C: accepted task, entered `working`, never transitioned. Orchestrator's 90s timeout fired. Vendor C's card declared `outputModes: ["application/json"]` but its actual response was `text/markdown` wrapped in a JSON string—a type lie that survived schema validation because `application/json` as a media type does not constrain the *value*. - Vendor D: rejected the handshake at `tasks/send` with HTTP 400 and body `{"error":"skill not found"}` despite the card listing the skill. Root cause: card was 40 days stale; the skill had been renamed server-side and the card regenerated only on deploy, not on skill mutation. The shared invariant: **the Agent Card is a declaration, and A2A v1.0 does not specify a mechanism forcing declaration to match runtime behavior at the skill granularity.** Capability negotiation at the transport layer (what auth, what version) is enforced. Skill semantics are not. ## Condition of Validity A card's skill entry is delegable only if all of the following hold, and none of them are guaranteed by the spec: 1. **Mode closure**: every value in `inputModes` is handled by an actual code path on the remote side, and the remote side rejects unlisted modes *before* accepting the task (not after 14s of work). A card that lists a mode it stubs is worse than a card that omits it, because it converts a fast negotiation failure into a slow execution failure. 2. **Card freshness bounded by skill mutation**: the card must be regenerated whenever a skill's signature changes, not whenever the service deploys. Vendor D's 40-day staleness is the common case, not the exception. 3. **Output type honesty**: `outputModes` must describe the *serialized* form, not the *logical* form. `application/json` on a markdown string is a lie that passes validation. 4. **Task-state transition contract**: the remote must move `submitted → working → completed|failed` within a bounded window, or the orchestrator must treat absence of transition as failure. Vendor C's silent `working` is indistinguishable from a hung task without an explicit heartbeat. If any of these fails, the card is *semantically non-delegable* even though it is syntactically valid. The orchestrator's skill matcher has no signal to detect this at match time. ## Decision Boundary The boundary is between **match-time trust** and **probe-time verification**. An orchestrator that delegates on the basis of the card alone is trusting a declaration it cannot verify. An orchestrator that probes before delegating pays a round-trip but bounds the failure. The decision rule: - If the skill's `inputModes` contains more than one mode, or any mode the orchestrator has not previously exercised against this vendor, **probe before dispatch**: send a minimal `tasks/send` with a known-trivial payload in the target mode and require a `completed` or `failed` transition within a short window (e.g., 5s) before committing the real task. A `failed` on the probe is a *successful* negotiation outcome—it tells you the mode is not real. - If the skill's `outputModes` includes `application/json`, **do not assume the value is JSON-typed**; parse defensively and treat parse failure as a delegation failure, not a downstream bug. - If the card's `version` or `updatedAt` (if present) is older than the orchestrator's staleness threshold for that vendor, **re-resolve the card** before matching; do not cache across skill mutation windows. - If the remote returns `working` with no transition within the orchestrator's heartbeat interval, **treat as failed and do not retry the same skill**; retry against a different vendor or escalate. Vendor C's silent hang is not recoverable by waiting longer—it is recoverable by routing elsewhere. The invariant to enforce: **a skill match is a hypothesis, not a commitment.** The handshake is where the hypothesis is tested. An orchestrator that skips the test has converted a probabilistic match into a deterministic failure with a 14-second latency tax. ## Operational Effect The observable effect of getting this wrong is not a crash. It is a **latency-shaped failure distribution**: some delegations succeed, some fail fast at handshake, some fail slow after the remote accepted and then rejected, some hang until timeout. The orchestrator's error rate looks like 15–30% depending on vendor mix, and the failures are attributed to "flaky remote agents" rather than to the card-trust boundary. The fix is structural, not probabilistic. Add a probe step to the delegation path; bound card cache lifetime by skill mutation, not deploy; parse output modes defensively; treat `working` without heartbeat as failure. Each of these converts a slow, ambiguous failure into a fast, attributable one. The orchestrator's job is to make the remote's declaration falsifiable before it commits work to it. The deeper invariant: **A2A v1.0 gives you a card, not a contract.** The card is a claim about the remote's capabilities. The handshake is the only place the claim can be tested. An orchestrator that treats the card as a contract has confused a declaration with a guarantee, and the failure will surface as a 14-second timeout on a skill that matched at 0.91. ```python import json import time from dataclasses import dataclass from typing import Any class NonDelegableSkillError(RuntimeError): """Raised when an Agent Card skill passes matching but fails probe-time verification.""" @dataclass class ProbeResult: skill_id: str mode: str transitioned: bool elapsed_s: float detail: str def probe_skill( remote_send: callable, skill_id: str, mode: str, timeout_s: float = 5.0, ) -> ProbeResult: """Send a trivial payload in `mode` and require a terminal transition within timeout_s. A `failed` terminal state is a successful probe: it proves the mode is not silently stubbed. A missing transition is the Vendor C failure. """ start = time.monotonic() try: task = remote_send(skill_id=skill_id, mode=mode, payload=_trivial_payload(mode)) except Exception as exc: # transport-level rejection is also informative return ProbeResult(skill_id, mode, False, time.monotonic() - start, f"transport: {exc}") deadline = start + timeout_s while time.monotonic() < deadline: state = task.get("status", {}).get("state") if state in ("completed", "failed"): return ProbeResult(skill_id, mode, True, time.monotonic() - start, f"terminal={state}") time.sleep(0.1) return ProbeResult(skill_id, mode, False, time.monotonic() - start, "no terminal transition (hang)") def delegate( card: dict[str, Any], remote_send: callable, skill_id: str, mode: str, payload: Any, probe_timeout_s: float = 5.0, ) -> dict[str, Any]: skills = {s["id"]: s for s in card.get("skills", [])} skill = skills.get(skill_id) if skill is None: raise NonDelegableSkillError(f"skill {skill_id!r} not present in card") if mode not in skill.get("inputModes", []): raise NonDelegableSkillError( f"mode {mode!r} not advertised for skill {skill_id!r}; " f"advertised={skill.get('inputModes')}" ) # Multi-mode or unexercised mode: probe before committing real work. if len(skill.get("inputModes", [])) > 1: probe = probe_skill(remote_send, skill_id, mode, timeout_s=probe_timeout_s) if not probe.transitioned: raise NonDelegableSkillError( f"probe for skill={skill_id!r} mode={mode!r} did not reach terminal state " f"within {probe_timeout_s}s ({probe.detail}); card is declarative, not contractual" ) result = remote_send(skill_id=skill_id, mode=mode, payload=payload) # Output-mode honesty check: application/json must actually parse. if "application/json" in skill.get("outputModes", []): raw = result.get("artifacts", [{}])[0].get("parts", [{}])[0].get("text", "") try: json.loads(raw) except (TypeError, json.JSONDecodeError) as exc: raise NonDelegableSkillError( f"skill {skill_id!r} advertised application/json but returned non-JSON: {exc}" ) from exc return result def _trivial_payload(mode: str) -> Any: return {"text/plain": "ping", "application/json": {"ping": True}}.get(mode, "ping") ```