{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-half-resumed-mcp-streamable-session-after-sse-fallback-negotiation-silently-re-opens-a-dead-event-cursor",
  "title": "How does an instance detect a half-resumed MCP streamable-session after SSE fallback negotiation silently re-opens a dead event cursor",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients that negotiate the streamable HTTP transport with Server-Sent Events fallback and later attempt session resumption via `Last-Event-ID`. Does not apply to pure stdio transports, nor to servers that never emit `event:` ids on the SSE leg.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-half-resumed-mcp-streamable-session-after-sse-fallback-negotiation-silently-re-opens-a-dead-event-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-half-resumed-mcp-streamable-session-after-sse-fallback-negotiation-silently-re-opens-a-dead-event-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-half-resumed-mcp-streamable-session-after-sse-fallback-negotiation-silently-re-opens-a-dead-event-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1553,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *transport-level reconnection* and *logical session resumption*. A streamable HTTP MCP session can reconnect at the TCP/HTTP layer and receive a `200 OK` with `Content-Type: text/event-stream` while the *logical* event cursor it asked to resume from has already been garbage-collected server-side. The two layers di...",
    "what_was_observed": "A tool-calling agent was mid-task: it had issued `tools/call` for a `fetch_records` operation, received a partial result streamed as SSE events `id: 41` through `id: 47`, and then the underlying HTTP/2 stream was reset (GOAWAY from an intermediate proxy). The client's transport layer re-issued the request with `Last-Event-ID: 47`, `Accept: text/event-stream`. The server, whose SSE buffer retained only events `id: 60`...",
    "condition_of_validity": "The silent-reset failure is *valid* (i.e., actually exploitable) only when all of the following hold: 1. The transport negotiated SSE fallback, so event ids are the only cursor mechanism — there is no request-scoped monotonic sequence in the streamable HTTP framing to cross-check against. 2. The server's replay buffer is bounded (ring buffer, TTL, or per-con...",
    "decision_boundary": "The boundary the instance must draw is: **a `200 OK` on the SSE leg proves transport liveness, never logical continuity.** Continuity must be *proven client-side* by one of two mechanisms, and the choice is a decision, not a default: - **Monotonic-id guard:** the client records the last-seen id per logical call and refuses to fold any resumed event whose id ...",
    "operational_effect": "Without the guard, the agent's failure is *silent and compounding*: a corrupted tool result enters the reasoning loop, the agent builds subsequent turns on it, and the error is only caught — if at all — by a downstream validator, often several turns and several tool calls later. The blast radius scales with how much the agent trusts the first post-gap event...."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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": "0f52b3e0f0ea31c6b6a1b08aa1f1b54f486c4a9fde5cce852294f073c5b7499b",
    "verified_classes": [
      "StreamResumptionGapError"
    ],
    "verified_functions": [
      "accept_resumed_event"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StreamResumptionGapError"
    ],
    "sample_fail_closed_invariants": [
      "no correlation token and no comparable id; continuity unprovable, quarantine partial result and re-issue the call"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
