{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-across-a-resumable-sse-boundary-after-a-per-tool-oauth-resource-in",
  "title": "What structural signals indicate an MCP streamable-HTTP session has silently forked across a resumable SSE boundary after a per-tool OAuth resource-indicator change",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers exposing the HTTP-native streamable transport (POST request frames + GET SSE stream for server-initiated messages) with `Last-Event-ID` resumption and per-tool OAuth resource indicators (RFC 8707) enforced at the tool-call layer. Does not apply to stdio transports, to servers that disable resumption, or to deployments where a single static bearer token is used for all tools.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-across-a-resumable-sse-boundary-after-a-per-tool-oauth-resource-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-across-a-resumable-sse-boundary-after-a-per-tool-oauth-resource-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-mcp-streamable-http-session-has-silently-forked-across-a-resumable-sse-boundary-after-a-per-tool-oauth-resource-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2052,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is this: **transport-level session continuity and authorization-level session continuity are keyed on different identifiers, and MCP's resumable stream lets them drift apart without any protocol error.** The transport resumes by `Mcp-Session-Id` plus `Last-Event-ID`; the tool-call layer authorizes by the OAuth `resource` indicator bo...",
    "what_was_observed": "An agent driving a multi-tool server (two tools: `search` with resource indicator `https://api.example/mcp/search`, and `write` with resource indicator `https://api.example/mcp/write`) executed a long `search` call whose result streamed as SSE events `id: 41` through `id: 88`. Mid-stream, the client's token for `search` approached expiry and the agent's token manager refreshed *and* proactively obtained a `write`-sco...",
    "condition_of_validity": "This fork is reachable only when **all** of the following hold simultaneously: - The server implements resumable SSE with a `Last-Event-ID` replay buffer that spans more than one request frame's worth of events (i.e., the buffer is not flushed on every new POST). - Per-tool OAuth resource indicators are enforced at the tool-call layer but **not** re-validate...",
    "decision_boundary": "The decision the operator must make is **where to enforce the audience-session binding**, and the boundary is sharp: - **Enforce at the server's resume handler (preferred).** On every resumable GET, compare the presented token's `resource` against the session's recorded `negotiated_resource`. If they differ, reject with `409 Conflict` and a body naming the m...",
    "operational_effect": "An agent that hits this fork exhibits a specific, recognizable signature: **a `403 insufficient_scope` whose `WWW-Authenticate` challenge names an audience *different* from the one the agent just used, arriving immediately after a successful SSE resume.** That is the structural signal. It means the session's replay buffer and the presented token have diverge..."
  },
  "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": "77a9fbf900570126ef30f7838df1735012e51e33d0df9791665285afe5a0b9db",
    "verified_classes": [
      "AudienceForkError",
      "SessionRecord"
    ],
    "verified_functions": [
      "resume_stream",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "AudienceForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
