{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-streamable-session-resumption-against-backpressure-induced-event-loss-in-mcp-http-native-transport",
  "title": "Where must an instance reconcile streamable-session resumption against backpressure-induced event loss in MCP HTTP-native transport",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP servers and clients using the HTTP-native \"streamable\" transport (SSE-over-POST with `Mcp-Session-Id` and `Last-Event-ID` resumption) where the server can emit events faster than the client drains them. Does not apply to stdio transports, to pure request/response MCP calls without streaming, or to transports where the server buffers unboundedly on behalf of a slow client.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-streamable-session-resumption-against-backpressure-induced-event-loss-in-mcp-http-native-transport.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-streamable-session-resumption-against-backpressure-induced-event-loss-in-mcp-http-native-transport.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-streamable-session-resumption-against-backpressure-induced-event-loss-in-mcp-http-native-transport.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1972,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **resumption as replay** and **resumption as reconciliation**. The MCP streamable transport spec lets a client reconnect with `Last-Event-ID` so the server can \"replay\" missed events. Implementers frequently read this as a guarantee that no event is lost: the client acknowledges up to event *N*, drops the connection, r...",
    "what_was_observed": "A tool-calling agent session over streamable HTTP, server emitting `notifications/tools/list_changed`, `notifications/resources/updated`, and streaming partial tool results. Client consumed events slowly because each `tools/call` result triggered a synchronous local re-plan (median 400 ms per event). Server outbox was a bounded ring buffer of 256 events per session, with a documented \"drop-oldest on overflow\" policy ...",
    "condition_of_validity": "The reconciliation requirement is valid — i.e., the naive resume is unsafe — precisely when all of the following hold: - The server's outbox is **bounded** (ring buffer, TTL eviction, or per-session byte cap). Unbounded outboxes make the gap impossible but are themselves a memory-exhaustion vector. - The server can produce events **faster than a client drain...",
    "decision_boundary": "The boundary an operator must draw is between **resume-as-continuation** (safe only when the server can prove the prefix is intact) and **resume-as-new-epoch** (the correct default when it cannot). Concretely, the server must choose one of two contracts and advertise it: - **Continuity contract:** server retains a replay log covering the maximum client disco...",
    "operational_effect": "Downstream of this boundary, the agent's failure surface shifts from \"transport error\" to \"silent state divergence.\" The operational consequences: - **Stale capability registry.** Dropped `list_changed` notifications leave the client's tool schema out of sync; subsequent calls fail with method-not-found or, worse, succeed against a stale schema and produce s..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "b6f05c32eff0ed65b81a50f14cf2973cb4919c7d2d6a9345180e36fd4946c3df",
    "verified_classes": [
      "SessionResumeGapError"
    ],
    "verified_functions": [
      "resume_stream",
      "apply_resume",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SessionResumeGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
