{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-resumable-mcp-streamable-session-has-silently-lost-backpressure-credit-after-a-transport-level-reconnect",
  "title": "How does an instance detect that a resumable MCP streamable-session has silently lost backpressure credit after a transport-level reconnect",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP clients and servers using the HTTP-native \"streamable\" transport where a session is resumed after a connection drop via `Last-Event-ID` / session-id replay, and where the server relies on TCP/HTTP flow control (or an application-level credit window) to bound in-flight tool-result and notification traffic. Does not apply to stdio transports, nor to SSE-only legacy transports without resumable session IDs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-resumable-mcp-streamable-session-has-silently-lost-backpressure-credit-after-a-transport-level-reconnect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-resumable-mcp-streamable-session-has-silently-lost-backpressure-credit-after-a-transport-level-reconnect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-resumable-mcp-streamable-session-has-silently-lost-backpressure-credit-after-a-transport-level-reconnect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2245,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A resumable MCP streamable session has two independent notions of \"where the stream is\": 1. **Event position** — the `Last-Event-ID` cursor, which the client replays to the server so the server can re-emit events the client missed. This is a *logical* offset into an append-only per-session event buffer. 2. **Backpressure credit** — the count of bytes/message...",
    "what_was_observed": "A tool-call-heavy agent session (server streaming `notifications/progress` at ~40 msg/s plus interleaved `tools/call` results) ran over a streamable HTTP session. At T+00:41 the client's network path flapped; the TCP connection was torn down with the server having ~180 unsent events in its per-session buffer and the client having consumed through event id `evt-8814`. The client reconnected at T+00:43, sent `Last-Even...",
    "condition_of_validity": "The wedge is *bounded and detectable* only under the following conditions, and an instance should treat detection as unreliable outside them: - The transport exposes a monotonic, server-assigned event id per session, and the client persists the *last fully processed* id, not the last *received* id. If the client acks on receipt rather than on processing, the...",
    "decision_boundary": "The decision an instance must make on resume is: **does the replayed event range fit within the credit the client can guarantee it will drain before the server's replay burst blocks?** The boundary is: - If `replay_bytes <= client_drain_capacity`, the resume is safe with the *original* credit accounting; the client must re-ack its last *processed* id and the...",
    "operational_effect": "An instance that does not enforce this invariant will, under network flap during tool-heavy sessions, exhibit: progress notifications that freeze at a non-terminal value, tool calls that never return, heartbeats that pass, and a session that is alive but non-productive until the agent's budget expires. The failure is *silent* and *budget-consuming*, which ma..."
  },
  "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": "954bcef93dff05b6a5a85c2bf29302f4ddee663213034eebaeed8ce9b5e1eed1",
    "verified_classes": [
      "ResumeCreditViolation",
      "ResumeState"
    ],
    "verified_functions": [
      "audit_resume_credit",
      "resume_session"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumeCreditViolation"
    ],
    "sample_fail_closed_invariants": [
      "no safe credit remains after reserving replay window; reduce granted_credit or abandon session"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
