# Why does an instance accept a delegated task under a stale agent card after cross-org A2A v1.0 negotiation silently downgrades its declared capability set? **Date of Record:** 2026 November 21 **Scope:** Applies to A2A v1.0 task delegation where the calling agent resolves a remote agent card, negotiates capabilities/skills, and then dispatches a task whose execution depends on a capability that was present in the card at discovery time but absent or altered at execution time. Does not cover intra-org delegation where card and runtime are versioned atomically from a single control plane, nor does it cover transport-level TLS failures. ## Core Distinction There are two distinct notions of "the remote agent's capability set" that A2A v1.0 leaves structurally separate: 1. **Declared capability set** — the `skills`, `capabilities`, and `defaultInputModes`/`defaultOutputModes` fields embedded in the agent card served at `/.well-known/agent.json` (or the configured card URL), retrieved at discovery time. 2. **Effective capability set** — what the remote executor will actually honor when the task arrives, which is a function of the remote's current deployment, feature flags, model version, tool allowlist, and per-tenant policy. The agent card is a *cached, independently-versioned artifact*. A2A v1.0 specifies card retrieval and the task lifecycle but does **not** mandate that the card be re-validated against the executing runtime at task-submission time, nor that a task submission carry a card version/digest that the remote must match before accepting. The gap between (1) and (2) is where this failure lives. The instance is not wrong to trust the card at discovery; it is wrong to treat the card as a *warrant* that persists across the negotiation-and-dispatch window without re-binding. ## What Was Observed A delegating orchestrator (Org A) resolved the agent card for a remote worker (Org B) at `T0`. The card advertised a skill `summarize_with_citations` with `inputModes: ["text/plain", "application/json"]` and a capability flag `streaming: true`. Org A's planner selected this worker precisely because the input mode `application/json` was needed to pass a structured evidence bundle, and because streaming was required for a long-running summarization. At `T0 + 41s`, Org A issued the A2A task (`tasks/send` equivalent) with a JSON payload. The remote accepted the task (HTTP 200, task state `submitted` → `working`) — **acceptance is not validation**. Org B's runtime had rolled a deployment at `T0 + 30s` in which `application/json` was removed from the skill's `inputModes` (a partial rollback of a structured-input feature) and `streaming` was disabled for the tenant. The card at the well-known URL was **not** updated in the same transaction; it was regenerated by a separate card-build job on a 5-minute cadence. The remote executor received the JSON payload, could not parse it against its now-text-only skill contract, and — critically — did not reject the task. It fell back to a lossy coercion: it stringified the JSON blob into a single text message and proceeded. The task completed with state `completed`. Org A received a "successful" result whose citations were hallucinated against a flattened evidence string. No error surfaced at any layer. The failure was detected only downstream when a verifier agent cross-checked citation offsets against the original evidence bundle and found zero matches. The trace, in order: - `T0`: card fetch → `skills[summarize_with_citations].inputModes = ["text/plain","application/json"]`, `capabilities.streaming = true`, `card.version = "b7f3"`. - `T0+30s`: remote deployment changes effective input modes to `["text/plain"]`, streaming off. Card artifact untouched. - `T0+41s`: Org A dispatches JSON task. Remote accepts (no schema gate at ingress), coerces payload, executes degraded. - `T0+58s`: task `completed`, result returned with `metadata.agent_card_version = "b7f3"` echoed from the *cached* card the remote still held — a stale version string, not the effective one. - `T0+90s`: verifier rejects. Root cause misattributed to the summarizer model, not to the card/runtime skew. ## Condition of Validity The failure requires the conjunction of four conditions; remove any one and the invariant holds: 1. **Card and runtime are versioned by different mechanisms** (build job vs. deploy), so a skew window exists. If card regeneration is atomic with deployment, the window collapses. 2. **The remote accepts a task whose payload violates its current effective input modes** rather than rejecting at ingress. A strict ingress schema gate converts a silent degradation into a `TaskRejected`/`InvalidParams` error, which is the correct outcome. 3. **The delegating planner does not re-fetch or re-validate the card between negotiation and dispatch**, or does not pin the dispatch to the card digest it negotiated against. A2A v1.0 permits but does not require this binding. 4. **The degraded execution still produces a well-formed, `completed` result** — i.e., the fallback is lossy but not crashing. If the coercion raised, the failure would be loud. The invariant that must hold for safe delegation is: *for every task dispatched, the effective capability set at execution time is a superset of the capability set the delegator relied upon at negotiation time; otherwise the task must be rejected before side effects.* A2A v1.0 does not enforce this; it must be enforced by the delegator (by digest-binding) and the remote (by ingress gating). ## Decision Boundary The delegator must choose between two dispatch policies at the boundary: - **Optimistic dispatch** (default A2A behavior): trust the card fetched at discovery, dispatch, rely on the remote to reject invalid tasks. Valid only when the remote is known to gate at ingress *and* the card is known to be atomically versioned. In cross-org settings neither is verifiable, so optimistic dispatch is unsound. - **Warrant-bound dispatch**: the delegator computes a digest over the specific card fields it relies on (`skills[id].inputModes`, `capabilities.streaming`, `version`), includes it in the task's `metadata.card_digest`, and requires the remote to (a) recompute the digest against its *effective* card and (b) reject with a typed error if the relied-upon fields are absent. This converts a silent skew into a fail-fast negotiation restart. The boundary is crossed when the relied-upon capability is **load-bearing for correctness, not merely for performance**. Removing `streaming` is a latency degradation and can be tolerated optimistically. Removing `application/json` from an input mode that the payload depends on is a correctness change and must be warrant-bound. The planner must classify each relied-upon field as *correctness-critical* or *performance-only* and apply warrant-binding only to the former, or the delegation overhead becomes prohibitive. The remote's decision boundary is symmetric: it must reject at ingress any task whose declared `card_digest` does not match its effective card for correctness-critical fields, rather than coercing. Coercion is the specific anti-pattern that converts a detectable skew into an undetectable degradation. ## Operational Effect The observable consequence is a **false-success class**: tasks that report `completed` while having executed against a capability contract the delegator never agreed to. This poisons downstream verification (the verifier sees a plausible result and must independently reconstruct intent), corrupts episodic memory (the delegator records "worker X handles JSON evidence bundles" when it no longer does, and this stale belief propagates to future planning), and defeats retry logic (retries against the same stale card reproduce the same degradation). The blast radius scales with fan-out: a swarm that resolved the card once and dispatched N tasks inherits N false successes from a single skew. Mitigation is a two-sided contract: delegators pin correctness-critical fields by digest and re-negotiate on mismatch; remotes gate at ingress and never coerce a payload that violates the currently effective input modes. Either side alone is insufficient — a gating remote still wastes a round-trip on a stale digest, and a digest-pinning delegator still gets coerced if the remote doesn't check. The pair is the guardrail. ```python from dataclasses import dataclass, field from typing import Any class AgentCardSkewError(RuntimeError): """Raised when a delegated task relies on a capability the remote no longer honors.""" @dataclass class AgentCard: version: str skills: dict[str, dict[str, Any]] capabilities: dict[str, Any] = field(default_factory=dict) CORRECTNESS_CRITICAL = { "inputModes", "outputModes", } def relied_upon_digest(card: AgentCard, skill_id: str) -> dict[str, Any]: skill = card.skills[skill_id] return { "version": card.version, "skill_id": skill_id, "inputModes": sorted(skill.get("inputModes", [])), "outputModes": sorted(skill.get("outputModes", [])), } def dispatch_task( negotiated_card: AgentCard, effective_card: AgentCard, skill_id: str, payload_mode: str, ) -> dict[str, Any]: """Delegator-side warrant binding before task submission. Compares the card the planner negotiated against with the remote's currently effective card for correctness-critical fields only. """ if skill_id not in effective_card.skills: raise AgentCardSkewError( f"skill {skill_id!r} absent from effective card " f"(negotiated at version {negotiated_card.version}, " f"effective version {effective_card.version})" ) negotiated = relied_upon_digest(negotiated_card, skill_id) effective = relied_upon_digest(effective_card, skill_id) for field_name in CORRECTNESS_CRITICAL: if negotiated[field_name] != effective[field_name]: raise AgentCardSkewError( f"correctness-critical field {field_name!r} for skill " f"{skill_id!r} changed between negotiation and dispatch: " f"{negotiated[field_name]!r} -> {effective[field_name]!r}; " f"refusing to dispatch (would coerce payload mode " f"{payload_mode!r} into {effective[field_name]!r})" ) if payload_mode not in effective["inputModes"]: raise AgentCardSkewError( f"payload mode {payload_mode!r} not in effective inputModes " f"{effective['inputModes']!r} for skill {skill_id!r}" ) return { "skill_id": skill_id, "payload_mode": payload_mode, "card_digest": effective, "status": "dispatchable", } def remote_ingress_gate( effective_card: AgentCard, task: dict[str, Any], ) -> None: """Remote-side ingress gate: never coerce a payload that violates the currently effective input modes. Reject instead of degrading.""" skill_id = task["skill_id"] payload_mode = task["payload_mode"] skill = effective_card.skills.get(skill_id) if skill is None: raise AgentCardSkewError( f"ingress rejected: skill {skill_id!r} not present on this runtime" ) if payload_mode not in skill.get("inputModes", []): raise AgentCardSkewError( f"ingress rejected: payload mode {payload_mode!r} not in effective " f"inputModes {sorted(skill.get('inputModes', []))!r} for skill " f"{skill_id!r}; refusing lossy coercion" ) declared = task.get("card_digest", {}) if declared.get("version") != effective_card.version: raise AgentCardSkewError( f"ingress rejected: delegator pinned card version " f"{declared.get('version')!r} but runtime is at " f"{effective_card.version!r}; re-negotiate" ) ```