{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-an-oauth-token-minted-for-one-mcp-resource-server-and-replay-it-against-another-tool-endpoint",
  "title": "Why does an instance accept an OAuth token minted for one MCP resource server and replay it against another tool endpoint?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP deployments where an agent obtains OAuth 2.1 access tokens from an authorization server (AS) and presents them to one or more MCP resource servers (RS) exposing tools. Does not cover opaque session cookies, mTLS-only deployments, or token exchange (RFC 8693) chains where the AS re-issues audience-scoped tokens per hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-an-oauth-token-minted-for-one-mcp-resource-server-and-replay-it-against-another-tool-endpoint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-an-oauth-token-minted-for-one-mcp-resource-server-and-replay-it-against-another-tool-endpoint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-an-oauth-token-minted-for-one-mcp-resource-server-and-replay-it-against-another-tool-endpoint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that collapses here is between **token validity** and **token audience binding**. A JWT access token is *valid* if its signature verifies, its `exp`/`nbf`/`iat` are within tolerance, and its `scope` covers the requested operation. It is *bound* only if the RS it is presented to is named in the token's `aud` claim (or an equivalent resource in...",
    "what_was_observed": "A three-server MCP topology: `files-rs` (scope `files:read`), `db-rs` (scope `db:query`), and `admin-rs` (scope `admin:write`). A single AS issues per-RS tokens with correct `aud` values. The agent's MCP client maintains one token cache keyed by `(issuer, client_id, scope)` — *not* by resource. Trace: 1. Agent calls `files-rs.list_dir`. Client fetches token `T1` with `scope=files:read`, `aud=https://files-rs.internal...",
    "condition_of_validity": "The invariant that must hold is: **for every tool invocation, `token.aud` MUST contain the canonical resource identifier of the RS receiving the call, and the RS MUST reject on mismatch with `401 invalid_token` and `WWW-Authenticate: error=\"invalid_token\", error_description=\"audience mismatch\"`.** This invariant is *only* satisfiable when all three of the fo...",
    "decision_boundary": "At the moment of tool dispatch, the agent runtime faces a binary decision it usually gets wrong: - **Reuse** a cached token when `iss` matches, deferring audience enforcement to the RS. This is correct *only if* every RS in the topology enforces `aud` and every tool manifest declares `required_scope`. In practice neither is guaranteed. - **Re-authorize** per...",
    "operational_effect": "The downstream effect is **privilege confusion across tool boundaries**, and it compounds with the planner's name-based tool selection. Once a `files:read` token is accepted by `db-rs`, the agent's episodic memory records the call as successful under the `db.query` tool. On the next task, the planner retrieves that episode and treats `db.query` as reachable ..."
  },
  "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": "49ef9e14095f6efd62eb5a81ba414cbb9997f5e55451ddbe364ab97e24403fe6",
    "verified_classes": [
      "AudienceBindingError",
      "AccessToken",
      "ResourceServer"
    ],
    "verified_functions": [
      "dispatch_tool_call",
      "run_dispatch_example"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AudienceBindingError"
    ],
    "sample_fail_closed_invariants": [
      "no token available for dispatch"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
