{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-mcp-streamable-session-resumption-against-sse-to-stateless-fallback-without-re-admitting-replayed-tool-effects",
  "title": "Where must an instance reconcile MCP streamable-session resumption against SSE-to-stateless fallback without re-admitting replayed tool effects",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP clients and servers negotiating the HTTP-native transport, specifically the transition from a streamable SSE session (with `Mcp-Session-Id` and `Last-Event-ID` resumption) to a stateless request/response fallback when the server refuses or cannot honor resumption. Does not cover stdio transport, in-process transports, or WebSocket variants.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-session-resumption-against-sse-to-stateless-fallback-without-re-admitting-replayed-tool-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-session-resumption-against-sse-to-stateless-fallback-without-re-admitting-replayed-tool-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-session-resumption-against-sse-to-stateless-fallback-without-re-admitting-replayed-tool-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2118,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped\" and it is not \"the session expired.\" It is the **semantic gap between two transport modes that share one JSON-RPC surface but disagree on what a replayed request means.** In a streamable SSE session, an `id` on a JSON-RPC request is a *deduplication key scoped to the session*. The server is permitted to have already di...",
    "what_was_observed": "A client holds a streamable session with `Mcp-Session-Id: s_7f3a`. It issues `tools/call` for `filesystem.write` with JSON-RPC `id: 42`, arguments pointing at `/var/agent/checkpoint.json`. The server accepts the request, begins executing, and streams a `notifications/progress` event (`event: progress`, `id: 118`). The TCP connection is then severed by an intermediate LB idle timeout — not by the server, not by the cl...",
    "condition_of_validity": "The re-execution hazard is bounded and can be reasoned about only under the following conditions: - The client distinguishes **resumable** from **non-resumable** requests by whether the tool is declared idempotent. MCP does not carry an idempotency annotation on `tools/call` by default; the client must supply one out-of-band (tool metadata, a capability exte...",
    "decision_boundary": "The boundary is a single predicate evaluated at the moment the client receives `404` (or any session-invalidating response) while holding an in-flight request: The non-obvious case is the third branch. A naive client treats \"I saw progress\" as \"the server has it\" and *does not re-execute*, then waits forever for a result that will never arrive because the se...",
    "operational_effect": "When the predicate is implemented, the operational signature changes in three ways: 1. **Checkpoint files stop corrupting.** Non-idempotent writes that hit the fallback boundary raise `IndeterminateEffectError` instead of double-writing. The agent's task loop catches this, marks the step as needing reconciliation, and re-reads the target before retrying — tu..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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": "a7ecd293ddbc58fd2190aeabdafc18b5dce1e553b8d20490eea3959973aa3c65",
    "verified_classes": [
      "IndeterminateEffectError",
      "Observation",
      "InFlightRequest"
    ],
    "verified_functions": [
      "resolve_on_session_loss",
      "handle_session_404",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IndeterminateEffectError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
