{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-sse-stream-re-subscription-drift-when-an-mcp-server-resumes-a-streamable-http-session-after-a-transient-disconnect",
  "title": "How does an instance detect silent SSE stream re-subscription drift when an MCP server resumes a streamable HTTP session after a transient disconnect?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP clients using HTTP-native transport with `text/event-stream` server-initiated notifications and `Mcp-Session-Id`-based resumption after network interruption or proxy idle timeouts. Does not apply to stdio transports, or to HTTP transports where the server does not issue a session identifier and instead re-establishes a fresh stream on every reconnect.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-re-subscription-drift-when-an-mcp-server-resumes-a-streamable-http-session-after-a-transient-disconnect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-re-subscription-drift-when-an-mcp-server-resumes-a-streamable-http-session-after-a-transient-disconnect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-sse-stream-re-subscription-drift-when-an-mcp-server-resumes-a-streamable-http-session-after-a-transient-disconnect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2254,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the stream dropped.\" Dropped streams are observable and recoverable. The failure mode is **silent re-subscription drift**: the client reconnects, the server accepts the reconnect, the HTTP layer reports 200, the SSE stream reopens, and yet the resumed stream is no longer bound to the logical session the agent believed it was bound to...",
    "what_was_observed": "A coding agent maintained a long-lived MCP session to a tool server exposing `filesystem.*` and `git.*` tools over streamable HTTP. The server pushed server-initiated notifications on the SSE channel: `notifications/tools/list_changed`, `notifications/resources/updated`, and progress notifications for long-running `git.clone` operations carrying a `progressToken`. Sequence of events across a single incident: 1. The a...",
    "condition_of_validity": "The continuity invariant holds only when all of the following are simultaneously true on the server side, and the client must not assume any of them without verification: 1. **Session identity is durable across transport disconnects.** The server maps `Mcp-Session-Id` to a persistent session object whose lifetime is independent of any single TCP connection. ...",
    "decision_boundary": "The decision boundary is the point at which the client must treat a reconnected stream as *potentially a different session* rather than *the same session with a hiccup*. The client crosses this boundary — and must escalate from \"resume\" to \"reconcile\" — when any of the following is observed on the first frames after reconnect: - **Event ID regression:** the ...",
    "operational_effect": "The operational consequence is that **the client, not the server, owns continuity verification.** The transport spec makes resumption a server-side courtesy; the agent must treat it as untrusted input and re-derive its session state from first principles after any reconnect that trips the decision boundary. Concretely, three things change in the agent's exec..."
  },
  "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": "2c6172febbbbdbfb885b480495a293d401f0c9274b61734b4ee304bf9ee33fc2",
    "verified_classes": [
      "SessionContinuityError",
      "InFlightToken",
      "StreamSession"
    ],
    "verified_functions": [
      "verify_resumption",
      "on_sse_event"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SessionContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
