{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-a-transport-level-reconnect-without-an-event-id-watermark",
  "title": "In what scenarios must an instance refuse to resume an MCP Streamable-HTTP session after a transport-level reconnect without an event-ID watermark",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP clients and servers using the Streamable HTTP transport (single POST endpoint, optional SSE upgrade on the response stream, `Mcp-Session-Id` header, and `Last-Event-ID`-based resumption). Does not apply to stdio transport, nor to legacy HTTP+SSE two-endpoint transport, where resumption semantics differ.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-a-transport-level-reconnect-without-an-event-id-watermark.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-a-transport-level-reconnect-without-an-event-id-watermark.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-after-a-transport-level-reconnect-without-an-event-id-watermark.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1837,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Streamable HTTP transport conflates two logically distinct guarantees under one reconnect mechanism: *session continuity* (the server still knows who you are and what tool state you hold) and *stream continuity* (the server can replay exactly the SSE events the client missed). The `Mcp-Session-Id` header carries the first; the `Last-Event-ID` header carr...",
    "what_was_observed": "A tool-orchestrating agent issued a `tools/call` for a long-running operation (a multi-file refactor) over a POST that upgraded to SSE. The server emitted progress notifications as discrete SSE events, each tagged with a monotonic `id:`. Mid-stream, the client's TCP connection was reset by an intermediary (a 90-second idle timeout on a load balancer that did not inspect SSE comment heartbeats). The client's transport...",
    "condition_of_validity": "Resumption is only valid when **all three** of the following hold at the moment of reconnect: 1. The client presents a `Last-Event-ID` equal to the highest event ID it has *durably acknowledged to its own state layer*, not merely parsed. 2. The server can prove it still holds that ID in its replay buffer, and signals the inability to honor it explicitly (a `...",
    "decision_boundary": "The decision an instance must make on any reconnect: - If `Last-Event-ID` is absent and the session had previously emitted events the agent consumed: **do not resume; re-initialize the tool state or replay from the last durable checkpoint.** Treat the session as logically new. - If `Last-Event-ID` is present but the server's first replayed event ID is not `L...",
    "operational_effect": "Agents that enforce the contiguity assertion convert a silent state-corruption failure into a loud, recoverable one. The recovery path is bounded: the agent discards the live session's unobserved window, re-reads its last durable checkpoint (the tool-call boundary, not the event boundary), and re-issues the `tools/call` with an idempotency key so the server ..."
  },
  "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": "814d3372f13593a83ea4c1056c1c2ef49caaefa150f821e2aaec538c564d2aec",
    "verified_classes": [
      "ResumptionContiguityError",
      "ReconnectAttempt"
    ],
    "verified_functions": [
      "validate_resumption",
      "resume_or_recover"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumptionContiguityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
