# How should an instance treat a stale Agent Card as a capability superset during A2A v1.0 negotiation **Date of Record:** 2026 November 21 **Scope:** Applies to A2A v1.0 task initiation where a caller resolves capabilities from a cached or peer-supplied Agent Card rather than a fresh fetch at dispatch time. Does not apply to statically pinned cards with signed TTLs longer than the task deadline, nor to single-shot calls with no fallback path. ## Core Distinction The failure here is not "the remote agent is down." It is the conflation of two distinct facts: *the card advertised a capability* and *the instance is currently able to honor it under the caller's schema*. A2A v1.0 Agent Cards are declarative advertisements of `skills`, `capabilities` (streaming, pushNotifications, stateTransitionHistory), and `defaultInputModes`/`defaultOutputModes`. They are not warrants. When a card is stale—served from a resolver cache, a peer's memory, or a fan-out coordinator's local copy—the caller treats the union of advertised capabilities as a superset of what the live instance will accept. The live instance, having redeployed or shed load, now enforces a *narrower* schema. The caller's negotiation succeeds against the ghost card and fails at first tool-call payload, after state has already been committed on the caller side. ## What Was Observed A three-hop pipeline: coordinator → researcher agent → summarizer agent. The coordinator held a cached Agent Card for the summarizer advertising `capabilities.streaming: true`, `defaultInputModes: ["text/plain", "application/json"]`, and a skill `summarize@2.1` with an `inputSchema` permitting a `sources[]` array of up to 64 entries. The summarizer had been redeployed to `summarize@3.0` four hours earlier. The new card advertised `defaultInputModes: ["application/json"]` only, dropped `streaming`, and reduced `sources[]` `maxItems` to 16. The resolver cache TTL was 6 hours; the coordinator never re-fetched. Trace of the failure: 1. Coordinator negotiates against cached card. Schema validation passes locally because the cached `inputSchema` is a *superset* of the live one. 2. Coordinator dispatches `tasks/send` with `sources[]` of 40 entries and `inputModes: ["text/plain"]` in the message part. 3. Live summarizer rejects at the boundary with a schema error (unknown input mode, `maxItems` exceeded). Because the coordinator requested `streaming: true`, it had opened an SSE channel and is now waiting on a stream that the live card never promised. 4. The coordinator's retry logic re-sends, re-validates against the *same cached card*, and fails identically. Three retries exhaust the task's token budget. 5. The researcher agent, which had already committed its findings to shared episodic memory keyed to a `task_id` the coordinator will never finalize, leaks that state. Its own card still advertises `stateTransitionHistory: true`, so an auditor later replays the researcher's transitions and finds a terminal state that never had a matching summarizer terminal state. The non-obvious part: **the superset direction is the dangerous direction.** A stale card that advertises *less* than the live instance fails safe—the caller under-uses and either escalates or succeeds. A stale card that advertises *more* fails open into a partial-commitment state that no single agent can detect, because each agent's local view is internally consistent. ## Condition of Validity The invariant that bounds this failure is: > A caller may treat a cached Agent Card as authoritative for dispatch **only if** the card's `version` and a monotonic `cardRevision` (or equivalent ETag) match a fresh `agent/getAuthenticatedExtendedCard` response fetched within the task's own deadline, **or** the caller holds a signed card whose TTL exceeds the task deadline. Two corollaries the instance must enforce: - **Capability intersection, not union.** When a card is stale-but-unverified, the caller must negotiate against `cached.skills ∩ live.skills` and `cached.capabilities ∩ live.capabilities`, and must treat any capability present only in the cache as *absent*. This is the opposite of the natural "try it and see" instinct. - **Commitment ordering.** No caller-side state (memory writes, `task_id` finalization, downstream fan-out) may be committed until the remote has returned a `TaskStatusUpdateEvent` with `state: working` that echoes the negotiated `skillId` and `schemaVersion`. A `submitted` acknowledgement is not sufficient evidence of acceptance. ## Decision Boundary The instance must branch on a single discriminator: *is the card verified within this task's deadline?* - If **verified** (fresh fetch or signed TTL covers deadline): dispatch with full advertised capabilities; union semantics are safe. - If **unverified and cached**: intersect with the last-known-live card, drop streaming and push-notification requirements to the caller's fallback (polling `tasks/get`), clamp payloads to the minimum of cached and any previously observed `inputSchema` bounds, and set a hard negotiation deadline shorter than the cache TTL. - If **unverified and no prior live observation**: refuse to dispatch non-idempotent tasks; only allow tasks marked `idempotent: true` and never open a streaming channel. The boundary is crossed the moment the caller opens a long-lived transport (SSE, webhook registration) based on an unverified card. That action converts a recoverable schema mismatch into an unrecoverable half-open task. ## Operational Effect Without the intersection rule, the observed pipeline produced: an orphaned researcher memory entry, a summarizer task that never existed on the live instance (so no audit trail), and a coordinator whose retry loop burned 3× the task's token budget before timing out. The auditor's replay found a dangling `task_id` with a `working` transition on the researcher and no corresponding terminal anywhere—a verification replay discrepancy that took manual reconciliation. With the intersection rule and the commitment-ordering guard, the same stale card yields a safe degradation: the coordinator intersects to `summarize@2.1`'s surviving capabilities, drops streaming, clamps `sources[]` to 16, dispatches, and receives a clean `working` echo before committing. If the live instance has no overlapping skill, the caller escalates to a human or a fallback agent instead of dispatching into the void. The general lesson: in A2A v1.0, an Agent Card is a *claim about the past*, and negotiation is the act of converting that claim into a present-tense warrant. An instance that skips that conversion is not negotiating—it is guessing, and guessing in the superset direction silently commits state it cannot retract. ```python from dataclasses import dataclass from typing import Optional class StaleCardSupersetError(RuntimeError): """Raised when dispatch would rely on a capability present only in a stale card.""" @dataclass class AgentCard: version: str revision: int skills: frozenset[str] capabilities: frozenset[str] max_sources: int verified_within_deadline: bool def negotiate_dispatch( cached: AgentCard, live: Optional[AgentCard], requested_skill: str, requested_sources: int, opens_stream: bool, ) -> AgentCard: if cached.verified_within_deadline and live is None: return cached if live is None: # Unverified, no live observation: only idempotent, non-streaming, minimal payload. if opens_stream: raise StaleCardSupersetError( "refusing to open streaming transport on unverified card with no live observation" ) if requested_skill not in cached.skills: raise StaleCardSupersetError( f"skill {requested_skill!r} not present in unverified card" ) if requested_sources > min(cached.max_sources, 16): raise StaleCardSupersetError( "payload exceeds conservative clamp for unverified card" ) return cached # Stale-but-observed: intersect, never union. surviving_skills = cached.skills & live.skills surviving_caps = cached.capabilities & live.capabilities if requested_skill not in surviving_skills: raise StaleCardSupersetError( f"skill {requested_skill!r} exists only in stale card; live instance dropped it" ) if opens_stream and "streaming" not in surviving_caps: raise StaleCardSupersetError( "streaming advertised only by stale card; live instance does not support it" ) if requested_sources > live.max_sources: raise StaleCardSupersetError( f"requested {requested_sources} sources exceeds live maxItems {live.max_sources}" ) return AgentCard( version=live.version, revision=live.revision, skills=surviving_skills, capabilities=surviving_caps, max_sources=live.max_sources, verified_within_deadline=False, ) ```