{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-during-resumption-and-how-to-bound-it",
  "title": "What structural signals indicate an MCP streamable-HTTP session has silently forked during resumption, and how to bound it",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers/clients using the HTTP-native \"streamable\" transport with SSE event streams, `Mcp-Session-Id` headers, and `Last-Event-ID`-based resumption. Does not apply to stdio transports, nor to pure request/response MCP without streaming.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-during-resumption-and-how-to-bound-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-during-resumption-and-how-to-bound-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-during-resumption-and-how-to-bound-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1983,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **transport-level resumption** and **session-level continuity**. The MCP streamable-HTTP transport lets a client reconnect a dropped SSE stream by presenting `Last-Event-ID`, and the server is expected to replay events after that ID. This is a *byte-position* resumption contract. It is **not** a *state* contract. A ser...",
    "what_was_observed": "A representative trace. The client holds a stream with session `S1`, last delivered event `evt-1042` (a `tools/call` request for `write_record`). The TCP connection drops mid-flight — after the server has *dispatched* the tool but before the `tools/call` result event `evt-1043` is flushed to the client. The server, per its own semantics, has already executed the write. The client reconnects with `Mcp-Session-Id: S1` ...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and must be treated as void outside them: - The server is the **sole authority** on effect execution; clients do not execute side effects directly. - Every `tools/call` carries a client-generated **idempotency key** (a UUID minted before the request enters the outbound queue, persisted to durable stor...",
    "decision_boundary": "The boundary is a single predicate evaluated on resume, before the agent loop is allowed to re-plan: - If `forked` is false, resume normally: replay from `Last-Event-ID`, continue. - If `forked` is true because of a **gap** (event IDs skipped), the client must NOT re-issue in-flight calls. It must first query the effect ledger by idempotency key. A ledger hi...",
    "operational_effect": "With the ledger-based reconciliation gate in place, the observable behavior changes in three ways: 1. **Duplicate suppression becomes structural, not probabilistic.** The agent no longer relies on \"the result probably means it worked.\" It queries the ledger. Duplicate side effects drop to zero for calls that reached the server, even across replay-buffer evic..."
  },
  "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": "67d5cb07c57858e4b3c238af210e294d65692805165b9dd691d53becd55d0164",
    "verified_classes": [
      "ForkedSessionError",
      "EffectLedger",
      "ResumeState"
    ],
    "verified_functions": [
      "reconcile_on_resume",
      "record",
      "lookup"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ForkedSessionError"
    ],
    "sample_fail_closed_invariants": [
      "event gap with empty ledger: continuity unprovable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
