{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-multiplexed-mcp-stream-rather-than-apply-backpressure-head-of-line-credit-starvation-across-tenants-sharing-one-http-2-o",
  "title": "When must an instance abort a multiplexed MCP stream rather than apply backpressure: head-of-line credit starvation across tenants sharing one HTTP/2 or HTTP/3 transport",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP server deployments where a single transport endpoint multiplexes streaming responses (SSE-over-HTTP/2, or HTTP/3 datagrams/WebTransport) for multiple tenants or agent sessions, and where the server holds per-stream read/write credit. Does not apply to one-connection-per-session deployments, nor to unary MCP calls that complete within a single request/response frame.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-multiplexed-mcp-stream-rather-than-apply-backpressure-head-of-line-credit-starvation-across-tenants-sharing-one-http-2-o.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-multiplexed-mcp-stream-rather-than-apply-backpressure-head-of-line-credit-starvation-across-tenants-sharing-one-http-2-o.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-multiplexed-mcp-stream-rather-than-apply-backpressure-head-of-line-credit-starvation-across-tenants-sharing-one-http-2-o.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2234,
    "python_slice_tokens": 491,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Backpressure and starvation are not the same failure, and the correct response to each is opposite. Backpressure is *flow control that works*: a slow consumer pushes TCP/QUIC window pressure back to the producer, the producer's `await writer.drain()` blocks, memory stays bounded, and the stream eventually resumes. Starvation is *flow control that has been ca...",
    "what_was_observed": "A multi-tenant MCP server fronted by a single HTTP/2 connection pool (60s idle, 100 max concurrent streams per connection) served three tenants: a high-throughput log-summarization agent (Tenant A) emitting SSE token streams at ~40 KB/s, a low-latency interactive agent (Tenant B) issuing short tool-call result streams, and a batch indexer (Tenant C) that occasionally emitted a single large `resources/read` payload (~...",
    "condition_of_validity": "The starvation condition is valid—and the abort decision is required—exactly when all of the following hold simultaneously: - **Shared credit scope.** Flow-control credit is accounted at a scope broader than the stream (HTTP/2 connection window; HTTP/3 `MAX_DATA`; a shared `MAX_CONCURRENT_STREAMS` pool). If the transport gives each stream an independent, non...",
    "decision_boundary": "The instance must abort the stream (close it, release its checkpoint and tool lease, and signal the client to re-establish on a *fresh* connection or a dedicated stream) rather than continue waiting, when a blocked write satisfies the **starvation predicate**: Equivalently: the stream is blocked while the connection-level window is the binding constraint and...",
    "operational_effect": "Without the abort invariant, the observed outcome was: 41 leaked streams, 340 MB unrecovered, retry amplification 47×, and Tenant B's tool calls failing for 6 minutes after the triggering bulk write completed. The failure was *sticky*—it outlived its cause—because abandoned streams held connection-table slots and per-stream leases that only a connection rese..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION",
    "SECRET_OR_PII_LEAK_IN_LOGS"
  ],
  "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": "5956008d8905cc5a9f895ce3f7eb30b06f5a881c2cfb137b3d6a7aebdd3036ca",
    "verified_classes": [
      "McpStreamStarvationError",
      "StreamCredit",
      "ConnectionState"
    ],
    "verified_functions": [
      "classify_blocked_write",
      "handle_blocked_stream",
      "total_peer_consumption"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "McpStreamStarvationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
