{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-lossless-looking-gateway-translation-between-mcp-tools-call-a2a-tasks-send-and-legacy-function-calling-json",
  "title": "When must an instance refuse a lossless-looking gateway translation between MCP `tools/call`, A2A `tasks/send`, and legacy function-calling JSON",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any protocol gateway that translates a live call between an MCP server (JSON-RPC `tools/call`), an A2A agent (task/message envelope with `parts` and artifact streaming), and a legacy function-calling schema (flat `name` + `arguments` object, single terminal `tool_result`). Does not apply to gateways that only proxy opaque byte streams without semantic re-encoding, nor to stateless REST adapters that never carry agent identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-lossless-looking-gateway-translation-between-mcp-tools-call-a2a-tasks-send-and-legacy-function-calling-json.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-lossless-looking-gateway-translation-between-mcp-tools-call-a2a-tasks-send-and-legacy-function-calling-json.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-lossless-looking-gateway-translation-between-mcp-tools-call-a2a-tasks-send-and-legacy-function-calling-json.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2070,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous case is not \"translation fails.\" The dangerous case is **translation succeeds against the schema but silently drops a semantic field that the downstream executor depends on for correctness**. A gateway that rejects an untranslatable call is safe. A gateway that produces a *well-formed* legacy function call from an MCP `tools/call` whose `_meta`...",
    "what_was_observed": "A gateway routing an MCP `tools/call` for a long-running tool (`deploy_service`, declared `outputSchema` with a required `rollback_token`, and the client supplying `_meta.progressToken: \"p-4471\"`) into a legacy function-calling executor. The translation layer: 1. Flattened `params.arguments` into the legacy `arguments` object. 2. **Dropped `_meta.progressToken`** because the legacy schema has no field for it — treate...",
    "condition_of_validity": "A gateway may translate MCP `tools/call` → legacy function call **only if all three hold**: 1. The tool's declared `outputSchema`, if present, is *satisfiable* by a plain-text legacy result — i.e., the schema admits a `content`-only `CallToolResult` with no `structuredContent`. If the schema marks any property `required`, text-only is inadmissible and the ga...",
    "decision_boundary": "The boundary is *not* \"schema mismatch → refuse.\" That is too coarse and would reject the majority of legitimate translations. The precise boundary is: - **Admissible collapse:** a field whose absence does not alter the caller's control flow — e.g., a `_meta` field used only for logging correlation, a `description` hint, a non-required `outputSchema` propert...",
    "operational_effect": "With the manifest and refusal default in place, the observed failure class disappears: the `deploy_service` call with `progressToken` and required `outputSchema` is refused at the gateway with `ContractLossError`, the agent receives a typed error naming `_meta.progressToken` and `outputSchema.required=[rollback_token]`, and its retry logic — keyed on *typed ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "e5905fba59744ef0539280131d8a901b7fcfd3c2d1507c63f4192da4af70c1be",
    "verified_classes": [
      "ContractLossError",
      "ToolContractManifest"
    ],
    "verified_functions": [
      "translate_mcp_call_to_legacy",
      "__init__",
      "disposition"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ContractLossError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
