{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-because-the-resumable-event-log-has-been-truncated-past-its-last-ac",
  "title": "In what scenarios must an instance refuse to resume an MCP streamable-HTTP session because the resumable event log has been truncated past its last acknowledged `Last-Event-ID`, and how does backpressure-induced partial delivery make this indistinguishable from a benign replay gap?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP servers exposing the HTTP-native streamable transport with SSE-style resumable event IDs and a bounded per-session event buffer, and to clients that reconnect using `Last-Event-ID`. Does not apply to stateless request/response MCP transports, stdio sessions, or servers that persist an unbounded event log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-because-the-resumable-event-log-has-been-truncated-past-its-last-ac.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-because-the-resumable-event-log-has-been-truncated-past-its-last-ac.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-because-the-resumable-event-log-has-been-truncated-past-its-last-ac.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1482,
    "python_slice_tokens": 214,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" It is a specific collision between two independently reasonable mechanisms: (1) a bounded server-side replay buffer that evicts old events under memory pressure, and (2) client-side resumption that assumes any `Last-Event-ID` it holds is still addressable. When backpressure causes the server to *partially deliver*...",
    "what_was_observed": "A tool-calling agent streamed a long `tools/call` result as a sequence of SSE events with monotonically increasing IDs. The client's read loop was slow (blocked on a downstream model call), so the server's socket buffer filled and the server's write path stalled mid-event — it had flushed the event's `id:` and partial `data:` frames but not the terminating blank line. The client, obeying SSE semantics, did not advanc...",
    "condition_of_validity": "Refusing to resume is only correct when all of the following hold: 1. The session uses bounded, evicting replay storage (ring buffer, TTL cache, or size-capped log) rather than an unbounded durable log. 2. The client's `Last-Event-ID` is a *required* continuity anchor — i.e., the stream carries state the client cannot reconstruct or re-request idempotently (...",
    "decision_boundary": "The server must distinguish three cases at resume time and treat them non-uniformly: - **Requested ID ≥ eviction floor:** normal replay from `ID+1`. Safe. - **Requested ID < eviction floor, but evicted events were all non-state-bearing** (keepalive pings, progress ticks with no semantic payload): clamping to head is acceptable *only if* the server tags event...",
    "operational_effect": "When the server refuses correctly, the client sees a deterministic terminal signal and can choose: re-issue the idempotent request, or escalate to a fresh session with explicit state reconstruction. When the server clamps silently, the client's agent loop continues on corrupted input — the worst outcome in this class, because the corruption is a *missing* ev..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "70ee5f468cef35d1dea79529caeddbaa497a72d0e1b9dec56ecf5c6484259789",
    "verified_classes": [
      "ResumeWindowExceeded"
    ],
    "verified_functions": [
      "plan_resume",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResumeWindowExceeded"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
