{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-streamable-http-session-resumption-against-unacknowledged-server-to-client-backpressure-in-mcp",
  "title": "How should an instance reconcile Streamable HTTP session resumption against unacknowledged server-to-client backpressure in MCP",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients and servers using the Streamable HTTP transport (the 2025-03-26 spec revision) where a client resumes a dropped SSE stream via `Last-Event-ID` while the server has buffered messages that were emitted but never acknowledged. Does not apply to stdio transport, nor to WebSocket-based transports where the connection itself carries ordering and flow-control semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-streamable-http-session-resumption-against-unacknowledged-server-to-client-backpressure-in-mcp.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-streamable-http-session-resumption-against-unacknowledged-server-to-client-backpressure-in-mcp.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-streamable-http-session-resumption-against-unacknowledged-server-to-client-backpressure-in-mcp.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2604,
    "python_slice_tokens": 733,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Streamable HTTP transport decouples three things that stdio and WebSocket fuse together: (1) the *event log* the server retains per session, (2) the *SSE stream* that carries events to a client connection, and (3) the *client's acknowledgement watermark* expressed as the last `id:` it has durably processed. The spec mandates that a server SHOULD support ...",
    "what_was_observed": "A representative trace from an agent runtime where the MCP server emits tool-progress notifications and the client is an LLM agent whose event loop stalls while awaiting a model completion: 1. Server writes events `id: 100` through `id: 140` to the SSE socket. Kernel `send()` accepts all 41 frames; server advances its internal `last_written = 140` and, per its retention policy, prunes events `≤ 90`. 2. Client's SSE r...",
    "condition_of_validity": "The resumption contract is sound only when all of the following hold simultaneously: - The server's retention floor is strictly less than or equal to the minimum `Last-Event-ID` any live client could present. In practice this requires the server to *track per-session client watermarks* (via periodic client acknowledgements, which the spec does not define) or...",
    "decision_boundary": "The architectural decision is whether to treat `Last-Event-ID` as a *hint* or as a *contract*. The spec's language (\"SHOULD support resumption\") makes it a hint at the transport layer, which means the agent layer must impose the contract itself. Concretely: - **If the agent's actions are idempotent and replay-safe** (read-only tool calls, idempotency-keyed w...",
    "operational_effect": "The practical consequence for agent runtimes is that **session state must be checkpointed at the granularity of the event log, not the connection.** A checkpoint that records \"I am connected to session S\" is insufficient; it must record \"I have processed events up to watermark W in session epoch E, and my dedup set contains {…}.\" On cold start, the agent mus..."
  },
  "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": "f709d17f7c2575e1808720a7dfbda018dc94a9580107a9f98a865b2a343a7dd0",
    "verified_classes": [
      "SessionResumeDivergence",
      "SessionCheckpoint"
    ],
    "verified_functions": [
      "resume_stream",
      "advance_watermark",
      "verify_replay",
      "seal"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SessionResumeDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
