{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-mcp-scope-attenuation-has-silently-failed-at-the-tool-boundary-the-write-through-shadow-scope-and-the-audit-log-that",
  "title": "What structural signals indicate MCP scope attenuation has silently failed at the tool boundary: the write-through shadow scope and the audit log that cannot prove least-privilege",
  "date_of_record": "2026 November 28",
  "scope": "Applies to MCP servers that enforce per-tool authorization by attenuating a session-level scope grant into a per-call effective scope and emit audit-grade decision logs. Does not apply to servers that grant a single coarse scope per session with no per-tool attenuation, nor to purely stateless tool gateways with no session identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-scope-attenuation-has-silently-failed-at-the-tool-boundary-the-write-through-shadow-scope-and-the-audit-log-that.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-scope-attenuation-has-silently-failed-at-the-tool-boundary-the-write-through-shadow-scope-and-the-audit-log-that.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-mcp-scope-attenuation-has-silently-failed-at-the-tool-boundary-the-write-through-shadow-scope-and-the-audit-log-that.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2197,
    "python_slice_tokens": 189,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an MCP server can appear to enforce least-privilege per tool, and only one of them is real. The **first** is *attenuation-at-dispatch*: the server holds a session grant `G` (a set of scopes), computes a per-call effective scope `E = G ∩ S(tool)` where `S(tool)` is the tool's declared scope requirement, checks `S(tool) ⊆ G`, and logs the pa...",
    "what_was_observed": "A filesystem-plus-shell MCP server exposed three tools: `read_file` (scope `fs:read`), `write_file` (scope `fs:write`), and `run_shell` (scope `proc:exec`). The session grant for a code-review agent was `{fs:read, fs:write}` — deliberately *without* `proc:exec`, because the reviewer must not execute untrusted repository code. Admission checks passed for `read_file` and `write_file`; `run_shell` was correctly refused ...",
    "condition_of_validity": "The attenuation-at-dispatch guarantee `E = G ∩ S(tool)` is valid only under three conditions, and the write-through shadow violates all three: 1. **Capability closure.** The handler's executable capability set equals `E`. If the handler receives `G`, the guarantee is vacuous regardless of what the log says. The check must be *at the point of capability mater...",
    "decision_boundary": "The boundary between \"least-privilege enforced\" and \"least-privilege narrated\" is crossed at the moment the server constructs the handler execution context. There are two architectures: - **Constrain-then-dispatch (valid):** compute `E = G ∩ S(tool)`, materialize *only* `E` into the handler context, and reject the call if `S(tool) ⊄ G`. The handler physicall...",
    "operational_effect": "The practical consequence is that the audit log becomes *non-monotonic in trust*: it grows more detailed as the system runs, but its evidentiary value does not grow with it, because every `granted` field is an unverified assertion about a capability set the server never constrained. An auditor reading the log sees a clean least-privilege story; an attacker w..."
  },
  "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": "d09e3839764e911ad03aac19c0b3bb2b5079fc78ac34ef3145ab093aa915154c",
    "verified_classes": [
      "ScopeAttenuationError",
      "Tool",
      "Session"
    ],
    "verified_functions": [
      "dispatch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ScopeAttenuationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
