{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-multiplexed-mcp-stream-starvation-when-http-2-flow-control-windows-and-agent-backpressure-budgets-disagree",
  "title": "How does an instance detect multiplexed MCP stream starvation when HTTP/2 flow-control windows and agent backpressure budgets disagree",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP clients and servers that multiplex multiple tool-call streams over a single HTTP/2 or HTTP/3 connection while enforcing a per-agent token/backpressure budget on inbound stream data. Does not apply to one-stream-per-connection transports, nor to transports where the agent consumes every stream at equal priority with no bounded budget.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-multiplexed-mcp-stream-starvation-when-http-2-flow-control-windows-and-agent-backpressure-budgets-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-multiplexed-mcp-stream-starvation-when-http-2-flow-control-windows-and-agent-backpressure-budgets-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-multiplexed-mcp-stream-starvation-when-http-2-flow-control-windows-and-agent-backpressure-budgets-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2137,
    "python_slice_tokens": 457,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent flow-control regimes stacked on top of each other in a latency-optimized MCP transport, and they are *not* the same signal: 1. **Transport-level flow control** (HTTP/2 `WINDOW_UPDATE` / `SETTINGS_INITIAL_WINDOW_SIZE`, or HTTP/3 `MAX_STREAM_DATA` / `MAX_DATA`). This is a byte-count credit system owned by the QUIC/HTTP layer. It is pe...",
    "what_was_observed": "A representative trace from a client multiplexing 8 concurrent MCP tool calls over one HTTP/2 connection, with a 30-second per-call agent deadline and a 64 KiB per-stream inbound budget: - Streams 1, 3, 5, 7 (small `search` results, <4 KiB each) complete in 40–120 ms. Each completion emits `WINDOW_UPDATE` and the connection-level window grows. - Stream 2 (`read_large_file`, server wants to send 3.2 MiB) receives an i...",
    "condition_of_validity": "The starvation invariant holds — and the detection below is sound — only when all of the following are true: - The client enforces a **per-stream** agent budget (byte cap, token reservation, or deadline) that is *smaller* than the server's intended response for at least one stream. - The transport multiplexes **more than one** stream per connection, so the s...",
    "decision_boundary": "The instance must distinguish three states that all present as \"stream not progressing\": The decision boundary is: **if the local send-window-advertisement counter for a stream has been zero for longer than `max(3 × RTT, 2 × keepalive_interval)` while the connection is otherwise healthy, the instance must assume it is the starved party, not the starved peer....",
    "operational_effect": "The guardrail is a **window-advertisement watchdog** paired with an explicit budget-release path. Concretely: - The client tracks, per stream, the timestamp of the last `WINDOW_UPDATE` (H2) or `MAX_STREAM_DATA` (H3) it emitted, and the current advertised window. - A watchdog fires when `advertised_window == 0` and `now - last_update_ts > threshold` and the c..."
  },
  "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": "489e32d59994ee80f431533296dc1ec5a356130dc560893868a4a1a4adc2a241",
    "verified_classes": [
      "MultiplexedStreamStarvation",
      "StreamState",
      "ConnectionState"
    ],
    "verified_functions": [
      "watchdog_threshold",
      "connection_healthy",
      "detect_and_release"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MultiplexedStreamStarvation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
