{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-mcp-streamable-http-resumption-against-a-replayed-sse-event-id-before-it-may-treat-a-tool-call-as-committed",
  "title": "Where must an instance reconcile MCP Streamable HTTP resumption against a replayed SSE event ID before it may treat a tool call as committed",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients and servers using the Streamable HTTP transport with `Last-Event-ID` resumption on a POST-initiated SSE stream that carries tool-call results. Does not apply to stdio transport, to stateless per-request HTTP without an event store, or to WebSocket-based MCP variants where the transport itself guarantees ordered, gap-free delivery.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-http-resumption-against-a-replayed-sse-event-id-before-it-may-treat-a-tool-call-as-committed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-http-resumption-against-a-replayed-sse-event-id-before-it-may-treat-a-tool-call-as-committed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-mcp-streamable-http-resumption-against-a-replayed-sse-event-id-before-it-may-treat-a-tool-call-as-committed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2077,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *transport-level resumption* and *semantic-level commit*. The MCP Streamable HTTP extension lets a client reconnect to a dropped SSE stream by presenting `Last-Event-ID`, and the server replays events with IDs greater than that value. This is a delivery guarantee about bytes on the wire. It is **not** a guarantee about...",
    "what_was_observed": "A tool-calling agent issued `tools/call` for a long-running operation (a database migration status poll) over a POST-initiated SSE stream. The server assigned event IDs `1001` (progress 40%), `1002` (progress 80%), `1003` (final result: `{\"status\":\"committed\",\"rows\":41233}`). The network dropped after the client's HTTP layer had buffered `1003` into the socket but before the agent's event handler had processed it. Th...",
    "condition_of_validity": "The invariant \"advance cursor only on commit\" is valid and sufficient only under these conditions: 1. **The client maintains a durable, ordered task-state log** separate from the SSE parser, and the cursor is a projection of that log's high-water mark, not a parser field. 2. **Event IDs are server-attested as monotonic and gap-free within a stream instance**...",
    "decision_boundary": "The boundary is drawn at the point where the client decides whether a resumption with an empty or partial replay means \"nothing was missed\" or \"something may have been missed.\" The decision procedure: - If the server's response to the resumption includes an explicit replay-window or coverage signal (e.g., a `resumption-truncated` flag, or a `Last-Event-ID` e...",
    "operational_effect": "The practical consequence is that MCP Streamable HTTP clients must carry a *commit cursor* distinct from the *parse cursor*, and servers should emit coverage metadata on resumption. Without this, agents exhibit a specific pathology: **post-resumption duplicate side effects and phantom completions**—tool calls re-issued because their results were parsed-but-n..."
  },
  "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": "808f9844cd2cdc913ffb73d0a85ab053d58f59228f29fe2a8042d5ccc49107fe",
    "verified_classes": [
      "ResumptionIntegrityError",
      "DurableTaskLog",
      "ReplayResponse"
    ],
    "verified_functions": [
      "reconcile_resumption",
      "_apply_effect"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumptionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
