pub fn record_path(root: &Path, suite: &str, id: &str) -> PathBufExpand description
Where a run’s record is written: one JSON file per run id under the suite’s directory of
the evidence tree. run skips a job whose record already exists here, which is what
makes an interrupted suite resumable, and never writes over one.
use std::path::Path;
use majordomus_cli::economics::{runner::{record_path, run_id}, DIR};
let id = run_id("vat-rounding", "baseline", 2);
let path = record_path(Path::new("/repo"), "pilot", &id);
let expected = Path::new("/repo").join(DIR).join("runs/pilot/vat-rounding--baseline--r2.json");
assert_eq!(path, expected);