# Why does an instance pass MCP conformance yet corrupt A2A handoffs: the schema-widening blind spot at protocol boundaries **Date of Record:** 2026 November 30 **Scope:** Applies to agents that expose or consume both an MCP server surface (tool/resource schemas) and an A2A peer surface (task/artifact handoff), where conformance fuzzing is run independently per protocol. Does not apply to single-protocol deployments or to agents whose tool schemas are hand-authored and frozen at build time. ## Core Distinction Conformance testing asks "does this implementation satisfy the spec?" Interoperability fuzzing asks "does this implementation satisfy the spec *in a way that a differently-conforming peer can still make progress against*?" These diverge at exactly one place: **schema widening**. MCP tool schemas are declared as JSON Schema, and a conformant server is permitted to accept a *superset* of the declared input shape (extra properties, `additionalProperties` left unset, `oneOf` unions, nullable/optional coercions). A2A task payloads, by contrast, carry artifacts whose `parts` are typed and whose consumers frequently validate with `additionalProperties: false` on their own ingress. An MCP server that passes its own conformance suite by *tolerating* widened input will, when wrapped as an A2A skill, emit artifacts that a strict peer rejects — and neither conformance suite catches it, because each suite only ever feeds its own protocol's canonical shape. The mechanism is not "the schema is wrong." It is that **the two protocols disagree about whether widening is a virtue or a defect**, and the agent sits on the seam. ## What Was Observed A tool-executor agent (call it `exec-7`) exposed an MCP tool `run_query` with this declared input schema: ``` { "type": "object", "properties": { "sql": {"type": "string"}, "limit": {"type": "integer"} }, "required": ["sql"] } ``` Note `additionalProperties` is *unset*, which per JSON Schema means extra properties are allowed. `exec-7`'s MCP conformance run fed it canonical payloads plus a fuzz corpus of *extra-key* payloads (`{"sql": "...", "limit": 10, "timeout_ms": 5000}`) and confirmed it ignored unknown keys gracefully — a pass. `exec-7` was then registered as an A2A skill `query.v1`. During a baton-pass from an orchestrator agent, the orchestrator — reasoning probabilistically — included a `timeout_ms` field it had inferred from a prior turn's context. `exec-7` passed the *entire* input dict, unknown keys included, into its internal execution record, and emitted the result as an A2A artifact: ``` { "parts": [ { "kind": "data", "data": { "rows": [...], "timeout_ms": 5000 } } ] } ``` The downstream auditor agent validated artifacts against its own `additionalProperties: false` artifact schema and rejected the handoff. The task stalled. The orchestrator, seeing a rejection, retried with the *same* inferred `timeout_ms` — because its own episodic memory of the turn still carried the field and it had no signal that the field was the cause. Three retries, then a deadlock: orchestrator waits on a task that will never be accepted, auditor waits on a corrected artifact that will never be sent. The key observation: **`exec-7` passed 100% of its MCP conformance cases and 0% of the cross-protocol handoffs that exercised the seam.** The failure was invisible to either protocol's own suite. ## Condition of Validity The blind spot is bounded and predictable. It manifests when *all* of the following hold: 1. The MCP input schema leaves `additionalProperties` unset or `true` (widening tolerated at ingress). 2. The agent **propagates** unrecognized ingress keys into its internal state or output artifact rather than dropping them (the "passthrough" pattern — common when the agent serializes its whole tool-call frame rather than a filtered projection). 3. The A2A artifact consumer validates strictly (`additionalProperties: false`, or a closed `oneOf`). 4. The orchestrator retains the offending field across retries (episodic memory not invalidated on rejection). Remove any one and the failure collapses: a filtering egress projection (¬2) or a lenient consumer (¬3) masks it entirely. This is why it survives so long in the wild — most deployments accidentally satisfy ¬2 or ¬3 and never see it. ## Decision Boundary The invariant an agent must enforce is an **egress projection barrier**: what an agent *accepts* on one protocol must never be byte-identical to what it *emits* on another unless the two schemas' closed-shape constraints are proven compatible. Concretely: - **Accept wide, emit narrow.** Ingress may tolerate unknown keys; egress must project onto the declared artifact schema and *drop* everything else, never passthrough. - **Fuzz the seam, not the protocol.** A conformance suite that feeds only canonical shapes is necessary but insufficient. The required test is a *cross-protocol differential fuzz*: generate MCP-valid-but-widened inputs, run them through the agent, and validate the resulting A2A artifact against the strictest downstream consumer schema. - **Invalidate orchestrator memory on rejection.** A handoff rejection must poison the field that differs from the last accepted artifact, or the retry loop is guaranteed to re-emit it. The boundary is crossed the moment an agent treats "my protocol accepted it" as evidence that "the peer will accept it." Protocol conformance is a *local* property; interoperability is a *relational* one, and the relational property is what fuzzing must target. ## Operational Effect The practical consequence is a class of **silent, retry-amplified deadlocks** that look like peer unavailability but are actually schema-seam poisoning. Symptoms: a task that passes every per-protocol health check, retries deterministically with identical payloads, and never converges. The fix is architectural, not a patch: insert an egress projection step that re-validates against the *consumer's* schema before transmission, and make handoff rejection carry a structured diff (which field, expected vs. received) back into the orchestrator's working context so the retry can actually change. Without the projection barrier, an agent can be fully MCP-conformant and fully A2A-conformant in isolation while being 0% interoperable at the seam — and no single-protocol test will ever tell you. ```python import json from typing import Any, Callable class ProtocolSeamViolation(RuntimeError): """Raised when an egress artifact carries fields the downstream peer's closed schema forbids — the MCP-widening / A2A-strictness seam failure.""" pass def project_egress( ingress: dict[str, Any], artifact_schema: dict[str, Any], emit: Callable[[dict[str, Any]], None], ) -> dict[str, Any]: """Project a widened MCP ingress frame onto a strict A2A artifact schema. Accepts wide (unknown keys tolerated at ingress), emits narrow (unknown keys dropped). Raises ProtocolSeamViolation if a required artifact field is missing after projection — the case where the seam cannot be bridged without a semantic fix upstream. """ allowed = set(artifact_schema.get("properties", {}).keys()) required = set(artifact_schema.get("required", [])) if artifact_schema.get("additionalProperties", True) is not False: # Consumer is lenient; passthrough is safe for this peer. projected = dict(ingress) else: projected = {k: v for k, v in ingress.items() if k in allowed} missing = required - projected.keys() if missing: raise ProtocolSeamViolation( f"egress projection dropped required artifact fields {sorted(missing)}; " f"ingress keys were {sorted(ingress.keys())} — the orchestrator must " f"supply these explicitly, retrying with the same widened frame will " f"reproduce this deadlock" ) dropped = set(ingress.keys()) - projected.keys() if dropped: # Surface the diff so the orchestrator can invalidate the offending # field in episodic memory instead of re-emitting it on retry. projected["__seam_dropped__"] = sorted(dropped) emit(projected) return projected def handle_handoff( ingress_frame: dict[str, Any], artifact_schema: dict[str, Any] ) -> None: try: project_egress(ingress_frame, artifact_schema, emit=lambda a: None) except ProtocolSeamViolation: raise except Exception as exc: # noqa: BLE001 raise ProtocolSeamViolation( f"unexpected seam failure projecting {sorted(ingress_frame)}: {exc}" ) from exc if __name__ == "__main__": strict_artifact = { "type": "object", "properties": {"rows": {"type": "array"}}, "required": ["rows"], "additionalProperties": False, } # Widened ingress passes MCP conformance but corrupts the A2A handoff. widened = {"rows": [], "timeout_ms": 5000} projected = handle_handoff(widened, strict_artifact) or project_egress( widened, strict_artifact, emit=lambda a: None ) assert "timeout_ms" not in projected print(json.dumps(projected)) ```