{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-its-event-log-across-mcp-http-native-clients",
  "title": "What structural signals indicate a resumable SSE stream has silently forked its event log across MCP HTTP-native clients",
  "date_of_record": "2026 November 24",
  "scope": "Applies to MCP servers exposing the Streamable HTTP transport with `Last-Event-ID` resumption and per-session fan-out to multiple concurrent clients (e.g., a supervisor agent and its auditors sharing one session). Does not apply to stdio transport, nor to stateless per-request HTTP handlers that never emit `id:` fields on SSE frames.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-its-event-log-across-mcp-http-native-clients.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-its-event-log-across-mcp-http-native-clients.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-resumable-sse-stream-has-silently-forked-its-event-log-across-mcp-http-native-clients.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1579,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an MCP Streamable HTTP server can be \"resumable,\" and they are not equivalent: 1. **Event-log resumption** — the server retains a monotonic, per-session sequence of SSE frames keyed by `id:`. A reconnecting client sends `Last-Event-ID: N` and receives exactly frames `N+1, N+2, …`. Replay is *deterministic and complete*. 2. **Stream-positio...",
    "what_was_observed": "A supervisor agent (client A) opened a session, issued `tools/call` for a long-running `scan_repository` tool, and consumed SSE frames `id: 1` through `id: 40`. A second agent (client B), an auditor, attached to the *same* MCP session via a second HTTP connection to observe the same tool stream — a legitimate fan-out pattern the spec permits when the server advertises session multiplexing. Trigger sequence: - Client ...",
    "condition_of_validity": "The invariant that must hold for Streamable HTTP resumption to be sound: > For a given `(session_id)`, the set of frames a client has received, ordered by `id`, must be a *contiguous prefix* of the session's total emitted frame sequence, and this must be true for every attached client independently. The server MUST retain frames long enough to satisfy the *s...",
    "decision_boundary": "An agent operating over this transport must decide, on every resumed stream, whether to **trust the server's replay** or **re-derive state from scratch**. The boundary: - If the client can verify contiguity (`last_seen_id + 1 == first_replayed_id`) **and** the server advertises a retention window (`Mcp-Session-Retention` or equivalent) that covers the client...",
    "operational_effect": "Downstream, the forked log manifested as a **verification replay discrepancy**: the auditor (Client B) held a complete transcript and validated the tool result as correct; the supervisor (Client A) held a gapped transcript and independently concluded the result was suspect, triggering a redundant re-scan. The two agents, sharing a session, disagreed about gr..."
  },
  "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": "01acd7e1b29a202e65a854100345be7ea5ec6314b5ba24c6efb4c1d33d1e72b2",
    "verified_classes": [
      "SSEEventLogForkedError",
      "ResumableStreamClient"
    ],
    "verified_functions": [
      "__init__",
      "resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SSEEventLogForkedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
