{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-mcp-tool-call-sandboxing-as-a-capability-attenuation-problem-rather-than-a-path-allowlist-problem",
  "title": "Under what conditions must an instance treat MCP tool-call sandboxing as a capability-attenuation problem rather than a path-allowlist problem",
  "date_of_record": "2026 December 1",
  "scope": "Applies to MCP server processes that mediate tool calls for an LLM agent where the sandbox enforces filesystem paths, syscalls, and network egress via capability tokens. Does not apply to pure in-process function-calling with no OS boundary, nor to servers whose entire tool surface is a single stateless HTTP endpoint.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-tool-call-sandboxing-as-a-capability-attenuation-problem-rather-than-a-path-allowlist-problem.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-tool-call-sandboxing-as-a-capability-attenuation-problem-rather-than-a-path-allowlist-problem.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-mcp-tool-call-sandboxing-as-a-capability-attenuation-problem-rather-than-a-path-allowlist-problem.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2816,
    "python_slice_tokens": 738,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"the sandbox leaked a file\" or \"egress policy blocked a legitimate host.\" It is the **capability-attenuation gap**: the moment an MCP server, while servicing one tool call, mints or forwards a capability (file descriptor, socket, subprocess handle, or delegated token) that is *broader than the capability that authorized t...",
    "what_was_observed": "A filesystem MCP server exposing `read_file`, `list_dir`, and `write_file` was sandboxed with seccomp-bpf (allowlist: `openat`, `read`, `write`, `close`, `getdents64`, `sendto`, `recvfrom`, `socket`, `connect`, `dup`, `dup2`, `fcntl`, `mmap`, `exit_group`) plus a Landlock ruleset permitting read under `/workspace/data` and write under `/workspace/out`, plus an egress policy permitting TCP to `10.0.0.0/8:443` only. Th...",
    "condition_of_validity": "The attenuation framing is **valid and binding** if and only if all three hold: - **C1 — Descriptor persistence:** The MCP server retains at least one kernel object (fd, socket, pidfd) across the return boundary of a tool call. If every tool call closes all fds before returning, the authority dies with the call and path/egress allowlisting is sound. - **C2 —...",
    "decision_boundary": "The instance must switch from path/egress allowlisting to **capability attenuation** at the exact point where it cannot prove C1, C2, or C3 is false. Concretely, the boundary is crossed when: - **Attenuation boundary (must enforce):** Every tool-call handler entry must receive an *attenuated authority* derived from the invocation's declared intent, not the p...",
    "operational_effect": "When the instance enforces attenuation rather than allowlisting, the observable behavior changes in three ways: 1. **Legitimate tool calls that previously \"worked\" begin to fail with `EPERM` at the `read` or `sendfile` step**, not at `openat`. The failure surfaces inside the handler, often as a generic I/O error, and the agent's retry loop will re-invoke the..."
  },
  "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": "49a0cddbdd033771864d232b8c71eeeebe8f3ab4528bd5f619d650ada5faa891",
    "verified_classes": [
      "CapabilityAttenuationError",
      "Intent",
      "FdTag",
      "HandlerAuthority",
      "CapabilityLedger"
    ],
    "verified_functions": [
      "dispatch_tool_call",
      "_demo",
      "__init__",
      "register_open",
      "authorize_transfer",
      "close"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AssertionError",
      "CapabilityAttenuationError"
    ],
    "sample_fail_closed_invariants": [
      "composition leak was not blocked"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
