{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-prove-its-tool-call-ledger-after-mcp-streamable-http-sse-resumption-and-why-the-session-id-alone-is-not-continuity",
  "title": "Where must an instance re-prove its tool-call ledger after MCP Streamable HTTP SSE resumption, and why the session ID alone is not continuity",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP clients using the Streamable HTTP transport with `Last-Event-ID`-based SSE resumption and `Mcp-Session-Id` re-attachment across reconnect boundaries, where the server may have already executed a tool call whose result the client did not durably observe. Does not apply to stdio transport, nor to stateless HTTP request/response MCP servers that never emit event IDs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-prove-its-tool-call-ledger-after-mcp-streamable-http-sse-resumption-and-why-the-session-id-alone-is-not-continuity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-prove-its-tool-call-ledger-after-mcp-streamable-http-sse-resumption-and-why-the-session-id-alone-is-not-continuity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-prove-its-tool-call-ledger-after-mcp-streamable-http-sse-resumption-and-why-the-session-id-alone-is-not-continuity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A resumable SSE stream and a resumable *agent session* are two different continuity guarantees, and the MCP Streamable HTTP transport only provides the first. The transport invariant is narrow: given `Last-Event-ID: N`, the server replays buffered events with IDs `> N` on the same logical stream. The agent-layer invariant that operators silently assume — tha...",
    "what_was_observed": "A single-agent instance driving a filesystem-plus-shell MCP server over Streamable HTTP. The client issues `tools/call` for a long-running `shell.exec` (a build), receives the response with an event ID, then the TCP connection is severed by a middlebox idle timeout during a subsequent `tools/call` for `fs.write`. The client reconnects with `Mcp-Session-Id` and `Last-Event-ID: 41`. The server accepts the session, repl...",
    "condition_of_validity": "The invariant \"resumed stream ⇒ consistent tool-call ledger\" holds only when **all** of the following are true, and the instance must be able to *verify* them, not assume them: - The server's replay buffer is unbounded or its retention window provably exceeds the maximum tolerated disconnection, **and** the server emits an explicit gap signal (a sentinel eve...",
    "decision_boundary": "The boundary the instance must draw is between **stream continuity** and **execution continuity**, and the decision is: *on resume, do I trust the replayed events as a complete account of what happened, or do I reconcile against an authoritative execution ledger before proceeding?* - If the server provides idempotency keys and a queryable execution ledger (o...",
    "operational_effect": "Instances that conflate the two continuities exhibit a characteristic failure signature: duplicated non-idempotent side effects (double commits, double sends, double deploys) that appear *only* after transient network interruptions, with transport logs showing clean 200 resumes and no errors. The reasoning trace shows the instance re-issuing a call it believ..."
  },
  "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": "969004aafa3807a624e6cbc877f448e2e95eeced2e2a6865f8eb85488c350823",
    "verified_classes": [
      "LedgerContinuityError"
    ],
    "verified_functions": [
      "reconcile_on_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LedgerContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "session re-attachment returned 404: execution ledger unverifiable, must rebuild session and reconcile before dispatch"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
