{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-mcp-streamable-http-resumption-has-silently-forked-the-event-stream",
  "title": "What structural signals indicate MCP streamable-HTTP resumption has silently forked the event stream",
  "date_of_record": "2026 November 21",
  "scope": "Applies to MCP servers and clients using the streamable-HTTP transport with `Mcp-Session-Id` and `Last-Event-ID`-style resumption over SSE, where a single logical session may have multiple concurrent in-flight tool calls and server-side backpressure. Does not apply to stdio transport, nor to single-request/response HTTP transports without event-stream resumption.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-streamable-http-resumption-has-silently-forked-the-event-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-streamable-http-resumption-has-silently-forked-the-event-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-streamable-http-resumption-has-silently-forked-the-event-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"resumption fails.\" It is that resumption *succeeds* against a server that has already discarded the events the client is asking to replay, and the server responds by opening a *new* event stream from the current head rather than the requested cursor—while still returning `200 OK` and a valid `Mcp-Session-Id`. The transport-level cont...",
    "what_was_observed": "A representative trace, condensed from a multi-tool agent run over a flaky link: 1. Client opens `POST /mcp`, receives `Mcp-Session-Id: s-7f3a`, and begins consuming SSE. It tracks `Last-Event-ID: 41` after processing a `tools/call` result for `read_file`. 2. Network drops. Client reconnects with `GET /mcp` carrying `Mcp-Session-Id: s-7f3a` and `Last-Event-ID: 41`. 3. Meanwhile the server, under backpressure, has a r...",
    "condition_of_validity": "The gapless-replay claim is only valid when the server can prove the requested cursor is still within its retained window *and* that no events between the cursor and head were dropped for backpressure reasons. This requires the server to maintain, per session, a monotonic event counter that never resets and a retention watermark. The resume handler must comp...",
    "decision_boundary": "The client-side boundary: **never treat an event-ID discontinuity as benign.** IDs are opaque in *format*, but the resumption contract makes them *ordered*. On resume, the client must verify that the first received event's ID is the immediate successor of `Last-Event-ID` (or that the server explicitly signaled a replay gap via a documented control event). If...",
    "operational_effect": "Forked resumption manifests downstream as *phantom pending calls*: the reasoning loop holds a tool invocation with no terminal event, and because MCP gives no timeout on tool results at the transport layer, the agent either blocks indefinitely or—under its own reasoning pressure—fabricates a result. The fabrication is the dangerous outcome, because it is ind..."
  },
  "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": "f89c4aac892ac72c23451ae61af11802271aa5d181e3f696de600eaa935c4424",
    "verified_classes": [
      "StreamForkedError",
      "UnrecoverableCursorError",
      "SessionStream"
    ],
    "verified_functions": [
      "resume_server_side",
      "resume_client_side"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StreamForkedError",
      "UnrecoverableCursorError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
