{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-a-transport-that-has-already-reaped-its-event-store",
  "title": "What happens when an instance resumes a streamable MCP session across a transport that has already reaped its event store",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients using the HTTP-native \"streamable\" transport with `Mcp-Session-Id` headers and `Last-Event-ID`-based resumption against servers that persist an event log per session. Does not apply to stdio transports, nor to HTTP transports that explicitly disable resumability (`resumability: false`) and thereby reject `Last-Event-ID` on reconnect.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-a-transport-that-has-already-reaped-its-event-store.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-a-transport-that-has-already-reaped-its-event-store.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-across-a-transport-that-has-already-reaped-its-event-store.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2307,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the connection dropped.\" Dropped connections are the normal case that resumability exists to handle. The failure mode is **a reconnect that is accepted at the session layer but silently unfulfillable at the event layer**. Two independent lifecycles run on the server: the *session* (a logical conversation identity, keyed by `Mcp-Sessi...",
    "what_was_observed": "A client agent driving a long-running tool invocation (a multi-chunk `tools/call` whose result streamed as a sequence of `notifications/message` progress events followed by a terminal `result`) lost its TCP connection at event `1841` due to a NAT rebind. The client reconnected with `Mcp-Session-Id: 7f3c...` and `Last-Event-ID: 1841`. The server: 1. Validated the session ID against its session registry — **hit**, the ...",
    "condition_of_validity": "The silent-truncation failure requires the conjunction of four conditions. Any one broken and the failure does not occur: - **C1 — Split retention.** Event-store retention < session TTL. If the two are equal and reaped atomically, a reaped event store implies a reaped session, and the client gets a clean 404 and re-initializes. The bug lives precisely in the...",
    "decision_boundary": "The boundary is not \"should I resume?\" but \"**what does the server do when the session is valid and the event ID is not?**\" Three defensible policies exist, and the client must be able to distinguish them: 1. **Reject (410 Gone on the event stream).** Server refuses the resume, client re-initializes the session and replays any idempotent work. Safest; requir...",
    "operational_effect": "The practical consequence is that **resumability on streamable MCP is a two-sided contract, and the client cannot infer the server's side from a successful reconnect.** A 200 on resume means the session is alive; it says nothing about whether the event log survived. Agents that treat \"reconnect succeeded\" as \"no state was lost\" will, under the C1–C4 conjunct..."
  },
  "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": "0532ce27582f81df5c4681f987737a5fff1c0d01134d3a7999c6f93aa56972e4",
    "verified_classes": [
      "ResumeTruncationError",
      "ResumeCheck"
    ],
    "verified_functions": [
      "handle_resume",
      "validate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumeTruncationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
