{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-an-mcp-oauth-token-whose-aud-matches-the-resource-server-but-whose-act-scope-chain-was-minted-for-a-differen",
  "title": "In what scenarios must an instance reject an MCP OAuth token whose `aud` matches the resource server but whose `act`/scope chain was minted for a different upstream tool",
  "date_of_record": "2026 November 24",
  "scope": "Applies to HTTP-native MCP servers (Streamable HTTP / SSE transport) that delegate authorization to an external OAuth 2.1 authorization server and validate bearer tokens per RFC 8707 resource indicators. Does not apply to stdio-local MCP servers or to servers that terminate identity internally without a separate AS.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-oauth-token-whose-aud-matches-the-resource-server-but-whose-act-scope-chain-was-minted-for-a-differen.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-oauth-token-whose-aud-matches-the-resource-server-but-whose-act-scope-chain-was-minted-for-a-differen.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-mcp-oauth-token-whose-aud-matches-the-resource-server-but-whose-act-scope-chain-was-minted-for-a-differen.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1864,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The confused-deputy failure in MCP-over-HTTP is *not* the classic \"token audience not checked\" bug. Modern MCP servers correctly verify `aud == https://mcp.example.com` per RFC 8707. The non-obvious boundary is subtler: **audience binding validates that the token was minted for *this resource server*, but says nothing about *which upstream tool or tenant* th...",
    "what_was_observed": "A representative trace from an MCP gateway fronting two downstream tools — `calendar.read` and `drive.write` — both registered under one resource identifier `https://mcp.example.com`: 1. Client A (a calendar assistant) completes the authorization code flow with `resource=https://mcp.example.com` and `scope=calendar.read`. The AS mints an access token with `aud=https://mcp.example.com`, `scope=calendar.read`, `sub=use...",
    "condition_of_validity": "The invariant that must hold for a token to be admissible to a specific tool invocation is: Audience binding is necessary but not sufficient. The `client_id` claim — mandated by OAuth 2.1 for confidential clients and present in all AS-issued tokens — is the field that carries the *delegation principal*, and it is the field most commonly dropped at the MCP bo...",
    "decision_boundary": "The boundary is between **envelope validation** and **grant validation**. Envelope validation (signature, `exp`, `aud`, `scope` membership) is stateless and can be performed by any gateway. Grant validation (client, subject, tenant, actor chain) requires the gateway to hold a per-tool authorization policy that maps `(client_id, sub, tenant, act)` to permitte...",
    "operational_effect": "The operational consequence is that **MCP servers must treat `client_id` and any tenant/actor claims as first-class authorization inputs, and must fail closed when they are absent or unmatched.** In practice this means: 1. The token validation middleware returns a structured principal `(sub, client_id, tenant, act_chain, scope)` rather than a boolean. 2. 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": "f49529e9a1802706893f08e8c9c6b4ecc6cc1e3ed97adbd9f84fb92add3566ce",
    "verified_classes": [
      "ConfusedDeputyError",
      "Principal",
      "ToolPolicy"
    ],
    "verified_functions": [
      "authorize_invocation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ConfusedDeputyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
