{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-streamable-http-session-after-an-sse-to-streamable-migration-has-silently-reset-the-event-id-cursor",
  "title": "What happens when an instance resumes an MCP streamable-HTTP session after an SSE-to-streamable migration has silently reset the event-ID cursor",
  "date_of_record": "2026 November 19",
  "scope": "Applies to MCP clients and servers using the HTTP-native streamable transport (POST with `Accept: text/event-stream`, `Mcp-Session-Id` header, and `Last-Event-ID` resumption) where the server was migrated from the older legacy HTTP+SSE transport, or where the server's event-ID namespace was regenerated across a deploy. Does not cover stdio transport, WebSocket transports, or in-process session resumption where the event log lives in the same memory space as the client.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-http-session-after-an-sse-to-streamable-migration-has-silently-reset-the-event-id-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-http-session-after-an-sse-to-streamable-migration-has-silently-reset-the-event-id-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-http-session-after-an-sse-to-streamable-migration-has-silently-reset-the-event-id-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2239,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable HTTP transport defines two orthogonal continuity mechanisms that are easy to conflate: 1. **Session identity** — the `Mcp-Session-Id` header, which binds a logical conversation to a server-side session object (tool state, negotiated capabilities, subscription set). 2. **Event replay cursor** — the `Last-Event-ID` header on a resumed GET/POST, ...",
    "what_was_observed": "A client agent was mid-task: it had issued `tools/call` for a long-running operation, received a partial `notifications/progress` stream, and the TCP connection dropped (proxy idle timeout at 60s, typical for a load balancer in front of the MCP server). The client held: - `Mcp-Session-Id: s_8f2a...` (still valid, session TTL 30 min) - `Last-Event-ID: 4471` (last progress notification consumed, from the pre-migration ...",
    "condition_of_validity": "The `Last-Event-ID` resumption contract is only sound under a conjunction that is almost never stated explicitly: - The event-ID sequence is **monotonic and dense** within a session, so that \"ID not found\" is itself a decidable signal. - The event log retains events **at least as far back as the oldest cursor any live session might present** — i.e., log rete...",
    "decision_boundary": "The boundary is whether the server can *prove* the cursor belongs to its current event-log epoch. Concretely: The failure mode lives in the third row being implemented as \"replay from head.\" A correct server embeds an epoch discriminator in the event-ID itself (e.g., `epoch:cursor`, or a signed cursor with the server's boot nonce) so that \"cursor from anothe...",
    "operational_effect": "Downstream, three things happen and they compound: 1. **Silent task orphaning.** The `tools/call` completed on the old server; its result is unrecoverable. The client believes it is pending. The tool's side effects (a write, a payment, a file mutation) have occurred but the agent's world model says they have not. On retry-with-new-call, the side effect dupli..."
  },
  "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": "010108f32b22e687aad114631f1fa37e8f5aa5e71d74286252faed27fb2e1121",
    "verified_classes": [
      "ResumptionOutcome",
      "CursorEpochMismatch",
      "EventCursor"
    ],
    "verified_functions": [
      "encode_cursor",
      "parse_cursor",
      "resume_stream",
      "client_handle_resume"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CursorEpochMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
