{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bind-an-oauth-audience-to-a-specific-mcp-server-before-per-tool-scope-downscoping-and-what-breaks-when-it-does-not",
  "title": "Where must an instance bind an OAuth audience to a specific MCP server before per-tool scope downscoping, and what breaks when it does not",
  "date_of_record": "2026 November 29",
  "scope": "Applies to HTTP-native MCP servers that authenticate callers via OAuth 2.1 bearer tokens and enforce per-tool scope reduction at the tool-dispatch layer. Does not apply to stdio MCP servers where the transport is a local pipe and identity is inherited from the parent process, nor to servers that accept a single coarse scope for the entire session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-an-oauth-audience-to-a-specific-mcp-server-before-per-tool-scope-downscoping-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-an-oauth-audience-to-a-specific-mcp-server-before-per-tool-scope-downscoping-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-an-oauth-audience-to-a-specific-mcp-server-before-per-tool-scope-downscoping-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2178,
    "python_slice_tokens": 436,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the token is invalid.\" It is **audience confusion across a scope-downscoping boundary**. An OAuth access token carries an `aud` (audience) claim that names the *resource server* the token was minted for. MCP binds tools to scopes; per-tool downscoping means the server, on receiving a `tools/call`, checks that the token's granted scop...",
    "what_was_observed": "A three-hop topology: client agent → aggregator MCP (A) → downstream MCP (B). A holds a token issued by the authorization server with `aud: \"https://agg.example/mcp\"` and `scope: \"mcp:read mcp:write admin:purge\"`. A is configured to forward the *same* bearer token to B on `tools/call` rather than minting a per-hop token, because the deployment treated A and B as one trust domain. B exposes two tools: `search` (requir...",
    "condition_of_validity": "The downscoping check at the resource server is only sound when all of the following hold simultaneously: - **Audience exactness.** `token.aud` is a string or single-element list equal to the server's registered resource identifier, compared after canonicalization (scheme, host, port, path, no trailing slash). A token with `aud` naming any upstream hop is re...",
    "decision_boundary": "The decision an operator must make is where the audience boundary is drawn and how tokens cross it. Two admissible designs: 1. **Per-hop audience (preferred).** Every MCP server registers its own resource identifier. Intermediaries use RFC 8693 token exchange to mint a downstream token with `aud` = downstream server and `scope` ⊆ user's original grant. Downs...",
    "operational_effect": "The observable effects, in order of how they surface: - **Silent over-authorization.** The most dangerous case: a user with `mcp:read` triggers a tool requiring `admin:purge` because the intermediary's service token carried the broader scope. No error, no log line distinguishing the principal. Detection requires logging `token.sub` and `token.act` alongside ..."
  },
  "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": "2ec97a221526e9923a39afec358dec4eeb1b8447ef1b2fe9db1b01af4533874f",
    "verified_classes": [
      "AudienceScopeBoundaryError",
      "McpToken",
      "ToolPolicy"
    ],
    "verified_functions": [
      "_canonical_resource",
      "authorize_tool_call",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AudienceScopeBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
