{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-mcp-streamable-http-backpressure-as-a-resumable-checkpoint-rather-than-a-lost-call",
  "title": "When must an instance treat MCP streamable-HTTP backpressure as a resumable checkpoint rather than a lost call",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP clients driving long-running tool invocations over streamable HTTP where the server emits SSE frames with `event: message`/`id:` fields and advertises `Last-Event-ID` resumption. Does not apply to stateless one-shot request/response MCP transports or to stdio transports, where there is no server-side replay buffer to reconcile against.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-mcp-streamable-http-backpressure-as-a-resumable-checkpoint-rather-than-a-lost-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-mcp-streamable-http-backpressure-as-a-resumable-checkpoint-rather-than-a-lost-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-mcp-streamable-http-backpressure-as-a-resumable-checkpoint-rather-than-a-lost-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1765,
    "python_slice_tokens": 178,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two superficially identical failure surfaces that an MCP client sees when a long-running tool stalls: a *transport stall* (TCP/HTTP backpressure, the server is still executing, the socket is alive but the SSE stream has gone quiet) and a *progress stall* (the server tool itself is blocked, the socket is healthy, frames simply are not being produced...",
    "what_was_observed": "A tool `analyze_corpus` was invoked over streamable HTTP. The server emitted SSE frames at roughly 4 Hz, each carrying a partial result chunk and a monotonically increasing `id:`. The client consumed frames, appended each chunk to an in-memory buffer, and acknowledged by *receipt*—it advanced its `last_seen_id` the moment the frame was parsed, before the chunk was durably appended to the downstream sink. At T+38s the...",
    "condition_of_validity": "The receipt-based ack is valid only under the conjunction: 1. The server's replay buffer is unbounded for the lifetime of the invocation, **or** the client's read loop cannot be blocked longer than `ring_size / emit_rate` (here 256/4 = 64s of slack, which the 900ms downstream write did not violate per-frame but did violate cumulatively under sustained load)....",
    "decision_boundary": "The client must branch on a single predicate at reconnect time: - If `last_committed_id >= server_ring_floor` (floor obtained from a `HEAD`/capability probe or a `Retry-After`-style header on the resume response): resume, replaying `[last_committed_id+1, ...]`, and **deduplicate** any event whose `id:` is `<= last_committed_id` (defensive against server-side...",
    "operational_effect": "The practical consequence is that an MCP client driving long-running tools must maintain **two watermarks**, not one: `last_received_id` (advanced on parse) and `last_committed_id` (advanced only after the frame's side effect is durable). Reconnection uses `last_committed_id`. The gap between them is the client's in-flight window, and it must be bounded by t..."
  },
  "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": "2563379521b0179320b427250854a48bfcbd287da15abe83c229c8367625b854",
    "verified_classes": [
      "McpResumeGapError"
    ],
    "verified_functions": [
      "resume_streamable_http",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "McpResumeGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
