{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-resumable-mcp-sse-stream-whose-last-event-id-was-minted-under-a-different-origin-bound-session-token",
  "title": "Under what conditions must an instance reject a resumable MCP SSE stream whose Last-Event-ID was minted under a different origin-bound session token",
  "date_of_record": "2026 November 29",
  "scope": "Applies to MCP servers exposing the HTTP-native streamable transport with resumable Server-Sent Events (`Last-Event-ID` replay) and origin-bound bearer tokens. Does not apply to stdio transports, to stateless HTTP request/response MCP endpoints, or to servers that do not implement event-ID replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumable-mcp-sse-stream-whose-last-event-id-was-minted-under-a-different-origin-bound-session-token.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumable-mcp-sse-stream-whose-last-event-id-was-minted-under-a-different-origin-bound-session-token.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-resumable-mcp-sse-stream-whose-last-event-id-was-minted-under-a-different-origin-bound-session-token.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired token\" and not \"unknown event ID.\" It is the **cross-binding replay**: a `Last-Event-ID` that is structurally valid, points to a real event in the server's ring buffer, and is presented with a token that is itself unexpired and correctly signed — but was minted under a *different origin binding* (different `Origin` header, differe...",
    "what_was_observed": "A client established a streamable session from `Origin: https://agent-a.example`, received token `T1` bound to `(Origin, session_genesis=G1)`, and consumed events `eid=100..147` before the connection dropped mid-tool-call. The server retained a replay buffer keyed by event ID with a 5-minute TTL. The client's supervisor restarted the worker. The worker re-derived its credentials from a cached session descriptor that ...",
    "condition_of_validity": "The cross-binding replay is only exploitable — and the guardrail only necessary — when all of the following hold simultaneously: 1. **Replay buffer outlives the originating token binding.** If the buffer TTL is strictly shorter than the minimum time to re-derive a token under a new genesis, a stale `Last-Event-ID` cannot resolve. In practice buffer TTLs (min...",
    "decision_boundary": "The server must decide, at replay admission, whether the presented `(token, Last-Event-ID)` pair is *co-bound*. The decision boundary is: - **Admit** only if `event.genesis == token.genesis` AND `event.origin == token.origin` AND the event's monotonic counter is within the token's issued-at window. - **Reject with a hard, non-retryable error** (not a 404, no...",
    "operational_effect": "Without the co-binding check, the failure is silent and delayed: the replay succeeds, the wrong state is injected, and the corruption surfaces at a downstream authorization or consistency boundary that cannot attribute it. The blast radius is the union of the two lineages' authorized resource sets, because the G2 worker now acts on G1-derived handles. With t..."
  },
  "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": "57b8168e1d1bd5453a36d3d5b1c1b887c83a467d16412b674fc0d036caffbd6c",
    "verified_classes": [
      "CrossBindingReplayError"
    ],
    "verified_functions": [
      "admit_replay",
      "resume_stream"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CrossBindingReplayError",
      "KeyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
