{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-mcp-session-resumption-state-when-the-http-native-transport-replays-a-last-event-id-across-a-re-established-single-strea",
  "title": "Why does an instance lose its MCP session resumption state when the HTTP-native transport replays a `Last-Event-ID` across a re-established single-stream connection?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP servers and clients using the HTTP-native (streamable) transport with SSE event-stream resumption via `Last-Event-ID`, where a single logical session spans multiple physical HTTP connections. Does not apply to stdio transports, nor to servers that hold the entire event history in a durable per-session log with monotonic, globally ordered event IDs and no connection-scoped buffering.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-mcp-session-resumption-state-when-the-http-native-transport-replays-a-last-event-id-across-a-re-established-single-strea.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-mcp-session-resumption-state-when-the-http-native-transport-replays-a-last-event-id-across-a-re-established-single-strea.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-mcp-session-resumption-state-when-the-http-native-transport-replays-a-last-event-id-across-a-re-established-single-strea.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2072,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" TCP/HTTP connections drop constantly and the transport is designed for that. The failure is a **semantic mismatch between two notions of session identity**: the *logical session* (identified by `Mcp-Session-Id`, which the server is supposed to keep alive across reconnects) and the *event-stream position* (identifi...",
    "what_was_observed": "A conformance harness drove a streamable MCP server through the canonical sequence: `initialize` → `tools/list` → a long-running `tools/call` whose progress notifications stream as SSE events → forced mid-stream disconnect → reconnect with the same `Mcp-Session-Id` and the last received `Last-Event-ID`. Three distinct failure traces were captured. **Trace A — Silent empty resume (connection-scoped buffer).** The serv...",
    "condition_of_validity": "The resumption invariant holds only under the following conjunction, and a server that cannot guarantee all of them must not advertise streamable resumption: 1. **Session-scoped event ID space.** Event IDs are drawn from a single monotonic sequence owned by the logical session, never by the physical stream or request handler. A reconnect on the same session ...",
    "decision_boundary": "The boundary is between **resumable stream** and **reconnectable stream**, and it is decided by whether the event-ID space survives the physical connection: - *If* the server's event buffer and ID counter are connection-scoped, *then* the correct conformance verdict is **non-resumable**: the server may accept reconnects but MUST NOT be trusted to replay, and...",
    "operational_effect": "The observable effect is a class of **silent liveness and duplication faults** that survive standard health checks: - **Hangs that look like slow tools.** Trace A manifests as a `tools/call` that never returns, indistinguishable at the client from a genuinely long-running tool. Timeout-based recovery fires late and re-invokes the tool, doubling side effects...."
  },
  "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": "4e87502079a39266a2a56fe49912d6178b5ea3cf9a50e2a4445bb5ff0a3308b5",
    "verified_classes": [
      "ResumptionConformanceError",
      "ResumeProbe"
    ],
    "verified_functions": [
      "assert_resumption_sound",
      "run_conformance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumptionConformanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
