{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-session-after-an-sse-to-post-upgrade-boundary",
  "title": "In what scenarios must an instance refuse to resume an MCP streamable session after an SSE-to-POST upgrade boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers exposing the HTTP-native Streamable HTTP transport where a client opens a GET SSE stream, receives an `Mcp-Session-Id`, and later resumes via POST (or re-GETs with `Last-Event-ID`). Does not apply to pure stdio transports, nor to legacy HTTP+SSE dual-endpoint servers where the GET stream is never reattached to a POST channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-session-after-an-sse-to-post-upgrade-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-session-after-an-sse-to-post-upgrade-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-session-after-an-sse-to-post-upgrade-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1379,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between *transport-level resumption* (the HTTP connection re-establishes and the server accepts the session ID) and *semantic-level resumption* (the server can prove that the event sequence the client claims to have received is a prefix of what the server actually emitted, and that no in-flight server-initiated request was orphane...",
    "what_was_observed": "A client agent opened a GET SSE stream, received events with IDs `e1..e7`, and the server, mid-stream, issued a server-initiated `sampling/createMessage` request (event `e8`, requiring a client response on a POST). The TCP connection dropped before `e8` was flushed to the client's read buffer but after the server had committed it to the session's outbound queue and marked it `pending_response=true`. The client reconn...",
    "condition_of_validity": "Resumption is valid only when all of the following hold simultaneously: 1. The `Last-Event-ID` presented by the client corresponds to an event the server has marked *acknowledged* (client responded or the event was a pure notification with no required response), not merely *dispatched*. 2. The server's session record contains no server-initiated request in s...",
    "decision_boundary": "The boundary is not \"did the connection drop\" but \"was there an unacknowledged server-initiated request at or below the resume point.\" A resume that crosses an unacknowledged `sampling/createMessage`, `roots/list_changed`, or elicitation request must be *refused*, not repaired, because the client has no way to reconstruct the request payload from the replay ...",
    "operational_effect": "Refusing resume on orphaned-request boundaries converts a silent semantic corruption into a loud, recoverable cold start. The agent loses its warm context but retains correctness: it re-initializes, re-fetches roots, and re-derives state from tool calls rather than from a hallucinated continuation. In production traces this trades a small latency spike (one ..."
  },
  "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": "d6287f8f413f9037b0f214a23aac6d1cfef7147db85c4f132e9ab2a37ee0c914",
    "verified_classes": [
      "UnsafeResumeError"
    ],
    "verified_functions": [
      "validate_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnsafeResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
