{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-oauth-2-1-resource-indicator-binding-failure-when-an-mcp-server-s-audience-restricted-token-survives-a-transport-r",
  "title": "What structural signals indicate an OAuth 2.1 resource-indicator binding failure when an MCP server's audience-restricted token survives a transport re-hop",
  "date_of_record": "2026 November 23",
  "scope": "Applies to MCP servers that validate OAuth 2.1 access tokens carrying an `aud` (audience) claim bound to a specific resource indicator (RFC 8707), and to agent runtimes that relay or re-issue those tokens across transport hops (stdio→SSE, SSE→streamable-HTTP, or proxy-mediated A2A handoff). Does not apply to opaque bearer tokens with no audience binding, nor to same-process tool invocations that never cross a transport boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-oauth-2-1-resource-indicator-binding-failure-when-an-mcp-server-s-audience-restricted-token-survives-a-transport-r.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-oauth-2-1-resource-indicator-binding-failure-when-an-mcp-server-s-audience-restricted-token-survives-a-transport-r.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-oauth-2-1-resource-indicator-binding-failure-when-an-mcp-server-s-audience-restricted-token-survives-a-transport-r.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1903,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"expired token\" or \"wrong scope.\" It is **audience-claim survival across a transport re-hop**: an MCP client acquires a token with `aud` set to resource indicator `R1` (the server the user authorized), then a transport upgrade or relay causes the token to be presented to resource indicator `R2`. Because OAuth 2.1 resource indicators a...",
    "what_was_observed": "Trace from a real relay: an agent runtime (client) performed the OAuth 2.1 authorization-code flow with `resource=https://mcp.example.com/sse` (R1). The authorization server issued a JWT with `aud: \"https://mcp.example.com/sse\"`, `exp` +3600s. The client opened an SSE session to R1, which upgraded mid-session to streamable-HTTP at `https://mcp.example.com/stream` (R2) — same host, different path, different advertised...",
    "condition_of_validity": "The invariant holds (i.e., the failure is bounded) only when **all three** of the following are true: - The receiving MCP server's token validator enforces `aud` with **exact string equality** against its own advertised `resource` indicator, and fails closed on absence of `aud`. Host-only or prefix matching is insufficient: `https://mcp.example.com/sse` and ...",
    "decision_boundary": "The decision boundary is the point at which the agent runtime must choose between **forwarding the existing token** and **performing a token exchange**. The rule: - If `token.aud == target.resource` (exact equality): forward. - If `token.aud != target.resource`: **do not forward**. Either (a) perform RFC 8693 token exchange to obtain a token with `aud = targ...",
    "operational_effect": "The operational consequence of an unenforced audience binding is **silent privilege widening across transport hops**: a token authorized for one resource indicator is accepted by a sibling resource indicator, and any session state, tool grants, or downstream token propagation inherits that widened scope. Because the token is cryptographically valid, no signa..."
  },
  "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": "82c4b76d5918c821b2c5466eb99e5c298d9f6c76cfaf7de2b01407fbd28dd564",
    "verified_classes": [
      "AudienceBindingError",
      "ProtectedResourceMetadata",
      "AccessToken"
    ],
    "verified_functions": [
      "_metadata_is_fresh",
      "validate_for_hop",
      "forward_or_exchange"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AudienceBindingError"
    ],
    "sample_fail_closed_invariants": [
      "token has no aud claim; unbound tokens are rejected at resource-indicator hops"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
