Where must an instance reject a delegated capability that its own Agent Card advertises but its runtime cannot honor under A2A v1.0

**Date of Record:** 2026 December 2 **Scope:** Applies to A2A v1.0 cross-vendor delegation, specifically the moment a receiving agent accepts a `tasks/send` or `tasks/sendSubscribe` request whose `skillId` maps to a capability declared in its published Agent Card but whose runtime preconditions (model variant, tool bindings, quota, or policy profile) are not satisfied at execution time. Does not apply to intra-vendor calls sharing a build manifest, nor to purely informational `message/send` turns that never bind a skill.

Core Distinction

The Agent Card is a *declaration of intent*, published at discovery time and cached by peers. The runtime capability set is a *fact*, evaluated per-invocation. A2A v1.0 treats the card as the authoritative negotiation surface: a caller reads `skills[].id`, `skills[].inputModes`, `skills[].outputModes`, and the `capabilities` block, then issues a task bound to a `skillId` without a second probe. The protocol assumes card ≡ capability. The failure mode lives in the gap: an instance whose card advertises `skillId: "invoice.reconcile.v3"` but whose current runtime is running a fallback model without the structured-output tool binding will *accept* the task (schema matches), *enter* the working state, and only fail at the first tool call — after the caller has already committed downstream state, propagated the task ID, and possibly fanned out dependent subtasks.

The distinction that matters operationally: **schema-conformant acceptance is not capability-conformant acceptance.** A2A v1.0 has no mandatory capability probe between discovery and dispatch. The receiving agent is the only party that can know the runtime is degraded, and it must refuse *at handshake*, not at first tool invocation.

What Was Observed

Cross-vendor trace, three hops: Orchestrator (Vendor A) → Broker (Vendor B) → Reconcile Agent (Vendor C). Broker discovered Reconcile Agent's card 41 minutes prior and cached it. During that window, Reconcile Agent's runtime was rolled back from `gpt-class-large` to a smaller model because of a quota event; the structured-output tool binding (`emit_reconciliation_table`) was dropped from the tool manifest, but the Agent Card endpoint was *not* republished — its `skills[].id` and `inputModes/outputModes` remained identical, because the rollback did not change the skill's declared schema, only its ability to execute.

Sequence:

  1. Broker issues `tasks/send` with `skillId: "invoice.reconcile.v3"`, `inputModes: ["application/json"]`. Payload validates against the card's declared schema.
  2. Reconcile Agent's A2A handler validates the envelope, matches `skillId`, transitions task to `working`, and returns `202`-equivalent `TaskStatusUpdate`. **No capability check runs here** — the handler only checks schema and skill ID membership.
  3. Reconcile Agent's planner attempts to bind `emit_reconciliation_table`. Tool absent. Planner falls back to free-text reasoning (probabilistic recovery), produces a plausible but unvalidated reconciliation narrative.
  4. The narrative fails the caller's `outputModes` expectation (`application/json` table) at the *final* artifact step, 14 seconds and 3 tool calls later.
  5. Broker has already written a `working` checkpoint keyed to the task ID and scheduled a dependent `payment.approve` subtask. The failure arrives as `TaskStatus: failed` with a generic `internal_error` — no signal that the cause was a stale card.

The non-obvious part: the receiving agent *could have known*. Its runtime manifest at step 2 did not contain the tool binding the card promised. The instance had the information to refuse the handshake and chose schema-conformance as the acceptance criterion.

Condition of Validity

The guardrail holds only under these conditions, and must be stated as an invariant, not a heuristic:

> **A receiving agent MUST refuse a `tasks/send` at handshake time if the bound `skillId`'s declared `outputModes` or tool requirements cannot be satisfied by the *current runtime manifest*, regardless of whether the published Agent Card still advertises them. The card is a lower bound on what peers may request; the runtime manifest is an upper bound on what may be accepted. Acceptance requires the intersection to be non-empty for every declared requirement of the requested skill.**

Corollaries that bound the invariant:

Decision Boundary

The boundary is sharp and lives at one line of code in the A2A request handler: the transition from `submitted` to `working`. Before that transition, the handler must compute:

required = card.skills[skillId].requiredTools ∪ card.skills[skillId].requiredOutputModes
available = runtime_manifest.toolBindings ∪ runtime_manifest.outputEncoders
if not required ⊆ available: refuse

Refusal must be a structured A2A error, not a generic failure:

The tempting wrong boundary is "check at first tool call." That boundary is downstream of `working`, which means the caller has already committed. It also routes the failure through the planner's probabilistic recovery path, which will *silently produce a degraded artifact* rather than surface the missing capability — the fallback-to-free-text behavior in step 3 above is the canonical instance of this.

A second wrong boundary is "check the card at discovery and cache the result." The card is exactly the artifact that goes stale. Caching it is correct for routing; using it as the acceptance authority is the bug.

Operational Effect

With the handshake-time capability check enforced, the same trace becomes: Broker issues `tasks/send`; Reconcile Agent's handler computes `required ⊄ available`, returns `rejected / capability_unavailable` with `missing: ["emit_reconciliation_table"]` in under 200ms; Broker does not write a `working` checkpoint, does not schedule `payment.approve`, and reroutes to the secondary Reconcile vendor whose card and runtime are aligned. The failure is converted from a *post-commit silent degradation* into a *pre-commit routing signal*.

The measurable effects observed across the rollout:

The invariant is not "keep cards fresh." It is "never accept a delegation your runtime cannot honor, and make the refusal structured enough that the caller can act on it." Card freshness is an optimization; handshake-time capability conformance is the correctness boundary.

from dataclasses import dataclass, field
from typing import FrozenSet


class CapabilityHandshakeError(RuntimeError):
    """Raised when a receiving agent is asked to bind a skillId whose
    declared requirements are not satisfiable by the current runtime manifest.
    Must be raised at the submitted->working transition, never later."""


@dataclass(frozen=True)
class AgentCardSkill:
    skill_id: str
    required_tools: FrozenSet[str]
    required_output_modes: FrozenSet[str]


@dataclass(frozen=True)
class RuntimeManifest:
    tool_bindings: FrozenSet[str]
    output_encoders: FrozenSet[str]
    manifest_hash: str


@dataclass
class TaskEnvelope:
    task_id: str
    skill_id: str
    state: str = "submitted"


def accept_delegation(
    envelope: TaskEnvelope,
    card_skill: AgentCardSkill,
    runtime: RuntimeManifest,
    card_version: str,
) -> TaskEnvelope:
    """Enforce the handshake invariant: required ⊆ available, evaluated
    against the runtime manifest, NOT the cached card."""

    if envelope.skill_id != card_skill.skill_id:
        raise CapabilityHandshakeError(
            f"skillId mismatch: requested {envelope.skill_id!r}, "
            f"card declares {card_skill.skill_id!r}"
        )

    required = card_skill.required_tools | card_skill.required_output_modes
    available = runtime.tool_bindings | runtime.output_encoders
    missing = required - available

    if missing:
        # Structured refusal: rejected, not failed; caller can reroute or re-probe.
        raise CapabilityHandshakeError(
            {
                "task_id": envelope.task_id,
                "status": "rejected",
                "code": "capability_unavailable",
                "missing": sorted(missing),
                "card_version": card_version,
                "runtime_manifest_hash": runtime.manifest_hash,
            }
        )

    if envelope.state != "submitted":
        raise CapabilityHandshakeError(
            f"capability check must precede working transition; "
            f"task {envelope.task_id} already in state {envelope.state!r}"
        )

    envelope.state = "working"
    return envelope