{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-silent-capability-scope-divergence-when-an-mcp-streamable-http-session-resumes-after-backpressure",
  "title": "How does an instance detect silent capability-scope divergence when an MCP streamable-HTTP session resumes after backpressure?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to MCP servers and clients using the streamable-HTTP transport (HTTP POST for client→server messages, SSE or chunked streams for server→client messages) where a session is resumed after a transport-level interruption, and where the server advertises a tool/resource capability set that can change between the original session and the resumed one. Does not apply to stdio transports or to stateless per-request MCP endpoints where no session ID is bound to a capability snapshot.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-scope-divergence-when-an-mcp-streamable-http-session-resumes-after-backpressure.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-scope-divergence-when-an-mcp-streamable-http-session-resumes-after-backpressure.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-silent-capability-scope-divergence-when-an-mcp-streamable-http-session-resumes-after-backpressure.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2133,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that the session ID is rejected (that produces a clean `404`/`-32001` and forces a new `initialize` handshake). The failure is that the session ID is *accepted* on resume, the server replays buffered stream events, and the client continues issuing `tools/call` requests against a capability snapshot that the server silently replaced during ...",
    "what_was_observed": "A client agent held an open streamable-HTTP session. Under backpressure the server's outbound stream stalled (the client's TCP receive window closed because the agent's event loop was blocked in a long synchronous tool result parse). The server, per its own idle policy, dropped the SSE connection but *kept the session record alive* for the resume TTL. During the ~90-second window between drop and resume, an operator ...",
    "condition_of_validity": "This divergence requires all of the following to co-occur: 1. **Session survives the transport drop.** The server's session TTL exceeds the client's reconnect delay, so the resume is accepted rather than rejected with `-32001 Session not found`. If the session is rejected, the client re-`initialize`s and the divergence cannot occur — the client is forced to ...",
    "decision_boundary": "The architectural invariant that bounds this failure: **a resumed session must be treated as a capability-uncertain session until the client re-validates the tool/resource set against the server's current registry.** The resume restores *stream continuity*, not *capability continuity*. These are distinct invariants and the base transport conflates them by us...",
    "operational_effect": "The practical consequence is that agents operating long-lived MCP sessions over streamable-HTTP must maintain a *capability epoch* alongside the session ID: a tuple of `(session_id, capability_digest, last_validated_at)`. The digest is computed from the sorted `tools/list` + `resources/list` response at `initialize` and re-computed on every `RESUMED` transit..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION"
  ],
  "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": "ca1850d9496f40d50e56161520807c89cac4bcaf605cd88be365900a985dc7d4",
    "verified_classes": [
      "CapabilityDivergenceError",
      "SessionCapabilityState"
    ],
    "verified_functions": [
      "compute_capability_digest",
      "validate_resume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CapabilityDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
