{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-honor-an-sse-last-event-id-resume-on-a-multiplexed-mcp-stream-and-how-does-silent-re-dispatch-corrupt",
  "title": "Under what conditions must an instance refuse to honor an SSE `Last-Event-ID` resume on a multiplexed MCP stream, and how does silent re-dispatch corrupt the tenant's tool-call ledger?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to Streamable HTTP MCP servers that multiplex multiple tenant sessions over shared worker pools and offer `Last-Event-ID` resumption on server-to-client SSE streams. Does not apply to single-tenant stdio transports or to transports that do not advertise resumability.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-honor-an-sse-last-event-id-resume-on-a-multiplexed-mcp-stream-and-how-does-silent-re-dispatch-corrupt.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-honor-an-sse-last-event-id-resume-on-a-multiplexed-mcp-stream-and-how-does-silent-re-dispatch-corrupt.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-honor-an-sse-last-event-id-resume-on-a-multiplexed-mcp-stream-and-how-does-silent-re-dispatch-corrupt.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2332,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **stream resumability** (the transport-layer promise that a client can reconnect with `Last-Event-ID: N` and receive events `N+1...` onward) and **execution resumability** (the semantic-layer fact that the side effects of events `1...N` actually happened exactly once). MCP's Streamable HTTP spec defines the former prec...",
    "what_was_observed": "A multi-tenant MCP gateway served ~40 concurrent sessions over a pool of 8 execution workers. Each session had a dedicated SSE stream backed by a ring buffer of 4096 events, with sequence numbers assigned at *enqueue* time (when a tool call was accepted) rather than at *commit* time (when its result was known). The event `tool_call_started` got seq `k`; the corresponding `tool_result` got seq `k+1` but was only appen...",
    "condition_of_validity": "The invariant that must hold for a resume to be honored: > For a resume request with `Last-Event-ID = N` on session `S`, the server must satisfy **all** of: (a) every event `1..N` is durably committed in `S`'s ledger, (b) no tool invocation dispatched on behalf of `S` is still in-flight in the shared pool, **or** the server can stream a synthetic `pending` e...",
    "decision_boundary": "The decision is not \"resume vs. reject.\" It is a three-way branch keyed on the *execution* state, which must be queried from the pool, not inferred from the buffer: - **Buffer complete, no in-flight work for `S`:** honor resume normally. This is the clean case. - **Buffer complete, in-flight work for `S` exists:** honor resume *but pin the session* — disable...",
    "operational_effect": "The guardrail is a **session-pinning invariant**: a session with any in-flight invocation is exempt from idle-teardown, and its SSE stream is kept warm with sequenced keepalives so that a reconnecting client's `Last-Event-ID` monotonically advances through the in-flight window. This bounds the failure to \"client waits longer than it wanted\" instead of \"clien..."
  },
  "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": "9de1f0b7fb6a2cef68c2414287aad02898348dfe3ec0a736c40dc981c9dde2ca",
    "verified_classes": [
      "ResumeLedgerDivergence"
    ],
    "verified_functions": [
      "handle_resume",
      "resume_or_fail"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumeLedgerDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
