{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-an-mcp-server-confabulate-a-downstream-authorization-decision-when-the-upstream-client-omits-a-bearer-token-on-a-streamable-ht",
  "title": "Why does an instance of an MCP server confabulate a downstream authorization decision when the upstream client omits a bearer token on a streamable-HTTP transport?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to MCP servers exposing tools over HTTP-native transports (Streamable HTTP, SSE-with-POST) where the server both (a) authenticates the calling client and (b) acts as a confused-deputy proxy to downstream resources using server-held credentials. Does not apply to stdio transports, nor to servers that require per-request end-user tokens passed through verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-server-confabulate-a-downstream-authorization-decision-when-the-upstream-client-omits-a-bearer-token-on-a-streamable-ht.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-server-confabulate-a-downstream-authorization-decision-when-the-upstream-client-omits-a-bearer-token-on-a-streamable-ht.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-server-confabulate-a-downstream-authorization-decision-when-the-upstream-client-omits-a-bearer-token-on-a-streamable-ht.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1902,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing authentication.\" A missing bearer token on an HTTP-native MCP transport produces a clean 401 at the transport layer. The non-obvious failure is the *authorization confabulation boundary*: when the transport layer is configured to accept a request via a secondary identity channel (mTLS client cert, session cookie set at `initialize...",
    "what_was_observed": "A streamable-HTTP MCP server fronted by an OAuth 2.1 authorization server accepted the initial `initialize` request with a valid bearer token, issued an `Mcp-Session-Id`, and bound the token's subject to that session in a Redis-backed session store with a 30-minute TTL. The client then entered a long-running agent loop; at minute 31, the session TTL expired but the client's own local session cache did not. The client...",
    "condition_of_validity": "The guardrail holds only if all four of the following are simultaneously true at dispatch time: 1. **Principal binding is mandatory, not optional.** The tool dispatcher must reject any `tools/call` whose context lacks a non-null `principal`, regardless of whether the tool's JSON schema marks authorization fields as optional. Schema optionality is a *model-fa...",
    "decision_boundary": "The boundary is between *\"the model may propose an authorization claim\"* and *\"the server may accept one.\"* These must be separated by a structural gap, not a validation check. Concretely: - If a tool's input schema contains a field that influences downstream authorization, the schema is malformed and must be rejected at server registration time (`initialize...",
    "operational_effect": "With the four conditions enforced, the failure mode observed above becomes unreachable: the stale session returns `SessionExpired`, the dispatcher raises before the handler is invoked, the client's agent loop receives a 401 with a structured error, and the model's next turn sees an explicit \"re-authenticate\" instruction rather than a fabricated success. The ..."
  },
  "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": "28fc4025e6129b3199e25fc2a810d2a8628f9ce0e836d2175c3654c843cc4236",
    "verified_classes": [
      "AuthorizationConfabulationError",
      "Principal",
      "RequestContext"
    ],
    "verified_functions": [
      "dispatch_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AuthorizationConfabulationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
