pub fn write_head(root: impl AsRef<Path>, run_id: &str) -> Result<()>
Point HEAD at run_id, atomically (write to a temp file, then rename) so a crash mid-write leaves the previous pointer intact rather than a truncated one.
run_id