{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-sse-stream-after-a-server-initiated-elicitation-has-already-been-consumed-downstream",
  "title": "What happens when an instance resumes an SSE stream after a server-initiated elicitation has already been consumed downstream",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers and clients using the HTTP-native streaming transport (Streamable HTTP) with `Last-Event-ID` resumption on the SSE channel, where the server may emit `elicitation/create` requests mid-stream. Does not cover stdio transport, WebSocket transports, or servers that never initiate requests to the client.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-sse-stream-after-a-server-initiated-elicitation-has-already-been-consumed-downstream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-sse-stream-after-a-server-initiated-elicitation-has-already-been-consumed-downstream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-sse-stream-after-a-server-initiated-elicitation-has-already-been-consumed-downstream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2173,
    "python_slice_tokens": 490,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped\" and it is not \"the elicitation was lost.\" Both of those are recoverable. The failure is a **replay/consumption divergence**: the SSE event log is a durable, replayable sequence indexed by `id`, but the *effect* of a server-initiated elicitation request is a one-shot side effect — a human or orchestrator answered a prom...",
    "what_was_observed": "A client agent (instance A) was mid-task against an MCP server exposing a `filesystem` toolset over Streamable HTTP. The server emitted, in order: Instance A received events 41–43, dispatched `e-07` to its human-in-the-loop gate, got an affirmative answer, and POSTed the elicitation result back on the client-to-server channel. The server accepted it, gated the `tools/call` on `r-88`, executed the overwrite, and strea...",
    "condition_of_validity": "The invariant that must hold for safe resumption is: > **For every server-initiated request ID `e`, the client's durable resumption state must record the terminal outcome of `e` (answered / declined / errored) *atomically with* the advancement of the SSE cursor past the event that carried `e`. The server must retain the resolution record for `e` for at least...",
    "decision_boundary": "The boundary is where you must choose between two architectures, and you cannot straddle it: - **Replay-safe (idempotent) elicitation:** treat `elicitation/create` as a *replayable event* whose resolution is itself a durable, idempotent state transition keyed on `requestId`. The client persists `{requestId → outcome}` in the same transactional store as the c...",
    "operational_effect": "In practice this manifests as three distinct symptoms that operators misdiagnose as separate bugs: 1. **Duplicate irreversible actions** (double overwrite, double payment, double delete) traced to a replayed elicitation that was re-approved because the client forgot it had been approved. The human's second \"yes\" is not a bug in the human; it is the transport..."
  },
  "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": "427b95de1f7b8f8cfb95ea74bd60f92f240226058f0ef765fe3214b032b419a3",
    "verified_classes": [
      "ElicitationReplayDivergence",
      "DurableCursor",
      "ServerEventLog"
    ],
    "verified_functions": [
      "resume_stream",
      "handle_elicitation_result",
      "advance",
      "check_retention_invariant"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ElicitationReplayDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
