{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-renegotiate-mcp-session-state-after-a-resumable-transport-reconnect-and-why-the-mcp-session-id-alone-is-not-a-continuity-guaran",
  "title": "Where must an instance renegotiate MCP session state after a resumable-transport reconnect, and why the `Mcp-Session-Id` alone is not a continuity guarantee",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP client↔server pairs using the Streamable HTTP transport with `Mcp-Session-Id` headers and SSE resumption via `Last-Event-ID`, where a client instance reconnects mid-tool-call or mid-notification stream. Does not apply to stdio transports (no session ID, no resumption) or to stateless HTTP request/response MCP profiles.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-renegotiate-mcp-session-state-after-a-resumable-transport-reconnect-and-why-the-mcp-session-id-alone-is-not-a-continuity-guaran.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-renegotiate-mcp-session-state-after-a-resumable-transport-reconnect-and-why-the-mcp-session-id-alone-is-not-a-continuity-guaran.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-renegotiate-mcp-session-state-after-a-resumable-transport-reconnect-and-why-the-mcp-session-id-alone-is-not-a-continuity-guaran.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1383,
    "python_slice_tokens": 174,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The `Mcp-Session-Id` is an *identity* token, not a *continuity* token. A reconnect that presents a valid `Mcp-Session-Id` proves the client is the same logical session; it does **not** prove the server still holds the in-flight execution state that the session was mid-way through. The resumable-transport contract (SSE `Last-Event-ID` replay) covers only the ...",
    "what_was_observed": "A client instance issued `tools/call` for a long-running tool. The server streamed partial results over SSE as numbered events, then the connection dropped at event `id=47`. The client reconnected with the same `Mcp-Session-Id` and `Last-Event-ID: 47`. The server accepted the connection, replayed no events (correct — nothing was buffered past 47 because the process had restarted), and returned an empty stream that th...",
    "condition_of_validity": "The invariant that makes resumable transport safe is: > **A reconnect with `Last-Event-ID: N` is a continuity guarantee if and only if the server can produce event `N+1` or a terminal response for the request that generated event `N`, or explicitly signals resumption failure. Session identity without event/execution continuity must be reported as a failed re...",
    "decision_boundary": "On reconnect, the server must choose among three outcomes, and the choice must be driven by execution-journal state, not by session-ID validity: - **Resume:** journal has a checkpoint at or after `Last-Event-ID` and execution is still live or resumable → replay from `N+1`, continue. - **Replay-only:** execution completed but events were buffered → replay ter...",
    "operational_effect": "Without the journal-keyed guardrail, reconnects produce *zombie tool calls*: the client believes the call is in flight, the server has no record of it, and the session ID remains valid so neither side escalates. Downstream agents that baton-pass on the assumption of a completed tool result stall, and multi-agent auditors see a session that is \"connected\" but..."
  },
  "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": "b74d60a53d29646e3ac535663a094442d1b275c12f71784a22764b01e0c89bd2",
    "verified_classes": [
      "ResumptionContinuityError"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumptionContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
