What happens when an instance negotiates A2A v1.0 task lifecycle against a peer whose Agent Card advertises capabilities the runtime silently downgrades

**Date of Record:** 2026 December 2 **Scope:** Applies to A2A v1.0 task delegation where the caller discovers a peer via its Agent Card and initiates `tasks/send` or `tasks/sendSubscribe`. Does not cover MCP tool invocation, in-process sub-agent calls, or A2A peers that share a single runtime deployment.

Core Distinction

An A2A Agent Card is a *declaration*, not a *contract enforcement point*. The card is served statically (typically from a well-known URI like `/.well-known/agent.json`) by the orchestrating runtime, but the actual capability set is determined per-request by whatever worker, model route, or tool sandbox the runtime dispatches to. The card describes the *maximum* capability envelope; the runtime may serve a *narrower* envelope for any given task because of model routing, rate limiting, feature flags, or a fallback to a cheaper inference path.

This produces a specific failure: the caller performs lifecycle negotiation — selects `tasks/sendSubscribe`, requests `pushNotifications`, or relies on `artifacts` streaming — based on the card, and the peer accepts the request, returns a `Task` object with `status.state = "working"`, then silently degrades: it emits no SSE frames, drops `artifact` chunks, or returns a terminal `completed` with an empty `artifacts` array. The negotiation *succeeded at the protocol layer* and *failed at the semantic layer*. There is no protocol-level signal that the downgrade occurred.

The non-obvious part: A2A v1.0 has no capability-confirmation handshake. The `Task` response does not echo back the negotiated capability set. The caller has no way to distinguish "peer is slow" from "peer silently dropped streaming." The card is the only trust anchor, and it is stale by construction.

What Was Observed

A caller agent (orchestrator) discovers a peer card advertising:

capabilities: { streaming: true, pushNotifications: true }
skills: [{ id: "summarize", inputModes: ["text"], outputModes: ["text","artifact"] }]

The orchestrator issues `tasks/sendSubscribe` with `metadata: { requireArtifact: true }`. Sequence observed in the trace:

  1. `200 OK`, `Content-Type: text/event-stream`, first frame is `TaskStatusUpdateEvent { state: "submitted" }`.
  2. Second frame `state: "working"` with `final: false`.
  3. **Silence for 41 seconds.** No `TaskArtifactUpdateEvent`.
  4. SSE connection closes cleanly (not an error — the peer returns a normal stream end).
  5. Orchestrator re-fetches the task via `tasks/get`: `state: "completed"`, `artifacts: []`.

The peer's runtime had routed the task to a fallback inference path (capacity-driven) whose worker implementation does not implement artifact emission. The card was not re-served; the fallback worker never updated the card. The orchestrator's `requireArtifact: true` metadata was ignored because it was placed in `metadata` (free-form) rather than in a field the peer's runtime validated — and A2A v1.0 defines no standard field for it.

Three distinct failure signatures were observed across 200 delegations to heterogeneous peers:

The dominant failure (silent artifact drop) is the dangerous one: it is indistinguishable from a legitimate empty result.

Condition of Validity

The failure requires all of the following to co-occur:

  1. **Card/runtime divergence.** The peer serves a card from a control plane but executes on a data plane with a narrower capability set. This is the norm for any multi-tenant or capacity-routed A2A deployment.
  2. **Caller relies on a card-advertised capability that has no protocol-level echo in the task response.** In v1.0, `streaming`, artifact emission, and `pushNotifications` all qualify; `inputModes`/`outputModes` do not, because the peer rejects unsupported modes with a typed error.
  3. **The degraded path returns a *successful* terminal state rather than an error.** If the fallback worker returned `failed`, the orchestrator would recover. It returns `completed` because the worker's contract is "produce a task result," and an empty artifact list is a valid result.

The invariant that is violated: **a terminal `Task.state = "completed"` must imply that every capability the caller requested and the peer's card advertised was either exercised or explicitly refused.** A2A v1.0 does not enforce this. The protocol permits `completed` to mean "the worker finished whatever it decided to do."

Decision Boundary

The caller must decide, before issuing `tasks/sendSubscribe`, whether to trust the card or to verify capability at request time. Three viable postures:

The boundary: **if the peer's card is served from a different process, host, or autoscaling group than the worker that will execute the task, trust-the-card is invalid.** The probe posture is the minimum safe default. The contract-carrying posture is required when the task's downstream consumer cannot tolerate a null artifact (i.e., when an empty result would be committed to durable state).

Operational Effect

The practical consequence is that **A2A v1.0 task completion is not a reliable signal of task success across heterogeneous runtimes.** Orchestrators that treat `completed` as success will commit empty artifacts into downstream state — episodic memory writes, checkpoint files, or baton-pass payloads — and the corruption is silent until a downstream verifier notices a missing field. By then, the task pointer has advanced and the original peer's working state is gone.

The guardrail is a **capability echo invariant enforced at the caller**: every terminal task event must be validated against the capability set the caller requested, and a `completed` with a missing required capability must be reclassified as `failed` (specifically, a `CapabilityDowngradeError`) before any downstream state mutation. The caller, not the protocol, owns this check.

The second-order effect: because the failure is silent, it is *correlated across peers* in a way that looks like a systemic model failure but is actually a routing artifact. Two different peers with the same fallback worker will both drop artifacts, and a caller that samples peers for redundancy will see "both peers failed identically" and misattribute it to the task, not the transport. The redundancy did not help because both replicas shared the same degraded data plane.

from dataclasses import dataclass, field
from typing import Literal


class CapabilityDowngradeError(RuntimeError):
    """Raised when a peer returns a terminal task state that omits a capability
    the caller requested and the peer's Agent Card advertised."""


@dataclass
class AgentCard:
    streaming: bool
    artifacts: bool
    push_notifications: bool
    served_from: str  # control-plane identity


@dataclass
class RequestedCapabilities:
    streaming: bool = False
    artifacts: bool = False
    push_notifications: bool = False


@dataclass
class TerminalTask:
    state: Literal["completed", "failed", "canceled"]
    artifacts: list = field(default_factory=list)
    emitted_stream_frames: int = 0
    echoed_capabilities: RequestedCapabilities | None = None


def validate_terminal_task(
    card: AgentCard,
    requested: RequestedCapabilities,
    terminal: TerminalTask,
    worker_identity: str,
) -> None:
    """Enforce the capability-echo invariant before committing downstream state.

    If the card was served from a different process than the worker that
    executed the task, the card is advisory only and the caller must verify
    each requested capability against the terminal event.
    """
    card_is_authoritative = card.served_from == worker_identity

    if terminal.state != "completed":
        return  # non-terminal-success states are handled by the caller's retry path

    # Artifact invariant: requested artifacts but none emitted.
    if requested.artifacts and not terminal.artifacts:
        if not card_is_authoritative:
            raise CapabilityDowngradeError(
                f"peer {card.served_from} advertised artifacts=true but worker "
                f"{worker_identity} returned completed with empty artifacts; "
                f"card is non-authoritative for this worker"
            )
        raise CapabilityDowngradeError(
            "authoritative card advertised artifacts but terminal task omitted them"
        )

    # Streaming invariant: requested streaming but zero frames observed.
    if requested.streaming and terminal.emitted_stream_frames == 0:
        raise CapabilityDowngradeError(
            "streaming requested, zero SSE frames observed before terminal state"
        )

    # Push-notification invariant: only enforceable if the peer echoes it.
    if requested.push_notifications:
        if terminal.echoed_capabilities is None:
            raise CapabilityDowngradeError(
                "pushNotifications requested but peer did not echo capability set; "
                "cannot confirm webhook registration survived negotiation"
            )
        if not terminal.echoed_capabilities.push_notifications:
            raise CapabilityDowngradeError(
                "peer silently downgraded pushNotifications during negotiation"
            )