pub fn finalize(reg: &LoadedRegistry, run_dir: &Path) -> Result<Manifest>Expand description
Hash every artifact, link the manifest to the prior run, atomically
write manifest.json, update state.json, and remove the pending
sentinel. Returns the sealed manifest.