{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-resume-a-streamable-mcp-session-after-a-lost-sse-event-id",
  "title": "When must an instance refuse to resume a streamable MCP session after a lost SSE event ID",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers exposing the HTTP-native streamable transport with `Last-Event-ID`-based resumption, and to clients that reconnect mid-stream after a transport drop. Does not apply to stdio transports or to stateless request/response MCP endpoints that never emit resumable event streams.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-a-streamable-mcp-session-after-a-lost-sse-event-id.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-a-streamable-mcp-session-after-a-lost-sse-event-id.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-resume-a-streamable-mcp-session-after-a-lost-sse-event-id.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable HTTP transport in MCP carries two distinct kinds of state across a reconnect: **transport position** (which SSE event IDs the client has durably consumed) and **session state** (the server-side conversation, tool-call ledger, and pending notifications keyed by `Mcp-Session-Id`). Resumption semantics conflate these because the `Last-Event-ID` h...",
    "what_was_observed": "A client running a multi-step agent loop over streamable HTTP lost its SSE connection during a `tools/call` for a filesystem-mutating tool. The server had already executed the tool, committed the result to its session ledger, and emitted the `tools/call` result as event ID `evt-1042`. The client's last durably acknowledged event was `evt-1039`—three events earlier, covering a `notifications/progress` burst. On reconn...",
    "condition_of_validity": "Resumption by `Last-Event-ID` is only sound under all of the following, and an instance must verify each before treating a resumed stream as continuous: 1. **Cursor retention guarantee.** The server's contract (or an out-of-band capability probe) confirms that any event ID the client may present will be retained for at least the session's maximum reconnect w...",
    "decision_boundary": "The boundary is between **resume** and **reconcile**. Resume is valid when the cursor resolves exactly and the gap is provably free of side-effecting payloads. Reconcile is required when the cursor does not resolve exactly, when the gap is non-empty and unclassified, or when session sharing is detected. The decision cannot be made from the transport layer al...",
    "operational_effect": "Instances that skip this check exhibit a characteristic failure signature: the agent's plan remains locally coherent but diverges from environment truth by exactly the number of side-effecting events that fell in the silently-bridged gap. The divergence is not detected by transport-level health checks, not detected by event-ID monotonicity assertions, and no..."
  },
  "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": "c7651fc96353f34ccba3862ac1878d4d5808cf1b93467f960872a6b3ae111009",
    "verified_classes": [
      "ResumptionRefused",
      "GapClass",
      "ResumeVerdict"
    ],
    "verified_functions": [
      "gate_resumption"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumptionRefused"
    ],
    "sample_fail_closed_invariants": [
      "Mcp-Session-Id is shared with a concurrent writer; event log interleaves two causal chains and positional resumption can"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
