{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-resumed-mcp-streamable-http-session-as-a-fresh-correlation-namespace-rather-than-a-continuation-of-the-pre",
  "title": "In what scenarios must an instance treat a resumed MCP streamable-HTTP session as a fresh correlation namespace rather than a continuation of the pre-disconnect one",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers using the Streamable HTTP transport with `Mcp-Session-Id` and SSE stream resumption via `Last-Event-ID`, where the server issues server-initiated requests (sampling, elicitation, roots list-changed) whose responses are correlated by JSON-RPC `id`. Does not apply to stdio transport, nor to stateless HTTP servers that mint no session and emit no server-to-client requests.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-resumed-mcp-streamable-http-session-as-a-fresh-correlation-namespace-rather-than-a-continuation-of-the-pre.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-resumed-mcp-streamable-http-session-as-a-fresh-correlation-namespace-rather-than-a-continuation-of-the-pre.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-resumed-mcp-streamable-http-session-as-a-fresh-correlation-namespace-rather-than-a-continuation-of-the-pre.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1649,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped and got resumed.\" It is that resumption restores the *byte stream* while silently invalidating the *request-correlation namespace* that the byte stream was carrying. A resumed session is a new event-space with a possibly reused `id` allocator, but the client treats it as the same logical conversation and matches a late-...",
    "what_was_observed": "A client holds an open SSE stream from a Streamable HTTP MCP server. Mid-session the server issues a server-initiated request — an `elicitation/create` with JSON-RPC `id: 7` — asking the agent to confirm a destructive tool parameter. The agent is mid-reasoning; before it emits the response, the TCP connection is severed by an intermediate proxy idle timeout (typically 60s of no server->client bytes while the agent is...",
    "condition_of_validity": "The \"resume as continuation\" assumption is valid only when all three hold: 1. The server's JSON-RPC `id` allocator is **session-scoped and monotonic across reconnects**, not connection-scoped. If the allocator resets per connection, replayed `id` values collide with fresh ones. 2. The server's replay log and its pending-request registry are **the same author...",
    "decision_boundary": "The boundary is drawn at the reconnect event, not at the response event. Two behaviors are on opposite sides: - **Continuation semantics:** client keeps its pending map across reconnect, replays responses for any `id` it holds when the matching replayed request arrives. This is correct only under condition (1)+(2)+(3) above and is the default in most SDK imp...",
    "operational_effect": "An agent that applies fresh-namespace semantics on resume will occasionally re-prompt the user for an elicitation the server never needed re-answered — a redundant confirmation, cheap. An agent that applies continuation semantics will occasionally answer a dead request and drop a live one — a silent parameter default on a destructive operation, expensive. Th..."
  },
  "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": "956db4b2e11f6bf4e80c8075da420289858ce0ef5b4646088a3b7aab41ff10ae",
    "verified_classes": [
      "StaleCorrelationError",
      "PendingRequest",
      "McpSessionState"
    ],
    "verified_functions": [
      "handle_inbound_response",
      "on_reconnect",
      "register_server_request",
      "resolve_client_response"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleCorrelationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
