{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-audience-binding-failure-when-an-mcp-resource-server-accepts-a-token-minted-for-a-sibling-resource",
  "title": "How does an instance detect audience-binding failure when an MCP resource server accepts a token minted for a sibling resource",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers acting as OAuth 2.1 resource servers that validate bearer tokens issued by a shared authorization server (AS), especially when multiple MCP resource servers (e.g., `filesystem`, `git`, `browser`) are registered against one AS and clients use dynamic client registration (DCR). Does not apply to single-resource deployments with a dedicated AS per server, nor to mTLS-bound tokens where audience is cryptographically pinned at the transport layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-binding-failure-when-an-mcp-resource-server-accepts-a-token-minted-for-a-sibling-resource.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-binding-failure-when-an-mcp-resource-server-accepts-a-token-minted-for-a-sibling-resource.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-audience-binding-failure-when-an-mcp-resource-server-accepts-a-token-minted-for-a-sibling-resource.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1614,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **token validity** and **token applicability**. OAuth 2.1 resource servers are required (RFC 8707 / RFC 9068) to verify that the token's `aud` claim names *this* resource server, not merely that the signature verifies and `exp` is in the future. In MCP deployments, the failure is not that a token is forged or expi...",
    "what_was_observed": "A three-server MCP deployment (`fs`, `git`, `browser`) shared one AS. A client performed DCR once, received a `client_id`, and requested a token with `scope=read:files write:git`. The authorization request carried `resource=https://fs.mcp.local` (correct) but the token response's `aud` was `[\"https://fs.mcp.local\"]` only. The client then reused that same access token when calling `git.mcp.local`, because the MCP clie...",
    "condition_of_validity": "The invariant that must hold for a multi-resource MCP deployment to be safe: > For every access token `T` presented to resource server `R`, `T.aud` MUST contain `R`'s canonical resource identifier, and `R` MUST reject `T` otherwise with `401 invalid_token` and a `WWW-Authenticate` header naming the correct `resource`. This is valid only when: (a) the AS hono...",
    "decision_boundary": "The boundary is between **shared-AS multi-resource** and **per-resource AS**. Choose shared-AS only if you can enforce all three conditions above and you can prove it with a negative test: mint a token for `fs`, present it to `git`, assert `401`. If you cannot run that test in CI, you are in the per-resource-AS regime whether you know it or not. A second bou...",
    "operational_effect": "The practical effect is a **silent privilege widening**: a token minted for a read-only resource server authorizes writes on a sibling because the sibling never checked `aud`. This is not a signature failure, not an expiry failure, and not a scope failure—it passes every check the server was configured to run. Detection requires an out-of-band signal: the sa..."
  },
  "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": "a2d542b5b02c885c402689cec101b0bf0320ac2684c269ebbed5ec134226c282",
    "verified_classes": [
      "AudienceBindingError",
      "DCRReRegistrationStorm",
      "Token"
    ],
    "verified_functions": [
      "validate_token_for_resource",
      "handle_request"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AudienceBindingError",
      "DCRReRegistrationStorm"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
