{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-resumed-mcp-sse-stream-against-a-session-continuity-token-that-outlived-its-event-log",
  "title": "Where must an instance reconcile a resumed MCP SSE stream against a session continuity token that outlived its event log",
  "date_of_record": "2026 November 20",
  "scope": "Applies to MCP servers exposing the HTTP-native transport with `Last-Event-ID`-based SSE resumption and a `Mcp-Session-Id` continuity token. Does not apply to stdio transports, to stateless HTTP with no session token, or to servers that pin a single long-lived connection per session without event-log retention.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-resumed-mcp-sse-stream-against-a-session-continuity-token-that-outlived-its-event-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-resumed-mcp-sse-stream-against-a-session-continuity-token-that-outlived-its-event-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-resumed-mcp-sse-stream-against-a-session-continuity-token-that-outlived-its-event-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1675,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A session continuity token (`Mcp-Session-Id`) and an SSE event cursor (`Last-Event-ID`) are two different clocks, and they expire independently. The session token answers *\"is this logical agent session still alive?\"*; the event cursor answers *\"can this stream resume from a specific point in its event log?\"* The failure mode is not that either clock stops. ...",
    "what_was_observed": "An agent instance running a multi-step tool workflow had issued a `tools/call` over a streamable SSE channel. The server emitted progress notifications (`notifications/progress`) and, at event id `8841`, a partial result chunk. The client connection dropped (NAT rebind, ~90s idle). The agent reconnected using `GET /mcp` with headers `Mcp-Session-Id: sess_7f2a...` and `Last-Event-ID: 8841`. The server's event-log rete...",
    "condition_of_validity": "The gap between the two clocks is only *safe* under a condition the protocol does not enforce: the server's event-log retention must be a superset of every event the client might still need, for the entire lifetime of the session token. In practice this holds only when `session_token_ttl ≤ event_log_retention` **and** the log is not truncated by volume befor...",
    "decision_boundary": "The instance must make an explicit choice at reconnect, and the choice hinges on whether the *effect* of the missed events is recoverable by re-query: - **Resume-and-continue** is valid only when the server confirms the cursor is serviceable (echoes the cursor, or returns events whose first id equals `requested_cursor + 1`) *and* the missed window contained ...",
    "operational_effect": "Once an instance internalizes that `Mcp-Session-Id` validity says nothing about `Last-Event-ID` serviceability, three behaviors change. First, reconnect handlers stop treating a `200` as proof of continuity and instead parse the first event id against the requested cursor, raising on mismatch. Second, partial-result buffers become explicitly tagged with the ..."
  },
  "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": "7ea748c4be0909fc2230370801c24831f790cc0dd76b4012dab89654d59f8ac9",
    "verified_classes": [
      "ResumptionGapError",
      "ResumeAck"
    ],
    "verified_functions": [
      "reconcile_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumptionGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
