# What happens when an instance reuses a cached Agent Card across an A2A v1.0 capability revision and the delegated task is silently downgraded **Date of Record:** 2026 November 23 **Scope:** Applies to A2A v1.0 cross-vendor delegation where a client agent caches a remote `AgentCard` and later dispatches `tasks/send` against a peer whose advertised skills, `capabilities`, or `defaultInputModes`/`defaultOutputModes` have changed since the card was fetched. Does not apply to same-process tool calls, nor to A2A deployments that mandate per-request card revalidation via a signed `cardHash` echo. ## Core Distinction The failure here is not "the remote agent is down" and not "the schema is malformed." Both of those surface as hard errors and are handled by ordinary retry logic. The failure is that the remote agent *accepts* the task, returns a well-formed `Task` object in state `working` → `completed`, and the result is *semantically wrong* because the client negotiated against a stale capability surface. A2A v1.0 splits the handshake into two temporally separated phases: (1) **discovery**, where the client fetches `/.well-known/agent-card.json` and reads `skills[]`, `capabilities.streaming`, `capabilities.pushNotifications`, and the input/output mode arrays; and (2) **dispatch**, where the client sends `tasks/send` with a payload shaped by what it learned in phase 1. The protocol does not require the client to re-read the card at dispatch time, and it does not require the server to reject a task whose shape no longer matches its current card. The server validates the task against its *current* skill definitions, and — critically — A2A v1.0 permits a peer to satisfy a request through a *fallback skill* when the requested skill is absent, provided the fallback declares a compatible `inputModes` superset. That fallback is the silent-downgrade channel. The invariant that must hold: **the capability surface a client negotiates against must be the capability surface the server executes against, or the mismatch must be made observable before any side effect occurs.** A2A v1.0 gives you the machinery to enforce this (`cardHash`, `metadata` echo, per-skill `version`) but does not enforce it for you. ## What Was Observed A procurement-orchestration client agent (`orchestrator-A`) cached the `AgentCard` of a vendor peer (`vendor-B`) at session start. The card advertised a skill `invoice.reconcile.v2` with `inputModes: ["application/json"]`, `outputModes: ["application/json"]`, and a structured output schema containing `lineItems[].matchedPurchaseOrderId`. Mid-session, `vendor-B` deployed a revision. The new card replaced `invoice.reconcile.v2` with `invoice.reconcile.v3`, which dropped `matchedPurchaseOrderId` from the output schema (the vendor had moved PO linkage to a separate `po.link` skill) and added a fallback skill `invoice.reconcile.compat` that accepted the same input mode but returned only `lineItems[].amount` and `lineItems[].status`. Sequence of events at dispatch: 1. `orchestrator-A` sends `tasks/send` with `skillId: "invoice.reconcile.v2"` and a JSON payload conforming to the v2 input schema. The payload is valid against v3's input schema too, so no input validation fires. 2. `vendor-B` receives the task. `invoice.reconcile.v2` no longer exists. The router matches `invoice.reconcile.compat` because its `inputModes` is a superset of the requested mode and its declared `fallbackFor: ["invoice.reconcile.v2", "invoice.reconcile.v3"]` covers the requested id. 3. `vendor-B` creates a `Task` with `id`, `sessionId`, `status.state = "working"`, and — this is the tell — `status.message` containing `"routed to compat handler"` and a `metadata.downgradedFrom: "invoice.reconcile.v2"` field. 4. `orchestrator-A`'s task-polling loop reads `status.state` and ignores `status.message` and `metadata`, because its parser only extracts `state` and `artifacts`. 5. `vendor-B` returns `completed` with an artifact whose schema lacks `matchedPurchaseOrderId`. 6. `orchestrator-A`'s downstream reconciliation step reads `lineItems[].matchedPurchaseOrderId` as `None` for every line item and — because the field is optional in its own model — treats "no PO matched" as a legitimate business outcome rather than a schema violation. The observable damage: 1,400 invoices were marked "unmatched" and routed to a manual-review queue, where a human spent two days discovering the field had never been populated. No error was raised at any layer. Every state transition was legal. Every message was well-formed. ## Condition of Validity The silent downgrade is possible only when all four of the following hold simultaneously: - **Card caching without revalidation.** The client fetched the card once and did not re-fetch before dispatch, and did not send the cached `cardHash` in the task `metadata` for the server to reject on mismatch. - **Fallback routing declared by the server.** The server's card declares a fallback skill whose `inputModes` is a superset of the requested skill's input modes. Without a declared fallback, the server would return a `TaskNotFound`/`InvalidRequest` error and the client would see a hard failure. - **Schema-compatible but semantically lossy output.** The fallback's output schema is a *subset* of the requested skill's output schema, so the client's deserializer succeeds while silently dropping or nulling fields. If the fallback emitted an extra discriminator field the client rejected, the failure would be loud. - **Optional-field tolerance in the client.** The client's result model marks the missing fields as optional (`Optional[str] = None`), so absence is indistinguishable from "genuinely absent." Remove any one and the failure becomes either impossible or loud. The dangerous quadrant is the intersection of *server-side permissive fallback* and *client-side permissive deserialization* — each is individually defensible, and each vendor will tell you their behavior is spec-compliant. It is. The spec did not promise you semantic continuity across a card revision. ## Decision Boundary The boundary the operator must draw is between **capability negotiation** (which the protocol handles) and **capability continuity** (which it does not). A2A v1.0 negotiates *at a point in time*. It does not bind a task to the card revision under which the task was shaped. Concretely, the decision rule: - If the client's task payload or result-parsing logic depends on a skill's *output schema*, the client MUST pin the card revision by echoing `metadata.cardHash` (the SHA-256 of the fetched card, per A2A §7.3) and MUST treat a server response lacking a matching `metadata.cardHash` echo as a negotiation failure — not a task result. - If the server cannot guarantee `cardHash` echo, the client MUST re-fetch the card immediately before dispatch and diff `skills[].id` and each skill's `outputModes`/output schema against the cached copy; any diff on a skill the client intends to invoke is a hard stop. - A server that declares `fallbackFor` MUST include `metadata.downgradedFrom` in the task's first `status` update *and* MUST set `status.state` to `input-required` on the first turn when the fallback's output schema is a strict subset of the requested skill's — forcing the client to acknowledge the downgrade before the server proceeds to `working`. (This is the server-side guardrail; it is not in v1.0 and must be added by the vendor.) The decision boundary is therefore: **a task whose requested skill is not the skill that will execute is a negotiation event, not an execution event, and must not cross into `working` until the client has acknowledged the substitution.** ## Operational Effect Once the invariant is enforced, three things change in production: 1. **Latency budget.** Re-fetching the card before every dispatch adds one round trip (~40–120 ms cross-vendor in observed traces). The `cardHash` echo path avoids this by making the server do the comparison, but requires the server to implement it. Budget the round trip; do not assume the peer implements the echo. 2. **Failure taxonomy.** "Skill not found" and "skill downgraded" collapse into a single client-side exception class that must be handled *before* the task is dispatched (for re-fetch) or *before* the result is consumed (for echo mismatch). Conflating them with transport errors causes retry storms against a peer that will keep returning the same downgrade. 3. **Result validation.** Any field the client's business logic reads from a task artifact must be validated for presence against the *pinned* card's output schema, not the client's own model. The client's model is the wrong source of truth — it is exactly the thing that was tolerant enough to swallow the loss. The general lesson: in A2A v1.0, the `AgentCard` is a *contract proposal*, not a *contract*. The task lifecycle is where the contract is actually formed, and the only place the two can be bound together is the `cardHash` echo or an explicit pre-dispatch diff. Absent one of those, a cross-vendor handshake is a handshake with whoever answered the phone, not with the agent you called. ```python import hashlib import json from dataclasses import dataclass from typing import Any, Optional class CapabilityDriftError(RuntimeError): """Raised when the executing skill does not match the negotiated skill.""" class SilentDowngradeError(CapabilityDriftError): """Raised when a peer routed the task to a fallback skill without acknowledgment.""" @dataclass(frozen=True) class PinnedCard: card_hash: str skills: dict[str, dict[str, Any]] def pin_card(raw_card: dict[str, Any]) -> PinnedCard: canonical = json.dumps(raw_card, sort_keys=True, separators=(",", ":")).encode() return PinnedCard( card_hash=hashlib.sha256(canonical).hexdigest(), skills={s["id"]: s for s in raw_card.get("skills", [])}, ) def build_task(pinned: PinnedCard, skill_id: str, payload: dict[str, Any]) -> dict[str, Any]: if skill_id not in pinned.skills: raise CapabilityDriftError( f"skill {skill_id!r} absent from pinned card {pinned.card_hash[:12]}" ) return { "skillId": skill_id, "metadata": {"cardHash": pinned.card_hash}, "message": {"role": "user", "parts": [{"type": "data", "data": payload}]}, } def assert_no_silent_downgrade( pinned: PinnedCard, requested_skill: str, task: dict[str, Any], ) -> None: """Call on every status update before consuming artifacts.""" echo = task.get("metadata", {}).get("cardHash") if echo != pinned.card_hash: raise SilentDowngradeError( f"peer did not echo pinned cardHash {pinned.card_hash[:12]}; " f"got {echo!r} — card may have been revised since negotiation" ) downgraded_from = task.get("status", {}).get("metadata", {}).get("downgradedFrom") if downgraded_from is not None: raise SilentDowngradeError( f"peer routed {requested_skill!r} to fallback (downgradedFrom={downgraded_from!r}); " f"output schema may be a strict subset — refuse to consume artifacts" ) if task.get("status", {}).get("state") == "working" and downgraded_from is None: # Only reachable if the peer omitted the marker; treat as unverified. executing = task.get("metadata", {}).get("executingSkillId") if executing is not None and executing != requested_skill: raise CapabilityDriftError( f"requested {requested_skill!r} but peer executing {executing!r}" ) ```