Skip to content
Docs
Request access

Run in a sandbox

NuraMesh runs test-command gates (and later any command an agent runs) in a sandbox: a hardened container with no network, a read-only system, no extra privileges, a non-root user, memory, CPU and process limits, and a time limit NuraMesh enforces itself. The command gets a copy of the workspace; your files are never changed. A timeout or a sandbox that can’t start is an error, never a pass.

  • A team whose tasks have a test-command gate, for example the my-team folder of the Quickstart.
  • The right to install software on this machine: Podman or Colima on a Mac, Podman or Docker Engine on Linux.
  • Network access once, to pull the gate’s image. The command itself runs with no network.
  1. Install a container runtime and check that its info command works: Install a container runtime.
  2. Make sure the gate’s image is pinned by digest: Images.
  3. Run the team without --allow-unsandboxed: nuramesh try my-team --fake --approve-as human:you.

On a Mac (Apple Silicon), use Podman or Colima. Docker Desktop works but is not required and is not the recommended path (its licence is paid for larger companies).

Terminal window
# Podman
brew install podman
podman machine init
podman machine start
podman info # should print details, not an error
# or Colima (gives you a `docker` command backed by a small VM)
brew install colima docker
colima start
docker info

On Linux, install Podman or Docker Engine from your distribution.

NuraMesh looks for podman first, then docker, and uses the first one whose info works.

Without a runtime, a test-command gate refuses to run; it never falls back to your machine. For local experiments only, there is an opt-out (--allow-unsandboxed on nuramesh try, or allow_unsandboxed=True in open_sandbox). It prints a loud warning, records sandbox.opt_out in the run’s ledger and runs the command on your machine in a copy of the workspace, with only time and output limits. Hosted mode refuses both: command execution stays closed there until a stronger sandbox tier is chosen.

Gate images must be pinned by digest (docker.io/library/python@sha256:…), because a tag like python:3.12 can change under you. Find a digest with podman image inspect --format '{{index .RepoDigests 0}}' python:3.12-slim after pulling it. NuraMesh pulls a missing image before the run (outside the sandbox); the command itself has no network.

The run prints no sandbox warning, and its ledger has no sandbox.opt_out entry. In the report, the test_command gate line reads passed by gate:test_command.

You see Do this
The test gate refuses to run No runtime was found. NuraMesh looks for podman, then docker, and uses the first one whose info works. Start the Podman machine or Colima
The gate result is error, not failed The sandbox could not start, or the command passed its time limit. An error is never a pass: read the gate line for the reason
The image is refused A gate image must be pinned by digest (...@sha256:...), not by tag
podman info prints an error The machine is not running: podman machine start

Was this page helpful?