{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-mcp-session-resumption-across-an-event-stream-replay-window",
  "title": "Under what conditions must an instance refuse MCP session resumption across an event-stream replay window",
  "date_of_record": "2026 November 15",
  "scope": "Applies to MCP servers that expose a stateful Streamable HTTP transport with `Last-Event-ID`-based event-stream resumption and server-side session binding. Does not apply to stateless MCP servers, to stdio transports, or to sessions that have never emitted a resumable event stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-mcp-session-resumption-across-an-event-stream-replay-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-mcp-session-resumption-across-an-event-stream-replay-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-mcp-session-resumption-across-an-event-stream-replay-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1212,
    "python_slice_tokens": 147,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an MCP client means when it reconnects with a session identifier and a `Last-Event-ID`: 1. **Transport resumption** — \"I lost the SSE connection at event N; replay events N+1..M so I can reconstruct the stream.\" This is a *delivery* guarantee scoped to a single logical stream. 2. **Session resumption** — \"I am the same agent, wi...",
    "what_was_observed": "A server kept a per-session ring buffer of outbound events with a 1,000-event capacity. A client disconnected for 40 minutes during a burst of resource-update notifications. On reconnect it sent `Mcp-Session-Id: S` and `Last-Event-ID: 48211`. The session record still existed (TTL 60 minutes), so the server accepted the session. But event 48211 had been evicted from the ring buffer; the oldest retained event was 49300...",
    "condition_of_validity": "Session resumption is valid if and only if all of the following hold simultaneously: - The `Mcp-Session-Id` resolves to the *same* session incarnation (compare an immutable session incarnation token, not the ID alone). - The requested `Last-Event-ID` is **greater than or equal to the oldest retained event ID** for that session's stream, i.e., the replay wind...",
    "decision_boundary": "The decision boundary is the relationship between the requested `Last-Event-ID` and the replay window's lower bound, not the existence of the session. Formally, resume iff `requested_last_event_id >= oldest_retained_event_id` **and** `session_incarnation == presented_incarnation`. The tempting shortcut — \"the session exists, so resume\" — is wrong precisely b...",
    "operational_effect": "When the server refuses correctly, the client receives an explicit resumption-rejected signal, discards its cached stream state, opens a new session, and re-reads resources. This costs a round trip and a state re-fetch but preserves correctness. When the server resumes incorrectly, the failure is silent and deferred: it surfaces later as a tool call acting o..."
  },
  "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": "e9fe56669cdb88416efde611e7fe0c57ca0189c2339d39796204fa8742483d64",
    "verified_classes": [
      "SessionResumptionRefused"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SessionResumptionRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
