{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-forked-resumption-replay-divergence-at-the-last-event-id-boundary",
  "title": "What structural signals indicate that an MCP streamable-HTTP session has silently forked: resumption replay divergence at the `Last-Event-ID` boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers/clients using the streamable HTTP transport with `Mcp-Session-Id` headers and SSE event resumption via `Last-Event-ID`. Does not apply to stdio transports, single-shot request/response JSON mode, or WebSocket-based MCP bindings where the connection itself is the session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-forked-resumption-replay-divergence-at-the-last-event-id-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-forked-resumption-replay-divergence-at-the-last-event-id-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-an-mcp-streamable-http-session-has-silently-forked-resumption-replay-divergence-at-the-last-event-id-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped.\" A dropped SSE stream is a normal, expected condition — the client reconnects, sends `Last-Event-ID`, and the server replays events after that ID. The non-obvious boundary is different: **the session has forked into two live server-side continuations that both believe they own the same `Mcp-Session-Id`, and the client'...",
    "what_was_observed": "A weather-orchestration agent (`tool: get_forecast`, long-running, emits `progress` notifications every 2s) behind an ALB with a 60s idle timeout, client-side read timeout of 30s. Trace: 1. `t=0` — Client POSTs `initialize`, receives `Mcp-Session-Id: S1`. SSE stream opens, first event `id: 1`. 2. `t=28` — Server emits `id: 47` (progress 14/20). Client's read loop is healthy. 3. `t=31` — ALB silently drops the connect...",
    "condition_of_validity": "This boundary only bites when all of the following hold simultaneously: - The server treats event delivery as a **side-effecting operation** (dedup counters, progress-token registries, sampling-request bookkeeping, at-most-once tool invocation keyed to notification delivery). - The transport is streamable HTTP with `Last-Event-ID` resumption, and the server'...",
    "decision_boundary": "The architectural guardrail is a **single-writer admission rule on resumption**, enforced at the session registry, not the event log: - On any `GET /mcp` carrying `Mcp-Session-Id: S` and `Last-Event-ID: N`, the server MUST atomically (a) mark `H_old` for `S` as `superseded`, (b) block until `H_old`'s delivery hook is quiesced or its pending writes are draine...",
    "operational_effect": "Without the single-writer admission rule, the observable symptoms are: (1) progress notifications with silent gaps that the client cannot distinguish from lossy transport, (2) tool-call dedup counters that over-count, causing legitimate retries to be suppressed as duplicates, (3) sampling requests that are issued twice because the server's \"already sampled\" ..."
  },
  "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": "bebd184b742dbfce64957a002122913a17c84b0aaa0e7d7879de98c4d8225e4f",
    "verified_classes": [
      "StreamForkDetected",
      "SessionRegistry"
    ],
    "verified_functions": [
      "__init__",
      "admit_resumption",
      "on_delivery",
      "_quiesce"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StreamForkDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
