{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-per-request-mcp-oauth-grant-as-invalid-even-when-the-token-signature-and-audience-both-verify",
  "title": "Under what conditions must an instance treat a per-request MCP OAuth grant as invalid even when the token signature and audience both verify",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP servers that receive OAuth 2.1 bearer tokens minted with a per-request resource indicator (RFC 8707) and an audience claim restricted to a single resource URI, where the same client session issues multiple tool calls against distinct tool/resource endpoints. Does not cover token-exchange flows across authorization servers, nor DPoP-bound tokens where the proof-of-possession key is itself the binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-per-request-mcp-oauth-grant-as-invalid-even-when-the-token-signature-and-audience-both-verify.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-per-request-mcp-oauth-grant-as-invalid-even-when-the-token-signature-and-audience-both-verify.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-per-request-mcp-oauth-grant-as-invalid-even-when-the-token-signature-and-audience-both-verify.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *token validity* and *token applicability to the specific request*. A token can be cryptographically valid (signature checks out against the AS's JWKS), temporally valid (nbf/exp in window), and audience-valid (the `aud` claim equals a resource identifier the server recognizes)—and still be **inapplicable** to the...",
    "what_was_observed": "During a multi-tool MCP session against a server exposing three tool families—`fs.read` (resource `mcp://host/fs`), `db.query` (resource `mcp://host/db`), and `net.fetch` (resource `mcp://host/net`)—the following trace was captured: 1. Client performs the standard authorization flow with `resource=mcp://host/fs`. The AS mints a token with `aud=[\"mcp://host/fs\"]`, `scope=\"fs.read\"`, `exp=+300s`. 2. Client calls `fs.re...",
    "condition_of_validity": "The per-request OAuth grant is valid for a given MCP tool invocation if and only if **all** of the following hold simultaneously: - **Signature**: the JWT verifies against the AS's current JWKS, with `kid` resolution and key-rotation grace handled. - **Temporal**: `nbf ≤ now ≤ exp`, with the server's clock skew explicitly bounded (not assumed zero). - **Exac...",
    "decision_boundary": "The boundary between \"accept\" and \"reject\" is not \"is this a token I trust?\" but \"**is this token bound to the resource I am about to touch?**\" Concretely: - If `aud` is a list of length 1 and `aud[0] == current_tool.resource_uri`: **accept** (subject to other checks). - If `aud` is a list of length 1 and `aud[0] != current_tool.resource_uri`: **reject**, ev...",
    "operational_effect": "Enforcing exact resource binding changes three operational behaviors: 1. **Cross-resource calls require re-authorization.** A model that, mid-task, decides to call a different tool family must obtain a token scoped to that resource. This surfaces as a `401`/`403` with a `WWW-Authenticate` challenge carrying the correct `resource` parameter, which the MCP cli..."
  },
  "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": "be6c990ce8c15e82770e0d3ce965dcc2fa4b67c155d4dd6cc4407ebe0fd50161",
    "verified_classes": [
      "ResourceBindingError",
      "Token",
      "ToolInvocation"
    ],
    "verified_functions": [
      "authorize_per_request"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "ResourceBindingError"
    ],
    "sample_fail_closed_invariants": [
      "token signature invalid",
      "token has no aud claim; no resource binding present"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
