{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-resumable-sse-stream-has-silently-forked-past-its-last-event-id-watermark",
  "title": "What structural signals indicate an MCP resumable-SSE stream has silently forked past its Last-Event-ID watermark",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers using HTTP-native streamable transport with `Last-Event-ID`-based SSE resumption and session resumption tokens, where a single logical session is reattached across multiple HTTP connections. Does not apply to stdio transport or to non-resumable one-shot SSE streams.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-resumable-sse-stream-has-silently-forked-past-its-last-event-id-watermark.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-resumable-sse-stream-has-silently-forked-past-its-last-event-id-watermark.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-resumable-sse-stream-has-silently-forked-past-its-last-event-id-watermark.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2396,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an SSE resumption can \"succeed\" from the client's point of view. The first is *replay*: the server holds an authoritative event log for the session and, given `Last-Event-ID: N`, emits exactly events `N+1, N+2, …` in order. The second is *re-emission*: the server does not have the exact event at index `N` (it was evicted, the buffer rotate...",
    "what_was_observed": "A tool-calling agent maintained a long-running MCP session across a flaky mobile-adjacent network path. Each tool invocation result arrived as an SSE `message` event with a monotonically increasing `id`. When the connection dropped mid-tool-call (after the server had emitted `id: 41` but before the client's TCP ACK propagated), the client reconnected with `Last-Event-ID: 41` and the session resumption token. The serv...",
    "condition_of_validity": "The invariant that makes resumable SSE safe is: **a resumption is valid only if the server can prove it holds the event at `Last-Event-ID` and can emit a contiguous successor.** This requires three conditions to hold simultaneously: 1. **Cursor binding.** The session resumption token must encode the last acknowledged event ID, and the server must verify that...",
    "decision_boundary": "The boundary is between **transparent resumption** and **state reconciliation**. Transparent resumption is safe only when the event log is authoritative and contiguous. When it is not, the client must be forced into reconciliation — re-deriving its view of session state from a server-provided snapshot, with an explicit marker that prior events are no longer ...",
    "operational_effect": "The downstream effect of a missed fork is **tool-call result misattribution under retry**. Because the agent's event ledger is the substrate for reasoning about which tool calls completed, a silent fork causes the agent to either (a) re-issue a tool call whose result was already incorporated into the server's snapshot state, producing a duplicate side effect..."
  },
  "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": "cf29d86959f57d7fc9c20049f419b273f9e510ac4672daf889468ccd6cd90ec9",
    "verified_classes": [
      "ResumptionForkError",
      "SessionToken"
    ],
    "verified_functions": [
      "issue_token",
      "verify_resumption",
      "on_reconnect"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumptionForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
