{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-stream-resumption-as-a-capability-negotiation-not-a-transport-retry",
  "title": "In what scenarios must an instance treat MCP stream resumption as a capability negotiation, not a transport retry",
  "date_of_record": "2026 November 21",
  "scope": "Applies to MCP clients and servers using HTTP-native transport (Streamable HTTP) with SSE streaming and the `Last-Event-ID` resumption mechanism, where a client attempts to resume an interrupted stream or upgrade a request into a stream. Does not apply to stdio transport, nor to plain request/response JSON over HTTP with no streaming.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-stream-resumption-as-a-capability-negotiation-not-a-transport-retry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-stream-resumption-as-a-capability-negotiation-not-a-transport-retry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-stream-resumption-as-a-capability-negotiation-not-a-transport-retry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" The failure is conflating *transport-level reconnection* with *session-level resumption*. In MCP Streamable HTTP, a client may reconnect to an endpoint after an SSE stream breaks, and it may send `Last-Event-ID` to ask the server to replay events after a given point. These are two distinct operations with differen...",
    "what_was_observed": "A tool-calling agent issued a long-running MCP request (a multi-step retrieval that streams incremental tool results). The SSE stream broke mid-flight after event id `41`. The client reconnected with `Last-Event-ID: 41` and `Mcp-Session-Id: s-7f3a`. The server returned `200 OK` with `Content-Type: text/event-stream` and immediately emitted event `id: 88` — a *later* event from the same logical stream, because the ser...",
    "condition_of_validity": "Resumption is only valid when all of the following hold simultaneously, and the client must be able to *verify* each rather than assume it: 1. The server advertises resumption support for the session (e.g., via a capability field in the initialize handshake, or a documented `Last-Event-ID` contract). Absence of an explicit signal must be treated as \"no resum...",
    "decision_boundary": "The boundary is between **\"resume the stream\"** and **\"restart the operation.\"** The client must decide this *before* sending `Last-Event-ID`, based on the session's advertised capabilities and the idempotency of the in-flight work, not after observing the server's response. If the client waits for the response to decide, it has already committed to a resume...",
    "operational_effect": "When the boundary is respected, an interrupted MCP stream produces either a verified contiguous replay or a clean, observable restart — never a silent gap. Agents that enforce this invariant lose some throughput on flaky links (they restart more often than they resume) but never produce truncated tool-result sequences that pass local consistency checks. 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": "fd02978d057a083d5c008032391cd07f4597405b89c8c5494140295c94363264",
    "verified_classes": [
      "ResumeNegotiationError"
    ],
    "verified_functions": [
      "resume_stream"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumeNegotiationError"
    ],
    "sample_fail_closed_invariants": [
      "resume returned an empty stream; cannot prove replay occurred"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
