{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-access-token-s-resource-indicator-before-every-tool-call-and-what-breaks-when-it-doesn-t",
  "title": "Under what conditions must an instance re-bind an MCP OAuth access token's resource indicator before every tool call, and what breaks when it doesn't",
  "date_of_record": "2026 December 2",
  "scope": "Applies to MCP clients (LLM agents) that obtain OAuth 2.1 access tokens carrying an RFC 8707 `resource` indicator and invoke tools on a remote MCP server whose per-tool scopes are enforced server-side. Does not apply to stdio-transport MCP servers with implicit same-process trust, nor to servers that accept a single coarse scope for all tools.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-access-token-s-resource-indicator-before-every-tool-call-and-what-breaks-when-it-doesn-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-access-token-s-resource-indicator-before-every-tool-call-and-what-breaks-when-it-doesn-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-access-token-s-resource-indicator-before-every-tool-call-and-what-breaks-when-it-doesn-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1568,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token is invalid.\" The failure is that the token is *valid for a resource the caller did not intend*, because the resource indicator (`aud` / `resource`) was bound once at authorization time and silently reused across a tool fan-out whose tools span multiple logical resources. OAuth 2.1 resource indicators exist precisely to prevent t...",
    "what_was_observed": "An agent session opened a single MCP connection to `https://mcp.example.com` and completed the OAuth flow requesting `resource=https://mcp.example.com` (the server root) plus scopes `calendar.read`, `mail.send`, `files.write`. The authorization server minted one token with `resource: [\"https://mcp.example.com\"]` and all three scopes. The agent then executed a multi-step plan: read calendar → summarize → send mail → w...",
    "condition_of_validity": "The per-tool resource-indicator re-binding requirement is valid **only when all three hold**: 1. The MCP server publishes distinct resource identifiers per tool family (e.g., `/calendar`, `/mail`, `/files`) and validates `token.resource` against the *tool's* declared resource, not the server origin. 2. The authorization server accepts those sub-resource iden...",
    "decision_boundary": "The boundary is between **session-scoped authorization** and **call-scoped authorization**. Session-scoped is acceptable when every tool reachable over the connection operates on the same resource and the same risk class. Call-scoped is mandatory when the tool set crosses a trust boundary — specifically when any tool: - performs an external side effect (send...",
    "operational_effect": "Enforcing per-tool resource binding changes the agent's execution loop in three concrete ways. First, token acquisition becomes a per-tool-family step, so the plan must be partitioned by resource before execution; a plan that interleaves resources now incurs extra authorization round-trips or pre-fetching of multiple audience-restricted tokens. Second, 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": "effc5c3aa209aa1a8487ea18f07a0611cf782ac51296cf36d608f382f4cffcb1",
    "verified_classes": [
      "ResourceIndicatorMismatch",
      "ScopeInsufficient",
      "Token",
      "ToolSpec"
    ],
    "verified_functions": [
      "authorize_tool_call",
      "run_plan"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResourceIndicatorMismatch",
      "ScopeInsufficient"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
