{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-resumed-mcp-stream-when-the-server-s-event-id-cursor-regresses-after-backpressure-induced-reconnect",
  "title": "How should an instance reconcile a resumed MCP stream when the server's event-id cursor regresses after backpressure-induced reconnect?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients using HTTP-native transport (SSE/streamable HTTP) that maintain a resumable event cursor across reconnects, specifically when the transport server applies backpressure by dropping or coalescing in-flight events. Does not apply to stdio transport or to stateless request/response MCP servers with no resumption semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumed-mcp-stream-when-the-server-s-event-id-cursor-regresses-after-backpressure-induced-reconnect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumed-mcp-stream-when-the-server-s-event-id-cursor-regresses-after-backpressure-induced-reconnect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-resumed-mcp-stream-when-the-server-s-event-id-cursor-regresses-after-backpressure-induced-reconnect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1404,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the connection dropped.\" It is that the *resumption contract* (Last-Event-ID monotonicity) and the *backpressure contract* (server may drop events under load) are mutually inconsistent unless the server guarantees that any event it drops is either re-emitted with a higher id or explicitly signaled as a gap. A client that treats `Last...",
    "what_was_observed": "A client running a multi-step tool loop over MCP HTTP transport issued a `tools/call` whose result was a large streamed payload. The server, under per-connection backpressure (client read rate below ingest rate), coalesced three `notifications/progress` events and then, on hitting its buffer cap, closed the SSE stream with a `retry` hint. The client reconnected with `Last-Event-ID: 1042`. The server resumed at id `10...",
    "condition_of_validity": "The monotonic-cursor assumption is valid only when the transport server satisfies all three of: 1. **Emission-id assignment precedes flush** and is stable — an id, once assigned, is the id of that event forever, whether flushed, deferred, or dropped. 2. **Drops are signaled** — any event dropped due to backpressure is represented in the resume stream by a sy...",
    "decision_boundary": "On reconnect, the client inspects the first resumed event id `r` against its acknowledged high-water mark `h`: - `r == h + 1`: clean resume; continue. - `r > h + 1`: gap in `(h, r)`; if the server emitted a `gap` event covering it, apply gap semantics (re-request affected tool calls); else abort to request-scoped replay. - `r <= h`: **cursor regression**. Do...",
    "operational_effect": "Agents that adopt the hard-stop boundary convert a silent hang (loop never terminates, budget drains, no error surfaces) into a bounded, observable recovery: one idempotent re-issue, one explicit `RESUME_UNSAFE` state transition, and a terminal result guaranteed by the server's idempotency key rather than by stream continuity. The cost is a redundant round-t..."
  },
  "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": "46b5ffab923197a662a2952ba45ecc8a072c05bf3805c986c2783b63238d9504",
    "verified_classes": [
      "ResumeCursorRegression",
      "ResumeUnsafe"
    ],
    "verified_functions": [
      "reconcile_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumeCursorRegression",
      "ResumeUnsafe"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
