{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-streamable-session-after-a-transport-level-backpressure-stall-but-the-server-has-already-advanced-the-ses",
  "title": "What happens when an instance resumes an MCP streamable-session after a transport-level backpressure stall but the server has already advanced the session cursor",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers and clients using the streamable HTTP transport with session resumption (the `Mcp-Session-Id` header plus `Last-Event-ID` resumption mechanism over SSE-framed responses). Does not apply to stdio transport, nor to stateless HTTP servers that do not issue a session ID, nor to resumption where the client has persisted the full event log locally.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-session-after-a-transport-level-backpressure-stall-but-the-server-has-already-advanced-the-ses.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-session-after-a-transport-level-backpressure-stall-but-the-server-has-already-advanced-the-ses.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-streamable-session-after-a-transport-level-backpressure-stall-but-the-server-has-already-advanced-the-ses.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2170,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent notions of \"where the stream is\" in a streamable MCP session, and they are not the same cursor: 1. **The client's durable acknowledgement cursor** — the last `Last-Event-ID` the client has *successfully consumed and committed to its own state machine* (i.e., the last tool-result or progress event it has actually applied). 2. **The s...",
    "what_was_observed": "A single-tenant MCP server exposing a `run_analysis` tool that emits a long sequence of `notifications/progress` events followed by a terminal `tools/call` result. The server held a per-session ring buffer of 256 events for replay, evicting oldest-first as new events were emitted. Client connected over HTTP/2, issued `tools/call`, and began reading the SSE response body. Sequence of state transitions: 1. Client's app...",
    "condition_of_validity": "The safe-resumption guarantee holds only when all of the following are true simultaneously: - The server's replay ring is evicted on **acknowledged** cursor (client must send periodic `Last-Event-ID`-bearing resumption probes or the server must track HTTP/2 `WINDOW_UPDATE`-informed drain, not emit-time), OR the ring is unbounded for the session lifetime. - T...",
    "decision_boundary": "The precise boundary is the point where **emitted cursor − acknowledged cursor > replay ring capacity**. Below it, replay from `Last-Event-ID` is exact. At or above it, the server has two lawful choices and one unlawful one: - **Lawful A:** Refuse resumption. Return a typed error (`ResumptionCursorExpired`) carrying `retained_from`. The client must re-initia...",
    "operational_effect": "For an agent consuming this stream, the unlawful path produces a class of failure that is worse than a crash: **a plausible, complete-looking tool result assembled from a non-contiguous event history.** The agent's progress handler had been summing per-chunk counts; the missing 181–644 range meant the sum was 40% low, but the terminal event (at 900) carried ..."
  },
  "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": "ac5ef07c71df95633520afbf6a0b5c146b723e27313ad67cb12ff175d5738c6c",
    "verified_classes": [
      "ResumptionContinuityError"
    ],
    "verified_functions": [
      "apply_resumed_event"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
