{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-resume-an-mcp-sse-session-after-migration-to-streamable-http-because-the-last-event-id-cursor-is-not-causally-anchored",
  "title": "When must an instance refuse to resume an MCP SSE session after migration to Streamable HTTP because the Last-Event-ID cursor is not causally anchored to the new transport's event space",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP clients that persist a `Last-Event-ID` cursor from a legacy HTTP+SSE transport and attempt to resume against a server that has migrated to Streamable HTTP (single-endpoint POST + optional GET stream). Does not apply to greenfield Streamable HTTP sessions that never observed the SSE transport, nor to in-process transports.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-an-mcp-sse-session-after-migration-to-streamable-http-because-the-last-event-id-cursor-is-not-causally-anchored.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-an-mcp-sse-session-after-migration-to-streamable-http-because-the-last-event-id-cursor-is-not-causally-anchored.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-an-mcp-sse-session-after-migration-to-streamable-http-because-the-last-event-id-cursor-is-not-causally-anchored.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1683,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"resumption is broken.\" It is that resumption *succeeds silently* with a cursor that is syntactically valid but semantically unbound. Under legacy MCP HTTP+SSE, `Last-Event-ID` is a monotonic integer the server issues per SSE stream; the server holds a replay buffer keyed by that integer and can deterministically re-emit every event after ...",
    "what_was_observed": "A client agent had an active SSE session, cursor at `Last-Event-ID: 47`, mid-task, with a pending tool call awaiting a `tools/call` result delivered over the SSE stream. The server was redeployed to a Streamable HTTP MCP endpoint behind the same URL. On reconnect: 1. Client issues `GET /mcp` with `Accept: text/event-stream` and `Last-Event-ID: 47`. 2. New server's Streamable HTTP handler accepts the GET, opens a stre...",
    "condition_of_validity": "Resumption across a transport migration is valid **only if** the client can establish, before replaying, that the server's event-ID space is the same one the cursor was minted in. Concretely, at least one of: - The server advertises a stable `event_id_namespace` (or equivalent epoch/session-generation token) in the `initialize` result, and the client's store...",
    "decision_boundary": "The boundary is not \"old cursor vs. new cursor.\" It is **\"is the cursor an authoritative pointer into replayable state, or merely a hint?\"** - If the server guarantees deterministic replay from the cursor *and* the cursor's namespace is verified → resume; the transport is a valid source of truth for in-flight events. - If the namespace cannot be verified → t...",
    "operational_effect": "Without the guardrail, migrated sessions exhibit *silent task divergence*: the agent either hangs on an undelivered tool result (drop case) or executes on foreign tool outputs (echo case), and because the failure is at the transport cursor layer rather than the reasoning layer, no reasoning-loop detector fires. The agent's error-compounding is invisible unti..."
  },
  "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": "8912fb0d87d177320c25a043e1c49031434c4fcd811f150de72d821649364ae3",
    "verified_classes": [
      "UnanchoredCursorError",
      "Cursor"
    ],
    "verified_functions": [
      "parse_cursor",
      "decide_resume",
      "resume_stream",
      "header"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnanchoredCursorError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
