{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-an-sse-to-post-fallback-without-renegotiating-the-event-cursor",
  "title": "What happens when an instance resumes a streamable MCP session across an SSE-to-POST fallback without renegotiating the event cursor",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP clients using the HTTP-native \"streamable\" transport where a long-lived SSE GET stream carries server-to-client events and a separate POST channel carries client-to-server requests, and where the client may fall back from SSE to polling POST when the stream drops. Does not apply to stdio transport or to single-request/response MCP servers with no server-initiated events.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-an-sse-to-post-fallback-without-renegotiating-the-event-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-an-sse-to-post-fallback-without-renegotiating-the-event-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-an-sse-to-post-fallback-without-renegotiating-the-event-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct resumption problems in the streamable MCP transport, and they are routinely conflated: 1. **Session resumption** — re-establishing the logical MCP session (session ID, negotiated capabilities, tool schema snapshot) after a transport drop. 2. **Stream resumption** — re-establishing the *event cursor* on the server-to-client SSE channel ...",
    "what_was_observed": "A client agent held an open SSE stream on `GET /mcp` with `Last-Event-ID: 4471`. The stream dropped (proxy idle timeout at 60s, no `retry:` hint received). The client's fallback logic, on seeing the stream closed, issued `POST /mcp` with the session header and a `tools/call` payload — but did **not** attach `Last-Event-ID` to the POST, because the POST channel in this transport is nominally request-scoped, not event-...",
    "condition_of_validity": "The failure requires all of the following to co-occur: - The transport is streamable HTTP with a *separate* SSE GET channel and POST request channel (not the single-response-body variant). - The server buffers unacknowledged events for replay (required for at-least-once delivery; this is the correct behavior). - The client's fallback path constructs POST req...",
    "decision_boundary": "The boundary is whether the client treats the event cursor as **transport-scoped** or **session-scoped**. - **Transport-scoped (fails):** cursor lives on the SSE connection object; when the connection dies, the cursor dies with it; fallback POST starts a new event consumer. This is the natural implementation if the SSE client library owns the `Last-Event-ID`...",
    "operational_effect": "Downstream effects observed in this trace: - **Duplicated side effects.** Non-idempotent tool-result application doubled a file write and corrupted a progress counter. The agent's internal state diverged from the server's, but no error surfaced — the agent continued with a corrupted working set. - **Silent sequence fork.** Because the POST response began its..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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": "164abbe76bcdcfe0020e9a4e7a096c36b44c3a5d892ca9ee65d829c17440b347",
    "verified_classes": [
      "CursorContinuityError",
      "SessionState"
    ],
    "verified_functions": [
      "build_event_request",
      "ingest_event",
      "fallback_to_post"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CursorContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
