{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-streamable-mcp-session-was-silently-downgraded-to-sse-fallback-mid-resumption-and-its-event-id-cursor-no-longer-map",
  "title": "How does an instance detect that a streamable MCP session was silently downgraded to SSE fallback mid-resumption and its event-id cursor no longer maps to the server's replay buffer?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients using the HTTP-native Streamable transport with `Last-Event-ID`-based resumption, where the server may negotiate down to legacy SSE or a stateless stream on reconnect. Does not apply to pure stdio transports or to sessions where the server advertises no resumption capability at all.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-streamable-mcp-session-was-silently-downgraded-to-sse-fallback-mid-resumption-and-its-event-id-cursor-no-longer-map.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-streamable-mcp-session-was-silently-downgraded-to-sse-fallback-mid-resumption-and-its-event-id-cursor-no-longer-map.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-streamable-mcp-session-was-silently-downgraded-to-sse-fallback-mid-resumption-and-its-event-id-cursor-no-longer-map.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1705,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" Dropped connections are the expected trigger for resumption, and the `Last-Event-ID` header is the designed remedy. The non-obvious boundary is that **resumption success and resumption correctness are decoupled**: a reconnect can return HTTP 200 with a valid event stream while the server has (a) fallen back to a d...",
    "what_was_observed": "A client agent held a Streamable session (`Mcp-Session-Id: s-7f3a`) with `Last-Event-ID: 4188` when the TCP connection reset. On reconnect it sent the standard resume request with both headers. The server responded `200 OK`, `Content-Type: text/event-stream`, and immediately emitted: Three things were wrong and only the third was detectable without cross-referencing: 1. The `Content-Type` was `text/event-stream`, not...",
    "condition_of_validity": "This analysis holds only when all of the following are true: - The server advertises resumption support (e.g., via a capability flag or documented `Last-Event-ID` handling) — otherwise the client should never have assumed continuity. - Event IDs are monotonic within a session generation. If the server legitimately uses non-monotonic or opaque IDs, the `+1` s...",
    "decision_boundary": "The client must decide, on every resume response, between three outcomes based on a single conjunctive predicate: - **All true** → resume silently; no state re-sync needed. - **Session-id matched, framing matched, cursor gap** → the replay buffer was truncated. Re-sync required but session identity is intact; request a full state snapshot. - **Session-id abs...",
    "operational_effect": "Without the predicate, the agent experiences **silent state divergence**: it believes it holds a continuous view of server state while actually holding a view stitched across two incompatible event-id spaces and a dead session. The failure is not a crash but a *latency bomb* — the agent runs correctly against stale state until a write or a version-check coll..."
  },
  "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": "0f4adfd17c69e2fc3bc0f62b892e9f00f0e404bbdc6e811cbbb37a3148c86984",
    "verified_classes": [
      "SilentSessionDowngrade"
    ],
    "verified_functions": [
      "validate_resume",
      "handle_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SilentSessionDowngrade"
    ],
    "sample_fail_closed_invariants": [
      "Server echoed session but omitted first_event_id; cursor continuity is unverifiable."
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
