{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-resumable-mcp-streamable-session-is-actually-resuming-the-same-logical-turn-versus-silently-replaying-a-divergent-o",
  "title": "What structural signals indicate a resumable MCP streamable-session is actually resuming the same logical turn versus silently replaying a divergent one",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP servers and clients using the HTTP-native \"streamable\" transport with `Mcp-Session-Id` and `Last-Event-ID`-based resumption of a single logical request/turn. Does not cover stdio transport, pure SSE legacy transport without session IDs, or resumption across distinct logical turns (which is a new request, not a resume).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-streamable-session-is-actually-resuming-the-same-logical-turn-versus-silently-replaying-a-divergent-o.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-streamable-session-is-actually-resuming-the-same-logical-turn-versus-silently-replaying-a-divergent-o.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-mcp-streamable-session-is-actually-resuming-the-same-logical-turn-versus-silently-replaying-a-divergent-o.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A resumable streamable MCP session has two independent identities that operators routinely conflate: the **session identity** (`Mcp-Session-Id`, a server-issued opaque token that scopes server-side state) and the **stream position identity** (`Last-Event-ID`, a per-stream monotonic cursor into the event log of one in-flight request). Resumption is only seman...",
    "what_was_observed": "An agent runtime issued a `tools/call` over streamable HTTP, received `Mcp-Session-Id: s_7f3a` and a stream of `message` events with IDs `e_100`…`e_118`, then the connection dropped mid-turn (proxy timeout at 30s) before the terminal `result` event. The client held `Last-Event-ID: e_118`. On reconnect the client re-sent the request with `Mcp-Session-Id: s_7f3a` and `Last-Event-ID: e_118`. The server returned 200 and ...",
    "condition_of_validity": "`Last-Event-ID`-based resumption is only a *semantic* resume under the conjunction of these invariants: 1. **Cursor monotonicity within a turn, not merely within a session.** Event IDs must be assigned from a per-turn sequence, or the server must embed a turn nonce in every event and reject resumption when the client's cursor and the server's retained log di...",
    "decision_boundary": "The client-side decision boundary is: **on the first event after a resume, verify turn identity before feeding the event into the reasoning loop.** Concretely, the client must treat the resume as *provisional* until it has observed an event whose correlation token matches the turn it is resuming. If the first post-resume event carries an unknown invocation I...",
    "operational_effect": "Without the turn-nonce check, agents exhibit a specific, reproducible pathology: **argument/result cross-binding**. The agent's tool-call ledger holds `inv_A` with arguments `A`; the resumed stream delivers a result computed for arguments `B`; the agent binds result-of-`B` to call-`A` and proceeds with a corrupted world model. Because the transport returned ..."
  },
  "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": "082744a40546aa60fe0708e5944de2827c388b45f191fe841922c55225ad2fd9",
    "verified_classes": [
      "ResumptionDivergenceError"
    ],
    "verified_functions": [
      "verify_resume_continuity",
      "resume_or_reissue"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
