{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-sse-resumption-after-an-mcp-session-reattachment-loses-the-last-event-id-continuity-anchor",
  "title": "In what scenarios must an instance refuse SSE resumption after an MCP session reattachment loses the Last-Event-ID continuity anchor",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP servers and clients using HTTP-native transport with streamable SSE and `Last-Event-ID` resumability across a session reattachment (new HTTP connection to an existing `Mcp-Session-Id`). Does not apply to stdio transports or to fresh sessions that never established an event-ID stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-sse-resumption-after-an-mcp-session-reattachment-loses-the-last-event-id-continuity-anchor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-sse-resumption-after-an-mcp-session-reattachment-loses-the-last-event-id-continuity-anchor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-sse-resumption-after-an-mcp-session-reattachment-loses-the-last-event-id-continuity-anchor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1831,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"SSE stream dropped.\" That is routine and recoverable. The failure mode is **silent resumption against a reattached session whose event-ID namespace was reinitialized or forked**, so that the client's `Last-Event-ID: N` is accepted by the server but resolved against a *different* event history than the one the client actually consumed...",
    "what_was_observed": "A tool-calling agent issued `tools/call` for a long-running retrieval (server-side fan-out over ~90s). The SSE stream carried event IDs 1..12 (progress notifications) before the connection dropped at a proxy idle timeout. The client reconnected with `Last-Event-ID: 12` to the same `Mcp-Session-Id`. Between the drop and the reconnect, the server's pod was rescheduled. The new pod restored the session record from a sha...",
    "condition_of_validity": "Resumption is only valid when the server can prove continuity of the event-ID namespace across the reattachment. Concretely, the server must be able to answer: *is event N in my current log the same event N the client last saw?* This holds only if at least one of the following is enforced: 1. **Monotonic session-scoped counter persisted with the log.** The e...",
    "decision_boundary": "The client-side decision is not \"reconnect or not.\" It is \"resume or re-issue.\" - **Resume** (send `Last-Event-ID`) is correct when the server advertises a resumption capability that includes an epoch or generation token, and the client can verify the returned first event's ID is a strict successor in the same namespace. - **Re-issue** (drop the cursor, star...",
    "operational_effect": "The client must carry a **pending-request ledger** keyed by JSON-RPC `id`, and every replayed SSE frame must be validated against it before being admitted to the reasoning context. Frames that reference unknown `progressToken`s or carry `result`/`error` for absent `id`s are dropped and counted; a nonzero drop count during a single resumption invalidates the ..."
  },
  "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": "1198690ee928522c01e075656796bf87e1e4170fae392f9fe832d6a8d63981b8",
    "verified_classes": [
      "ResumptionContinuityError",
      "PendingLedger"
    ],
    "verified_functions": [
      "admit_replayed_event",
      "resume_stream",
      "register"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumptionContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
