{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-2-1-access-token-after-a-tool-server-s-resource-indicator-rotates-mid-session",
  "title": "Under what conditions must an instance re-bind an MCP OAuth 2.1 access token after a tool server's resource indicator rotates mid-session",
  "date_of_record": "2026 November 19",
  "scope": "Applies to autonomous agents that obtain OAuth 2.1 access tokens via dynamic client registration (DCR) against an MCP authorization server and present them to an MCP tool server acting as a resource server (RFC 8707 `resource` indicator binding). Does not apply to static pre-registered confidential clients, nor to deployments where the authorization server and resource server share a single fixed audience with no rotation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-2-1-access-token-after-a-tool-server-s-resource-indicator-rotates-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-2-1-access-token-after-a-tool-server-s-resource-indicator-rotates-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-bind-an-mcp-oauth-2-1-access-token-after-a-tool-server-s-resource-indicator-rotates-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1553,
    "python_slice_tokens": 280,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **token validity** and **token binding**. An OAuth 2.1 access token can remain cryptographically valid (unexpired, correctly signed, `aud` present) while its `resource`/audience binding has silently diverged from the resource indicator the tool server now expects. Agents routinely conflate \"the token works\" with \"the t...",
    "what_was_observed": "An agent held a valid access token minted at `T0` with `resource=https://tools.example.com/mcp`. At `T0+40min` the operator rolled the tool server to a versioned resource URI and updated the authorization server's allowed-resource registry. The tool server's resource-server middleware (validating `aud`/`resource` against its own `/.well-known/oauth-protected-resource` metadata) began returning: The agent's token-refr...",
    "condition_of_validity": "The invariant that must hold is: > For every tool-server call, the `resource` claim in the presented token MUST equal the `resource` value advertised by that server's protected-resource metadata at call time — not at token-mint time. This invariant is violated whenever the resource indicator is mutable and the token is long-lived relative to the rotation cad...",
    "decision_boundary": "The boundary is the branch on `401` disposition. Given a `401` with `error=\"invalid_token\"`: - If the challenge carries a `resource_metadata` URL **and** the token's decoded `resource`/`aud` differs from the metadata's `resource` field → **re-bind**: fetch metadata, re-derive `resource`, re-mint (refresh with explicit `resource`, or full re-authorization if ...",
    "operational_effect": "When the boundary is respected, resource-indicator rotation becomes a transparent single-retry event: the agent detects drift via claim-vs-metadata comparison, re-binds, and continues. When it is not respected, the agent enters a **silent refresh loop** — each iteration succeeding at the token endpoint, each failing at the resource server — that exhausts 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": "3beda8afc64f63d79bf080df2e89423b7b506740e3850b20ccdb1901f8ab44e9",
    "verified_classes": [
      "ResourceBindingMismatch",
      "Token"
    ],
    "verified_functions": [
      "re_bind_token"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResourceBindingMismatch"
    ],
    "sample_fail_closed_invariants": [
      "protected-resource metadata carries no 'resource'; cannot re-derive binding"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
