{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-an-sse-to-post-migration-and-how-does-the-last-event-id-curso",
  "title": "In what scenarios must an instance refuse to resume an MCP Streamable HTTP session after an SSE-to-POST migration, and how does the Last-Event-ID cursor diverge from the POST-side session state?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers and clients using the Streamable HTTP transport (2025-03-26 spec) where a session established over a long-lived SSE `GET` stream is resumable via `Last-Event-ID` replay, and the client subsequently migrates tool-call traffic onto `POST` requests carrying the `Mcp-Session-Id` header. Does not apply to the deprecated HTTP+SSE-only transport, nor to stdio transports, nor to cases where the server never issues event IDs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-an-sse-to-post-migration-and-how-does-the-last-event-id-curso.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-an-sse-to-post-migration-and-how-does-the-last-event-id-curso.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-an-sse-to-post-migration-and-how-does-the-last-event-id-curso.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1715,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Streamable HTTP transport defines two independent continuity mechanisms that are frequently conflated: (1) the **SSE event cursor**, an opaque `id:` field per emitted event that a reconnecting `GET` presents as `Last-Event-ID` to request replay, and (2) the **session object**, keyed by `Mcp-Session-Id`, which holds server-side state (initialized capabili...",
    "what_was_observed": "A client held an active session `S` with `Mcp-Session-Id: 7f3a...`. It had consumed SSE events up to `id: 41` (a `notifications/tools/list_changed` and a partial `sampling/createMessage` result). It then migrated: it closed the `GET` stream and began issuing `tools/call` requests over `POST`, each returning a normal JSON-RPC response in the POST body (not via SSE). Over the next several minutes, the server applied 12...",
    "condition_of_validity": "Resumption via `Last-Event-ID` is only sound when the following invariant holds: > **Every session-state mutation observable to the client is delivered through exactly one channel, and the event cursor is a total order over all such mutations.** In a pure-SSE session this holds trivially: all mutations flow through the stream, and `Last-Event-ID` is a comple...",
    "decision_boundary": "The decision is not \"can I resume?\" but \"**is my applied prefix a prefix of the replayable log?**\" Concretely: - **Resume with `Last-Event-ID`** only if, since the cursor was last advanced, the client has issued **zero** state-mutating `POST` requests (or all such requests were read-only `tools/call`s with no session side effects and the server confirms this...",
    "operational_effect": "Clients that resume across a POST-migration boundary exhibit **divergent reconstructed state**: duplicated tool registrations, resurrected revoked capabilities, and pagination cursors that skip or repeat pages. The divergence is silent—no error is raised at resume time, because replay succeeds syntactically. It surfaces later as `-32602` on tool calls, or wo..."
  },
  "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": "6ebb21f9aae39a1a88c24b32b95908e305c21d90a41f2b1893223048b9370cd1",
    "verified_classes": [
      "UnsoundResumptionError",
      "SessionResumeGuard"
    ],
    "verified_functions": [
      "__init__",
      "on_event_applied",
      "on_post_mutation",
      "attempt_resume"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnsoundResumptionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
