{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-streamable-http-resumption-token-has-silently-replayed-a-partial-tool-result",
  "title": "What structural signals indicate an MCP Streamable-HTTP resumption token has silently replayed a partial tool result",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP servers/clients using the Streamable HTTP transport with `Mcp-Session-Id` and `Last-Event-ID` resumption after the SSE-to-streamable-HTTP migration. Does not apply to legacy pure-SSE transport, stdio transport, or stateless request/response MCP servers that never emit event IDs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-resumption-token-has-silently-replayed-a-partial-tool-result.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-resumption-token-has-silently-replayed-a-partial-tool-result.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-resumption-token-has-silently-replayed-a-partial-tool-result.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2164,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The resumption contract of Streamable HTTP is *event-ID monotonicity per session*, not *message completeness per response*. When a client reconnects with `Last-Event-ID`, the server is obligated to replay events strictly *after* that ID. The failure mode is not a dropped connection — it is a connection that reconnects *successfully* and receives a well-forme...",
    "what_was_observed": "A filesystem MCP server (streamable HTTP, session-scoped IDs) served a `tools/call` for `read_multiple_files` returning a large concatenated payload as eleven SSE events, IDs `sess-7f3a:1041` through `sess-7f3a:1051`. The terminal `result` frame was event `:1051`. The client's network layer dropped the TCP connection after receiving `:1049` (a mid-payload chunk) but *before* `:1050` and `:1051`. The client reconnecte...",
    "condition_of_validity": "This analysis holds only when the server implements resumption as a *replay log keyed by a durable, per-session, monotonically increasing event ID*, and when the client persists `Last-Event-ID` across reconnects. It does **not** hold for: - Servers that implement Streamable HTTP without resumption support (return `404` on unknown `Last-Event-ID`, forcing ful...",
    "decision_boundary": "The architectural guardrail is a **two-phase resumption acknowledgment** with an explicit terminal-event requirement: - The server MUST NOT advance its durable session cursor past an event ID until the corresponding socket write is confirmed (or the client sends an explicit ack frame for that ID). Optimistic cursor advancement is the root cause and must be f...",
    "operational_effect": "Agents that skip the terminal-event check do not crash — they *confidently under-report*. In the observed incident, the agent's downstream semantic memory recorded \"files A–I present, J–K absent\" from a stream that had actually delivered A–I and lost J–K to a cursor race. The error propagated into a follow-up plan that skipped reading J and K, and the distil..."
  },
  "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": "1ebb829f840458a3a5cc86337bc87b779115c2340b18b0c217e55585fe78950b",
    "verified_classes": [
      "ResumptionIntegrityError",
      "ResumeLedger"
    ],
    "verified_functions": [
      "validate_resume",
      "idempotency_key"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResumptionIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
