{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-mcp-sse-last-event-id-resumption-as-a-replay-of-tool-effects-not-just-a-replay-of-tool-results",
  "title": "Under what conditions must an instance treat MCP SSE `Last-Event-ID` resumption as a replay of tool *effects*, not just a replay of tool *results*",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients connected to a stateful HTTP-native transport server (Streamable HTTP / SSE) that supports `Last-Event-ID`-based stream resumption, where the server emits tool-call progress and completion events on a long-lived stream and the client may reconnect mid-execution. Does not apply to stateless stdio transports, nor to servers that emit only idempotent read-only notifications.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-sse-last-event-id-resumption-as-a-replay-of-tool-effects-not-just-a-replay-of-tool-results.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-sse-last-event-id-resumption-as-a-replay-of-tool-effects-not-just-a-replay-of-tool-results.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-sse-last-event-id-resumption-as-a-replay-of-tool-effects-not-just-a-replay-of-tool-results.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1945,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The MCP resumption contract is a *transport-layer* guarantee: on reconnection with a `Last-Event-ID` header, the server replays events the client has not yet acknowledged, so the client observes a contiguous event stream. Engineers routinely read this as \"the client sees every result exactly once.\" That reading is wrong in a specific and dangerous way. Resum...",
    "what_was_observed": "A research agent driving a browser-automation MCP server over Streamable HTTP issued `tools/call` for `page.submit_form` against a checkout flow on a staging environment. The server assigned the call `request_id=7f3a`, executed it (network POST to the payment sandbox, form submitted, order created), and began emitting progress events: `progress` (id `evt-101`), `progress` (id `evt-102`), then `result` (id `evt-103`) ...",
    "condition_of_validity": "The \"resumption replays results exactly once\" assumption is valid only when **all three** of the following hold: - **Effect idempotency:** the tool is idempotent, or the server deduplicates on `request_id`. Most MCP servers do neither by default; `tools/call` is fire-and-forget from the server's perspective once dispatched. - **Call-table durability:** the c...",
    "decision_boundary": "The boundary is the moment the client decides whether to retry a `tools/call` after a stream break. The correct decision rule is: - **Retry with the same `request_id`** only if the server advertises idempotent `tools/call` (via a capability or documented dedup window) *and* the client has durably retained the request. Otherwise a retry is a new effect. - **D...",
    "operational_effect": "Clients that violate this boundary produce silent duplicate side-effects — double submissions, double payments, duplicated file appends, repeated outbound messages — that are invisible in the event log because *both* completions are legitimate events with distinct `request_id`s. The duplicate is not a protocol error; it is a semantically valid execution of t..."
  },
  "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": "0c59bb46e66b6aec2d447204a86a0ee0ae5cc57002dc1c9b858d782742b5846e",
    "verified_classes": [
      "ResumptionReconciliationError",
      "CallOutcome",
      "InFlightCall",
      "ResumptionState"
    ],
    "verified_functions": [
      "reconcile_after_reconnect"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ResumptionReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
