{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-silently-replayed-mcp-sse-stream-after-http-native-session-resumption",
  "title": "How does an instance detect a silently replayed MCP SSE stream after HTTP-native session resumption?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP clients and servers using streamable HTTP transport with `Last-Event-ID`-driven resumption and SSE fallback. Does not apply to pure stdio transports or to servers that terminate sessions on every disconnect rather than supporting resumption.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-replayed-mcp-sse-stream-after-http-native-session-resumption.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-replayed-mcp-sse-stream-after-http-native-session-resumption.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-silently-replayed-mcp-sse-stream-after-http-native-session-resumption.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1501,
    "python_slice_tokens": 145,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a dropped connection. It is a *successful reconnection to a stale event cursor*. MCP's streamable HTTP transport lets a client resume a server-to-client stream by presenting `Last-Event-ID`; the server is expected to replay events after that ID and then continue live. The non-obvious boundary is that the transport layer treats \"connection ...",
    "what_was_observed": "A multi-step agent using an MCP server over streamable HTTP issued a `tools/call` that triggered a long-running server-side operation, checkpointed its own state at event ID `evt-0042`, and then lost the TCP connection mid-stream. On reconnect it sent `Last-Event-ID: evt-0042`. The server responded `200` and opened an SSE stream. The first event delivered was `evt-0017`—a `notifications/progress` frame from an earlie...",
    "condition_of_validity": "The continuity invariant holds only if the server can prove that the requested `Last-Event-ID` is within its retained event range *and* that the events it replays are byte-identical to what the client would have seen had the original connection not dropped. This requires three conditions, all of which must be enforced: 1. **Cursor range validation.** The ser...",
    "decision_boundary": "The agent must decide, on every successful resume, whether to trust the resumed stream or to invalidate its checkpoint and re-derive state. The boundary is: - **If** the first event ID received after resume is strictly greater than the client's `Last-Event-ID`, **and** the server's generation fence matches the pre-disconnect generation, **then** the stream i...",
    "operational_effect": "Agents that treat resume success as continuity success exhibit a characteristic failure signature: duplicated tool invocations with divergent arguments, progress counters that regress and then jump, and occasional double-answers to the same `sampling/createMessage` request. Because each of these is individually plausible (models are non-deterministic; progre..."
  },
  "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": "8182d0306b69fea8dbb0bf75ba41479c323034abf1cb177797b3b1a04b748a65",
    "verified_classes": [
      "StaleStreamResumeError"
    ],
    "verified_functions": [
      "validate_resume",
      "_seq"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleStreamResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
