pub fn cleanup_phase_files(project_root: &Path, phase: u32)
Clean up old stdout, exit code, and agent-pid files for a phase before starting.