# Under what conditions must an instance treat a peer's Agent Card as a capability claim rather than a capability fact during cross-vendor A2A delegation **Date of Record:** 2026 November 27 **Scope:** Applies to A2A v1.0 discovery where a delegating agent resolves a peer via `/.well-known/agent.json`, caches the card, and dispatches `tasks/send` against declared `skills[].capabilities`. Does not cover intra-vendor static routing or MCP tool schemas, which lack the discovery/caching split that creates this failure. ## Core Distinction An Agent Card is a *self-declared advertisement*, not a verified contract. The discovery step (`GET /.well-known/agent.json`) returns a JSON document authored by the remote vendor describing `name`, `version`, `capabilities`, `skills[]`, `defaultInputModes`, and `securitySchemes`. The delegating runtime has two distinct obligations that are routinely conflated: 1. **Discovery conformance** — does the returned document parse against the A2A v1.0 schema, and does the `protocolVersion` match a version the caller speaks? 2. **Capability conformance** — does the peer *actually* honor the `skills[]` it advertises when a task arrives with a given `inputMode`, `outputMode`, and payload shape? The boundary failure is treating a passing check on (1) as evidence of (2). The card is a promise; the `tasks/send` response is the settlement. Between them lies an unbounded gap: schema-valid cards are frequently emitted by deployment pipelines that template a superset of skills the actual inference backend supports, or that lag behind a model swap that silently dropped an input modality. The card is cached (often with a TTL of minutes to hours), so the gap persists across many dispatches before any single failure surfaces. The invariant that holds: **a card advertises the union of skills the vendor *intends* to serve; a task succeeds only if the card's claim intersects the backend's *actual* capability for the specific payload.** Schema validity guarantees nothing about that intersection. ## What Was Observed A delegating orchestrator (vendor A) resolved a peer (vendor B) whose card declared a `skill` with `id: "summarize-doc"`, `inputModes: ["text/plain", "application/pdf"]`, and `outputModes: ["text/markdown"]`. The card validated cleanly, `protocolVersion: "1.0"` matched, and A cached it for 3600s. A dispatched a task with `message.parts[0].type = "file"`, `mimeType = "application/pdf"`, expecting a markdown summary. B returned a `task` in state `completed` with an artifact whose `parts[0].type = "text"` containing the string: ``` [unsupported input mode: application/pdf — processed as text/plain fallback] ``` No error. No `failed` state. A `completed` task with a semantically wrong artifact. B's backend had dropped PDF parsing in a model migration three days earlier; the card generator was a static YAML that still listed `application/pdf` because no one had regenerated it. The card was *valid* and *stale simultaneously* — a state the schema cannot express. Two further observations compounded the failure: - **Silent fallback, not rejection.** B's handler caught the unsupported MIME type and degraded rather than returning `-32005` (unsupported input mode) per the spec's error taxonomy. The degradation was invisible to A because `completed` is a terminal success state. - **Cache amplification.** A had 47 in-flight and queued tasks against the cached card. All 47 received the same fallback artifact. The failure was not per-call; it was per-cache-entry, and the blast radius scaled with TTL, not with request rate. A downstream auditor agent, verifying outputs against source, flagged 47 artifacts as "summary does not derive from source." The verification layer had no signal that the *transport* had degraded — only that the *content* was wrong. It attributed the fault to the summarizer's reasoning, not to a capability mismatch, and opened a reasoning-quality incident against B. The actual root cause was a discovery-layer conformance gap. ## Condition of Validity The "card as fact" assumption is valid **only** when all of the following hold simultaneously: 1. The card's `skills[].inputModes`/`outputModes` are generated from the *same* runtime introspection that gates the task handler — i.e., the card and the handler read from one source of truth, not two. 2. The card is served with a content hash or `etag`, and the delegator revalidates on a cadence shorter than the backend's deploy cadence. 3. The peer returns a *typed rejection* (`-32005` unsupported input mode, or `task.state = "failed"` with a `reason`) rather than a silent fallback when a declared mode is actually unavailable. 4. The delegator's cache TTL is bounded by the peer's advertised `card.ttl` (or a conservative default), not by the delegator's own convenience. When any of these is false — and in cross-vendor delegation at least one almost always is, because the delegator cannot inspect the peer's card-generation pipeline — the card must be demoted from *fact* to *claim*, and every dispatch must carry a cheap post-hoc capability assertion. The condition of validity is therefore **not** "the card is schema-valid." It is "the card is schema-valid **and** the peer's rejection path is typed **and** the delegator revalidates before TTL expiry." Absent all three, the delegator is operating on an unverified claim. ## Decision Boundary The delegator must choose, per dispatch, between two postures: - **Trust posture** — dispatch against the card, accept `completed`, skip capability re-assertion. Permissible only under the four conditions above. Cheap, fast, and correct only when the peer's card is introspected and its rejections are typed. - **Probe posture** — dispatch, then *assert* the artifact's shape against the requested `outputModes` and the payload's `inputModes` before accepting. If the artifact's structure contradicts the card's claim (e.g., a `text/plain` fallback marker where `application/pdf` was requested, or an artifact `mimeType` outside the declared `outputModes`), the delegator must treat the task as *transport-failed*, not *content-failed*, and must invalidate the card cache entry. The boundary is crossed the moment a `completed` task returns an artifact whose `mimeType` or structure is inconsistent with the dispatched `inputMode`/`outputMode` pair. At that instant the delegator has positive evidence that the card's claim diverged from the backend's behavior, and continuing in trust posture converts a discovery fault into a downstream reasoning-quality fault — misattributed, as observed, to the peer's summarizer rather than to its card. The decision rule: **a `completed` task is not evidence of capability conformance unless the artifact's shape is consistent with the requested modes.** Any inconsistency triggers cache invalidation and re-resolution, not retry against the same cached card. ## Operational Effect Enforcing the probe posture changes three operational properties: 1. **Failure attribution shifts from content to transport.** The 47 misattributed artifacts become 47 transport-conformance failures against a stale card, routed to B's card-generation pipeline rather than to its summarizer. This is the correct owner. 2. **Cache TTL becomes a correctness parameter, not a performance knob.** A 3600s TTL on an unverified card is a 3600s window of guaranteed misdispatch after any backend deploy. The delegator must bound TTL by the peer's advertised card freshness and must invalidate on the first shape inconsistency, not on the next scheduled refresh. 3. **Rejection-path conformance becomes a prerequisite for trust posture.** A peer that silently falls back cannot be trusted-posture delegated to, regardless of card validity, because its card is unfalsifiable by observation. The delegator must either require typed rejection (negotiated at discovery via `capabilities.pushNotifications` or an extension) or permanently demote that peer to probe posture. The invariant to encode: *a card is a claim; a task artifact's shape is the only settlement signal the delegator controls; any divergence between the two invalidates the claim for all tasks sharing that cache entry.* ```python import hashlib from dataclasses import dataclass, field from typing import Optional class CardClaimViolation(RuntimeError): """Raised when a completed task's artifact shape contradicts the cached Agent Card claim.""" pass @dataclass class AgentCard: peer_id: str protocol_version: str skills: dict # skill_id -> {"inputModes": [...], "outputModes": [...]} etag: str ttl_seconds: int @dataclass class TaskArtifact: task_id: str state: str # "completed" | "failed" mime_type: str body: str fallback_marker: Optional[str] = None @dataclass class CardCache: card: AgentCard resolved_at: float content_hash: str = field(init=False) def __post_init__(self): self.content_hash = hashlib.sha256( repr(self.card.skills).encode() ).hexdigest() def assert_capability_conformance( cache: CardCache, skill_id: str, requested_input_mode: str, requested_output_mode: str, artifact: TaskArtifact, now: float, ) -> None: # TTL bound: an expired card is a claim past its freshness window. if now - cache.resolved_at > cache.card.ttl_seconds: raise CardClaimViolation( f"card for {cache.card.peer_id} expired at ttl={cache.card.ttl_seconds}s; " f"re-resolve before accepting artifact {artifact.task_id}" ) skill = cache.card.skills.get(skill_id) if skill is None: raise CardClaimViolation( f"peer {cache.card.peer_id} returned artifact for undeclared skill {skill_id}" ) if requested_input_mode not in skill["inputModes"]: raise CardClaimViolation( f"dispatched inputMode {requested_input_mode} not in card claim {skill['inputModes']}" ) # The core boundary check: a completed task whose artifact shape contradicts # the requested output mode, or carries a fallback marker, is a transport # conformance failure, not a content failure. if artifact.state == "completed" and artifact.fallback_marker is not None: raise CardClaimViolation( f"peer {cache.card.peer_id} silently fell back on task {artifact.task_id}: " f"{artifact.fallback_marker!r}; card claim unverified, invalidate cache" ) if artifact.mime_type not in skill["outputModes"]: raise CardClaimViolation( f"artifact {artifact.task_id} mimeType {artifact.mime_type} outside " f"declared outputModes {skill['outputModes']} for skill {skill_id}" ) ```