Running a study
Running a study
We drive everything with one subcommand and four verbs: init, run, status, stop. Pass --recipe-dir and/or --study-dir; nothing else needs to be running first.
init
espnet3 atlas init --recipe-dir egs3/chime4/asr --config conf/atlas.yamlThis sets up study_dir (knowledge/, trials/, node_runs/), freezes conf/atlas.yaml as study_dir/atlas.yaml (every later command reads this frozen copy, not the recipe's original), copies the graph we named in atlas.application to graph.yaml, copies our objective to program.md, and queues the first node run. We can re-run init safely — it refreshes config/graph/program but never touches trial/node-run state.
run
espnet3 atlas run --recipe-dir egs3/chime4/asr \
--study-dir egs3/chime4/asr/exp/atlas/my_studyThis starts the controller: it ticks local graph nodes, submits trial jobs, and notices jobs that died. Where it runs depends on what we set for atlas.submission.controller.run_in (see Configuration).
run_in: local
Our own process is the controller, so we keep it alive in tmux/screen:
tmux new -s atlas-my-study
espnet3 atlas run --recipe-dir . --study-dir exp/atlas/my_study
# detach with ctrl-b d; check back later with `espnet3 atlas status`run_in: queue
espnet3 atlas run --recipe-dir . --study-dir exp/atlas/my_studysubmits the controller itself as a scheduled tick job and returns right away — we don't need anything alive on the login node. The tick job re-invokes itself, loops until near its walltime, then submits its own successor ("handoff") before exiting:
time ───────────────────────────────►
trial jobs [─ trial 1 ─][─ trial 3 ─] ... (independent, submitted by the controller)
tick job A [tick·tick·tick]··✕ ✕ = walltime approaching
▲ handoff: A submits B, exits
tick job B [tick·tick·tick]··✕
▲ handoff: B submits C, ...If we run espnet3 atlas run again while a tick job is already alive, nothing happens twice — so it's safe to re-run after a login-node reboot.
Each tick runs our ready local nodes, submits any execution: submission node as a job, checks for dead jobs, sleeps for tick_interval_sec_trial_active/_idle, then repeats.
status
espnet3 atlas status --study-dir egs3/chime4/asr/exp/atlas/my_studystudy_dir: egs3/chime4/asr/exp/atlas/my_study
trials: 7
best: trial_000004 score=0.082
trial_status: accepted=2 failed=1 rejected=3 running=1
stop_file: no
active_jobs: 1
trial_000007 trial running id=3046983.pbs1This only reads recorded state, so it never disturbs anything — we can run it anytime, from anywhere. Status can lag the scheduler slightly.
stop
espnet3 atlas stop --study-dir egs3/chime4/asr/exp/atlas/my_studyThis writes a STOP file. The controller (or tick job) exits on its next check, lets in-flight trials finish, and submits nothing new. We use this instead of killing the controller process ourselves.
Resuming
We just run espnet3 atlas run again. Every stage caches its result (study_dir/node_runs/<run_id>/), and run_trial tracks which train/infer/measure sub-stage finished (trial_dir/stage_status.yaml), so we resume from where we left off — a trial even resumes training from exp/last.ckpt automatically.
Agent Logs
Every agent call lands on disk:
<artifact_dir>/agent_calls/call_<uuid>/
agent_prompt.txt # exact prompt sent to the CLI
agent_schema.json # JSON Schema the reply was constrained to (if any)
agent_output.txt # the parsed final reply
agent_stdout.log # raw CLI stdout
agent_stderr.log # raw CLI stderr
agent_parse_error.json # only present if the reply failed schema validationWe look under trials/<trial_id>/ for trial-level skills (propose, debug, reflect), or node_runs/<run_id>/ for study-level skills (research_context, analyze) — this is where we start when we need to see what the agent was told and what it answered.
Full Example
cd egs3/mini_an4/esp2_asr
espnet3 atlas init --recipe-dir . --config conf/atlas.yaml
espnet3 atlas run --recipe-dir . --study-dir exp/atlas/mini_an4_ci_check
espnet3 atlas status --study-dir exp/atlas/mini_an4_ci_check
# once we're satisfied:
espnet3 atlas stop --study-dir exp/atlas/mini_an4_ci_check
cat exp/atlas/mini_an4_ci_check/summary.md