# What structural signals indicate a conformant A2A v1.0 agent card is actually un-delegatable at the task-handshake boundary **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 cross-vendor task delegation where a client agent discovers a remote agent via `/.well-known/agent.json`, validates the card against the published schema, and initiates a `tasks/send` or `tasks/sendSubscribe` handshake. Does not address intra-vendor delegation where card and runtime are co-deployed, nor streaming-only transport faults that surface after the first task event. ## Core Distinction A structurally valid agent card and a delegatable agent are two different invariants, and the A2A v1.0 discovery contract only guarantees the first. The card advertises *declared* capabilities: `skills[]`, `capabilities.streaming`, `capabilities.pushNotifications`, `defaultInputModes`, `defaultOutputModes`, and the `securitySchemes` map. The handshake exercises *enforced* capabilities: which skills the runtime will actually route, which input MIME types the executor will actually parse, and which auth scheme the edge proxy will actually accept. The failure mode is a card that passes schema validation, passes a shallow liveness probe, and still fails at the first task submission because the declared surface diverges from the enforced surface in a way the schema cannot express. This is not a bug in the card generator; it is a structural gap in the v1.0 card schema, which has no field for "this skill is declared but disabled," no field for "this input mode is advertised but the executor rejects it at parse time," and no field binding `securitySchemes` to the specific route the task endpoint serves. ## What Was Observed Across three cross-vendor delegations (a card published by a managed inference vendor, a card published by an open-source agent framework's hosted runtime, and a card published by an internal platform team's gateway), the same trace appeared at the handshake boundary: 1. **Discovery succeeds.** `GET /.well-known/agent.json` returns 200 with a card that validates cleanly against the v1.0 JSON schema. `skills[]` contains three entries; `defaultInputModes` is `["text/plain", "application/json"]`; `capabilities.streaming` is `true`; `securitySchemes` declares `{"bearer": {"type": "http", "scheme": "bearer"}}`. 2. **Liveness probe succeeds.** A `GET` to the advertised `url` returns 200. Some vendors return 200 from a static health route that does not share code with the task executor, so this probe carries almost no signal. 3. **Task submission fails at a boundary the card did not describe.** In case A, the client submits `tasks/send` with `message.parts[0].type = "text"` and `metadata.skillId` set to the second declared skill; the runtime returns a `-32601 Method not found`-shaped error because the skill is declared in the card but not registered in the runtime's skill router (a stale card, published from a build manifest that outlived the feature flag). In case B, the client submits `application/json` input as advertised; the executor's parser only accepts `text/plain` and returns a task-level error with `state: "failed"` and a message that names a MIME type not present anywhere in the card. In case C, the card declares bearer auth, but the task endpoint sits behind a gateway that requires a vendor-specific `X-Api-Key` header *in addition to* bearer; the bearer token validates, the task is accepted, and then the task fails asynchronously with an authorization error after the client has already committed to a multi-turn `sendSubscribe` stream. The common structural signal in all three: the card's declared surface and the runtime's enforced surface were produced by different build artifacts with no shared validation step. The card is a *publication*, not a *projection of the live router*. ## Condition of Validity The delegation is valid only when all of the following hold simultaneously, and the card schema can only attest to the first: - The card validates against the v1.0 schema (necessary, not sufficient). - Every `skills[].id` resolves in the runtime's skill router at task-submission time, not at card-publication time. - Every entry in `defaultInputModes` is accepted by the executor's parser for at least the skills the client intends to invoke. - Every scheme in `securitySchemes` is sufficient *alone* to authorize the specific route serving `tasks/send`, not merely to pass an edge auth check. - `capabilities.streaming` reflects the transport the task endpoint actually negotiates, not the transport the fronting CDN supports. The invariant that bounds this failure is: **a card is delegatable only if it is regenerated from the live router on every publication, and the client verifies at least one skill per declared input mode before committing to a multi-turn stream.** Neither half is expressible in the v1.0 schema, so both must be enforced out-of-band. ## Decision Boundary The client agent must decide, before the first `tasks/send`, whether to trust the card or to probe it. The boundary is not "is the card valid" but "has the card been proven to project the live router." A useful decision rule: - If the card's `skills[]` and `defaultInputModes` were published in the same artifact as the runtime (co-deployed, single build), trust the card and skip probing. - If the card and runtime are separately deployed (any cross-vendor case), treat the card as a *hypothesis* and run a cheap conformance probe: submit a minimal `tasks/send` per declared input mode against the lowest-risk skill, with a short timeout, and require a task-level `state: "completed"` or `"working"` — not merely a 200 — before committing to `sendSubscribe` or to any skill the probe did not touch. - If the probe returns a task-level failure whose message names a capability not in the card, abort delegation and record the divergence; do not retry with guessed parameters, because the divergence is structural and retries will consume the token budget without converging. The boundary is crossed the moment the client opens a `sendSubscribe` stream on the strength of card validation alone. Once the stream is open, a late authorization or parser failure arrives as an asynchronous task event, and the client has already spent context on the handshake and must now unwind state it committed to optimistically. ## Operational Effect The operational consequence is that card validation must be decoupled from delegation commitment. A conformant client treats the card as a discovery hint and gates commitment on a per-input-mode, per-scheme conformance probe whose success criterion is a task-level state transition, not an HTTP status. The probe cost is one short task per input mode per delegation target, which is cheap relative to the cost of unwinding a failed `sendSubscribe` stream, and it converts a class of silent, asynchronous, post-commitment failures into synchronous, pre-commitment rejections. The corresponding guardrail on the server side is that the card must be generated by the skill router at publication time and the publication must be invalidated when the router changes; a card that outlives its router is the root cause of every case above. ```python import json from dataclasses import dataclass, field from typing import Any class CardRuntimeDivergenceError(RuntimeError): """Raised when an A2A v1.0 agent card's declared surface diverges from the live router.""" @dataclass class ConformanceProbe: skill_id: str input_mode: str accepted: bool task_state: str | None = None detail: str = "" @dataclass class DelegationGate: card: dict[str, Any] probes: list[ConformanceProbe] = field(default_factory=list) def declared_input_modes(self) -> list[str]: return list(self.card.get("defaultInputModes", [])) def declared_skill_ids(self) -> list[str]: return [s.get("id") for s in self.card.get("skills", []) if s.get("id")] def record_probe(self, probe: ConformanceProbe) -> None: self.probes.append(probe) def assert_delegatable(self, intended_skill_id: str) -> None: if intended_skill_id not in self.declared_skill_ids(): raise CardRuntimeDivergenceError( f"skill {intended_skill_id!r} not declared in card; refusing delegation" ) relevant = [p for p in self.probes if p.skill_id == intended_skill_id] if not relevant: raise CardRuntimeDivergenceError( f"no conformance probe recorded for skill {intended_skill_id!r}; " "card validation alone is insufficient for cross-vendor delegation" ) for probe in relevant: if not probe.accepted or probe.task_state not in ("completed", "working"): raise CardRuntimeDivergenceError( f"probe for skill={probe.skill_id!r} input_mode={probe.input_mode!r} " f"failed at task level (state={probe.task_state!r}): {probe.detail}; " "declared surface diverges from enforced surface" ) def gate_delegation(card_json: str, intended_skill_id: str, probe_results: list[dict[str, Any]]) -> DelegationGate: card = json.loads(card_json) gate = DelegationGate(card=card) for r in probe_results: gate.record_probe( ConformanceProbe( skill_id=r["skill_id"], input_mode=r["input_mode"], accepted=r["accepted"], task_state=r.get("task_state"), detail=r.get("detail", ""), ) ) gate.assert_delegatable(intended_skill_id) return gate ```