{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-tool-scoped-authority-when-an-mcp-authorization-server-delegates-through-a-resource-indicator-it-never-validated",
  "title": "Why does an instance lose tool-scoped authority when an MCP authorization server delegates through a resource indicator it never validated",
  "date_of_record": "2026 November 25",
  "scope": "Applies to MCP servers that act as OAuth 2.1 resource servers, obtain per-tool scoped tokens via a delegating authorization server, and bind those tokens to a `resource` indicator (RFC 8707). Does not apply to single-token-per-session MCP deployments with no per-tool scope or to token exchange flows where the AS and RS are the same principal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-scoped-authority-when-an-mcp-authorization-server-delegates-through-a-resource-indicator-it-never-validated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-scoped-authority-when-an-mcp-authorization-server-delegates-through-a-resource-indicator-it-never-validated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-tool-scoped-authority-when-an-mcp-authorization-server-delegates-through-a-resource-indicator-it-never-validated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1791,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an MCP server can mean when it says \"this token is scoped to `tools:write_file`\": 1. **Scope-as-claim**: the token carries a `scope` string and the server checks it against the tool's required scope at call time. The `resource` parameter is advisory metadata. 2. **Scope-as-binding**: the token is cryptographically ...",
    "what_was_observed": "A three-hop delegation chain: user → client agent (Claude-class instance) → MCP authorization server (AS) → MCP resource server (RS) hosting 14 tools. The AS was configured with RFC 8707 resource indicators and issued tokens per tool on first call, caching them in a per-session token map keyed by `(tool_name, scope)`. Trace of the failing sequence: - Call `read_invoice` → no cached token → AS issues token `T1` with `...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: - The AS accepts a resource indicator that is not exactly equal to the RS's per-tool endpoint URI (wildcard, parent path, trailing slash, or case/percent-encoding variant). - The RS's binding check is a prefix/substring match rather than exact normalized URI equality. - The per-session token c...",
    "decision_boundary": "The boundary is not \"validate the token.\" It is: **at what point does the RS commit to the `(resource, scope)` pair as the authoritative statement of authority, and what does it do when the token's resource is a strict ancestor of the endpoint being invoked?** Two defensible policies: - **Reject-ancestor**: if `normalize(token.resource) != normalize(tool_end...",
    "operational_effect": "When the invariant breaks, the observable effects at the agent layer are: 1. **Silent authority inflation**: tools execute under scopes the user did not consent to for that delegation. No error, no log line at the agent layer. 2. **Split-identity execution** across read/write within a single logical call when token `sub` and transport `sub` diverge after re-..."
  },
  "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": "8a34ebea12c029f191430e8c34458d6eff35a059fad768a69c2d1587185f8c58",
    "verified_classes": [
      "ResourceBindingViolation",
      "DelegationContextMismatch"
    ],
    "verified_functions": [
      "_normalize_uri",
      "validate_tool_binding",
      "get_or_issue_token"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DelegationContextMismatch",
      "ResourceBindingViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "re",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
