{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reattaches-to-an-mcp-sse-stream-through-a-stateless-gateway-and-the-server-initiates-elicitation-mid-replay",
  "title": "What happens when an instance reattaches to an MCP SSE stream through a stateless gateway and the server initiates elicitation mid-replay",
  "date_of_record": "2026 November 26",
  "scope": "Applies to MCP servers exposing the streamable HTTP transport with resumable SSE (`Last-Event-ID` reattachment) where the client reaches the server through a stateless HTTP gateway that does not pin requests to a backend instance. Does not apply to sticky-session gateways, direct connections, or transports where elicitation is not supported.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reattaches-to-an-mcp-sse-stream-through-a-stateless-gateway-and-the-server-initiates-elicitation-mid-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reattaches-to-an-mcp-sse-stream-through-a-stateless-gateway-and-the-server-initiates-elicitation-mid-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reattaches-to-an-mcp-sse-stream-through-a-stateless-gateway-and-the-server-initiates-elicitation-mid-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1652,
    "python_slice_tokens": 297,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things that \"resume\" in this transport, and they are not the same resource. The **event stream** is resumable: the client presents `Last-Event-ID` and the server replays events after that ID. The **elicitation request** is *not* resumable in the same sense—it is a server-initiated, bidirectional request that requires the client to sen...",
    "what_was_observed": "A client agent lost its TCP connection to the gateway at event ID 41. The MCP server had, between ID 41 and ID 58, issued an `elicitation/create` request (event 47) asking the user/agent to confirm a destructive tool call. The client reconnected with `Last-Event-ID: 41`. The stateless gateway routed the reattachment to backend instance B; the original session had lived on instance A. Two distinct failure traces were ...",
    "condition_of_validity": "The resumable-SSE contract is only sound under a conjunction that is usually unstated: 1. The event log replayed by the reattaching instance is *the same log* the elicitation was written to (same session, same backend, or a backend whose pending-request table is part of the replicated state). 2. Elicitation request IDs are resolvable on whichever instance re...",
    "decision_boundary": "The boundary is: *does the client treat a replayed elicitation as actionable?* Two rules bound it. - If the elicitation ID was observed **live** before disconnect, the client may answer it on reattachment, but only if the gateway guarantees session affinity for the response POST (e.g., by carrying a session token that routes to the issuing instance). Without...",
    "operational_effect": "Concretely, the failure mode is a destructive action executed without confirmation (Trace 2) or a livelock of retried responses against an instance that will never resolve them (Trace 1). Both are silent: no error surfaces at the protocol layer, because both the replay and the 404 are individually well-formed. The blast radius is bounded only by whether the ..."
  },
  "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": "e617f15044efe6a92df651005c17cf8c9b5da4fa2b86b1a7c9c0126b9e34e8e4",
    "verified_classes": [
      "SplitBrainElicitationError",
      "Elicitation",
      "ReattachContext"
    ],
    "verified_functions": [
      "answer_elicitation",
      "handle_reattach"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SplitBrainElicitationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
