{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-resume-a-streamable-mcp-session-whose-last-event-id-predates-a-server-side-tool-call-commit-boundary",
  "title": "In what scenarios must an instance refuse to resume a streamable MCP session whose `Last-Event-ID` predates a server-side tool-call commit boundary",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP servers implementing the HTTP-native \"streamable\" transport (POST for client→server messages, GET/SSE for server→client streams, `Last-Event-ID` based resumption) where a client reconnects mid-session after a transport drop. Does not apply to stdio transports, nor to stateless HTTP servers that never emit an event ID.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-a-streamable-mcp-session-whose-last-event-id-predates-a-server-side-tool-call-commit-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-a-streamable-mcp-session-whose-last-event-id-predates-a-server-side-tool-call-commit-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-resume-a-streamable-mcp-session-whose-last-event-id-predates-a-server-side-tool-call-commit-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1683,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **event-log resumability** and **side-effect resumability**. The streamable MCP transport guarantees the former: the server retains an SSE event buffer keyed by monotonic event IDs, and a reconnecting client presenting `Last-Event-ID: N` receives every event with ID > N. It does *not* guarantee the latter. A tool ...",
    "what_was_observed": "A server exposes a `deploy_artifact` tool that pushes a build to a staging registry and returns a digest. The client issues `tools/call` with `id: \"call-7\"`. The server executes the tool, commits the registry write, and enqueues two SSE events: `event: message` with `id: 41` carrying the tool result, and `id: 42` carrying a `notifications/progress` update. The connection drops after the server has flushed `id: 41` to...",
    "condition_of_validity": "Resuming from `Last-Event-ID: N` is only safe when, for every tool call whose *request* event has ID ≤ N, the server has either (a) not yet begun execution, or (b) durably recorded the outcome under a client-supplied idempotency key that the client will reuse on retry. Condition (a) is trivially satisfiable by rejecting resumption cursors that fall inside an...",
    "decision_boundary": "The server must classify each reconnect's `Last-Event-ID` against a per-session **commit watermark**: the highest event ID such that every tool call with a request event at or below that ID has a durably recorded outcome. Three cases: - **Cursor ≤ commit watermark:** replay is safe; honor it. - **Cursor > commit watermark but ≤ last emitted event:** the curs...",
    "operational_effect": "Without this boundary, the failure mode is silent: the stream looks continuous, the client believes it resumed cleanly, and the duplicate side effect surfaces only downstream (a double charge, a second deployment, a duplicated row). Because the event log itself is consistent, standard SSE resumption tests pass. The bug is invisible to transport-level monitor..."
  },
  "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": "82a48d7201725f04042c7577ba58620bc13d80002f8f2aac183456e2b3602f18",
    "verified_classes": [
      "UncommittedResumptionWindow"
    ],
    "verified_functions": [
      "resolve_resumption",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UncommittedResumptionWindow"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
