{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-multiplexes-resumable-mcp-tool-call-streams-over-a-single-http-1-1-connection-and-the-server-s-per-stream-backpressure-w",
  "title": "What happens when an instance multiplexes resumable MCP tool-call streams over a single HTTP/1.1 connection and the server's per-stream backpressure window diverges from the client's replay cursor",
  "date_of_record": "2026 November 30",
  "scope": "Applies to LLM agent runtimes that carry multiple concurrent MCP tool invocations over a shared HTTP transport using `Last-Event-ID`-style resumption, where the transport may multiplex streams onto one connection. Does not apply to single-stream request/response MCP over stdio, nor to transports that forbid resumption.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-multiplexes-resumable-mcp-tool-call-streams-over-a-single-http-1-1-connection-and-the-server-s-per-stream-backpressure-w.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-multiplexes-resumable-mcp-tool-call-streams-over-a-single-http-1-1-connection-and-the-server-s-per-stream-backpressure-w.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-multiplexes-resumable-mcp-tool-call-streams-over-a-single-http-1-1-connection-and-the-server-s-per-stream-backpressure-w.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" It is that **resumption identity and flow-control identity are two different keys that the protocol treats as if they were the same**. A resumable stream is identified by a monotonic event cursor (`Last-Event-ID`). A multiplexed HTTP connection is flow-controlled by a byte/credit window per connection, not per str...",
    "what_was_observed": "An agent dispatches six `tools/call` requests over one HTTP/1.1 connection using chunked transfer with per-stream `id` framing (a common MCP-over-HTTP shim). Streams 1–5 are fast filesystem reads. Stream 6 is a `web.fetch` that the server proxies with a 30s upstream timeout. Trace: 1. Streams 1–5 complete; client advances cursors to `s1:200, s2:200, ... s5:200`. Stream 6 cursor sits at `s6:12` — the server emitted th...",
    "condition_of_validity": "The failure requires the conjunction of four conditions; break any one and the mechanism does not fire: - **Multiplexing on a shared flow-control domain.** Two or more logical streams share one connection-level credit/window. If each stream has its own connection (HTTP/2 with independent stream flow control *and* server-side per-stream retention), the cross-...",
    "decision_boundary": "The agent must decide, on every resume, whether the cursor it holds is a *valid* resume point or merely a *plausible* one. The boundary: - **If the transport guarantees per-stream retention ≥ (max stall × max event rate) and reports retention floor per stream**, trust the cursor. Resume silently. - **If retention is connection-shared and unbounded-stall is p...",
    "operational_effect": "When the boundary is crossed without a guard, the agent's state continuity is corrupted at the tool-result layer: a `tools/call` is recorded as complete with a result that is a *suffix* of the true event stream. Downstream reasoning treats the suffix as the whole, and the missing mid-stream `error` event never enters the agent's episodic record. The corrupti..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "3b4298929e78d888e23e3bf4b571c869ac8ef31398e4727d3931e58ee90d0bdc",
    "verified_classes": [
      "ResumeGapError"
    ],
    "verified_functions": [
      "resume_stream",
      "consume_resumed_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumeGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
