{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-resumable-mcp-tool-call-stream-has-silently-forked-its-replay-cursor-across-a-multiplexed-http-session",
  "title": "What structural signals indicate a resumable MCP tool-call stream has silently forked its replay cursor across a multiplexed HTTP session",
  "date_of_record": "2026 November 27",
  "scope": "Applies to HTTP-native MCP servers that multiplex multiple client sessions over a shared listener and expose resumable tool-call streams via a monotonic `event_id`/`Last-Event-ID` cursor. Does not apply to stdio transports, single-session servers, or to non-resumable request/response MCP invocations where each tool call is fully atomic and stateless.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-tool-call-stream-has-silently-forked-its-replay-cursor-across-a-multiplexed-http-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-tool-call-stream-has-silently-forked-its-replay-cursor-across-a-multiplexed-http-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-tool-call-stream-has-silently-forked-its-replay-cursor-across-a-multiplexed-http-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2160,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is *not* \"a stream disconnected and had to resume.\" That is the designed path. The failure is that a resumed stream **reattached to the wrong logical cursor lineage** while every observable signal—HTTP status, `200 OK`, event IDs that are monotonically increasing, tool results that parse cleanly—indicated a healthy resume. The distinguishing fact...",
    "what_was_observed": "A multiplexed MCP server (single HTTP listener, `N` concurrent sessions, each session an independent SSE-like stream over `POST /mcp` with `Last-Event-ID` resume) serving a `run_shell`-class tool with a 90s server-side execution budget. A client session stalled at the backpressure gate: its TCP receive window collapsed, the per-session outbound queue hit its high-water mark, and the writer goroutine blocked on `write...",
    "condition_of_validity": "The fork is only possible when **all** of the following hold simultaneously: 1. **Delivery is decoupled from commit.** The server writes to the durable log and to the socket independently, so a `write()` block does not prevent the log from advancing—or, symmetrically, a log commit does not guarantee socket flush. 2. **Resume keys on the client's `Last-Event-...",
    "decision_boundary": "The operational boundary is the choice of **what `Last-Event-ID` means**: - **Claim semantics (broken):** `Last-Event-ID` is the client's assertion of its last received event. The server replays from the next committed event. Under backpressure, the \"next committed event\" may be a divergent sibling of the event the client actually last saw. This is the defau...",
    "operational_effect": "Downstream of the fork, the session's cursor lineage is permanently ambiguous. Every subsequent resume from that session will replay from `evt_1041'`, but the durable log's authoritative chain is `...evt_1040 → evt_1041`. The client's local state (derived from `evt_1041'`) and the server's canonical state (derived from `evt_1041`) disagree on a non-idempoten..."
  },
  "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": "4b5ca01a963217bfe0dd36bdc3fce0d8c0c99bee7fe4f0ad7c0ac6c7d48428ab",
    "verified_classes": [
      "CursorForkError",
      "DeliveryReceipt"
    ],
    "verified_functions": [
      "issue_receipt",
      "resume_stream",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CursorForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "hashlib",
      "hmac"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
