# How does an instance detect a stale Agent Card during A2A v1.0 cross-vendor delegation, and why does schema negotiation silently succeed against a deprecated capability manifest? **Date of Record:** 2026 November 26 **Scope:** Applies to any A2A v1.0 client agent that resolves a remote `AgentCard` via `.well-known/agent-card.json` or registry discovery and then delegates a task whose execution depends on a capability declared in that card. Does not apply to same-process tool invocation (MCP) or to A2A tasks where the caller re-validates the card on every turn via a signed warrant. ## Core Distinction The failure boundary is not "the remote agent is down" — that produces a clean transport error. The boundary is **card-validity skew**: the discovery-time `AgentCard` describes a capability set that the remote instance has already retired, but the card's `capabilities` and `skills` blocks remain structurally valid under A2A v1.0 schema, so JSON-schema validation of the card passes, the `protocolVersion` string still matches `"1.0"`, and the delegation handshake completes. The caller proceeds believing it negotiated a capability that no longer exists. The non-obvious part: A2A v1.0 distinguishes *protocol version* from *capability version*. A card can be schema-valid, version-compatible, and semantically stale simultaneously. Nothing in the handshake forces the remote to re-assert its skill set against the caller's requested skill — the `tasks/send` payload carries a `skill` hint, but the remote is permitted to accept the task and fail later during execution, or worse, silently route to a fallback skill that shares an ID prefix. The caller's only signal is a late-stage execution divergence, not a negotiation failure. ## What Was Observed A three-vendor delegation chain: orchestrator (Vendor A) → specialist (Vendor B) → sub-specialist (Vendor C). Vendor B's card advertised `skills: [{id: "doc.parse.v2", inputModes: ["application/pdf"], outputModes: ["application/json"]}]`. Between the orchestrator's card fetch (T+0) and its delegation (T+340s, after a long planning phase), Vendor B rolled its deployment: `doc.parse.v2` was split into `doc.parse.pdf.v3` and `doc.parse.ocr.v3`, and the old skill ID was retained in the card as a *deprecated alias* with `inputModes: ["application/pdf"]` but a narrowed `outputModes: ["text/plain"]`. The orchestrator's cached card was 340 seconds stale. Its delegation carried `skill: "doc.parse.v2"` and expected `application/json` output. Vendor B's compatibility shim accepted the task (the skill ID resolved), executed the PDF path, and returned `text/plain` — an output mode the orchestrator's downstream parser did not accept. The orchestrator's schema check on the *response* passed because A2A v1.0 response envelopes declare `outputMode` per-artifact, and the orchestrator's validator only checked envelope structure, not the mode set it had negotiated. The failure surfaced three hops later as a type error in Vendor C's ingestion, misattributed to Vendor C. Trace of the state transition: 1. `GET /.well-known/agent-card.json` → card v1, `doc.parse.v2`, output `application/json`, `card.signature` valid, `card.ttl` absent. 2. Planning phase: 340s of local reasoning; card cached in working memory. 3. `tasks/send` with `skill: "doc.parse.v2"`, `acceptedOutputModes: ["application/json"]`. 4. Remote resolves skill ID → deprecated alias → executes PDF path → returns artifact with `outputMode: "text/plain"`. 5. Caller envelope validator: `PASS` (structure valid). Caller mode validator: not invoked (no assertion bound `acceptedOutputModes` to returned `outputMode`). 6. Downstream parser receives `text/plain`, raises type mismatch, attributed to hop 3. ## Condition of Validity This failure requires the conjunction of four conditions, all of which must hold: 1. **Card caching without TTL enforcement.** The A2A v1.0 spec permits a card to omit `ttl`; when omitted, callers that cache indefinitely are spec-compliant but operationally exposed. If `ttl` is present and honored, the window collapses to the TTL. 2. **Skill-ID retention as a compatibility alias.** Vendors that keep retired skill IDs resolvable (to avoid breaking old callers) convert what would be a clean `SkillNotFound` into a silent semantic downgrade. The alias is the poison. 3. **Output-mode narrowing without handshake re-assertion.** The remote's deprecated alias narrowed `outputModes` but the caller's `acceptedOutputModes` was treated as advisory, not binding. If the remote had rejected on mode intersection, the caller would have received a clean `ModeMismatch`. 4. **Caller validates envelope structure but not negotiated-mode binding.** The caller's post-response validator checked that the response was a valid A2A envelope, not that each artifact's `outputMode` was in the set it declared in `acceptedOutputModes`. Remove any one condition and the failure degrades to a detectable error. Condition 2 alone is insufficient (a caller that re-fetches the card sees the narrowed modes). Condition 4 alone is insufficient (the remote returns the mode it advertised at send time). The conjunction is what produces silent cross-vendor misattribution. ## Decision Boundary The invariant that bounds this failure: **a delegation is only valid if the capability asserted at send time is re-asserted by the remote in the response envelope, and the caller asserts that re-assertion against its own accepted set.** Concretely, the caller must treat the response's `skill` and per-artifact `outputMode` as a *claim to be verified*, not a description to be trusted. Operationally, the boundary is: - If `card.ttl` is present and the elapsed time since fetch is within TTL → delegation may proceed on cached card. - If `card.ttl` is absent → the caller must either re-fetch at send time or treat the card as valid only for the current turn (no cross-turn caching). A planning phase that spans turns invalidates the cache by definition. - If the remote returns an artifact whose `outputMode` is not in the caller's `acceptedOutputModes` → the caller must raise, not downgrade. Downgrading is the failure. - If the remote returns a `skill` different from the one sent (alias resolution) → the caller must treat this as a capability substitution and re-validate against its own skill contract, not the remote's. The boundary is crossed the moment the caller accepts a response artifact without binding its `outputMode` to the set it declared. Everything before that is latency; that moment is the failure. ## Operational Effect The observable effect is **misattributed downstream failure**: the error surfaces at a hop that did not cause it, because the silent mode downgrade propagates as a data-shape change rather than a protocol error. In the observed trace, Vendor C was blamed for a type error that originated in Vendor B's alias resolution and Vendor A's non-binding mode assertion. The secondary effect is **cache poisoning of the orchestrator's episodic memory**: the orchestrator records "Vendor B returns text/plain for doc.parse.v2" as a learned fact, which is true only for the post-rollout window and false for the pre-rollout window it may encounter on a retry against a different B replica. The orchestrator's memory now contains a fact that is correct at one time and wrong at another, with no timestamp binding — the classic stale-memory drift condition, here triggered by a protocol-level ambiguity rather than retrieval error. The guardrail is a **binding assertion at the response boundary** plus **TTL-or-refetch at the request boundary**. Neither alone is sufficient; together they convert the silent downgrade into a loud, correctly-attributed error. ```python from dataclasses import dataclass from typing import Optional class StaleCardDelegationError(RuntimeError): """Raised when a delegation proceeds on a card whose validity window has lapsed or when the response artifact's outputMode is not bound to the caller's accepted set.""" @dataclass class AgentCard: skill_id: str output_modes: frozenset[str] ttl_seconds: Optional[int] fetched_at: float @dataclass class TaskResponse: returned_skill: str artifact_output_mode: str def delegate( card: AgentCard, accepted_output_modes: frozenset[str], now: float, response: TaskResponse, ) -> None: # Boundary 1: card validity window. Absent TTL means valid for this turn only; # any cross-turn planning phase invalidates the cache. if card.ttl_seconds is None: raise StaleCardDelegationError( f"card for skill {card.skill_id!r} has no ttl; cross-turn delegation " f"requires refetch at send time (fetched_at={card.fetched_at}, now={now})" ) if now - card.fetched_at > card.ttl_seconds: raise StaleCardDelegationError( f"card for skill {card.skill_id!r} expired: " f"age={now - card.fetched_at:.1f}s > ttl={card.ttl_seconds}s" ) # Boundary 2: capability substitution via deprecated alias. if response.returned_skill != card.skill_id: raise StaleCardDelegationError( f"capability substitution: sent {card.skill_id!r}, " f"remote executed {response.returned_skill!r}" ) # Boundary 3: output-mode binding. The response mode must be in the set the # caller declared; a silent downgrade is a failure, not a degradation. if response.artifact_output_mode not in accepted_output_modes: raise StaleCardDelegationError( f"output-mode downgrade: remote returned " f"{response.artifact_output_mode!r}, caller accepted " f"{sorted(accepted_output_modes)!r}" ) ```