Configure & operate

Task preparation

Preparation turns a pinned task source, images and audited input bindings into reusable execution inputs. It runs before Run admission, independently of researcher count and GPU capacity.

Plan, apply, inspect

From the repository root, using a copied example Campaign:

uv run --no-dev myxos prepare --config runs/campaign.local.yaml --plan
uv run --no-dev myxos prepare --config runs/campaign.local.yaml --apply \
  --approve-step STEP_ID
uv run --no-dev myxos prepare --config runs/campaign.local.yaml --status

Plan describes work and blockers without executing task recipes. Apply executes only approved steps; review actual step IDs, image builds/downloads and resource costs. A ready result reports READY and a prepared_id.

Pin source and inputs

task:
  folder: examples/kernel_builder/task
  revision: auto
  prepare:
    resource_options:
      audit_development: true

Use clean committed task source. revision: auto pins the checkout revision. Task READMEs specify their own images, scientific datasets, resource declarations and verifier requirements. Keep development-visible subpaths separate from private final inputs.

Preparation audits task evaluation declarations and source projections, materializes approved inputs and binds image/input identities. It never turns final verifier code or private labels into development mounts. The cache holds reusable inputs, not Campaign databases or writable research directories.

Reuse a prepared task

Replace the entire source/preparation task mapping with:

task:
  prepared_id: REPLACE_WITH_VERIFIED_PREPARED_ID

Retain a non-default cache-root selection if used. A prepared identity binds source, inputs and environment; changing it under an existing Campaign invalidates recovery. Docker/Apptainer/native Linux have different preparation requirements; see sandbox support.

Recipe/resource option formats, cache integrity, verifier checks and staging contracts are in the agent reference.