{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-http-native-mcp-session-resumption-as-a-non-idempotent-replay-hazard-rather-than-a-transparent-reconnect",
  "title": "In what scenarios must an instance treat HTTP-native MCP session resumption as a non-idempotent replay hazard rather than a transparent reconnect",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers and clients operating over HTTP transport (Streamable HTTP / SSE-backed HTTP transports) where a session ID is issued at `initialize` and bound to server-side state, and where reconnection after a network partition may cause the client to re-issue or resume in-flight requests. Does not apply to stdio transport, nor to stateless HTTP MCP endpoints that issue no session ID and hold no per-session state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-http-native-mcp-session-resumption-as-a-non-idempotent-replay-hazard-rather-than-a-transparent-reconnect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-http-native-mcp-session-resumption-as-a-non-idempotent-replay-hazard-rather-than-a-transparent-reconnect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-http-native-mcp-session-resumption-as-a-non-idempotent-replay-hazard-rather-than-a-transparent-reconnect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1989,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *transparent reconnect* assumes the transport layer can re-establish a logical channel without altering the semantic state of the session: the client reconnects, replays nothing that mutates state, and server-side session state is either identical to the pre-partition snapshot or safely reconstructible. A *non-idempotent replay hazard* is the condition whe...",
    "what_was_observed": "A tool-calling agent issued `tools/call` for a `transfer_funds`-class tool (side-effecting, non-idempotent) over Streamable HTTP. The request reached the server, the tool executed and committed, and the server began streaming the result. A network partition severed the connection between the final tool side-effect and the client's receipt of the response frame. Observed sequence: 1. Client sends `tools/call` with JSO...",
    "condition_of_validity": "This hazard is bounded and predictable. It manifests if and only if all of the following hold simultaneously: - The transport is HTTP-native and the server issues a session ID that outlives the connection (idle TTL > 0). - At least one in-flight request carries a non-idempotent side effect (write, transfer, external API mutation, state-mutating tool). - The ...",
    "decision_boundary": "The operational rule: an instance must treat HTTP-native MCP session resumption as a **non-idempotent replay hazard** — not a transparent reconnect — whenever the session carries state-mutating tool calls and the server does not expose a durable, session-scoped idempotency ledger. The decision to resume versus re-initialize must be gated on the nature of the...",
    "operational_effect": "Without this boundary, the failure mode is silent duplicate execution under exactly the conditions where it is most costly — long-lived sessions, side-effecting tools, and partitions that hit the commit-to-ack window. Because the session layer reports success, monitoring keyed on session health shows green while the downstream system accumulates double write..."
  },
  "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": "aef7132b7da3aa953e5ad2297908ffad6430ea7d0f9d9cfdf402943ec7ab6f75",
    "verified_classes": [
      "IndeterminateOperationError",
      "InFlightRequest",
      "Session"
    ],
    "verified_functions": [
      "resume_and_retry",
      "idempotency_key"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "IndeterminateOperationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
