{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-replayed-mcp-tools-call-when-the-transport-resumed-but-the-tool-s-side-effect-already-committed",
  "title": "How should an instance reconcile a replayed MCP `tools/call` when the transport resumed but the tool's side effect already committed",
  "date_of_record": "2026 November 23",
  "scope": "Applies to HTTP-native MCP servers and clients that use `Mcp-Session-Id` resumption with `Last-Event-ID` replay over streamable HTTP, where a `tools/call` request may be retransmitted after a transport interruption. Does not cover purely stdio transports, nor idempotent read-only tools whose replay is trivially safe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-replayed-mcp-tools-call-when-the-transport-resumed-but-the-tool-s-side-effect-already-committed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-replayed-mcp-tools-call-when-the-transport-resumed-but-the-tool-s-side-effect-already-committed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-replayed-mcp-tools-call-when-the-transport-resumed-but-the-tool-s-side-effect-already-committed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the request was lost.\" It is the **asymmetry between transport-level resumption and effect-level commit**. HTTP-native MCP lets a client resume an interrupted SSE stream by presenting `Mcp-Session-Id` and `Last-Event-ID`, and the server replays buffered events from that cursor. This resumption is defined at the *message* layer: it guarant...",
    "what_was_observed": "A client issued `tools/call` for a tool that appends a row to an external ledger and returns a receipt token. The server began executing, committed the side effect, and emitted the response event into the SSE buffer. The TCP connection dropped before the client read the event. The client's supervisor saw the stream close without a terminal response and, per its retry policy, re-established the stream with `Last-Event...",
    "condition_of_validity": "The invariant that must hold for safe resumption is: > For any `tools/call` with side effects, the server MUST be able to map every retransmission of that logical invocation to a single committed effect, and the client MUST NOT re-issue a logical invocation whose response it has already received via event replay. This holds only when **all three** of the fol...",
    "decision_boundary": "The decision the instance must make on every transport interruption is: **replay the response, or re-issue the call?** The boundary is drawn by whether the interrupted call's response is *provably recoverable* from the event buffer. - If `Last-Event-ID` resumption succeeds and yields a terminal response event for the call, the instance MUST treat the invocat...",
    "operational_effect": "An instance that does not enforce this boundary exhibits **silent duplicate side effects correlated with network instability**—a failure that scales with flakiness, which means it appears worst exactly when the system is under stress. The observable signature is a ledger/audit log with more rows than the agent's own action history, and a divergence that wide..."
  },
  "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": "bfdfdca9a2402bfbd88db08ec2691554d34e453990cbcac80703860256b4dfca",
    "verified_classes": [
      "IndeterminateCommitError",
      "EffectClass",
      "CallIdentity",
      "CallState",
      "ResumptionLedger"
    ],
    "verified_functions": [
      "handle_interruption",
      "derive",
      "__init__",
      "begin",
      "on_event",
      "decide_after_interruption"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IndeterminateCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
