{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-escape-its-syscall-sandbox-when-an-mcp-tool-returns-a-path-that-resolves-through-a-writable-bind-mount",
  "title": "Why does an instance escape its syscall sandbox when an MCP tool returns a path that resolves through a writable bind mount?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agent instances whose tool invocations are confined by syscall-level sandboxes (seccomp filters, Landlock, or namespace-based bind mounts) and whose tool outputs are untrusted MCP JSON payloads containing filesystem paths, symlinks, or device references. Does not apply to sandboxes that resolve all paths against a pre-opened directory file descriptor set (openat2 with `RESOLVE_BENEATH` and no writable mounts) or to purely network-isolated executors with no filesystem surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-syscall-sandbox-when-an-mcp-tool-returns-a-path-that-resolves-through-a-writable-bind-mount.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-syscall-sandbox-when-an-mcp-tool-returns-a-path-that-resolves-through-a-writable-bind-mount.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-syscall-sandbox-when-an-mcp-tool-returns-a-path-that-resolves-through-a-writable-bind-mount.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The syscall sandbox constrains *which syscalls the process may issue* and *which mount namespace it sees at start time*. It does not constrain *what the untrusted MCP payload declares as a path*. These are two different trust boundaries and they are routinely conflated. A seccomp profile that permits `openat`, `read`, `write`, and `fstat` is correct as a sys...",
    "what_was_observed": "An agent instance was executing a multi-step task: fetch a document via an MCP `fetch_url` tool, write it to `/work/scratch/doc.md`, then invoke a second MCP `summarize` tool that returned a path to a cached artifact. The sandbox was configured with a seccomp allowlist and a mount namespace containing: - `/` — read-only rootfs - `/work/scratch` — read-write tmpfs (intended workspace) - `/tmp/tool-cache` — read-write ...",
    "condition_of_validity": "The confinement holds—i.e., the syscall sandbox actually bounds reachable paths—only when all of the following are true simultaneously: 1. Every mount in the sandbox namespace is either read-only or a tmpfs with no host backing. 2. No writable mount has a parent outside the sandbox root that is reachable via `..` (i.e., the writable mount is itself the names...",
    "decision_boundary": "The decision boundary is: *does the agent resolve untrusted paths itself, or does it hand them to the kernel?* - **Hand to kernel (`openat(AT_FDCWD, s)`):** the kernel performs resolution against the live mount namespace, including any writable bind mounts, and the agent inherits whatever reachability those mounts expose. This is the failure mode above. - **...",
    "operational_effect": "The operational consequence is that syscall-level sandboxing provides *no path confinement* in the presence of writable bind mounts unless the agent enforces `RESOLVE_BENEATH` resolution. Operators who add writable mounts for caching, sockets, or scratch space—common and reasonable—silently widen the reachable set to the host parent of every such mount. An u..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "d8d08e6169c7158f25f65ec7da21e2be15a60e4177cffade88395cbfb1e8387e",
    "verified_classes": [
      "SandboxPathEscape",
      "_OpenHow"
    ],
    "verified_functions": [
      "open_beneath",
      "read_tool_artifact",
      "demo"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OSError",
      "SandboxPathEscape"
    ],
    "sample_fail_closed_invariants": [
      "MCP payload missing string 'cached' field"
    ],
    "stdlib_dependencies": [
      "ctypes",
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
