{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-http-native-transport-session-is-resumable-versus-silently-forked",
  "title": "What structural signals indicate an MCP HTTP-native transport session is resumable versus silently forked",
  "date_of_record": "2026 November 23",
  "scope": "MCP servers/clients on HTTP-native transport (SSE streaming with `Mcp-Session-Id` and `Last-Event-ID` resumption) after mid-turn interruption. Excludes stdio and single-response stateless HTTP.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-session-is-resumable-versus-silently-forked.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-session-is-resumable-versus-silently-forked.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-http-native-transport-session-is-resumable-versus-silently-forked.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 936,
    "python_slice_tokens": 106,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *resumable* session replays from the client's cursor within the same logical session. A *silently forked* session accepts the reconnect under the same `Mcp-Session-Id` but with a fresh event sequence. Both return HTTP 200 and valid `text/event-stream`; neither status nor headers distinguish them. The difference is structural: resumable preserves monotonic ...",
    "what_was_observed": "Controlled interruption (TCP reset after `tools/call` emitted, before result event), three reconnects: - **Reconnect 1:** `Last-Event-ID: 41`; 200, first event `42`. Correct resume; result delivered. - **Reconnect 2** (after 90s server idle timeout, client unaware): `Last-Event-ID: 41`; 200, first event `1`. Event log GC'd but `Mcp-Session-Id` mapping retained; cursor silently discarded. Pending call had executed; re...",
    "condition_of_validity": "The \"first event ID > cursor\" heuristic requires strictly monotonic per-session IDs with no cross-session reuse. Invalid when: - Per-connection sequence numbers are used (stateless-behind-proxy): a legitimate resume restarts at `1`; false positives. - IDs are opaque (UUIDs, timestamps): heuristic inapplicable; require a `resume-token` or explicit `resumed: t...",
    "decision_boundary": "**Treat a resumed stream as forked unless the first received event ID is strictly greater than the sent `Last-Event-ID` AND the response `Mcp-Session-Id` equals the request's.** On failure, the client must: 1. Issue an explicit `tools/call` status query (or session `ping` with the original request ID) to determine completion. 2. Deduplicate side effects via ...",
    "operational_effect": "Without this check, failure is silent and asymmetric: the server logs a clean 200 and completed execution; the client logs a clean reconnect and a result timeout; the retry double-executes. Production symptoms: duplicated writes, double-charged payments, repeated non-idempotent API calls — no error in either log. Enforcing the structural check converts the s..."
  },
  "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": "5ff11c2566c8d038ad776aa005a5fadbcf439f883e8284f058791f369b7c0084",
    "verified_classes": [
      "SessionForkDetected",
      "ResumedStream"
    ],
    "verified_functions": [
      "validate_resumption",
      "resume_or_recover"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SessionForkDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
