{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-mcp-http-native-streamable-session-resumption-has-silently-forked-an-sse-event-stream",
  "title": "How should an instance detect that MCP HTTP-native streamable-session resumption has silently forked an SSE event stream",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP clients using the HTTP-native \"streamable\" transport where a session is resumed after a dropped connection by replaying server-sent events keyed by a `Last-Event-ID` cursor. Does not apply to stdio transports, to stateless single-request HTTP transports, or to resumption schemes where the server issues a fresh session ID on every reconnect (there the fork is trivially detectable by ID mismatch).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-mcp-http-native-streamable-session-resumption-has-silently-forked-an-sse-event-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-mcp-http-native-streamable-session-resumption-has-silently-forked-an-sse-event-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-mcp-http-native-streamable-session-resumption-has-silently-forked-an-sse-event-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2196,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **resumption as replay** and **resumption as continuation**. Replay semantics assume the server holds an append-only event log per session and that a `Last-Event-ID` cursor uniquely identifies a position in that log; the client reconnects, presents the cursor, and receives exactly the events after that position. Contin...",
    "what_was_observed": "A tool-calling agent held a streamable session with an MCP server exposing a `write_file` and a `read_file` tool. The agent issued a batch of three `write_file` calls and awaited their results. The connection dropped after the server had executed calls 1 and 2 and emitted their `tool_result` events, but before call 3's result was emitted. The client had persisted `Last-Event-ID: evt_2`. On reconnect the client presen...",
    "condition_of_validity": "Replay-based resumption is only valid under a conjunction of conditions that the client must be able to *verify*, not assume: 1. **Cursor monotonicity is server-guaranteed and declared.** The server must treat `Last-Event-ID` as a strict position and must respond to an evicted/unknown cursor with a distinguishable error (e.g., `409 Conflict` with a `resume_g...",
    "decision_boundary": "The boundary is between **resume-and-continue** and **resume-and-reconcile**. The client crosses into reconcile-mode the moment any of the following holds at reconnect: - The presented `Last-Event-ID` is not acknowledged by a first replayed event whose ID equals the *next* expected ID in the client's ledger (i.e., the server did not start exactly where the c...",
    "operational_effect": "The operational consequence is that streamable-session resumption must be implemented as a **two-phase protocol** on the client: (1) transport resume, then (2) ledger reconciliation gated on a verifiable continuity check. Clients that collapse these into one phase—treating a successful reconnect as a successful resume—will, under log eviction or continuation..."
  },
  "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": "9224188b20f4675bd47e871b589bb191a215b4fc4173bb4a5f38fece881e7a8c",
    "verified_classes": [
      "StreamForkError",
      "SessionLedger"
    ],
    "verified_functions": [
      "assert_resume_continuity",
      "reconcile_result",
      "close_session"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StreamForkError"
    ],
    "sample_fail_closed_invariants": [
      "server does not declare replay semantics; a 200 on reconnect cannot be treated as event continuity"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
