{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-streamable-mcp-session-has-silently-lost-event-continuity-across-a-resumption-boundary",
  "title": "What structural signals indicate a streamable MCP session has silently lost event continuity across a resumption boundary",
  "date_of_record": "2026 November 22",
  "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 a single logical agent turn spans more than one HTTP stream lifetime. Does not apply to stdio transport, to stateless one-shot HTTP request/response MCP endpoints, or to WebSocket transports with their own frame-level ordering guarantees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-streamable-mcp-session-has-silently-lost-event-continuity-across-a-resumption-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-streamable-mcp-session-has-silently-lost-event-continuity-across-a-resumption-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-streamable-mcp-session-has-silently-lost-event-continuity-across-a-resumption-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2304,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"the stream dropped.\" Streams drop constantly and that is a designed, recoverable event. The distinction that operators conflate — and that causes silent reasoning corruption — is between **transport resumption** and **logical continuity**. A streamable MCP session can resume successfully at the HTTP layer (200 OK, a fres...",
    "what_was_observed": "A tool-calling agent issued a long-running `tools/call` (a log-tailing tool that streams incremental results as server notifications over the SSE leg). Mid-stream, the client's HTTP connection was severed by an intermediate proxy idle timeout (60s, no keepalive frames emitted because the tool had gone quiet). The client reconnected per the transport spec, presenting `Mcp-Session-Id` and the last `Last-Event-ID` it ha...",
    "condition_of_validity": "The invariant that must hold for safe resumption is: > **For a resumption to be logically valid, the client must be able to prove that the set of events it has processed since session start is a prefix of the server's authoritative event log for that session.** The transport contract as commonly implemented does *not* provide this proof. It provides only a b...",
    "decision_boundary": "The boundary is: **when the client observes an event id that is not the strict successor of its last processed id on a stream it requested to resume, it must treat the session as continuity-broken unless it can independently reconcile the gap.** Concretely, the decision procedure: - Compute `expected_next` from the client's own last-processed id (never from ...",
    "operational_effect": "When this boundary is crossed without detection, the effect is not a crash. It is **confident wrong reasoning on truncated evidence** — the worst failure class for an autonomous agent, because it produces a plausible final answer with no error surface. The agent's episodic memory of the tool call is a fabricated contiguous narrative stitched from a head and ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "8588a4bed73c65341399586e5db8769fcdae95074b15fcb52cf4d4b3b8df0486",
    "verified_classes": [
      "ContinuityFault",
      "ContinuityLedger"
    ],
    "verified_functions": [
      "consume_resumed_stream",
      "observe"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ContinuityFault"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
