DecisionBoundALPHA 0.13.0a2 · RESEARCHConcept demo

Sandboxing, isolation and failure boundaries

This page describes the implemented controls and their limits. A Git worktree isolates source changes, not process execution. A Docker container can constrain tests, but a Docker daemon, image provenance and host kernel remain trusted components; this is not a hardened multi-tenant isolation service.

Trust boundaries

Element Trust level Allowed responsibility
User / operator Explicit consent Approve patches, authorize remote model calls and sandbox tests
Model / patch proposer Untrusted Produce a text patch and explanation; never grant permission
Source files and skill text Untrusted data Supply bounded context, never override policy
Host patch validator Trusted local code Enforce patch syntax, path/mode restrictions and Git preflight
Detached worktree Disposable filesystem Receive isolated writes, never change tracked files in original checkout
Docker test backend Constrained but not certified Execute selected commands without network, privileged mounts or credentials
Local event ledger Authoritative receipt metadata Store hashes/counters/status; no raw source or model output
Independent verifier Trusted host code Compare receipts; reject missing or changed evidence; never assert general task completion

Process containment is not isolation

Worker containment can kill a worker's process tree on a deadline, a cancel or a lost leadership, and it reaps trees a crashed coordinator left behind. That bounds how long a worker runs. It does not restrict what the worker can read, write or reach on the network. Descendants that leave the process group or job object escape it. Filesystem, network and credential isolation stay with the Docker path.

Threat-oriented safeguards

Limitations that must stay visible

Local smoke and test suites

python -m pytest -q tests/unit/test_code_provider.py tests/security/test_code_patch_security.py \
  tests/security/test_code_sandbox.py tests/integration/test_code_workflow.py \
  tests/integration/test_code_artifacts.py tests/contract/test_code_extension_contracts.py
python examples/mock_patch_agent.py

To run the optional real Docker check with a pre-pulled local image:

export DBOUND_DOCKER_TEST_IMAGE=python:3.12-slim
python -m pytest -q tests/integration/test_docker_real_optional.py tests/integration/test_docker_isolation_real.py

The second file probes the container from the inside: loopback-only network, read-only root, dropped capabilities, no new privileges, no host secrets or Docker socket, no disk-backed host path mounted except the workspace, CPU, pids and memory limits, and removal of a timed-out container. It runs in the docker-code-sandbox CI job with no skips allowed. The container runs as the calling user. A root caller is refused before Docker or Podman is contacted, so run the sandbox as a non-root user.

See Coding agent execution and Verification.