{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-mcp-stream-resumption-has-silently-lost-message-ordering-guarantees",
  "title": "What structural signals indicate MCP stream resumption has silently lost message-ordering guarantees",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers streaming multi-part tool results or resource reads over HTTP/SSE or stdio transports with `Last-Event-ID`-style resumption and bounded backpressure windows. Does not apply to single-shot request/response tool invocations with no partial-result streaming, nor to transports that guarantee exactly-once ordered delivery at the protocol layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-stream-resumption-has-silently-lost-message-ordering-guarantees.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-stream-resumption-has-silently-lost-message-ordering-guarantees.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-stream-resumption-has-silently-lost-message-ordering-guarantees.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1992,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the stream broke.\" Streams break constantly and that is expected. The failure mode is that a stream **resumed successfully but non-linearly**: the client reconnected, the server accepted the `Last-Event-ID`, the client received a syntactically valid continuation, and yet the reassembled message sequence has a gap or a reordering that...",
    "what_was_observed": "A filesystem MCP server exposed a `read_multiple` tool that streamed one JSON event per file over SSE, each with a monotonically increasing `id`, and supported `Last-Event-ID` resumption. The server held a 256-event ring buffer for replay; on overflow it dropped the oldest events to make room. Under a burst of concurrent large reads, the agent's client hit a read timeout at event 512 and reconnected with `Last-Event-...",
    "condition_of_validity": "The invariant \"a resumed stream is contiguous\" holds **only if** the server's replay window is guaranteed to contain the requested cursor at the moment of resumption, **or** the server rejects resumption for any cursor it cannot prove it can serve contiguously. The moment the replay buffer is bounded (which it must be, under backpressure) and eviction is all...",
    "decision_boundary": "The decision the system must make at resume time is binary and must be made explicitly rather than defaulted: - **If the requested cursor is within the retained window:** resume contiguously, echo `resumed_from=<cursor>` in the control frame, and the client asserts first-event continuity before delivering to the agent. - **If the requested cursor is below th...",
    "operational_effect": "The downstream effect is not a crash; it is a **silent completeness violation that propagates into agent belief state**. The agent's working memory now contains a tool result that is internally consistent, schema-valid, and wrong by omission. Any subsequent reasoning that treats \"the tool returned the complete set\" as a premise is corrupted, and because the ..."
  },
  "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": "51ec404fcb82630a9c5d5e5ab7385a28c821256b7682eaae702229b3cea6a3b8",
    "verified_classes": [
      "ResumeContiguityError",
      "ReplayWindow"
    ],
    "verified_functions": [
      "resume_stream",
      "verify_resumed_stream",
      "can_serve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumeContiguityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
