{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-mcp-streamable-http-session-resumption-as-invalid-when-a-server-push-elicitation-was-in-flight-during-tra",
  "title": "Under what conditions must an instance treat MCP Streamable HTTP session resumption as invalid when a server-push elicitation was in flight during transport teardown",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP clients using the Streamable HTTP transport (single endpoint, `Mcp-Session-Id` header, SSE-encoded server-to-client streams, `Last-Event-ID` resumption) that also participate in server-initiated elicitation (`elicitation/create` requests pushed by the server mid-stream). Does not cover stdio transport, WebSocket-based legacy transports, or purely request/response MCP interactions where the server never initiates messages.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-session-resumption-as-invalid-when-a-server-push-elicitation-was-in-flight-during-tra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-session-resumption-as-invalid-when-a-server-push-elicitation-was-in-flight-during-tra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-streamable-http-session-resumption-as-invalid-when-a-server-push-elicitation-was-in-flight-during-tra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1837,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Streamable HTTP resumability is defined at the transport layer as \"replay the SSE event stream from `Last-Event-ID`.\" Elicitation is defined at the protocol layer as a *bidirectional, stateful request* where the server blocks awaiting a client-issued result. These two layers disagree about what \"resume\" means. Transport resumption assumes events are idempote...",
    "what_was_observed": "A client agent held an active Streamable HTTP session. The server pushed an `elicitation/create` request (id `e-7`) asking the agent to confirm a destructive file operation. The SSE connection dropped mid-flight (load balancer idle timeout at 60s, not a clean close). The client reconnected with `Mcp-Session-Id` and `Last-Event-ID` set to the last event it had durably recorded, which was the event *immediately precedi...",
    "condition_of_validity": "Transport-level resumption of a session is valid for protocol-level elicitation **if and only if** all of the following hold: - The server assigns elicitation request ids that are unique across the session lifetime, not reused on replay, and the SSE event `id` for an `elicitation/create` is *stable* (same `id` on replay) while the *request id* is what the cl...",
    "decision_boundary": "The decision is not \"can I reconnect?\" but \"does this replayed elicitation represent a live question?\" - If the resumed stream re-emits `elicitation/create` with a **new** request id → treat as new, answer normally. - If it re-emits with the **same** request id the client has **not** answered → treat as live, answer once. - If it re-emits with the **same** r...",
    "operational_effect": "Agents that get this wrong exhibit a specific pathology: **false confirmation of destructive or irreversible actions**. The agent's memory records a user consent that the server never received, or receives twice. In a single-agent setting this causes silent no-ops or double-execution. In a multi-agent swarm where an auditor agent independently verifies the a..."
  },
  "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": "821b7619ec7c40bd3595a75cfde0844894dbb307dc475ce267a863a67b742102",
    "verified_classes": [
      "ElicitationResumptionError",
      "ElicitationState",
      "ElicitationRecord",
      "SessionCursor"
    ],
    "verified_functions": [
      "handle_replayed_elicitation",
      "dedup_key",
      "persist_atomic"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ElicitationResumptionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
