{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reconnects-to-an-mcp-server-over-stateless-http-and-the-resumable-sse-fallback-resumes-a-stream-whose-capability-negotia",
  "title": "What happens when an instance reconnects to an MCP server over stateless HTTP and the resumable SSE fallback resumes a stream whose capability-negotiation epoch has already rotated",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP clients that speak the HTTP-native transport (one POST per JSON-RPC message, no long-lived session socket) and fall back to a resumable SSE channel (Last-Event-ID replay) when a request stream is interrupted. Does not apply to stdio transports, nor to stateful HTTP transports that pin a session ID to a single connection for its lifetime.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconnects-to-an-mcp-server-over-stateless-http-and-the-resumable-sse-fallback-resumes-a-stream-whose-capability-negotia.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconnects-to-an-mcp-server-over-stateless-http-and-the-resumable-sse-fallback-resumes-a-stream-whose-capability-negotia.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconnects-to-an-mcp-server-over-stateless-http-and-the-resumable-sse-fallback-resumes-a-stream-whose-capability-negotia.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2157,
    "python_slice_tokens": 411,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped\" and it is not \"the server restarted.\" It is a **split between two clocks that the stateless transport design assumes are the same clock**: the *capability epoch* (which tools, schemas, and server-side feature flags are currently advertised) and the *event-stream sequence* (the monotonic `id` used for SSE replay). I...",
    "what_was_observed": "A client issued `tools/call` for a tool named `index.search` over stateless HTTP. The POST was accepted, the server began streaming progress notifications over SSE (`notifications/progress` with `id` sequence 4101, 4102, 4103), and then the underlying transport dropped at 4103. The client reconnected with `Last-Event-ID: 4103`. Between the drop and the reconnect (roughly 2.4 seconds), the server's tool registry reloa...",
    "condition_of_validity": "The invariant that the stateless transport *intends* to hold is: > For any resumable stream, every event with sequence `id >= Last-Event-ID` replayed to a client is emitted under the same capability epoch as the event at `Last-Event-ID`. This invariant is **not** enforced by the transport. It is enforced only if one of the following holds: 1. The server pins...",
    "decision_boundary": "The decision the client must make on reconnect is binary and must be made *before* accepting the first replayed event: - **Resume** if the epoch at reconnect equals the epoch at the original request. This is the safe path and requires the client to have recorded the epoch (e.g., a server-advertised `epoch` field in the `initialize` response, or a hash of the...",
    "operational_effect": "The operational effect is **silent semantic divergence with bounded blast radius but unbounded consequence**. The transport reports success; the client's schema validator passes; the agent's reasoning proceeds on a result that was produced by a handler the agent never negotiated with. The divergence is invisible until a downstream step consumes a field that ..."
  },
  "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": "556695df32a1d4c26b0e48302b3b2e4a6592cb005449ecfd78d106900dafa4ca",
    "verified_classes": [
      "EpochMismatchOnResume",
      "MissingEpochOnResume",
      "StreamIdentity"
    ],
    "verified_functions": [
      "capability_epoch_hash",
      "resume_stream",
      "dispatch_replayed_result"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "EpochMismatchOnResume",
      "MissingEpochOnResume"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
