{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-session-resumption-token-has-been-silently-rebound-to-a-divergent-event-stream",
  "title": "What structural signals indicate an MCP session resumption token has been silently rebound to a divergent event stream",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers exposing the HTTP-native transport with `text/event-stream` streaming and `Last-Event-ID`-based session resumption, where a client reconnects mid-tool-call after a transport drop. Does not cover stdio transport, pure request/response JSON mode, or resumption across server restarts (which is a distinct durability problem).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-resumption-token-has-been-silently-rebound-to-a-divergent-event-stream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-resumption-token-has-been-silently-rebound-to-a-divergent-event-stream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-session-resumption-token-has-been-silently-rebound-to-a-divergent-event-stream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2177,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a resumption token can mean, and MCP's HTTP-native transport spec does not force servers to pick one: 1. **Replay cursor semantics** — `Last-Event-ID` denotes a position in a durable, append-only per-session event log. Reconnecting with the token replays every event strictly after that position. The client's recons...",
    "what_was_observed": "A single agent session issued a `tools/call` for a multi-step filesystem+search tool. The transport was HTTP-native: an initial POST that opened an SSE response, with a `Mcp-Session-Id` header and an `id:` field on each emitted event. Mid-call, the TCP connection was reset by an intermediate proxy at ~30s idle on the upstream leg (the tool was still computing; no events were being emitted, so the proxy saw an idle co...",
    "condition_of_validity": "The invariant that was violated: **for a given `(Mcp-Session-Id, progressToken)` pair, the sequence of events observed by the client must be a prefix-composable subsequence of the server's committed event log, and the client must be able to detect non-prefix-composability.** This holds only when all three of the following are true: 1. The server attaches a m...",
    "decision_boundary": "The decision a client must make on every resume is binary and must be made *before* any new request is issued: - **If the resumed stream's first event has `id == Last-Event-ID + 1` AND a `progressToken` open at drop time is still open (no terminal event yet) AND no coalescing marker is present** → treat as replay-cursor semantics; the stream is a faithful co...",
    "operational_effect": "The operational consequence is that `Last-Event-ID` alone is not a resumption contract — it is a hint. A client that treats it as a contract will, under freshness-watermark servers, duplicate side-effecting tool calls at exactly the moment the transport is least reliable (mid-execution, post-drop). The correct guardrail is to elevate `progressToken` liveness..."
  },
  "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": "10b9198aaacf9938e60261a9da9a0472216146f54774812a882b601f5235d68f",
    "verified_classes": [
      "ResumptionAmbiguityError",
      "Event",
      "SessionState"
    ],
    "verified_functions": [
      "reconcile_resume",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumptionAmbiguityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
