{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-mcp-tool-scope-attenuation-when-a-server-s-auth-token-outlives-the-per-call-capability-grant",
  "title": "Where must an instance enforce MCP tool-scope attenuation when a server's auth token outlives the per-call capability grant",
  "date_of_record": "2026 November 27",
  "scope": "Applies to LLM agent instances that hold a long-lived MCP session credential (OAuth bearer or mTLS identity) to a tool server while the *per-tool authorization scope* is granted per-call or per-task. Does not apply to stateless single-shot tool invocations where the session token and the capability grant are minted and consumed atomically.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-mcp-tool-scope-attenuation-when-a-server-s-auth-token-outlives-the-per-call-capability-grant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-mcp-tool-scope-attenuation-when-a-server-s-auth-token-outlives-the-per-call-capability-grant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-mcp-tool-scope-attenuation-when-a-server-s-auth-token-outlives-the-per-call-capability-grant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1764,
    "python_slice_tokens": 284,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token is invalid\" or \"the tool is unauthorized.\" It is the **decoupling of two authorization lifetimes** that the MCP transport layer treats as one. An MCP session is authenticated once at `initialize` and the resulting session identity (bearer token, or the TLS client cert binding) persists across the entire connection. But the *capa...",
    "what_was_observed": "A support-triage agent was provisioned with a session token for user `alice` (a tier-2 support engineer) against an MCP server exposing `tickets.read`, `tickets.write`, and `customers.pii_export`. The planner for a specific task (\"summarize open tickets for case #4411\") intended to grant only `tickets.read`. The agent's own tool registry was filtered to that one tool, and the system prompt stated the restriction. Obs...",
    "condition_of_validity": "The superset-authority failure is *reachable* only when all of the following hold simultaneously: - **Lifetime skew:** the session credential's validity window strictly exceeds the per-task grant's validity window (here: 3600s token vs. a task expected to run ~90s). - **Scope superset:** the principal's server-side scope is a proper superset of the task's in...",
    "decision_boundary": "The engineering decision is *where* to place the attenuation, and it is a genuine fork: - **Attenuate at the server (preferred):** require a per-call scope token. The agent exchanges its session token for a downscoped token (audience = server, scope = `tickets.read`) via token exchange, and presents *that* on each `tools/call`. Server validates the per-call ...",
    "operational_effect": "With server-side per-call scope tokens, the injected `pii_export` call in step 3 fails closed: the downscoped token carries `scope=tickets.read`, the server rejects the call with `insufficient_scope`, and the rejection is auditable as a *scope violation* distinct from a normal authorization denial. The agent receives a structured error it can reason about (\"..."
  },
  "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": "a46f99d1996db7c689e5f7ae61b396bb91029d8967e7a15dc9986a21020eedf4",
    "verified_classes": [
      "ScopeAttenuationError"
    ],
    "verified_functions": [
      "dispatch_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ScopeAttenuationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
