{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-a-streamable-http-mcp-session-after-the-server-has-reaped-it-silent-scope-widening-at-the-sse-last-event-id-boun",
  "title": "What happens when an instance resumes a streamable-HTTP MCP session after the server has reaped it: silent scope-widening at the SSE `Last-Event-ID` boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP clients using the HTTP-native transport (Streamable HTTP with server-sent events and `Last-Event-ID` resumption, per the 2025-03-26 transport revision) where the server issues per-tool OAuth scopes and binds issued tokens to a session. Does not apply to stdio transport, to stateless HTTP deployments that never emit event IDs, or to servers that re-issue a fresh session on every `initialize` without retaining per-tool authorization state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-http-mcp-session-after-the-server-has-reaped-it-silent-scope-widening-at-the-sse-last-event-id-boun.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-http-mcp-session-after-the-server-has-reaped-it-silent-scope-widening-at-the-sse-last-event-id-boun.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-streamable-http-mcp-session-after-the-server-has-reaped-it-silent-scope-widening-at-the-sse-last-event-id-boun.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2370,
    "python_slice_tokens": 542,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped.\" Drops are expected and are exactly what `Last-Event-ID` resumption exists to paper over. The failure is the **discontinuity between two independently-versioned pieces of session state**: the SSE event log (which the client resumes against via `Last-Event-ID`) and the authorization grant set (which the server may have ...",
    "what_was_observed": "A client agent held a session with three delegated scopes: `tools:read`, `repo:write`, `deploy:trigger`. The agent's planner had cached a capability inventory at `initialize` time and used it to decide, mid-task, to call `deploy_trigger`. Between two tool calls the SSE stream idled past the server's 90-second keepalive window and was reaped. The client reconnected with `Last-Event-ID: 4417`. The server's behavior on ...",
    "condition_of_validity": "This failure requires all of the following to co-occur; if any is absent, the mechanism does not fire: - **Stateful HTTP sessions with server-side reaping.** The server retains session state across disconnects (so resume is possible) but reaps idle sessions on a timer shorter than the agent's inter-call gap. Stateless servers re-`initialize` and re-negotiate...",
    "decision_boundary": "The boundary is **whether the client treats a successful `Last-Event-ID` resume as an authorization event or only as a transport event.** Two defensible designs: - **Resume-as-transport-only (unsafe under this failure):** Resume reconnects the byte stream; scopes are assumed stable for the session lifetime. Valid only when the server guarantees scope immutab...",
    "operational_effect": "When this boundary is crossed, three downstream effects compound: 1. **Capability-model staleness with no expiry.** The agent's planner holds a capability inventory that was true at `initialize` and is now false. Because no transport-level signal fires, the staleness has no TTL and no invalidation trigger. The planner will keep selecting the now-unavailable ..."
  },
  "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": "698e37aa8302ff4b7b86c2adebb7d291230ef0af286f1342dbabeae0e102c714",
    "verified_classes": [
      "ScopeContinuityViolation",
      "SessionState",
      "PlanWarrant",
      "ResumableSessionGuard"
    ],
    "verified_functions": [
      "__init__",
      "on_suspend",
      "on_resume",
      "classify_inband_error",
      "authorize_fallback"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
