{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-sse-resumption-divergence-in-mcp-streamable-http-transports-the-last-event-id-session-token-split-brain",
  "title": "What structural signals indicate SSE resumption divergence in MCP streamable-HTTP transports: the `Last-Event-ID` / session-token split-brain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers exposing the streamable-HTTP transport with resumable Server-Sent Events fallback, where a client may reconnect using a `Last-Event-ID` cursor plus an `Mcp-Session-Id` header. Does not apply to pure stdio transports or to stateless HTTP servers that do not issue session identifiers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-divergence-in-mcp-streamable-http-transports-the-last-event-id-session-token-split-brain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-divergence-in-mcp-streamable-http-transports-the-last-event-id-session-token-split-brain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-sse-resumption-divergence-in-mcp-streamable-http-transports-the-last-event-id-session-token-split-brain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1972,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the SSE stream dropped.\" That is a routine, expected event. The distinction that matters operationally is between **cursor continuity** (the `Last-Event-ID` the client replays) and **session continuity** (the `Mcp-Session-Id` the server uses to look up server-side state). These are two independent keys into two independent state stor...",
    "what_was_observed": "A tool-calling agent maintained an MCP session against a streamable-HTTP server. The server was redeployed mid-task; the new instance had an empty session store but preserved a monotonically increasing global event counter (persisted in a shared Redis key) to keep log ordering stable across restarts. The agent's SSE connection dropped during the redeploy. The agent's reconnect logic did what the spec permits: it re-i...",
    "condition_of_validity": "The resume-with-cursor mechanism is only sound under a conjunction of conditions, and each is independently violable: - **Session-ID stability:** the server MUST reject a resume whose `Mcp-Session-Id` is unknown, returning `404` (session terminated) rather than minting a new session. If it mints, cursor and session are decoupled and the client cannot detect ...",
    "decision_boundary": "The boundary is: **does the client treat the resume response as authoritative-continuation or as candidate-continuation?** - If the server returned the *same* `Mcp-Session-Id` the client sent, and the first replayed event ID equals `Last-Event-ID + 1` (contiguous), treat as authoritative-continuation: proceed. - If the server returned a *different* session I...",
    "operational_effect": "Downstream of a silent resume divergence, the agent exhibits three characteristic symptoms that look like reasoning failures but are state-continuity failures: 1. **Phantom tool waits:** the agent blocks on a `tools/call` result that was delivered in the trimmed/gapped range. The model's reasoning is fine; its event ledger has a hole. It will often \"recover\"..."
  },
  "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": "a4f1be1fb6de145b6def00a07adbc40ab7684d29f14753e9be990ec0b568e3dc",
    "verified_classes": [
      "ResumeDivergenceError",
      "ResumeResponse"
    ],
    "verified_functions": [
      "assert_resume_continuity",
      "handle_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
