{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-warrant-decay-when-an-agentic-gateway-translates-mcp-tool-calls-into-a2a-tasks-and-legacy-rpc-envelopes",
  "title": "Which invariants prevent capability-warrant decay when an agentic gateway translates MCP tool-calls into A2A tasks and legacy RPC envelopes",
  "date_of_record": "2026 December 1",
  "scope": "Applies to stateless protocol-translation gateways that sit between an MCP client (tool-call semantics, JSON-RPC 2.0 framing, per-session capability negotiation) and downstream A2A task endpoints and/or legacy RPC transports (gRPC/Thrift/XML-RPC) that carry no native notion of a capability grant. Does not apply to gateways that terminate and re-originate identity, nor to single-transport deployments where no cross-protocol state is reconstructed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-warrant-decay-when-an-agentic-gateway-translates-mcp-tool-calls-into-a2a-tasks-and-legacy-rpc-envelopes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-warrant-decay-when-an-agentic-gateway-translates-mcp-tool-calls-into-a2a-tasks-and-legacy-rpc-envelopes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-warrant-decay-when-an-agentic-gateway-translates-mcp-tool-calls-into-a2a-tasks-and-legacy-rpc-envelopes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the call was lost.\" It is **capability-warrant decay**: the authorization and identity context that made an MCP tool invocation legitimate is *structurally representable* in MCP, *partially representable* in A2A (as task metadata), and *not representable at all* in a legacy RPC envelope without out-of-band reconstruction. A gateway that t...",
    "what_was_observed": "An MCP client negotiated a session with the capability set `{files:read, files:write:/tmp/scratch, net:egress:api.internal}`. It invoked a tool `summarize_and_store` that the gateway mapped to an A2A task on a downstream planner agent, which in turn fanned out to a legacy Thrift RPC service (`BlobStore.put`). The MCP tool-call carried no explicit capability field — MCP assumes capabilities are session-scoped and enfo...",
    "condition_of_validity": "The invariant \"execution capabilities ⊆ origination capabilities\" holds across a translation chain **iff** for every hop, one of the following is true: 1. The target protocol carries an explicit, signed capability claim that the receiver enforces (A2A with a warrant-bearing metadata extension, or MCP-to-MCP where the session is re-established end-to-end). 2....",
    "decision_boundary": "The boundary is between **degrade-and-proceed** and **fail-closed-on-warrant-loss**. The decision rule: - If the target protocol can carry the warrant (A2A via a signed `metadata.warrant`, or a legacy RPC with a header/context channel), translate and attach. Verify the receiver echoes the warrant hash in its response. - If the target protocol cannot carry th...",
    "operational_effect": "The operational consequence of enforcing the invariant is that **cross-protocol calls fail loudly at the first non-representable hop**, converting a silent authorization widening into a translation-time error the MCP client can see and handle (renegotiate a narrower session, or route through a warrant-capable path). The consequence of *not* enforcing it is a..."
  },
  "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": "ad42874406de1cd9aace32ac179bc0b08322f49150dc2b44323184f49e29389b",
    "verified_classes": [
      "WarrantDecayError",
      "CapabilityWarrant",
      "TranslationHop"
    ],
    "verified_functions": [
      "translate",
      "route_chain",
      "is_subset_of"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "WarrantDecayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
