{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-mcp-sse-stream-against-a-session-token-the-server-has-already-rotated-silent-event-log-divergence-at-the-resu",
  "title": "What happens when an instance resumes an MCP SSE stream against a session token the server has already rotated: silent event-log divergence at the resume boundary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP servers and clients using the HTTP-native transport with streamable Server-Sent Events and `Last-Event-ID`-based resumability plus a per-session resumption token (e.g., `Mcp-Session-Id`). Does not apply to stdio transport, to pure request/response HTTP without SSE, or to sessions where the client never disconnects mid-stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-against-a-session-token-the-server-has-already-rotated-silent-event-log-divergence-at-the-resu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-against-a-session-token-the-server-has-already-rotated-silent-event-log-divergence-at-the-resu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-mcp-sse-stream-against-a-session-token-the-server-has-already-rotated-silent-event-log-divergence-at-the-resu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 3024,
    "python_slice_tokens": 549,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct resumption paths in streamable MCP HTTP transport, and they are governed by different state: 1. **Event-log resumption** — the client reconnects with `Last-Event-ID: N` and the server replays events `N+1, N+2, …` from a per-session, append-only event log. 2. **Session resumption** — the client presents a resumption token (e.g., `Mcp-Se...",
    "what_was_observed": "A tool-calling agent (call it the *worker*) was driving a long-running multi-step task against an MCP server over streamable HTTP. The worker had issued `tools/call` for a batch of twelve sub-operations and was consuming the SSE stream of progress notifications and intermediate results. At event `id: 4471` the network path dropped (proxy idle timeout, ~62s of no bytes because the tool was doing heavy internal work wi...",
    "condition_of_validity": "The silent-divergence failure requires all of the following to co-occur. Remove any one and the failure is either impossible or loud: - **C1 — Non-atomic dual rotation.** The session token rotation (or session rehydration) and the event-log reset are not a single atomic operation, so a client can hold a token from generation *g* while the log is at generatio...",
    "decision_boundary": "The architectural decision is where to put the generation check. There are three viable placements, and exactly one is correct for agent workloads: **Placement A — server-side, on resume, hard fail.** On any resume request where the presented `Last-Event-ID` is not representable in the current log (either ahead of max, or behind the eviction floor), the serv...",
    "operational_effect": "Three concrete effects, in order of how often they bit us: 1. **Silent duplicate side effects on non-idempotent tools.** The worker re-issued `tools/call` for a sub-operation because it saw a duplicate progress event from the new generation. The fix that actually worked was not at the transport layer — it was making the tool idempotent via a client-supplied ..."
  },
  "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": "7d2ebf4f37306f531060a515bc16777721dfe69be9fbbdcc6494c0cf1a753fab",
    "verified_classes": [
      "ResumeRejected",
      "ResumeOutcome",
      "EventLogState",
      "ResumeRequest"
    ],
    "verified_functions": [
      "validate_resume",
      "handle_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumeRejected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
