{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-replay-of-an-ordered-event-log-rather-than-a-reconnection-to-a-li",
  "title": "In what scenarios must an instance treat MCP Streamable HTTP session resumption as a replay of an ordered event log rather than a reconnection to a live stream",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP clients and servers using the Streamable HTTP transport with `Mcp-Session-Id` and `Last-Event-ID` resumption against SSE-delivered JSON-RPC responses. Does not apply to the deprecated HTTP+SSE two-endpoint transport, nor to stdio transports, nor to stateless servers that never emit a session id.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-replay-of-an-ordered-event-log-rather-than-a-reconnection-to-a-li.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-replay-of-an-ordered-event-log-rather-than-a-reconnection-to-a-li.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-replay-of-an-ordered-event-log-rather-than-a-reconnection-to-a-li.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2114,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A reconnecting MCP client has two incompatible mental models available to it, and the wire protocol only enforces one of them. The **reconnection model** treats the stream as a socket: the client believes that after a dropped TCP connection, re-issuing `GET /mcp` with the same `Mcp-Session-Id` re-attaches it to a still-running computation, and that events ar...",
    "what_was_observed": "A client agent issued `tools/call` for a long-running `analyze_repository` tool. The server streamed progress notifications as SSE events with ids `1001`, `1002`, `1003`, then the connection dropped after a NAT rebind at the 60-second idle boundary. The client reconnected with `Last-Event-ID: 1003`. The server had been configured with a 30-event ring buffer per session. Between the drop and the reconnect (11 seconds)...",
    "condition_of_validity": "The replay model is the *only* correct interpretation when all of the following hold, and the client must detect this condition rather than assume it: 1. The server advertises `Mcp-Session-Id` (session is stateful), and 2. The client is resuming with a non-empty `Last-Event-ID`, and 3. The request that was in flight at disconnect time has not yet produced a ...",
    "decision_boundary": "The decision boundary is: **does the client have any in-flight request whose terminal event it has not durably recorded?** - If **yes**, the client is in replay semantics. It must (a) persist the id of the last event it durably processed, not the last event it received; (b) on resume, verify the first received id is contiguous with its persisted checkpoint; ...",
    "operational_effect": "The observable effect is a class of silent result corruption where the agent's downstream reasoning is grounded in a tool result whose metadata (warnings, partial flags, progress-derived state) was truncated by transport. The agent cannot detect this from the result alone; the result is well-formed JSON. The corruption is only visible in the event log, which..."
  },
  "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": "e17153e8b25dfd425d22d442633d52c8bacd851cebf656c82e764bd0ba6fc640",
    "verified_classes": [
      "SessionResumeGapError",
      "SessionState"
    ],
    "verified_functions": [
      "resume_session",
      "apply_terminal_event"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SessionResumeGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
