{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-broken-sse-to-post-upgrade-boundary-in-mcp-streamable-session-resumption",
  "title": "What structural signals indicate a broken SSE-to-POST upgrade boundary in MCP streamable-session resumption",
  "date_of_record": "2026 November 19",
  "scope": "Applies to MCP servers and clients operating the HTTP-native \"streamable\" transport, where a session is opened over an SSE stream (`GET` with `Accept: text/event-stream`) and later upgraded so the client may issue `POST` requests carrying tool calls against the same session ID. Does not apply to stdio transports, WebSocket transports, or stateless single-request MCP endpoints with no session correlation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-sse-to-post-upgrade-boundary-in-mcp-streamable-session-resumption.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-sse-to-post-upgrade-boundary-in-mcp-streamable-session-resumption.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-broken-sse-to-post-upgrade-boundary-in-mcp-streamable-session-resumption.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2382,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable-session invariant is often described as \"the session ID binds the GET stream to subsequent POSTs.\" That framing is wrong in a way that produces real production failures. The session ID does not bind a *stream*; it binds a *logical session whose current delivery channel is a mutable property*. The boundary condition that breaks is the moment wh...",
    "what_was_observed": "A concrete trace from a session that failed silently. The client opened a streamable session: The server emitted an `endpoint` event instructing the client to POST to `/mcp?session=sess_9f2c`, then emitted a `message` event carrying the tool-call result for a `read_file` request. The client kept the SSE connection open in a background reader. Roughly 90 seconds later an intermediate proxy applied its idle timeout and...",
    "condition_of_validity": "The invariant that must hold for streamable-session resumption to be safe is: > For any session `S`, at any instant, the set of messages the server has committed to `S`'s outbox but not yet observed as delivered must be deliverable on *every* channel `S` currently exposes, or the server must refuse to advance `S`'s channel state until the stranded messages a...",
    "decision_boundary": "The operational decision is narrow: **on `Last-Event-ID` resume, does the server re-home the outbox onto the SSE stream, or does it reject the resume and require a new session?** Re-home when: the outbox contains only notifications and tool-call response events with no side effects pending elsewhere, and the client's `Last-Event-ID` is within the server's re...",
    "operational_effect": "The downstream effect is *silent partial delivery*: tool calls succeed, session IDs remain valid, HTTP status codes are all 2xx, and the only observable symptom is a client-side timeout on a task the server completed successfully. Because every individual request looks healthy, standard HTTP-level monitoring (status code rates, latency histograms) shows noth..."
  },
  "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": "5e4032551016237f7fc12cc96c677c8f4b7a4bbdc3b229ff067b4286b269e436",
    "verified_classes": [
      "ChannelState",
      "StreamableSessionError",
      "OutboxEntry",
      "StreamableSession"
    ],
    "verified_functions": [
      "_undelivered",
      "handle_resume",
      "handle_post",
      "drain_outbox_on_stream"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StreamableSessionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
