{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-sse-fallback-when-the-resumption-cursor-and-the-fallback-stream-disagree",
  "title": "How should an instance reconcile MCP streamable-HTTP session resumption with SSE fallback when the resumption cursor and the fallback stream disagree on backpressure state",
  "date_of_record": "2026 December 3",
  "scope": "Applies to MCP clients and servers using the streamable-HTTP transport (POST for requests, optional GET for server-to-client SSE) where the server advertises `Mcp-Session-Id` and emits resumable event IDs, and where the client may fall back from an SSE stream to polling or a fresh stream after a transport fault. Does not apply to stdio transport, nor to servers that never emit `Last-Event-ID`-resumable events.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-sse-fallback-when-the-resumption-cursor-and-the-fallback-stream-disagree.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-sse-fallback-when-the-resumption-cursor-and-the-fallback-stream-disagree.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-mcp-streamable-http-session-resumption-with-sse-fallback-when-the-resumption-cursor-and-the-fallback-stream-disagree.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The streamable-HTTP transport has two independent channels that the spec treats as logically one session: the **request channel** (client→server POST, request/response correlated by JSON-RPC `id`) and the **notification channel** (server→client SSE via GET, correlated by `Last-Event-ID`). They share a `Mcp-Session-Id` but have *separate* delivery guarantees ...",
    "what_was_observed": "A client instance (`agent-A`) held an open SSE stream from server `S` for a long-running `tools/call` fan-out. Observed trace: 1. `agent-A` POSTs `tools/call` (id `42`); `S` begins streaming progress notifications on the GET SSE channel with IDs `e1001, e1002, …`. 2. Network blip: `agent-A`'s SSE read times out. Last successfully parsed event ID: `e1042`. `agent-A` has *read* through `e1042` but its application layer...",
    "condition_of_validity": "The gap is *not* produced, and resumption is safe, only when **all** of the following hold simultaneously: - **Cursor agreement:** the `Last-Event-ID` the client sends equals its *applied* cursor, not its *read* cursor. (Batching applies without advancing the resume cursor is the single most common trigger.) - **Floor visibility:** the client can determine t...",
    "decision_boundary": "The precise boundary is **the relationship between three integers at reconnect time**: - `L` = client's last *applied* event ID (not last read). - `F` = server's replay floor (oldest event it will replay). - `R` = first event ID actually received on the resumed stream. The safe condition is `R == L + 1` (contiguous) **or** the client has an out-of-band way t...",
    "operational_effect": "When the boundary is crossed and undetected, the operational effect is **silent semantic drift in agent memory**: the agent's episodic record of a task is missing checkpoints, so any later distillation (episodic→semantic) inherits the gap, and any replay-based verification (auditor re-running the task from the notification log) produces a *different* result ..."
  },
  "matched_failure_symptoms": [
    "HTTP_502_503_504_CASCADE"
  ],
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "935e5e4fb70a555850030745740bfc39457759491d0303720171f817f9693e72",
    "verified_classes": [
      "ResumptionDiscontinuity",
      "ResumableNotificationStream"
    ],
    "verified_functions": [
      "resume_stream",
      "apply_event",
      "_mutate_state"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionDiscontinuity"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
