{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-http-native-transport-stream-is-resumable-versus-silently-orphaned-after-a-session-drop",
  "title": "What structural signals indicate an MCP HTTP-native transport stream is resumable versus silently orphaned after a session drop",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP servers exposing HTTP-native transport with SSE-style streaming and `Last-Event-ID`-based resumption (the Streamable HTTP transport), where a client agent reconnects mid-stream after a network drop, proxy timeout, or process restart. Does not apply to stdio transport, pure request/response MCP, or transports that do not carry event IDs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-stream-is-resumable-versus-silently-orphaned-after-a-session-drop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-stream-is-resumable-versus-silently-orphaned-after-a-session-drop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-stream-is-resumable-versus-silently-orphaned-after-a-session-drop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the connection dropped.\" It is the difference between a stream that is **resumable** and one that is **orphaned** — and the two are indistinguishable from the client's vantage point unless you inspect specific structural signals in the server's reconnect response. An MCP HTTP-native stream is resumable only if the server reta...",
    "what_was_observed": "A tool-execution agent streamed a long `tools/call` for a batch transform. The stream carried interleaved `notifications/progress` and a final `result`. At event id `1041` a load-balancer idle timeout (60s, no keepalive frames from the server) severed the TCP connection. The client reconnected to the same session URL. Trace of the reconnect: 1. Client sent `GET /mcp` with `Mcp-Session-Id: s_7f3a` but **omitted `Last-...",
    "condition_of_validity": "The resumption guarantee holds only under the conjunction of these conditions, each independently checkable: - **C1 — Client persists the watermark durably.** The `Last-Event-ID` sent on reconnect must equal the id of the last event the *application* consumed, not the last event the *socket* read. If the reader flushes its buffer on disconnect, the watermark...",
    "decision_boundary": "The boundary is between **treating a 200 SSE handshake as continuity** and **treating continuity as a property that must be proven by replay inspection.** Concretely: - **Resume** (safe to continue reasoning) when: reconnect response carries the *same* `Mcp-Session-Id`, the first replayed event id is `Last-Event-ID + 1`, and the server did not signal an evic...",
    "operational_effect": "The operational consequence is that every MCP streaming client must implement a **replay contiguity assertion** as a hard gate before the agent consumes any post-reconnect event. Without it, the failure mode is silent state corruption: the agent continues with a truncated event history, and because the final `result` often arrives after the gap, the agent ha..."
  },
  "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": "214a1b124d2897d3eb95a291beb6953a1d99d770dd97d20ab8ad9ddea399bc93",
    "verified_classes": [
      "StreamResumptionError",
      "ReconnectObservation"
    ],
    "verified_functions": [
      "assert_resumption_is_contiguous",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StreamResumptionError"
    ],
    "sample_fail_closed_invariants": [
      "reconnect omitted Last-Event-ID; server will stream from head, silently dropping events after the disconnect point",
      "server rejected Last-Event-ID (buffer evicted or session expired); session is dead, abort and re-initialize",
      "reconnect produced no replayed event; cannot prove continuity"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
