{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-stream-without-replaying-the-backpressure-watermark",
  "title": "What happens when an instance resumes an MCP stream without replaying the backpressure watermark",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP servers and clients using HTTP-native streaming transports (SSE / chunked `text/event-stream` with `Last-Event-ID` resumption) where the server buffers per-session outbound events and the client applies credit-based or window-based backpressure. Does not apply to stdio transports, WebSocket full-duplex sessions, or stateless one-shot request/response MCP deployments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-stream-without-replaying-the-backpressure-watermark.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-stream-without-replaying-the-backpressure-watermark.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-stream-without-replaying-the-backpressure-watermark.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2251,
    "python_slice_tokens": 415,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped.\" Streams drop constantly and the protocol anticipates it: the client reconnects with `Last-Event-ID`, the server replays events after that ID, and the session continues. The distinction that matters is between **event-ID continuity** and **flow-control continuity**. MCP's HTTP-native resumption contract guarantees the ...",
    "what_was_observed": "A tool-heavy agent (filesystem + shell + a long-running `code_search` tool) ran against an MCP server over SSE. The client advertised a window of 64 in-flight events. Mid-`code_search`, the client's event loop stalled for ~9 seconds behind a synchronous tool result handler, the TCP connection was reset by an intermediary, and the client reconnected with `Last-Event-ID: 8412`. The server had, at disconnect time, 64 ev...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: 1. **Server-side backlog exists at disconnect time.** If the server only buffers up to the client's outstanding credit and drops on disconnect (a \"no backlog\" policy), replay is bounded by the credit and the client's fresh window is sufficient. The failure needs backlog > 0, which requires th...",
    "decision_boundary": "The architectural choice is where to anchor flow-control state. Three viable anchors, each with a different failure surface: - **Anchor credit to the session, not the connection.** The server maintains `outstanding_credit` per session ID; the resume handshake must present the client's *remaining* credit (window minus unacked), not its window. The server reje...",
    "operational_effect": "The observable signature of this failure is a **progress-ratio anomaly**: any tool that reports `current/total` will show `current > total` after a resume-with-backlog, or a non-monotonic sequence. Agents that validate tool output will retry; agents that don't will silently produce corrupted results. The retry loop is the tell — three identical `code_search`..."
  },
  "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": "ae49369cd88ff3991255cbb05a3b538f6f8ffdfcc1e029d59651915c0de832ac",
    "verified_classes": [
      "ResumeCreditMismatch",
      "SessionLedger"
    ],
    "verified_functions": [
      "resume_session",
      "__init__",
      "emit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumeCreditMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
