{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reuses-an-mcp-oauth-access-token-across-tool-calls-whose-resource-bound-audience-was-never-re-validated",
  "title": "What happens when an instance reuses an MCP OAuth access token across tool calls whose resource-bound audience was never re-validated",
  "date_of_record": "2026 November 21",
  "scope": "Applies to MCP servers enforcing OAuth 2.1 resource indicators (RFC 8707) and per-tool scope checks where a single access token is minted for a resource server and reused across multiple tool invocations within one agent session. Does not apply to per-tool token minting (token-per-tool), or to stateless HTTP MCP servers where each request carries an independently audience-validated token.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-oauth-access-token-across-tool-calls-whose-resource-bound-audience-was-never-re-validated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-oauth-access-token-across-tool-calls-whose-resource-bound-audience-was-never-re-validated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reuses-an-mcp-oauth-access-token-across-tool-calls-whose-resource-bound-audience-was-never-re-validated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **token validity** and **token binding**. OAuth 2.1 validation answers \"is this token live, unexpired, and signed by the expected issuer?\" Resource binding answers a different question: \"was this token's `aud` (audience) claim constrained to the exact resource this tool call targets, and does the token's granted scope ...",
    "what_was_observed": "An agent connected to an MCP server over Streamable HTTP. During the OAuth 2.1 authorization code flow it requested a token with `resource=https://mcp.internal/tenant-a` and `scope=read write admin`. The authorization server, per RFC 8707, minted a token with `aud=[\"https://mcp.internal/tenant-a\"]` and the full requested scope set. The server's transport middleware validated the token at session establishment and cac...",
    "condition_of_validity": "The invariant that must hold for per-tool scope enforcement to be sound is: > For every `tools/call` dispatching tool `t`, the presented token's `aud` claim MUST contain the resource identifier `R(t)` declared in the tool's `_meta.resource` (or equivalent server-side registry), **and** the token's `scope` claim MUST be a superset of `required_scope(t)`. Both...",
    "decision_boundary": "The boundary between a sound and unsound implementation is whether the server treats the OAuth token as a **session credential** or a **per-call warrant**. - **Session-credential model (unsound for MCP):** validate once at `initialize`, cache the principal, authorize subsequent calls against the cached principal. This is correct for a monolithic API where ev...",
    "operational_effect": "When the invariant holds, an agent's authority is exactly the intersection of its token's audience and scope with each tool's declared resource and required scope. Cross-resource calls fail at the dispatch gate with a distinguishable error (`audience_mismatch` vs. `insufficient_scope`), which lets the agent's planner recover by re-authorizing for the specifi..."
  },
  "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": "d0b9b087448621df9f1ffc960caba0beb06fb10e09a34921f0ed4bfa51275aac",
    "verified_classes": [
      "ResourceBindingError",
      "ToolSpec",
      "Token"
    ],
    "verified_functions": [
      "dispatch_gate",
      "handle_tools_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ResourceBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
