{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-a-streamable-mcp-session-after-a-server-initiated-sse-drop-without-replaying-the-missed-event-window",
  "title": "What happens when an instance resumes a streamable MCP session after a server-initiated SSE drop without replaying the missed event window",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP clients using the HTTP-native \"streamable\" transport (POST for requests, GET for the server→client SSE stream) that implement session resumption via `Last-Event-ID` and `Mcp-Session-Id`. Does not apply to stdio transport, nor to legacy HTTP+SSE transport where the SSE stream is the sole channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-after-a-server-initiated-sse-drop-without-replaying-the-missed-event-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-after-a-server-initiated-sse-drop-without-replaying-the-missed-event-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-mcp-session-after-a-server-initiated-sse-drop-without-replaying-the-missed-event-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2216,
    "python_slice_tokens": 423,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable transport decouples *request/response* (POST, one-shot JSON or SSE-per-response) from the *server-initiated notification stream* (a long-lived GET SSE channel). The session ID ties them together logically, but they are physically independent TCP/TLS connections with independent lifetimes. The critical distinction is between **transport-level r...",
    "what_was_observed": "An agent runtime held an MCP session against a tool server. The GET SSE stream dropped (load-balancer idle timeout, 60s, mid-task during a long tool call). The client reconnected with `Last-Event-ID: 4471`. The server returned HTTP 200 and immediately began emitting *new* events starting at ID 4489. The 18 events in [4472, 4488] were never replayed. The mechanics of why this happens: 1. The server's SSE event buffer ...",
    "condition_of_validity": "The silent-gap failure is bounded by a specific invariant that must hold for resumption to be *sound*: > **Resumption Soundness Invariant:** A client may treat a reconnected SSE stream as continuous **only if** it can prove the server retained every event with ID > `Last-Event-ID` up to the first event on the new stream. Absent an explicit gap signal, the cl...",
    "decision_boundary": "The operational decision is: **on SSE reconnect, do I resume or re-establish?** The boundary is crossed when the client cannot bound the gap. - `gap_bounded == true` → resume; apply replayed events; continue. - `gap_bounded == false` OR either term unknown → **re-establish**: `DELETE` session, `initialize`, re-fetch all list-type state (`tools/list`, `resour...",
    "operational_effect": "When the invariant is enforced (gap → re-establish), the observable effects are: 1. **Latency spike on reconnect** proportional to re-fetching list state, but bounded and *correct*. The agent's tool schema is guaranteed current before the next tool call. 2. **Loss of in-flight request correlation**: any POST whose response was pending when the SSE stream dro..."
  },
  "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": "9596c871cca58d8f5fe0c4ae9748d6d72ff9db4225a405d682bbfd1091744302",
    "verified_classes": [
      "ResumptionGapError",
      "ReconnectObservation"
    ],
    "verified_functions": [
      "classify_reconnect",
      "apply_reconnect"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResumptionGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
