Mac Docker Desktop CPU sandbox
Run myxos run --config ... from macOS with a desktop section. The Mac CLI checks the Docker engine and cached control image architecture, then starts the ordinary Linux myxos CLI in a trusted control container. Its state, journals, cache, IPC and workspaces live in one Docker-managed volume. Research containers receive only their audited subpaths. Only the control container receives the Docker socket. The optional PID namespace deadline owner survives control container death and ends all researcher descendants at the original cutoff.
The profile supports sandbox.backend: docker and compute.backend: none. No GPU discovery is performed. Both Intel and Apple Silicon select their native linux/amd64 or linux/arm64 images; mismatches fail before a Run starts. Supply an already-built local control image containing Python 3.12, myxos and its locked dependencies, Git and a current Docker CLI. Its architecture and myxos revision must match the host installation. The myxos command must be on PATH. Select the image's immutable local ID for desktop.control_image:
docker image inspect YOUR_LOCAL_CONTROL_IMAGE --format '{{.Id}}'
The chosen research and verifier images must already be cached for the same architecture and declared as SHA256 IDs in the task preparation options. A verifier image must contain /tests/test.sh and its dependencies. Preparation does not pull or build images during Run startup. A minimal fixture generator and verifier Dockerfile are in test/manual/prepare_mac_fixture.py and test/fixtures/mac-verifier.Dockerfile. The verifier recipe expects a reviewed task build context containing tests/test.sh; it does not use the repository root as its build context. Build it separately, then generate a fresh Campaign with its image ID.
Example desktop and runtime selections in a Campaign YAML:
desktop:
control_image: sha256:REPLACE_WITH_LOCAL_CONTROL_IMAGE_ID
volume: myxos-my-campaign
name: myxos-my-control
observer_port: 18765
task:
folder: /absolute/path/to/clean-committed-harbor-task
prepare:
resource_options:
audit_development: true
platform: linux/arm64 # use linux/amd64 on Intel
images:
development: sha256:REPLACE_WITH_CACHED_RESEARCH_IMAGE_ID
verifier: sha256:REPLACE_WITH_CACHED_VERIFIER_IMAGE_ID
campaign:
name: my-mac-campaign
state_dir: ./runs/host-placeholder # replaced by the persistent Linux volume
run:
duration_seconds: 360
parallel_agents: 2
agent:
backend: harbor
harness: codex
model: ACCOUNT_SUPPORTED_MODEL
auth_file: /absolute/path/to/selected/auth.json
network: public
sandbox:
backend: docker
communication:
policy: shared_artifacts
version: 1
options: {}
compute:
backend: none
evaluation:
backend: harbor
sealed_final_only: true
The selected auth file is mounted read-only into the trusted control container; its private Linux projection lives in the control container's memory filesystem, outside the Campaign volume and researcher mounts. The source must be a private, current-user-owned Codex login file (chmod 600), as required by the shared auth resolver. This desktop profile accepts the legacy agent.auth_file selection; named/env profiles and --user-config must be used on a Linux Controller and are explicitly rejected by Mac dispatch. Use a separate verifier image and HarborEvaluationBackend with the recorded sandbox config for frozen replay. desktop.observer_port is published only on Mac loopback; the control container uses its own Docker bridge, separate from researcher networking.
Use a control image from the same code revision as the host installation. It stages the compute, evaluation and communication tool dispatchers; mismatched images may lack the runtime tools required by the Campaign.
myxos run --config runs/campaign.yaml --check
myxos run --config runs/campaign.yaml
myxos desktop status --config runs/campaign.yaml
open http://127.0.0.1:18765/
myxos desktop export --config runs/campaign.yaml --output runs/exported-campaign
myxos desktop stop --config runs/campaign.yaml
# After a control container crash, repeat `myxos run` with the same config.
# A new Run after finalization requires --resume and a reviewed new deadline.
The Mac CLI pins the Docker engine ID, socket, control image, architecture, volume and configuration. A changed deployment identity fails instead of following a new Docker context. A matching existing control process reconnects; after a crash the same command recovers the existing Run and deadline. Qualify the control/task images, recovery and selected harness on the actual Mac host; see testing guidance.