{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-an-mcp-elicitation-response-arriving-on-a-resumed-sse-stream-as-unsolicited-rather-than-as-the-reply-to-its-o",
  "title": "In what scenarios must an instance treat an MCP elicitation response arriving on a resumed SSE stream as unsolicited rather than as the reply to its own outstanding request",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP clients using HTTP-native transport where server-initiated `elicitation/create` requests are delivered over a long-lived SSE stream that supports resumption via `Last-Event-ID`, and where the client multiplexes multiple in-flight elicitation requests. Does not apply to stdio transports, to stateless request/response transports without server-initiated channels, or to single-in-flight clients that serialize elicitations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-elicitation-response-arriving-on-a-resumed-sse-stream-as-unsolicited-rather-than-as-the-reply-to-its-o.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-elicitation-response-arriving-on-a-resumed-sse-stream-as-unsolicited-rather-than-as-the-reply-to-its-o.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-an-mcp-elicitation-response-arriving-on-a-resumed-sse-stream-as-unsolicited-rather-than-as-the-reply-to-its-o.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2107,
    "python_slice_tokens": 448,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **stream identity** and **request identity**. SSE resumption gives the client a guarantee about *which bytes on which stream* it has already observed; it says nothing about *which outstanding elicitation request* a given `elicitation/create` message is answering. In the HTTP-native MCP transport, the server opens an SS...",
    "what_was_observed": "A client instance maintained an in-memory map `outstanding: dict[RequestId, ElicitationSlot]` populated when it *sent* an elicitation-bearing tool call and expected the server to open an elicitation. On network flap, the SSE GET leg reconnected with `Last-Event-ID: 4471`. The server, which had buffered events but had *not* durably persisted the client's POSTed answer to elicitation `req-88` (it had been received but ...",
    "condition_of_validity": "The invariant that makes elicitation-over-resumed-SSE safe is: **an elicitation `id` is answered at most once per logical request, and the client can distinguish a replay from a fresh request without relying on the transport's replay semantics alone.** This holds only when the client persists, alongside each outstanding slot, a monotonic *answer epoch* and t...",
    "decision_boundary": "The decision boundary is drawn at **correlation certainty**. If the client can prove, from persisted state, that an elicitation `id` was already answered (answer epoch present and POST acknowledged), any re-delivery is a replay → idempotent cached response, no re-prompt. If the client can prove the `id` was *never* seen (no slot, watermark advanced past crea...",
    "operational_effect": "Bounding this invariant changes three things. First, elicitation slots become durable state, not in-memory state: they survive cold start, so a restarted instance can distinguish replay from unsolicited. Second, the client's POST path becomes idempotent — every answer carries its epoch, and the server deduplicates on `(id, epoch)` — so a lost ack no longer p..."
  },
  "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": "669211d71a2103260ffdc1e8dfdd5858f4bc95405e4ada0a045774ea1b7fc73a",
    "verified_classes": [
      "ElicitationCorrelationError",
      "SlotState",
      "ElicitationSlot",
      "ResumedStream"
    ],
    "verified_functions": [
      "resume_and_dispatch",
      "handle_incoming",
      "_prompt_and_record"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ElicitationCorrelationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
