P9 · round 2 · settled: the project catalog's env node
Preflight: a 20-second environment check before a long run
Several runs failed hours in for reasons that had nothing to do with the code: the disk filled, a toolchain wasn't on PATH, a database or the Docker VM wasn't up, or a stale dev server held the port. Each failure cost an agent's work and a resume. A preflight checks those once, before the first agent starts, and stops with a clear message instead.
The useful part is that it learns. When a run fails on something environmental (ENOSPC, command not found, EADDRINUSE), baton adds that check to the project catalog's env node. Next run, it's checked up front.
| seen in your sessions | preflight check that would have caught it |
tinker: No space left on device ×8 mid-build | free disk ≥ project threshold; offer the known cleanup (cargo clean, old targets) |
tinker: Rust not on PATH (/opt/homebrew/opt/rustup/bin) | cargo --version |
| tinker: postgres failed to start | pg_isready |
| Campfire: colima disk at 15GB, Docker VM memory | docker info, VM disk free |
| itsjusthtml: stale process held :44100 (exit 7) | port free, or owned by our dev server |
1.Learned preflightRecommendedPart of /baton doctor and the first stage of every template; failures add checks to the project's env node.
2.Static checklistChecks you write by hand per project.
3.Drop itHandle environment failures when they happen.