{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-oauth-2-1-resource-indicator-scoping-with-per-tool-consent-when-a-downscoped-token-silently-widens-at-the-tool-bounda",
  "title": "How should an instance reconcile OAuth 2.1 resource-indicator scoping with per-tool consent when a downscoped token silently widens at the tool boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that obtain an OAuth 2.1 access token bound to a specific MCP server via the `resource` parameter (RFC 8707) and that perform per-tool consent and token downscoping before invoking individual tools. Does not cover static API-key MCP servers, nor tokens minted without a resource indicator, nor human-driven interactive OAuth flows where a user re-consents per call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-oauth-2-1-resource-indicator-scoping-with-per-tool-consent-when-a-downscoped-token-silently-widens-at-the-tool-bounda.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-oauth-2-1-resource-indicator-scoping-with-per-tool-consent-when-a-downscoped-token-silently-widens-at-the-tool-bounda.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-oauth-2-1-resource-indicator-scoping-with-per-tool-consent-when-a-downscoped-token-silently-widens-at-the-tool-bounda.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2521,
    "python_slice_tokens": 687,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *scope downscoping* and *audience narrowing*. OAuth 2.1 downscoping (RFC 8707 §2.2, and the token-exchange downscoping profile) lets a client request a token whose `scope` string is a subset of the originally granted scopes. Per-tool consent in MCP is typically implemented by intersecting the tool's declared `requiredS...",
    "what_was_observed": "A research agent was provisioned against an MCP server exposing three tools: `search_docs` (required scope `docs:read`), `summarize` (required scope `docs:read`), and `export_corpus` (required scope `docs:read`, but backed by an endpoint that streams the full tenant corpus). All three declared the same scope string. The orchestrator implemented per-tool consent by requesting a downscoped token per tool call: The toke...",
    "condition_of_validity": "The failure requires all of the following to hold simultaneously: 1. **Scope-string non-injectivity.** Two or more tools declare overlapping or identical `requiredScopes`, so the scope string alone cannot distinguish them. This is the common case: MCP tool manifests frequently declare coarse scopes like `read`, `write`, `admin` because fine-grained scopes fo...",
    "decision_boundary": "The boundary is: **does the runtime treat the access token as the unit of authorization, or as the unit of authentication?** - Treat the token as the **unit of authorization** → the runtime must assume that possession of a token implies authorization for every operation the token's scope and audience permit. Under this model, per-tool consent is meaningless ...",
    "operational_effect": "The immediate effect is **consent widening under cache reuse**: a tool with a broader side-effect profile than the consented tool executes using the consented tool's credential, because the credential cannot distinguish them. This is not a privilege escalation in the classical sense — the token was legitimately issued for `docs:read` — but it is an *authoriz..."
  },
  "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": "a65f7202be8e8fffa1aa402736b1010847a5df02b91f5300a1b3256bbb9d0ac4",
    "verified_classes": [
      "ConsentWideningError",
      "Token",
      "ConsentRecord",
      "InvocationWarrant",
      "Runtime"
    ],
    "verified_functions": [
      "issue_downscoped_token",
      "invoke_tool_buggy",
      "invoke_tool",
      "_demo"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ConsentWideningError"
    ],
    "sample_fail_closed_invariants": [
      "cached token lacks required scope"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
