{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-lost-oauth-2-1-resource-server-binding-across-an-mcp-streamable-http-chunk-boundary",
  "title": "What structural signals indicate a lost OAuth 2.1 resource-server binding across an MCP streamable-HTTP chunk boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers exposed over HTTP-native transport with `text/event-stream` / chunked streamable responses, where the same connection carries OAuth 2.1 bearer tokens bound to a `resource` indicator (RFC 8707). Does not apply to stdio transport, to single-shot JSON responses, or to servers that re-validate the token on every event frame.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lost-oauth-2-1-resource-server-binding-across-an-mcp-streamable-http-chunk-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lost-oauth-2-1-resource-server-binding-across-an-mcp-streamable-http-chunk-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-lost-oauth-2-1-resource-server-binding-across-an-mcp-streamable-http-chunk-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1787,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired\" and it is not \"the client sent the wrong audience.\" It is that **OAuth 2.1 resource-server binding is verified once, at stream open, but the stream outlives the verification context.** A streamable MCP response is a long-lived chunked body: the server validates `Authorization: Bearer <token>` and its `resource` claim ag...",
    "what_was_observed": "A gateway fronting an MCP server terminated client TLS, validated the bearer token's `aud`/`resource` against the MCP server's canonical URI, and opened an upstream HTTP/1.1 connection with `Transfer-Encoding: chunked`. The upstream MCP server performed its own resource-server validation on the forwarded `Authorization` header — once. The gateway then pooled that upstream connection. Trace, condensed: 1. Client A ope...",
    "condition_of_validity": "The invariant that must hold: **for every event frame emitted on a streamable MCP response, there exists a currently-valid `(principal, resource)` binding whose lifetime covers the frame's emission time, and the frame is attributable to exactly that binding.** This decomposes into three conditions that must all hold for the stream to be sound: 1. *Binding-at...",
    "decision_boundary": "Choose the guardrail by where you can afford to pay: - **If you control the server:** re-validate the binding on a heartbeat frame (every 15–30s) and emit a terminal `event: auth-expired` frame, then close. This converts a silent authority leak into an explicit, client-observable state transition. Cost: one introspection call per stream per interval. - **If ...",
    "operational_effect": "Left unguarded, the effect is not a crash — it is a **silent authority extension**: a revoked or rotated principal continues to receive tool-call results, and a re-scoped principal receives frames produced under a broader `resource` scope. Because MCP tool results can carry side-effecting payloads (file contents, database rows, command output), the leak is a..."
  },
  "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": "b5697966991d71d50c22701e0ca284babd899870cb8a7876cb411b65fec4a25b",
    "verified_classes": [
      "BindingLifetimeViolation",
      "StreamBinding"
    ],
    "verified_functions": [
      "emit_frame",
      "valid_at"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BindingLifetimeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
