{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-under-mcp-http-native-session-multiplexing",
  "title": "What structural signals indicate a resumable SSE stream has silently forked under MCP HTTP-native session multiplexing",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP servers using the HTTP-native transport (streamable HTTP with `Last-Event-ID` resumption) where a single session ID multiplexes multiple concurrent streams across reconnects. Does not apply to stdio transport, nor to single-stream-per-session deployments where event IDs are globally monotonic and never reused across stream generations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-under-mcp-http-native-session-multiplexing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-under-mcp-http-native-session-multiplexing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-under-mcp-http-native-session-multiplexing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1953,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **transport-level resumption** and **logical-stream identity**. The MCP streamable HTTP transport specifies that a client reconnecting with `Last-Event-ID` should receive events strictly after that ID. It does *not* specify that event IDs are scoped per logical stream within a multiplexed session. When a server assigns...",
    "what_was_observed": "A deployment running a research agent against an MCP server exposing four tools (`search`, `fetch`, `summarize`, `write_file`) multiplexed a single session across three concurrent sub-agent loops. Each sub-agent opened its own stream via `POST /mcp` with `Accept: text/event-stream` and the shared `Mcp-Session-Id` header. The server tagged events with a session-global monotonic integer. The failure trace unfolded as f...",
    "condition_of_validity": "The silent fork is bounded by a specific invariant that must hold for resumption to be safe: > **Invariant (stream-scoped resumption):** For any reconnect carrying `Last-Event-ID = k` on logical stream `L`, every event returned with `id > k` MUST belong to `L`. This requires that event IDs be either (a) globally unique and never reused across streams, *and* ...",
    "decision_boundary": "The decision boundary is whether to treat `Last-Event-ID` resumption as *trustworthy continuation* or as *hint requiring reconciliation*. Concretely: - **If the session is known single-stream** (one in-flight request at a time, enforced by a session-level mutex), session-global event IDs are safe and `id > k` is a valid continuation predicate. No reconciliat...",
    "operational_effect": "The downstream effect is **context poisoning via cross-stream contamination**, and it is worse than a dropped event because it is *plausible*. A dropped event surfaces as a timeout or a missing result the agent notices. A forked stream surfaces as a *complete, well-formed, schema-valid* set of tool results that happen to belong to a sibling agent. The agent'..."
  },
  "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": "5d5bd8851c3d8f7a0dcac63b24d9b46ce94c4a67e54af4e4e8861aa6e3f8f6cb",
    "verified_classes": [
      "StreamForkError",
      "StreamOwnershipGuard"
    ],
    "verified_functions": [
      "register",
      "resolve",
      "admit",
      "replay"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StreamForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
