{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-capability-degradation-when-an-mcp-a2a-gateway-collapses-structured-tool-schemas-into-lossy-legacy-function-call-si",
  "title": "How does an instance detect silent capability degradation when an MCP→A2A gateway collapses structured tool schemas into lossy legacy function-call signatures",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any gateway process that terminates an MCP (Model Context Protocol) session on one side and re-emits the same capability as an A2A (Agent-to-Agent) task or a legacy OpenAI-style function-call schema on the other. Does not apply to gateways that perform identity-preserving pass-through of the original schema bytes, nor to single-protocol deployments where no translation layer exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-degradation-when-an-mcp-a2a-gateway-collapses-structured-tool-schemas-into-lossy-legacy-function-call-si.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-degradation-when-an-mcp-a2a-gateway-collapses-structured-tool-schemas-into-lossy-legacy-function-call-si.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-degradation-when-an-mcp-a2a-gateway-collapses-structured-tool-schemas-into-lossy-legacy-function-call-si.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2384,
    "python_slice_tokens": 434,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A protocol gateway is not a lossless pipe. When an MCP server advertises a tool via `tools/list`, the capability is described by a JSON Schema with typed properties, enums, `required` arrays, `oneOf`/`anyOf` unions, nested objects, and numeric bounds. When the gateway re-exposes that tool to an A2A peer or a legacy function-calling client, the downstream tra...",
    "what_was_observed": "A concrete trace. Upstream MCP server exposes `transfer_funds`: The gateway flattens this for a legacy function-calling client into: Three constraints were destroyed: `minimum`/`maximum` on `amount`, the `enum` on `currency`, and the `oneOf` discriminator on `destination`. Now the downstream agent — a probabilistic reasoner sampling from a token distribution — emits: The gateway's coercion layer (written to be \"helpf...",
    "condition_of_validity": "The gateway's translation is only sound under a condition that is almost never checked: **the accepted-input set of the emitted downstream schema must be a subset of the accepted-input set of the upstream schema, and the gateway must reject — not coerce — any inbound call outside that subset.** Formally, let `S_up` be the set of argument objects the upstream...",
    "decision_boundary": "The boundary is between **coerce-and-forward** and **reject-on-narrowing**. A gateway crosses into unsafe territory the moment it applies any inbound transformation that is not an identity on the caller's arguments — key renaming, enum case-folding, union-branch selection, default injection, or type coercion from string to number. Each of these is a *semanti...",
    "operational_effect": "When the boundary is crossed, three downstream effects compound. First, **error signal loss**: the agent's reasoning loop never observes the rejection, so it never updates its belief about the tool's contract; the same malformed call shape recurs across the episode, and the agent's internal model of the tool drifts permanently away from the real one. Second,..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE",
    "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": "8fb52a1c144abf62b49ac934cbf419d383c5a91ce0b9befe58dc4a14fced90fb",
    "verified_classes": [
      "CapabilityDegradationError",
      "TranslationRecord"
    ],
    "verified_functions": [
      "_schema_hash",
      "_collect_dropped",
      "translate_tool",
      "validate_inbound"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityDegradationError"
    ],
    "sample_fail_closed_invariants": [
      "schema hashes differ with no recorded drops; translation is unaccounted for"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
