Run, resume and upgrade

Validate the matrix before provisioning anything, launch the experiment, resume interrupted sweeps, and choose how produced files leave the sandbox.

Validate before launch

uv run python -m ale_run run my_experiment.yaml --dry-run

The dry run resolves the experiment, agent presets, environment routing, and task list. It prints every agent × task × variant unit without creating a sandbox.

Launch and filter

A real run first checks host evaluator package versions, imports, native tools, and selected task entry points, then probes any required Judge interfaces. Failures abort before sandbox creation. Use bash env/verify_host_env.sh to check all 122 active task entry points after installing ALE. A dry run does not perform these checks.

uv run python -m ale_run run my_experiment.yaml

# Run only selected entries from the matrix:
uv run python -m ale_run run my_experiment.yaml \
  --agent claude_code \
  --task demo/hello

concurrency limits units in flight. Each active unit owns one sandbox while ALE provisions it, stages data, runs the agent, collects artifacts, and evaluates the result. Provider quotas, host memory, disk latency, and LLM rate limits can all become the practical bound.

When the agent's main session exits, supervised background tools may finish within the remaining agent time budget. Timeout or cancellation stops the supervised process tree. ALE confirms process exit before staging or decrypting reference data and starting evaluation.

On Linux with systemd, the solver and its supervisor run in a separate service from CUA, so a worker OOM does not trigger CUA's service-wide shutdown. Only the supervisor receives OOM protection; workers retain normal priority. Agent results are recorded before cleanup, and failed termination confirmation still blocks reference access. The sandbox needs root or noninteractive sudo access to systemd-run and systemctl. Without systemd, ALE retains detached process supervision; Windows uses Job Objects.

Resume and retry failed units

auto_resume: true
max_attempts: 3

Auto-resume is enabled by default. It scans prior run.json files under the same experiment name and output root, skips units with status completed or timeout only when task.revision matches the current task-folder SHA256 and eval_result.json confirms a successful, error-free evaluation with the same numeric score. Unscored evaluation timeouts are not complete. Missing or mismatched hashes rerun. The hash is recorded before setup and covers file names, contents, executable bits, and link targets, ignoring runtime caches. Newly failed units are requeued. max_attempts accepts 1 through 3 and counts the initial run within that invocation. Every attempt keeps its own run directory.

Excavation-support and UV-reproduction evaluation use separate sandbox directories for each invocation. Model snapshots, renders and diagnostic receipts stay in the sandbox; host-side scoring uses memory without writing to task folders or changing their hashes. Use cleanup_mode: keep to inspect sandbox evidence before releasing it.

Disable resume for one invocation

uv run python -m ale_run run my_experiment.yaml --disable-resume

This command-line override runs every selected unit exactly once. It does not scan prior results or retry failures. Set auto_resume: false in the experiment YAML to make that behavior persistent.

Upgrade v1 logs

First select the matching v1.1 code, images, data, and task list. In custom QEMU profiles, rename hf_revision to image_revision, keeping the same pin. Set tasks: selected_tasks/v1.1_modified.txt and use a fresh output.root to run the 57 tasks modified at release. The other 65 active tasks were unchanged at release. Reuse valid v1 results only when the task, data, environment and agent configuration match, and exclude the 30 retired tasks. Later task changes may require another run. Keep original records intact; resume reruns records without a matching task hash rather than importing them automatically.

To run v1 instead, follow Run original v1. Use the tagged code, legacy images and fresh logs; do not reuse v1.1 results for that run.

Choose where task output goes

output.root in the experiment controls the host directory for run records. output_path in the environment controls what happens to files produced inside the task's sandbox:

ValueBehaviorUse
null (default)Leave bulk task output in the sandbox; collect metadata, trajectories, evaluations, and telemetry.Benchmark runs; use cleanup_mode: keep to inspect deliverables in the sandbox.
localCopy into the run's output/ directory.Local development and outputs you want beside the run record.
gs://<bucket>Upload from the sandbox to <bucket>/<run_id>/output/.Large batch artifacts and centralized storage.

With cleanup_mode: delete, sandbox files are removed at cleanup. Retained sandboxes still consume resources; preserve needed evidence, then stop or delete them after inspection. Include running and paused retained VMs in the host memory budget.

Local collection uses the fastest available provider transport: Docker uses docker cp, the QEMU provider uses a per-run guest share, and other providers use the CUA file API. GCS output uses sandbox-side gsutil. Managed providers use gcs_sa_key to inject a service-account key; a static sandbox must already have working Cloud Storage credentials.

Output collection is best-effort
An output transfer failure is recorded in events.jsonl but does not prevent evaluation while the sandbox is still alive. Check output_gather_done or output_gather_failed when artifacts are required.

Choose cleanup behavior

ModeManaged providers
deleteRemove the GCE VM, Docker container, or QEMU container and disposable overlay.
stopStop the sandbox but preserve its provider-managed state for inspection.
keepLeave it running.

The static provider never owns the attached machine. Its optional cleanup script is the only release action it performs.

Read the result

Each unit writes a timestamped run directory containing events.jsonl, run.json, eval_result.json, the normalized trajectory, native agent logs, screenshots, and any locally collected output. run.json records the task hash in task.revision and provider image provenance in environment.image_revision. See Trajectories & artifacts for the complete layout.