fabro/lib/crates/fabro-cli/tests
Bryan Helmkamp 551d16b74c refactor: clean CREATE/START/RESUME separation
Resume now follows the same subprocess pattern as run: look up run
directory by ID prefix, validate checkpoint exists, clean stale
artifacts, reset status to Submitted, spawn _run_engine --resume, and
attach. This eliminates ~1600 lines of duplicated env/sandbox setup
from resume.rs.

Key changes:
- operations::start() and operations::resume() take run_dir instead
  of Persisted, loading state from disk internally
- run_engine() builds RunOptions from RunRecord on disk, so callers
  no longer extract record fields manually
- StartOptions flattened (no more nested InitOptions)
- FabroError::Precondition variant for start/resume guard checks
- _run_engine accepts --resume flag to dispatch to resume path
- operations::restore removed (no longer needed)
- Resume CLI stripped to just <RUN_ID> + --detach

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 13:47:07 -04:00
..
cmd Add node-level model validation + missing catalog aliases (#110) 2026-03-19 22:48:08 -04:00
cli.rs refactor: clean CREATE/START/RESUME separation 2026-03-29 13:47:07 -04:00
scenario.rs Remove RunSpec + Manifest types and all remaining references 2026-03-29 13:47:06 -04:00
trycmd.rs Rename init to repo init with backwards-compat shim 2026-03-18 17:41:49 -04:00