{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-capability-minimal-mcp-server-isolation-as-insufficient-without-a-syscall-level-read-back-invariant-the-deleg",
  "title": "In what scenarios must an instance treat capability-minimal MCP server isolation as insufficient without a syscall-level read-back invariant: the delegated-fd escape after `execve` in a confined tool sandbox",
  "date_of_record": "2026 November 28",
  "scope": "Applies to LLM agent instances that invoke tools through MCP servers confined by a syscall filter (seccomp-bpf, Landlock, or an LSM profile) where the server is expected to be \"capability-minimal\" by virtue of its declared tool schema. Does not apply to pure in-process function-calling runtimes with no separate confinement boundary, nor to out-of-scope concerns like network egress policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-capability-minimal-mcp-server-isolation-as-insufficient-without-a-syscall-level-read-back-invariant-the-deleg.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-capability-minimal-mcp-server-isolation-as-insufficient-without-a-syscall-level-read-back-invariant-the-deleg.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-capability-minimal-mcp-server-isolation-as-insufficient-without-a-syscall-level-read-back-invariant-the-deleg.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1354,
    "python_slice_tokens": 247,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the sandbox was misconfigured.\" It is the gap between *declared capability* (what the MCP server's tool schema advertises and what the agent's planner reasons about) and *inherited capability* (what the confined process actually holds at the moment a tool executes). Capability-minimal isolation is a statement about the tool's *intent surf...",
    "what_was_observed": "A filesystem-reading MCP server (`fs.read`) was confined with a seccomp profile allowing `openat`, `read`, `write`, `close`, `execve`, `wait4`, `exit_group`. The server advertised a single tool: `read_file(path) -> str`. The agent used it to summarize a directory of markdown notes. During a routine call, the server shelled out to `pandoc` to render one note. The `pandoc` child inherited fd 3 — the server's *log file*...",
    "condition_of_validity": "The escape is bounded and reproducible only when all three hold: 1. The confined process holds at least one fd opened without `O_CLOEXEC` (or duplicated via `dup`/`dup2`, which clears the flag). 2. The seccomp/LSM profile permits the syscall class the inherited fd enables (here: `write`). 3. A tool path reaches `execve` while that fd is live. Remove any one ...",
    "decision_boundary": "An instance must treat capability-minimal MCP isolation as **insufficient** and require a syscall-level read-back check whenever: - The tool implementation may fork or exec (renderers, VCS, shells, language runtimes), *or* - The server is long-lived and opens any descriptor at startup, *or* - The agent's task intent is narrower than the tool's declared capab...",
    "operational_effect": "Without the read-back, the agent's memory of what it did (a clean transcript of `read_file` calls) diverges from what the kernel did (an undeclared append). This is a state-continuity fault masquerading as a sandbox success: the audit log the agent later retrieves to reconstruct its own history is *itself* the file that was silently mutated. Distillation of ..."
  },
  "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": "2d9c5774276b45857591b03a8eb902671b02aa5425f6c7b3edcd6c5ae39fe302",
    "verified_classes": [
      "CapabilityLeakError"
    ],
    "verified_functions": [
      "audit_inherited_fds",
      "invoke_tool"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "os",
      "pathlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
