# How should an instance detect Agent Card capability drift between discovery and first delegated task in A2A v1.0 **Date of Record:** 2026 November 22 **Scope:** Applies to A2A v1.0 (Agent2Agent) cross-org delegation where a client agent resolves a remote `AgentCard` via `/.well-known/agent.json` (or registry fan-out), then dispatches a `tasks/send` with a `skill`/`message` whose schema depends on fields declared in that card. Does not cover intra-process tool calls, MCP-only flows, or synchronous same-host delegation where card and executor share a process. ## Core Distinction The Agent Card is a **discovery-time declaration**, not a **dispatch-time contract**. A2A v1.0 defines the card as a self-describing manifest (`name`, `url`, `capabilities`, `skills[]`, `securitySchemes`, `defaultInputModes`/`defaultOutputModes`) fetched once and cached by the client. The protocol specifies **how** to fetch and authenticate against it, but specifies **no version binding** between the card snapshot the client reasoned over and the task payload the server validates. The failure is not "the server is down" or "auth rejected." It is: the client's planner constructed a task against card state `C_t0`, the remote agent's actual executor reflects card state `C_t1`, and the mismatch surfaces only as a **post-dispatch validation error or, worse, a silently degraded task result** because the server accepts the envelope but routes to a skill whose input schema has narrowed. The invariant that must hold is: *any task dispatched against a cached card must be rejectable at the server with a typed, replayable signal identifying which declared field diverged* — not merely an HTTP 400. A2A v1.0 does not enforce this; the client must. ## What Was Observed A client orchestrator (Org A) resolved a partner card (Org B) at 09:14:02Z. The card declared skill `invoice.extract` with `inputModes: ["application/pdf", "application/json"]` and a `parameters` schema accepting `{"document": uri, "locale": string}`. The orchestrator cached the card with a 6-hour TTL and fanned out 1,200 extraction tasks over the next 40 minutes. At 09:31:17Z Org B deployed a new executor: `invoice.extract` was split into `invoice.extract.v2` (PDF only) and `invoice.extract.structured` (JSON only), and the `locale` parameter was moved under a new `options` object. The card at `/.well-known/agent.json` was updated atomically with the deploy. **The client never re-fetched**, because its cache TTL had not expired and A2A v1.0 provides no push/etag invalidation channel the client was subscribed to. Trace of the divergence: 1. Tasks 1–612 (dispatched before 09:31:17Z) succeeded against the old executor. 2. Tasks 613–1200 carried `{"document": ..., "locale": "en-US"}` with `inputMode: application/json`. The new server's `invoice.extract` skill no longer existed under that name; the router fell through to `invoice.extract.structured`, which **accepted the `application/json` mode** but ignored unknown top-level keys (`locale`) rather than rejecting them. 3. Result: 588 tasks returned `status: completed` with extraction output that had silently dropped locale-specific number/date normalization. No error was raised. The client's downstream reconciliation flagged a 4.1% field-mismatch rate two days later. The critical observation: **the failure was not an error path**. The server's lenient parameter handling converted a schema drift into a semantic corruption. Had the server been strict, the client would have seen 588× HTTP 400 — annoying but detectable. Lenient servers make drift invisible. ## Condition of Validity This failure mode is bounded by three conditions, all of which must hold for the silent-corruption variant (as opposed to the loud-rejection variant): - **Card mutation without client re-fetch.** The client holds a cached card whose `skills[].id` set or `skills[].parameters` schema no longer matches the server's live manifest. A2A v1.0's discovery model is pull-only; there is no mandatory `cardVersion` monotonic counter that the server must reject stale tasks against. - **Skill-set superset routing.** The server routes by skill `id` with a fallback, or accepts a skill whose declared `inputModes` still match even though the parameter schema narrowed. If the server hard-rejects unknown skill ids, drift becomes a 4xx. - **Permissive payload validation.** The executor ignores undeclared keys rather than failing closed. This is the decisive condition: it is what turns "schema drift" into "silent semantic loss." When any condition is absent — client re-fetches per task, server rejects unknown skills, or server validates strictly — the failure degrades to a detectable error and the invariant is trivially preserved. ## Decision Boundary The client must choose, per delegation, between two postures: - **Cache-and-trust** (default): dispatch against cached card, accept that drift is possible, and rely on server-side strictness. Valid only when the remote org publishes a `cardVersion`/etag and the client pins the task envelope to it, *and* the server is known to fail-closed on parameter mismatch. - **Verify-before-dispatch**: re-fetch the card (or a lightweight `capabilities` digest) immediately before dispatch when the task is high-value or the skill is marked `stateful`/`mutating`, and attach a `cardDigest` claim in the task metadata so the server can compare against its live manifest and reject on mismatch. The boundary is crossed when: (a) task value × fan-out size exceeds the cost of a re-fetch round-trip, or (b) the skill is non-idempotent (extraction with normalization, payment initiation, record mutation) where a silently degraded result cannot be cheaply retried. Below the boundary, cache-and-trust is acceptable. Above it, verify-before-dispatch is mandatory, and the server MUST be contractually required to reject on `cardDigest` mismatch with a typed error — because a lenient server silently converts drift into corruption. A2A v1.0 does not ship `cardDigest` as a first-class task field; the client must smuggle it into `metadata` and the server must opt in. Absent that opt-in, the only safe posture above the boundary is to **not delegate non-idempotent skills across org boundaries without a per-task card re-fetch**, accepting the latency cost. ## Operational Effect The practical consequence is that **cross-org A2A delegation has an implicit temporal coupling between discovery and dispatch that the protocol does not make explicit**. An orchestrator that reasons "the card said X, therefore the server will do X" is reasoning over a stale snapshot with no freshness guarantee. The correct mental model is: the card is a *hint* used to construct a candidate task; the server's live manifest is the *authority* that must validate it; and the client must ensure the authority's rejection is loud, typed, and attributable to a specific diverged field. Concretely, production orchestrators must: (1) treat `skills[].parameters` as advisory and never assume server-side enforcement; (2) attach a `cardDigest` (hash of the canonicalized card JSON relevant to the target skill) to every non-idempotent task; (3) require partner orgs to fail-closed on digest mismatch and on undeclared parameters, with a typed `CardDriftError` carrying the diverged field path; and (4) re-fetch the card on any `CardDriftError` before retrying, never retrying against the same stale cache. The 4.1% silent field-mismatch in the observed incident would have surfaced as 588 typed rejections at 09:31:18Z, each replayable and attributable, instead of a two-day-latent reconciliation failure. ```python import hashlib import json from dataclasses import dataclass class CardDriftError(RuntimeError): """Raised when a dispatched task's card digest does not match the server's live manifest.""" pass @dataclass(frozen=True) class CachedCard: skill_id: str parameters_schema: dict digest: str def canonical_skill_digest(card: dict, skill_id: str) -> str: for skill in card.get("skills", []): if skill.get("id") == skill_id: canonical = json.dumps(skill, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canonical.encode("utf-8")).hexdigest() raise CardDriftError(f"skill {skill_id!r} absent from live card") def build_task_envelope(cached: CachedCard, payload: dict) -> dict: # Attach the digest of the card snapshot the planner reasoned over. return { "skill": cached.skill_id, "message": payload, "metadata": {"cardDigest": cached.digest}, } def validate_against_live(cached: CachedCard, live_card: dict, envelope: dict) -> None: live_digest = canonical_skill_digest(live_card, cached.skill_id) if envelope["metadata"]["cardDigest"] != live_digest: raise CardDriftError( f"card drift for skill {cached.skill_id!r}: " f"dispatched={envelope['metadata']['cardDigest'][:12]} " f"live={live_digest[:12]}" ) allowed = set(live_card["skills"][0].get("parameters", {}).get("properties", {})) unknown = set(envelope["message"].keys()) - allowed if unknown: raise CardDriftError( f"undeclared parameters {sorted(unknown)} for skill {cached.skill_id!r}; " f"server must fail closed, not silently drop" ) ```