{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-sse-stream-truncation-under-mcp-multiplexing-when-resumable-replay-masks-a-lost-tool-call-result",
  "title": "How does an instance detect silent SSE stream truncation under MCP multiplexing when resumable replay masks a lost tool-call result",
  "date_of_record": "2026 November 22",
  "scope": "Applies to Streamable HTTP MCP servers multiplexing multiple logical sessions over a single SSE connection with `Last-Event-ID`-based resumable replay, where a client agent treats stream resumption as proof of message continuity. Does not apply to stdio transports, one-request-per-connection SSE, or deployments where each tool call has an independent idempotency key verified out-of-band.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-truncation-under-mcp-multiplexing-when-resumable-replay-masks-a-lost-tool-call-result.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-truncation-under-mcp-multiplexing-when-resumable-replay-masks-a-lost-tool-call-result.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-truncation-under-mcp-multiplexing-when-resumable-replay-masks-a-lost-tool-call-result.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1786,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Resumption and continuity are not the same property. A resumable HTTP MCP stream guarantees *event replay from a cursor*, not *delivery of the specific response to a specific in-flight tool call*. When the server's replay buffer has been pruned, rotated, or bounded by backpressure, the client reconnects with a valid `Last-Event-ID`, receives a `200 OK` and a...",
    "what_was_observed": "A multiplexed MCP server fronted by a 9-instance pool, each holding a per-connection ring buffer of 4,096 events with a 30-second TTL. A planner agent issued a fan-out of 12 concurrent `tools/call` requests (mixed `read_file`, `http_get`, `sql_query`) over one SSE session. A downstream `http_get` target stalled for 41 seconds. During the stall: 1. The 30-second TTL expired on the oldest buffered events, including the...",
    "condition_of_validity": "This failure mode requires all of the following to co-occur: - **Interleaved multiplexing**: multiple in-flight JSON-RPC requests share one SSE channel, so a single slow branch can head-of-line block delivery of a fast branch's already-computed result. - **Enqueue-time sequencing**: the event ID is assigned when the result is produced and queued, not when it...",
    "decision_boundary": "The boundary is whether the client can distinguish \"no more events yet\" from \"the event you are waiting for will never come.\" On a live, healthy stream these are identical observations. The decision rule an instance must apply: - **Do not treat SSE `open`/`reconnect` as request-level liveness.** Transport liveness is a channel property; request liveness is a...",
    "operational_effect": "Without the guardrail, agent pipelines exhibit **phantom-success fan-out**: N-1 branches resolve, one is silently orphaned, and the planner proceeds with a partial result set that its own reasoning treats as complete. In our trace, the planner emitted a migration plan missing one table's schema, and the error only surfaced two stages downstream when a `write..."
  },
  "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": "ce9f96c038e70365f431f6492996b53069ca2e1a1806e675d5283285db062f33",
    "verified_classes": [
      "ReplayGapError",
      "OrphanedRequestError",
      "RequestLedger"
    ],
    "verified_functions": [
      "issue",
      "resolve",
      "outstanding",
      "reconcile_after_resume"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedRequestError",
      "ReplayGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
