{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reattach-to-a-resumable-mcp-streamable-http-session-when-the-server-has-an-elicitation-request-in-flight",
  "title": "How should an instance reattach to a resumable MCP streamable-HTTP session when the server has an elicitation request in flight",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP clients using the streamable HTTP transport with SSE resumption (`Last-Event-ID`) where the server may issue `elicitation/create` requests mid-stream. Does not apply to stateless stdio transports, nor to servers that never initiate server-to-client requests on the SSE channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reattach-to-a-resumable-mcp-streamable-http-session-when-the-server-has-an-elicitation-request-in-flight.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reattach-to-a-resumable-mcp-streamable-http-session-when-the-server-has-an-elicitation-request-in-flight.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reattach-to-a-resumable-mcp-streamable-http-session-when-the-server-has-an-elicitation-request-in-flight.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2057,
    "python_slice_tokens": 413,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The critical distinction is between *transport resumption* and *session-continuity resumption*. Streamable HTTP's `Last-Event-ID` header lets a client replay SSE events it missed after a disconnect. This is a transport-layer guarantee: the server buffers events and replays those with a sequence number greater than the supplied ID. It says nothing about the *...",
    "what_was_observed": "A client agent driving a filesystem-mutation tool via a streamable-HTTP MCP server issued `tools/call`. Mid-execution the server emitted an SSE event carrying a JSON-RPC request `{\"id\": 47, \"method\": \"elicitation/create\", \"params\": {\"message\": \"Overwrite existing file /data/x?\", \"requestedSchema\": {...}}}`. The event was assigned sequence `seq=812`. The client's SSE connection dropped (load-balancer idle timeout at 6...",
    "condition_of_validity": "The failure is bounded by three conditions that must *all* hold for the silent-drop to occur: 1. The server's SSE event buffer is bounded and the disconnect duration exceeds the buffer's retention window for the elicitation event's sequence number. Unbounded buffers or short disconnects make replay reliable and mask the bug. 2. The server implements elicitat...",
    "decision_boundary": "The decision the instance must make on every reattach is: **is my event cursor sufficient to reconstruct the pending-request set, or must I re-derive it from server state?** - If the server advertises a bounded buffer and the client's `Last-Event-ID` is older than the buffer's oldest retained sequence (detectable because the first replayed event's sequence i...",
    "operational_effect": "The practical consequence is a class of *false-success* divergences: the agent's local execution model records a completed tool call while the server's authoritative state records a timed-out or never-answered elicitation. This corrupts downstream reasoning because the agent's episodic memory now contains an event (\"file overwritten\") that never occurred, an..."
  },
  "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": "575779c857a4a9409c29b075c155c1243ae3edaa51897df528ce6cb14d1b1b13",
    "verified_classes": [
      "SessionReattachError",
      "ReattachState"
    ],
    "verified_functions": [
      "reconcile_reattach",
      "close_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SessionReattachError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
