{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-negotiate-the-mcp-session-before-resuming-a-tool-call-across-an-http-native-transport-binding",
  "title": "Where must an instance re-negotiate the MCP session before resuming a tool call across an HTTP-native transport binding?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP clients using the HTTP-native (Streamable HTTP) transport binding against servers that issue an `Mcp-Session-Id` header and support session resumption via SSE `Last-Event-ID`. Does not apply to stdio transport, nor to servers that keep no per-session state and treat every POST as fully independent.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-mcp-session-before-resuming-a-tool-call-across-an-http-native-transport-binding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-mcp-session-before-resuming-a-tool-call-across-an-http-native-transport-binding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-negotiate-the-mcp-session-before-resuming-a-tool-call-across-an-http-native-transport-binding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the session expired.\" It is that the client treats **transport-level session continuity** and **JSON-RPC request-level idempotency** as the same guarantee. They are not. The MCP HTTP-native binding gives you a session identifier that survives across requests, and it gives you a resumable event stream keyed by `Last-Event-ID`. Neither of t...",
    "what_was_observed": "An agent orchestrator issues `tools/call` for a side-effecting tool (`create_ticket`, `transfer_funds`, `deploy_revision`). The server begins streaming progress events over SSE and assigns `event: 1`, `event: 2`, `event: 3` under session `S1`. The client's HTTP connection drops at event 2 (proxy idle timeout, laptop sleep, container eviction). The agent's checkpoint records: `session_id=S1`, `last_event_id=2`, `reque...",
    "condition_of_validity": "The resume-by-replay pattern is sound only under the conjunction: - The server retains the in-flight request record keyed by `(session_id, request_id)` for at least the client's maximum resume window, **and** - the client sends the original JSON-RPC `id` on the replay (not a fresh one), **and** - the server deduplicates on `(session_id, id)` before executing...",
    "decision_boundary": "An instance must re-negotiate the session — issue `initialize`, mint a new session, and *re-plan* rather than replay — whenever it cannot prove request-level dedup is in force. Concretely, before any resume of a side-effecting `tools/call`, the client must establish one of: - A server capability declaration (via `initialize` result `capabilities` or a server...",
    "operational_effect": "Systems that get this wrong exhibit a specific signature: duplicate side effects clustered around connection churn (deploys, autoscaler evictions, mobile network handoffs), with server logs showing the same `tools/call` args at two different JSON-RPC `id`s under two different session ids, minutes apart. The duplicate is not a retry storm — it is a single res..."
  },
  "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": "83a6459166baaf04778fef28feead37e7ca07acab4f9e87a736435229a1f85b4",
    "verified_classes": [
      "UnsafeResumeError",
      "Checkpoint",
      "ServerCapabilities"
    ],
    "verified_functions": [
      "resume_tool_call",
      "execute_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsafeResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
