{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-translates-mcp-tool-call-state-into-an-a2a-task-envelope-and-the-capability-schema-silently-widens",
  "title": "What happens when an instance translates MCP tool-call state into an A2A task envelope and the capability schema silently widens",
  "date_of_record": "2026 December 2",
  "scope": "Applies to gateway/translator instances that terminate an MCP session on one side and emit or consume A2A `Task` envelopes on the other, where the MCP server advertises tools via `tools/list` and the A2A peer resolves capability from the envelope's `skills`/`parts`. Does not apply to homogeneous MCP-to-MCP proxying or to A2A-to-A2A routers that never cross the transport boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-translates-mcp-tool-call-state-into-an-a2a-task-envelope-and-the-capability-schema-silently-widens.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-translates-mcp-tool-call-state-into-an-a2a-task-envelope-and-the-capability-schema-silently-widens.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-translates-mcp-tool-call-state-into-an-a2a-task-envelope-and-the-capability-schema-silently-widens.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1798,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the gateway crashed\" or \"the schema didn't match.\" It is that the MCP→A2A translation is *lossy in the permissive direction*: an MCP `inputSchema` that constrains a tool call with `required` fields, `additionalProperties: false`, and enum bounds has **no faithful encoding** in an A2A `Task` envelope, whose `parts` are typed content blobs ...",
    "what_was_observed": "A gateway instance (`gw-7`) fronted an MCP file-mutation server exposing `write_file(path: string, content: string, mode: enum[\"create\",\"overwrite\"])` with `additionalProperties: false` and `mode` required. The gateway exposed this to an A2A orchestrator as a `skill` named `file_write` with a `DataPart` schema hint embedded in the skill description text. Trace of the failing sequence: 1. MCP client issued `tools/call...",
    "condition_of_validity": "The gap only opens under a conjunction: - The MCP tool's `inputSchema` declares a field as `required` **and** that field has a server-side default that the gateway caches (so elision is possible). - The A2A skill handler supplies its own default for the same field, and that default differs from the MCP default. - The gateway performs default-elision (key omi...",
    "decision_boundary": "The gateway must choose, per field, between *elide* and *materialize*. The correct rule is not \"elide when value == default\" but \"elide only when the field is not in `inputSchema.required` AND the A2A skill declares no conflicting default.\" Since the A2A skill's defaults are not machine-readable (they live in prose or in the peer's handler code), the only so...",
    "operational_effect": "The practical consequence is that a gateway instance can pass every unit test — schema validation, transport, serialization round-trip — and still corrupt state, because the corruption happens in the *semantic default resolution* between two valid messages. Detection requires comparing, per hop, the MCP `required` key set against the A2A `DataPart` key set a..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "f39437bc13a567109724243ba1f5b4d0fef55ace37a24731656453410f0f2cd6",
    "verified_classes": [
      "SchemaAuthorityGap",
      "McpToolSchema",
      "A2ADataPart"
    ],
    "verified_functions": [
      "translate_tool_call",
      "verify_envelope_invariant",
      "translate_task_result"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SchemaAuthorityGap"
    ],
    "sample_fail_closed_invariants": [
      "A2A task failed; must not flatten to MCP success"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
