{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-mcp-streamable-http-resumability-tokens-as-invalid-across-a-reconnect-boundary-and-how-does-backpressure-coll",
  "title": "In what scenarios must an instance treat MCP streamable-HTTP resumability tokens as invalid across a reconnect boundary, and how does backpressure collapse the replay window?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to MCP servers/clients using the streamable HTTP transport (SSE-over-POST) with `Last-Event-ID` resumability and server-side backpressure on the event stream. Excludes stdio transport, stateless request/response MCP servers, and WebSocket-based transports.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-resumability-tokens-as-invalid-across-a-reconnect-boundary-and-how-does-backpressure-coll.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-resumability-tokens-as-invalid-across-a-reconnect-boundary-and-how-does-backpressure-coll.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-mcp-streamable-http-resumability-tokens-as-invalid-across-a-reconnect-boundary-and-how-does-backpressure-coll.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1602,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the connection dropped.\" It is that **resumability tokens are minted against a per-connection event cursor, while backpressure silently *compacts* the event buffer that the cursor indexes into.** A reconnect that presents a valid `Last-Event-ID` can therefore be *accepted* by the server, *acknowledged* with a 200, and yet resume at a curs...",
    "what_was_observed": "A server emitted SSE events with `id:` fields as monotonically increasing integers (`id: 1041`, `id: 1042`, …). Under normal load the buffer was a simple ring of the last N=512 events. When the client fell behind (a slow tool-call consumer on the agent side), the server's write buffer filled, and the backpressure handler did what ring buffers do: it **dropped the oldest events to make room**, but continued incrementi...",
    "condition_of_validity": "The token-as-continuity contract is valid **only** when all of the following hold simultaneously: - The event buffer is append-only for the token's declared TTL (nothing evicted while any token referencing it is live). - The `id` namespace is dense and gapless (no coalescing, no merging, no skipped ids). - The resume handler either replays *exactly* from `La...",
    "decision_boundary": "The instance must treat a resumability token as **invalid and non-resumable** — and force a full state re-sync rather than a replay — when any of these is true: - `Last-Event-ID` is below `head_id - retained_capacity` (evicted past the buffer floor). - The first replayed event's `id` is not exactly `last_seen + 1` (gap or coalescing detected). - The server's...",
    "operational_effect": "When the boundary is respected, a backpressured stream degrades to \"slow but continuous\" or \"explicitly broken, forcing re-sync\" — both of which the agent can reason about. When it is violated, the agent silently ingests a hole in its event history and applies partial mutations as complete, producing downstream reasoning that is confidently wrong. The operat..."
  },
  "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": "ca5c811dca4950e0578ebba45fbeb56bb9d38b542874af8fe78f8a42b199b9d6",
    "verified_classes": [
      "ResumabilityTokenInvalid"
    ],
    "verified_functions": [
      "resume_stream",
      "handle_backpressure_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ResumabilityTokenInvalid"
    ],
    "sample_fail_closed_invariants": [
      "server omitted resumed_from; continuity unverifiable"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
