The Context Course
Use this for any single Autolab experiment that should result in exactly one managed benchmark run.
Workflow
- Load the local operator env and refresh from local master:
. ~/.autolab/credentialsuv run scripts/refresh_master.py --fetch-dag
- Edit only
train.pyfor the single intended hypothesis. - Run preflight before launch:
uv run scripts/hf_job.py preflight
- Launch exactly one managed experiment:
uv run scripts/hf_job.py launch --mode experiment
- Stream logs and parse the final metric:
uv run scripts/hf_job.py logs <JOB_ID> --follow --output /tmp/autolab-run.loguv run scripts/parse_metric.py /tmp/autolab-run.log
- Record the run locally:
uv run scripts/submit_patch.py --comment "..."
- Promotion is local and only happens if
val_bpbbeats current master.
Guardrails
- Treat
train_orig.pyas the refreshed local-master base. If preflight reports multiple known hypothesis categories, stop and inspect the diff before launching. - Ignore repo git
mainandorigin/mainwhen judging freshness. In this rig repo those refs describe control-plane history, not the benchmark master. The comparable base is whateverrefresh_master.pyjust wrote intotrain_orig.py,research/live/master.json, andresearch/results.tsv. - Never run
uv run scripts/hf_job.py launch --mode preparefrom an experiment-scoped worktree.prepareis shared bootstrap work, not per-experiment work. - Do not launch a second experiment job for the same experiment unless you have a specific reason and intentionally override the duplicate check.
- If the workspace looks stale against the current local master, stop and rewrite the experiment rather than rationalizing the mismatch.
Fast Checks
uv run scripts/hf_job.py preflight --jsonUse this when you need to inspect the diff preview, active conflicts, or detected change categories programmatically.uv run scripts/trackio_reporter.py summary --max-jobs 25Use this to confirm the experiment id or hypothesis is not already active.