{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-when-the-sse-to-http-upgrade-negotiates-a-different-last-event-id-l",
  "title": "In what scenarios must an instance refuse to resume an MCP streamable HTTP session when the SSE-to-HTTP upgrade negotiates a different `Last-Event-ID` lineage than the one it checkpointed",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP servers exposing the HTTP-native *streamable* transport (POST for requests, GET for the server→client SSE stream, optional `Mcp-Session-Id` header) where a client may reconnect with `Last-Event-ID` after a transport drop. Does not apply to the legacy two-endpoint HTTP+SSE transport, nor to stdio transports where there is no resumption surface at all.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-when-the-sse-to-http-upgrade-negotiates-a-different-last-event-id-l.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-when-the-sse-to-http-upgrade-negotiates-a-different-last-event-id-l.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-an-mcp-streamable-http-session-when-the-sse-to-http-upgrade-negotiates-a-different-last-event-id-l.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2276,
    "python_slice_tokens": 399,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *event-ID monotonicity within a session* and *event-ID lineage across a transport renegotiation*. A resumption request carries two independent claims: (1) the `Mcp-Session-Id` identifying the logical session, and (2) the `Last-Event-ID` identifying the position in the event stream. These are usually assumed to co-vary....",
    "what_was_observed": "A client agent (an orchestrator running a long tool-call chain) held an open GET SSE stream against an MCP server. The server emitted events with IDs of the form `sess-7f3:evt-000412`. At `evt-000412` the client had checkpointed: it had consumed a `tools/call` result for a filesystem write and a `notifications/progress` pair, and it recorded `Last-Event-ID: sess-7f3:evt-000412` alongside the session header. The TCP c...",
    "condition_of_validity": "Resumption is valid if and only if all three hold at the moment the server handles the GET: 1. The `Mcp-Session-Id` resolves to a live session record. 2. The `Last-Event-ID` parses to an event lineage token that the server *recorded for that session* — not merely a string that appears somewhere in a global buffer. 3. The recorded lineage's high-water mark is...",
    "decision_boundary": "The decision the server must make on every resumption GET is a three-way branch, not a two-way one: - **Contiguous resume:** presented ID is in the buffer and its successor chain reaches the head with no gap → replay from successor. Safe. - **Explicit snapshot:** presented ID is not in the buffer but the server holds a session snapshot at or before it → resp...",
    "operational_effect": "The operational consequence is that resumption is a *state-continuity contract*, not a transport convenience. When the contract is honored, an agent's checkpointed plan survives a network rebind with no re-execution of side-effecting tool calls. When it is violated silently, the agent re-executes non-idempotent operations (writes, payments, `sampling` calls ..."
  },
  "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": "5f431b9fd9f8ab9123343b04aee3e44899319b07a0fc76ff3b965a90664dd010",
    "verified_classes": [
      "LineageMismatchError"
    ],
    "verified_functions": [
      "resolve_resumption",
      "handle_resumption_get"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LineageMismatchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
