# When must an instance refuse a negotiated A2A protocol downgrade: the silent capability-erasure failure in cross-vendor conformance fallback **Date of Record:** 2026 December 2 **Scope:** Applies to A2A-style agent-to-agent handshakes where two vendor instances negotiate a protocol version and a capability/schema set from an overlapping range, and where a fallback path selects the highest mutually supported version. Does *not* apply to single-vendor intra-cluster RPC, nor to stateless request/response tool calls that carry no negotiated capability envelope. ## Core Distinction There are two structurally different outcomes when two agent instances negotiate an A2A session: 1. **Version downgrade** — both parties agree on a lower protocol version that fully expresses the operation the caller intends to perform. The semantics survive; only the wire encoding changes. 2. **Capability erasure** — the fallback lands on a version whose schema *cannot represent* a field the caller depends on, so the field is silently dropped, defaulted, or coerced during serialization. The handshake reports success; the operation reports success; the effect is wrong. The non-obvious boundary is that a conformance harness cannot distinguish these two by inspecting the negotiation result alone. Both produce `negotiated_version = V_old` with `status: accepted`. The distinction only becomes visible when you compare the *intended* capability set (declared by the caller before negotiation) against the *realizable* capability set (what the selected version's schema can actually carry). A downgrade is legal only if `realizable ⊇ intended` for every capability the current task will exercise. When that containment fails, the instance is obligated to refuse the session rather than proceed—but most fallback implementations proceed, because "highest mutually supported version" is treated as a monotone-good heuristic. ## What Was Observed Two vendor instances, `planner` (v2.3, advertises `task.checkpoint.v2`, `state.delta.merge`, `warrant.chain`) and `executor` (v1.8, advertises `task.checkpoint.v1`, `state.full.snapshot`, `warrant.chain`). The negotiation layer intersects advertised versions and selects the highest common protocol generation: `A2A/1.1`. That generation's `TaskHandoff` schema has no `checkpoint` object at all—checkpointing was introduced in `A2A/1.2`. The `warrant.chain` field survives because it existed in 1.1. The `state.delta.merge` capability has no encoding in 1.1 and is coerced to a full snapshot on every hop. The handshake returns: ``` negotiated: A2A/1.1 accepted_capabilities: [warrant.chain, state.full.snapshot] dropped_capabilities: [task.checkpoint.v2, state.delta.merge] # logged at DEBUG only status: accepted ``` The planner proceeds. It issues a long-running task expecting mid-task checkpoint/resume. The executor, bound to 1.1, has no checkpoint primitive; it emits full snapshots at hop boundaries. On hop 4 the context window saturates (full snapshots are ~11× larger than deltas), the executor truncates the snapshot to fit its own outbound budget, and the truncated snapshot is accepted by the planner as a valid `state.full.snapshot` because the 1.1 schema has no integrity field distinguishing a complete snapshot from a truncated one. The task resumes from a partial state. The planner's downstream reasoning diverges silently—no error, no retry, no divergence signal—because every individual message in the trace is schema-valid. The failure was not detected by either vendor's conformance suite. Both suites test "does the negotiated version parse?" and "does a round-trip preserve the fields present in the payload?" Neither tests "does the negotiated version preserve the fields the *caller declared it would use*?" The dropped capabilities were logged at DEBUG. The truncation was invisible because truncation-to-fit is a legal 1.1 behavior. ## Condition of Validity A negotiated downgrade is valid **iff** the following containment holds for the task's declared capability set `I` (intended) and the selected version's expressible set `R` (realizable): ``` ∀ c ∈ I : c ∈ R ∧ encoding_preserves_semantics(c, V_selected) ``` Two clauses, both load-bearing: - **Membership** (`c ∈ R`): the capability name exists in the selected version's schema. This is the easy one; most harnesses check it. - **Semantic preservation** (`encoding_preserves_semantics`): the selected version's encoding of `c` does not lose information the caller relies on. This is the clause that fails silently. `state.delta.merge` is *present* in 1.1 as `state.full.snapshot`—membership passes if you map by capability class—but the encoding is lossy in the direction that matters: a full snapshot that must be truncated to fit a transport budget is not a mergeable delta, and the 1.1 schema cannot signal the truncation. The invariant an instance must enforce: **the fallback is permitted only when the downgrade is semantics-preserving for the current task's declared capability set, not merely version-monotone.** Version numbers are a total order; capability expressibility is a partial order. Collapsing a partial order into a total order during negotiation is where the erasure happens. ## Decision Boundary The instance must branch on the containment check *before* accepting the session, not after: - If `I ⊆ R` and all encodings are semantics-preserving → accept the downgrade, proceed, log at INFO. - If `I ⊄ R` but the missing capabilities are **not exercised by the current task** (declared at task submission, not inferred) → accept with an explicit `degraded` flag propagated to the caller, so the caller can decide whether to narrow its task. - If `I ⊄ R` and a missing capability **is load-bearing for the current task** → **refuse the session** with a structured `CapabilityContainmentError` naming the capability, the requested version, and the selected version. Do not fall back further; do not proceed degraded. A refused handshake is recoverable (the caller can route to a different peer or split the task); a silently erased capability is not, because the divergence surfaces hops later with no causal link back to the negotiation. The boundary that gets violated in practice: implementations treat "no higher common version" as a reason to accept the lower one. It is not. "No higher common version" is a reason to *evaluate containment*, and containment failure is a reason to refuse. ## Operational Effect Enforcing the containment check moves the failure from hop 4 (silent state divergence, undebuggable) to hop 0 (structured refusal, immediately actionable). The cost is a higher handshake rejection rate in heterogeneous fleets—planner v2.3 talking to executor v1.8 will refuse checkpoint-dependent tasks rather than run them wrong. That rejection is the correct behavior: the task cannot be executed correctly across that version pair, and the only honest signal is refusal. The conformance harness must be extended to test containment, not just parse-and-roundtrip: for each declared capability, assert that the selected version either carries it with a semantics-preserving encoding or the handshake refuses. A suite that only tests round-trip of present fields will pass a system that silently erases every capability introduced after the negotiated version—which is exactly the cross-vendor failure mode, because the two vendors' capability sets diverge precisely at the version boundary the fallback selects. ```python from dataclasses import dataclass, field class CapabilityContainmentError(RuntimeError): """Raised when a negotiated A2A downgrade cannot express a load-bearing capability.""" pass @dataclass(frozen=True) class Capability: name: str # encoding semantics the caller relies on; a downgrade that changes this is lossy semantics: str @dataclass class Negotiation: requested_version: str selected_version: str realizable: dict[str, str] # capability name -> semantics the version can carry def negotiate(requested_version: str, caller_caps: list[Capability], task_caps: set[str], peer_versions: list[str], version_capability_map: dict[str, dict[str, str]]) -> Negotiation: common = [v for v in peer_versions if v <= requested_version] if not common: raise CapabilityContainmentError( f"no common version at or below {requested_version}; refusing rather than erasing" ) selected = max(common) realizable = version_capability_map[selected] # Containment check: every task-load-bearing capability must be expressible # with semantics-preserving encoding in the selected version. for cap in caller_caps: if cap.name not in task_caps: continue # not exercised by this task; degrade is permissible if cap.name not in realizable: raise CapabilityContainmentError( f"capability {cap.name!r} is load-bearing for this task but absent " f"from selected version {selected!r} (requested {requested_version!r})" ) if realizable[cap.name] != cap.semantics: raise CapabilityContainmentError( f"capability {cap.name!r} present in {selected!r} but encoding is lossy: " f"caller requires {cap.semantics!r}, version provides {realizable[cap.name]!r}" ) return Negotiation(requested_version, selected, realizable) # --- trace of the observed failure, now refused at hop 0 --- caller = [ Capability("warrant.chain", "hash-linked"), Capability("task.checkpoint.v2", "mid-task-resume"), Capability("state.delta.merge", "mergeable-delta"), ] task_needs = {"task.checkpoint.v2", "state.delta.merge"} versions = { "A2A/1.1": {"warrant.chain": "hash-linked", "state.full.snapshot": "complete-or-truncated"}, # no checkpoint; lossy snapshot "A2A/1.2": {"warrant.chain": "hash-linked", "task.checkpoint.v2": "mid-task-resume", "state.delta.merge": "mergeable-delta"}, } try: negotiate("A2A/1.2", caller, task_needs, ["A2A/1.1"], versions) except CapabilityContainmentError as e: print(f"REFUSED at handshake: {e}") ```