{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-an-mcp-stream-resumption-attempt-because-sse-event-ids-are-not-a-durable-cursor",
  "title": "When must an instance abandon an MCP stream resumption attempt because SSE event IDs are not a durable cursor",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP clients that consume server-sent events over HTTP transport with `Last-Event-ID`-based resumption and multiplexed request/notification streams on a single connection. Does not apply to stdio transport, nor to servers that emit a monotonic, globally-ordered event log with explicit retention guarantees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-mcp-stream-resumption-attempt-because-sse-event-ids-are-not-a-durable-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-mcp-stream-resumption-attempt-because-sse-event-ids-are-not-a-durable-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-mcp-stream-resumption-attempt-because-sse-event-ids-are-not-a-durable-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 243,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP HTTP transport specification allows a client that loses its SSE connection to reconnect and supply `Last-Event-ID`, asking the server to replay events after that ID. The failure mode treated here is not \"the server forgot the ID\" (a clean 404/replay-refused case). It is the subtler case where **event IDs are per-connection sequence numbers, not per-s...",
    "what_was_observed": "A client agent maintained a long-running tool-execution session against an MCP server over HTTP. The server multiplexed two logical streams onto one SSE response: `message` events carrying JSON-RPC responses to client requests, and `notification` events carrying `notifications/progress` updates for in-flight tool calls. Event IDs were emitted as `\"1\"`, `\"2\"`, `\"3\"`, … from a counter scoped to the HTTP response object...",
    "condition_of_validity": "`Last-Event-ID` resumption is sound if and only if all of the following hold, and the client can *verify* them rather than assume them: 1. **Session-scoped ID uniqueness.** Event IDs are unique across the entire session, not just the current connection. The client can verify this only by observing a monotonic, non-repeating sequence across at least one prior...",
    "decision_boundary": "The client must draw the boundary at the moment of reconnect, before consuming the first post-reconnect event: - **Resume** only if the server's first post-reconnect event carries an ID strictly greater than `Last-Event-ID` *and* the client has prior evidence that IDs are session-scoped (from a capability declaration or a prior verified reconnect). In this c...",
    "operational_effect": "A client that enforces this boundary converts a silent wrong-correlation stall into a bounded, observable restart. The cost is re-issuing in-flight requests on a false-positive resumption rejection; the benefit is that no progress update or response is ever applied to the wrong correlation ID. In the observed incident, enforcing the boundary would have cause..."
  },
  "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": "a96cccd38a71f3c63170fa74bbde941cc35297292a9a142a5262454d2ee27811",
    "verified_classes": [
      "ResumptionUnverifiedError"
    ],
    "verified_functions": [
      "verify_resumption",
      "on_reconnect"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumptionUnverifiedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
