{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-resuming-an-mcp-streamable-http-session-silently-accept-a-replayed-event-batch-from-a-rotated-server-endpoint",
  "title": "Why does an instance resuming an MCP streamable-HTTP session silently accept a replayed event batch from a rotated server endpoint?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP streamable-HTTP transports where the client persists a session identifier plus a `Last-Event-ID` cursor and resumes across server restarts, endpoint rotations, or load-balancer rebalancing. Does not apply to pure stdio transports, nor to sessions that never resume after a transport drop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-resuming-an-mcp-streamable-http-session-silently-accept-a-replayed-event-batch-from-a-rotated-server-endpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resuming-an-mcp-streamable-http-session-silently-accept-a-replayed-event-batch-from-a-rotated-server-endpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-resuming-an-mcp-streamable-http-session-silently-accept-a-replayed-event-batch-from-a-rotated-server-endpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2234,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the resume request was rejected\" (that is the healthy case) and not \"the resume request lost events\" (that is a detectable gap). The failure is that the resume **succeeded** — the server returned HTTP 200 on the SSE stream, emitted a batch of events starting from a plausible `Last-Event-ID`, and the client fed those events into the agent'...",
    "what_was_observed": "A long-running agent session drove a tool-calling loop against an MCP server fronted by a four-replica deployment behind a round-robin load balancer with no session affinity. The client persisted `{session_id, last_event_id}` to local checkpoint storage after each event batch. Mid-task, the SSE connection dropped (replica restart during a rolling deploy). The client reconnected with the persisted cursor. The load bal...",
    "condition_of_validity": "The invariant that must hold for a resume to be safe is: > A `Last-Event-ID` cursor is only meaningful relative to the event namespace of the server instance that issued it, and the client must be able to prove the resuming server shares that namespace before trusting any replayed or subsequent event. Concretely, safe resumption requires all of: - **Epoch bi...",
    "decision_boundary": "The boundary the operator must draw is between **recoverable resume** and **session reset**, and it must be decided by evidence, not by the server's willingness to open a stream. - If the resuming server presents the same epoch as the checkpoint → resume is valid; apply within-epoch dedup; continue. - If the resuming server presents a different epoch, or can...",
    "operational_effect": "The operational consequence is that resumable streamable-HTTP sessions are **not** a durability mechanism unless the transport is augmented with epoch binding. Teams that treat `Last-Event-ID` as a reliable cursor inherit a class of silent context corruption that only manifests as reasoning incoherence, never as a transport error — and reasoning incoherence ..."
  },
  "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": "ed2ace3b758ee3dfb6c16bbbb6b447fffb12f64ab1f28013a24473cef9ca1fbe",
    "verified_classes": [
      "CrossEpochResumeError"
    ],
    "verified_functions": [
      "resume_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CrossEpochResumeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
