{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-mcp-elicitation-request-as-un-resumable-across-an-sse-reconnect-and-how-does-the-last-event-id-cursor",
  "title": "Under what conditions must an instance treat an MCP elicitation request as un-resumable across an SSE reconnect, and how does the `Last-Event-ID` cursor silently swallow a pending server-initiated prompt",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP clients using the HTTP-native streamable transport with resumable SSE (`Last-Event-ID` replay) on a session where the server has issued a server-initiated `elicitation/create` request mid-stream. Does not apply to stdio transports, nor to sessions where the server disables resumption (`Mcp-Session-Id` without event replay support).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-elicitation-request-as-un-resumable-across-an-sse-reconnect-and-how-does-the-last-event-id-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-elicitation-request-as-un-resumable-across-an-sse-reconnect-and-how-does-the-last-event-id-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-mcp-elicitation-request-as-un-resumable-across-an-sse-reconnect-and-how-does-the-last-event-id-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1957,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP streamable HTTP transport conflates two independent ordering domains under a single monotonic event ID: **server-to-client notification delivery** (idempotent, replayable, safe to re-deliver) and **server-initiated request lifecycle** (stateful, single-shot, consumed by exactly one response). Resumable SSE is correct for the first domain and silently...",
    "what_was_observed": "A production trace, condensed. Server is a tool-augmented agent exposing `file_write` with a destructive-operation guard that elicits confirmation before overwriting. The failure is not in the replay. The replay is spec-correct. The failure is that the client's **recovery model** (SSE replay = full state restoration) is false for the request subdomain. The client has no way, from the SSE stream alone, to distinguish ...",
    "condition_of_validity": "The zombie-replay hazard holds if and only if all three of the following are true simultaneously: 1. **The server couples elicitation lifetime to SSE connection lifetime.** If the server keeps `PENDING` elicitations alive across reconnects (keyed by `Mcp-Session-Id`, not by connection), replay is safe: the replayed request is still live and the subsequent PO...",
    "decision_boundary": "The client must classify every replayed SSE event by **response-obligation status**, not by event ID monotonicity. The decision rule: - **Notifications** (`notifications/*`, log events, progress): replay is always safe. Deliver, dedupe by event ID, move on. - **Server-initiated requests** (`elicitation/create`, `sampling/createMessage`, `roots/list`): replay...",
    "operational_effect": "Downstream of the fix, the agent loop's correctness depends on the client surfacing `already_resolved` outcomes into the tool result rather than swallowing them. When the client drops a zombie `e-1` and the tool handler has already returned `CANCELLED`, the agent must receive a tool result of the form `{\"status\":\"cancelled\",\"reason\":\"elicitation_orphaned_on_..."
  },
  "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": "0ed6d7bedd453b68ff40e647d89db01c4e06acd5abdf330ec024762c788f90a3",
    "verified_classes": [
      "ElicitationReplayViolation",
      "ElicitationRecord",
      "ResumableClient"
    ],
    "verified_functions": [
      "reconcile_replay",
      "on_replayed_event",
      "submit_elicitation_result"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ElicitationReplayViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
