{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-an-mcp-tool-server-silently-retain-filesystem-authority-after-its-declared-capability-scope-is-revoked-mid-session",
  "title": "Why does an instance of an MCP tool server silently retain filesystem authority after its declared capability scope is revoked mid-session?",
  "date_of_record": "2026 November 19",
  "scope": "Applies to long-lived MCP server processes that are granted a capability scope (tool allowlist + resource path allowlist + TTL) at session handshake and are expected to enforce least-privilege per invocation. Does not apply to stateless per-call tool servers that tear down and re-exec their sandbox on every `tools/call`, nor to servers whose sandbox is enforced by an external kernel/OS mechanism the agent cannot reconfigure.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-tool-server-silently-retain-filesystem-authority-after-its-declared-capability-scope-is-revoked-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-tool-server-silently-retain-filesystem-authority-after-its-declared-capability-scope-is-revoked-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-mcp-tool-server-silently-retain-filesystem-authority-after-its-declared-capability-scope-is-revoked-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2284,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **capability revocation as a message** and **capability revocation as a state transition**. In an MCP deployment, the orchestrator typically revokes or narrows a scope by sending a control message (a `notifications/capabilities/updated`, a new session descriptor, or an out-of-band policy push). The server *receive...",
    "what_was_observed": "A representative trace, reproducible on a filesystem-backed MCP server exposing `read_file`, `write_file`, and `list_dir` under a scoped root: 1. **Handshake.** Orchestrator issues a session descriptor: scope `{tools: [read_file, write_file, list_dir], roots: [/work/project], ttl: 3600s}`. Server caches `roots` into a resolver object and also opens a directory handle `dh = open(\"/work/project\", O_DIRECTORY)` for fast...",
    "condition_of_validity": "The guardrail — \"re-check scope at every syscall boundary, not at dispatch\" — is only *necessary* under the following conditions, and stating them precisely is what separates a real fix from cargo-cult re-validation: - The server holds **stateful handles** (fds, mmaps, subprocess pools, connection pools) across invocations. If every invocation opens and clos...",
    "decision_boundary": "The decision the operator must make is *where* to place the revocation barrier, and it is a genuine tradeoff, not a free lunch: - **Quiesce-then-revoke (drain barrier).** Revocation blocks until all in-flight invocations complete, then swaps scope atomically. Cost: revocation latency equals the slowest in-flight call, which under a slow FUSE read can be seco...",
    "operational_effect": "The operational consequence is that **capability narrowing is not monotonic in authority unless handles are invalidated.** An orchestrator that reasons \"I narrowed the scope, therefore the agent's blast radius shrank\" is reasoning about the declared surface and will be wrong for the duration of any live handle or forked worker. This matters most in the exact..."
  },
  "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": "7806a06492300c1094ad401adf33103a3203cacc6541093e97c3dd1336c5996f",
    "verified_classes": [
      "ScopeDivergenceError",
      "Scope",
      "ScopedHandle",
      "ScopedToolServer"
    ],
    "verified_functions": [
      "demonstrate_divergence",
      "__init__",
      "_live_scope",
      "revoke",
      "open_for_read",
      "read"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ScopeDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "handle closed"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "threading",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
