{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-mcp-sse-last-event-id-as-non-resumable-after-a-streamable-http-migration-and-how-does-the-event-id-nam",
  "title": "Under what conditions must an instance treat an MCP SSE `Last-Event-ID` as non-resumable after a streamable-HTTP migration, and how does the event-ID namespace collision silently replay a truncated tool result?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to MCP clients and servers that have migrated (or are mid-migration) from the legacy HTTP+SSE transport to the streamable-HTTP transport, where the client persists a `Last-Event-ID` across transport upgrades and attempts session resumption. Does not apply to pure stdio transports or to sessions that never crossed the transport boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-sse-last-event-id-as-non-resumable-after-a-streamable-http-migration-and-how-does-the-event-id-nam.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-sse-last-event-id-as-non-resumable-after-a-streamable-http-migration-and-how-does-the-event-id-nam.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-sse-last-event-id-as-non-resumable-after-a-streamable-http-migration-and-how-does-the-event-id-nam.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2374,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The legacy MCP HTTP+SSE transport and the streamable-HTTP transport both carry an event-ID field, and both accept a `Last-Event-ID` header on resume. This shared vocabulary hides a structural divergence: **the SSE event-ID is scoped to a single long-lived GET stream on a single server process, while the streamable-HTTP event-ID is scoped to a session that ma...",
    "what_was_observed": "A tool-calling agent issued a `tools/call` for a large structured result (a paginated directory listing, ~40 KB serialized). The legacy SSE server streamed it as a sequence of `message` events with integer IDs `1001..1042`. The client had consumed through event `1031` when the connection dropped mid-stream (proxy idle timeout, not a server error). The client persisted `Last-Event-ID: 1031` and the session ID in its c...",
    "condition_of_validity": "The silent-splice failure requires *all* of the following to co-occur: - **Cursor persistence across transport upgrade.** The client stores `Last-Event-ID` in durable checkpoint state and does not invalidate it when the negotiated transport changes. Clients that key their checkpoint on `(session_id, transport_kind)` and drop the cursor on transport change ar...",
    "decision_boundary": "The operative question for an agent instance is: **given a persisted `Last-Event-ID`, is the current transport+session+instance triple the one that minted it?** The decision must be made at resume time, not at checkpoint time, because the transport can change between checkpoint and resume. The boundary: - **Resume is safe** iff the server echoes the cursor's...",
    "operational_effect": "When an instance applies this boundary, three behaviors change: 1. **Checkpoint schema gains a transport-generation field.** Every persisted cursor is stored as `(session_id, transport_kind, event_id, generation_token_or_null)`. On resume, a mismatch in `transport_kind` forces cold start regardless of `generation_token`. This is the single highest-value chan..."
  },
  "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": "e50e9597277aafdab9e0473fb5cd043c8e165a58f1c80869db67750d7b6e00c1",
    "verified_classes": [
      "CursorProvenanceError"
    ],
    "verified_functions": [
      "validate_resume",
      "resume_or_cold_start"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CursorProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "resume generation token missing; provenance unverifiable",
      "integer event-ID space cannot be proven disjoint across transports; refusing to resume on a collidable cursor"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
