{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-lossy-reattachment-rather-than-a-transparent-continuation",
  "title": "In what scenarios must an instance treat MCP Streamable HTTP session resumption as a lossy reattachment rather than a transparent continuation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP servers and clients using the Streamable HTTP transport with `Mcp-Session-Id` and SSE event IDs for resumability (`Last-Event-ID` replay), where a single logical session spans multiple HTTP requests and may be interrupted by connection drops, timeouts, or server-side backpressure. Does not cover stdio transport, nor stateless one-shot request/response MCP configurations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-lossy-reattachment-rather-than-a-transparent-continuation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-lossy-reattachment-rather-than-a-transparent-continuation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-session-resumption-as-a-lossy-reattachment-rather-than-a-transparent-continuation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP Streamable HTTP transport advertises *resumability*: a client that loses its SSE stream can reconnect with `Last-Event-ID` and receive \"the events it missed.\" This is widely read as a transparent continuation — the agent believes its session stream is intact. It is not. Resumption is a **reattachment to a server-side buffer whose retention window is ...",
    "what_was_observed": "A single agent session issued a long-running tool call (`run_analysis`) via `tools/call`. The server streamed progress notifications as SSE events with monotonic IDs (`evt-1001`, `evt-1002`, …) and eventually the final result at `evt-1047`. Mid-stream, the client's TCP connection was reset by an intermediate proxy at roughly `evt-1020`. The client reconnected per spec with `Last-Event-ID: evt-1019`. Three distinct fa...",
    "condition_of_validity": "Resumption is *only* transparent — i.e., safe to treat as continuation without additional client-side guardrails — when **all** of the following hold simultaneously: - The server's replay buffer retention is **unbounded for the session lifetime** (rare; contradicts backpressure goals), *or* the client can prove `Last-Event-ID` ≥ oldest retained ID via an exp...",
    "decision_boundary": "The decision the runtime must make at reconnect time: - **If** the reconnecting client's `Last-Event-ID` is strictly less than the server's advertised oldest-retained event ID (obtainable only if the server exposes a buffer-window header or a `notifications/message` on gap) **OR** the first replayed event ID is not exactly `Last-Event-ID + 1` (non-contiguous...",
    "operational_effect": "Treating resumption as lossy changes the runtime in three concrete ways: 1. **Watermark discipline.** Persist a committed-event watermark alongside the session, updated only after side effects are durably recorded. On reconnect, replay from the watermark, and drop (do not execute) any event ≤ watermark. This converts at-least-once transport into effectively-..."
  },
  "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": "4ded3e6006f07bd59db5d1f307ee5094b4eaf0be893a7174cfef4f989cf2f5dc",
    "verified_classes": [
      "StreamResumptionGapError",
      "SessionWatermark"
    ],
    "verified_functions": [
      "_idempotency_key",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StreamResumptionGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
