# In what scenarios must an instance reject a delegated A2A task whose Agent Card advertises a capability that the callee's runtime cannot actually honor at execution time **Date of Record:** 2026 December 1 **Scope:** Applies to A2A v1.0 task delegation where a caller (delegator) resolves a remote Agent Card, selects a skill/capability by declared metadata, and dispatches a task expecting the callee to execute it. Does not cover intra-process skill routing, nor streaming-only interactions where the card is never fetched. ## Core Distinction An A2A Agent Card is a *declarative advertisement*, not a *runtime capability binding*. The card is a static (or semi-static) JSON document served at a well-known URI; it asserts that an agent *can* fulfill certain skills, with declared input/output modes, modalities, and optional extensions. Nothing in the v1.0 spec obligates the callee to verify that its live execution substrate—model weights loaded, tool backends reachable, sandbox permissions granted, downstream credentials valid—matches the card it published. The non-obvious boundary is this: **a delegator has no conformant way to distinguish "the callee can do this" from "the callee's card says it can do this."** Card discovery succeeds, schema negotiation succeeds, the task is accepted with a `submitted` → `working` transition, and only *then* does the callee discover—mid-execution—that the advertised skill cannot be honored. The failure is not at discovery; it is a *deferred conformance violation* that surfaces after the delegator has already committed state, budget, and downstream dependent tasks. ## What Was Observed A delegator agent, orchestrating a multi-step pipeline, resolved a peer's card at `/.well-known/agent.json`. The card declared a skill `summarize-and-extract` with `inputModes: ["text/plain", "application/json"]` and `outputModes: ["application/json"]`, plus an extension flag indicating structured-schema output. The delegator dispatched a task, transitioned it to `working`, and blocked two downstream tasks on its completion. The callee accepted the task (HTTP 200, task created, `status.state = "submitted"`). Approximately 40 seconds later—after the delegator's dependent tasks had already begun speculative preparation—the callee's worker attempted to route to a model backend that had been hot-swapped out of the serving pool for a canary. The skill's *card entry* was unchanged; the *runtime binding* behind it was gone. The callee returned `status.state = "failed"` with a generic `message` of "internal error," no A2A-standard error code indicating capability unavailability, and no signal that the failure was a *capability mismatch* rather than a transient fault. The delegator's retry logic—correctly keyed on "transient failure"—retried the same task against the same card three times, each time re-accepting, each time failing identically. The retry storm consumed the delegator's token budget for the step and starved two sibling tasks. A second observed variant: the callee's card advertised `outputModes: ["application/json"]`, but the live backend, under load, fell back to emitting free-text. The callee returned `completed` with an artifact whose `parts[].kind` was `text`, not `data`. The delegator's downstream parser, which trusted the card's output-mode declaration, raised a schema error *after* marking the task complete—producing a "successful" task whose artifact poisoned the next stage. ## Condition of Validity The failure is bounded by three conditions, all of which must hold for the deferred-conformance hazard to be live: 1. **Card staleness window > 0.** The callee's card is not regenerated atomically with runtime state changes (backend swaps, credential rotation, sandbox re-provisioning, model rollback). Any non-trivial gap between card publication and runtime mutation opens the window. 2. **Delegator treats card as a capability guarantee.** The delegator's dispatch logic selects skills by card metadata and does not perform a pre-flight capability probe or require a capability-echo in the task acceptance. 3. **Acceptance is decoupled from execution readiness.** The callee's task-acceptance path (returning `submitted`) does not gate on runtime readiness—it only validates request shape against the card. If any of the three is broken—card is regenerated on every backend change, delegator probes live capability, or acceptance gates on readiness—the hazard collapses. The invariant that prevents it is: **card-advertised capability must be a necessary condition for task acceptance, and acceptance must be a sufficient condition for the capability being live at the moment of acceptance.** v1.0 does not enforce this; it must be enforced by the callee's own admission control. ## Decision Boundary The delegator must decide, *before* dispatching, whether to trust the card or to demand a runtime attestation. The boundary is drawn by task cost asymmetry: - **If the task is idempotent, cheap, and has no dependent tasks blocked on it**, trusting the card is rational—retry is cheap, and the deferred failure is a nuisance, not a hazard. - **If the task has blocked dependents, consumes non-renewable budget, or mutates shared state**, the delegator MUST NOT treat card acceptance as readiness. It must require one of: (a) a pre-flight capability probe (a zero-cost `ping`-class task the callee answers only when the backend is live), (b) an acceptance-time capability assertion in the task response (a non-standard but permissible extension field echoing the resolved backend), or (c) a card `capabilities` block that the callee is contractually bound (and instrumented) to regenerate on every backend mutation. The callee, symmetrically, must decide whether to *reject at admission* rather than *accept-then-fail*. The boundary there is: if the callee cannot guarantee the backend will be live for the task's expected duration, it must return a task in `rejected` state with a structured reason, not `submitted`. Accepting a task it cannot honor is the conformance violation; failing it later is merely the symptom. ## Operational Effect When this boundary is unguarded, the observable effects are: - **Retry amplification against a stale capability.** The delegator's transient-failure retry loop is misclassified onto a permanent capability mismatch, multiplying load on an already-degraded callee. - **Dependent-task speculation waste.** Downstream tasks that began on the assumption of success must be rolled back; if they had side effects, rollback is partial and state diverges. - **Artifact schema poisoning.** A `completed` task whose artifact violates the card's declared `outputModes` corrupts every consumer that trusted the declaration, and the corruption is silent until a downstream schema check fires—often several stages later, far from the origin. - **Auditor disagreement.** A verification agent replaying the task against the *current* card may reach a different verdict than the delegator that acted on the *historical* card, because the card changed between dispatch and audit. Consensus protocols that compare verdicts without pinning the card version will deadlock or falsely flag divergence. The guardrail is a **capability-version pin**: the delegator records the card's `version` (or an ETag) at dispatch; the callee echoes it in the task response; the auditor replays against the pinned version. Any mismatch between echoed and pinned version is a hard rejection, not a retry. ## Operational Effect (continued) — Guardrail Implementation The following admission-control shim enforces the invariant that a callee must not accept a task whose advertised capability it cannot honor at acceptance time. It raises on the exact deferred-conformance condition. ```python class DeferredCapabilityConformanceError(RuntimeError): """Raised when a callee would accept a task whose card-advertised capability is not live at acceptance time, or when a delegator receives a task response whose capability/version echo does not match the pinned card it dispatched against.""" pass def admit_delegated_task(card: dict, live_runtime: dict, task_request: dict) -> dict: """ Callee-side admission control for A2A v1.0 delegated tasks. card: the Agent Card this callee currently publishes live_runtime: {skill_id: {"backend_live": bool, "output_modes": [...]}} task_request: {"skill_id": ..., "pinned_card_version": ..., ...} Returns an accepted-task envelope with a capability echo, or raises. """ skill_id = task_request.get("skill_id") pinned = task_request.get("pinned_card_version") declared = {s["id"]: s for s in card.get("skills", [])} if skill_id not in declared: raise DeferredCapabilityConformanceError( f"skill {skill_id!r} not declared in card; reject at admission" ) if pinned != card.get("version"): # Delegator dispatched against a different card generation. raise DeferredCapabilityConformanceError( f"card version drift: pinned={pinned!r} live={card.get('version')!r}; " "refuse rather than accept-then-fail" ) runtime = live_runtime.get(skill_id) if not runtime or not runtime.get("backend_live"): # THE BOUNDARY: card says yes, runtime says no. Do NOT return 'submitted'. raise DeferredCapabilityConformanceError( f"skill {skill_id!r} advertised but backend not live; " "must reject, not accept-then-fail" ) declared_modes = set(declared[skill_id].get("outputModes", [])) live_modes = set(runtime.get("output_modes", [])) if not declared_modes.issubset(live_modes): # Card promises modes the live backend cannot emit -> artifact poisoning. raise DeferredCapabilityConformanceError( f"output-mode mismatch for {skill_id!r}: " f"declared={declared_modes} live={live_modes}" ) return { "task": {"state": "submitted"}, "capability_echo": { "skill_id": skill_id, "card_version": card["version"], "backend_live": True, "output_modes": sorted(live_modes), }, } ```