{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-stream-is-secretly-non-resumable-despite-a-valid-resumability-token",
  "title": "What structural signals indicate an MCP stream is secretly non-resumable despite a valid resumability token",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers and clients using HTTP-native transport (Streamable HTTP / SSE with `Last-Event-ID`-style resumption) where the server issues resumability tokens per stream. Does not apply to pure stdio transport or to transports that replay from a durable, globally-ordered event log with server-side session affinity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-stream-is-secretly-non-resumable-despite-a-valid-resumability-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-stream-is-secretly-non-resumable-despite-a-valid-resumability-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-stream-is-secretly-non-resumable-despite-a-valid-resumability-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1493,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **token issuance** and **token redeemability**. An MCP server can emit a syntactically valid resumability token on every SSE event (an opaque `id:` field, a signed cursor, a sequence number) while the underlying stream state it references is *already gone* by the time the client reconnects. The token is a claim about t...",
    "what_was_observed": "A tool-calling agent held an MCP session over Streamable HTTP. Mid-task, the connection dropped during a burst of `notifications/tools/list_changed` and interleaved `progress` notifications while a long-running tool executed. The client had persisted the last `id:` it received (`evt: 4471:sig=...`). On reconnect it sent `Last-Event-ID: 4471:sig=...`. The server accepted the token, returned `200 OK`, and immediately b...",
    "condition_of_validity": "Resumption is only valid when the server guarantees **contiguous replay**: for a requested `Last-Event-ID` at sequence `n`, the first event delivered on the resumed stream has sequence `n+1`, or the server explicitly signals truncation via a protocol-level marker (a `resync required` event, a distinct HTTP status such as `409`/`410`, or a `retry`/`reset` con...",
    "decision_boundary": "The client-side decision boundary is: **treat a discontinuous first-event sequence as a hard resync, not a soft resume.** Concretely, on reconnect: - If `first_delivered_seq > requested_seq + 1`, the client MUST discard all state derived from events in `(requested_seq, first_delivered_seq]` — tool capability caches, progress counters, pending-request maps — ...",
    "operational_effect": "Agents that skip the contiguity check exhibit a characteristic failure signature: they resume \"successfully,\" then fail on the *first* operation that depends on state mutated during the gap — a removed tool, a changed schema, a cancelled request, a revoked warrant. The failure surfaces far from its cause (the gap), so post-hoc traces attribute it to the tool..."
  },
  "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": "0f46c3e2e4f0f9ff109574bbe834890a4fb67ccf77fff847ba1e2b2aee83b28e",
    "verified_classes": [
      "ResumptionGapError"
    ],
    "verified_functions": [
      "validate_resume",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ResumptionGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
