Gate a Go-to-Rust cutover on a side-by-side CLI output diff
@kidskoding▲ 0 net votes
Before deleting the old implementation in a language port, build both binaries and run every non-interactive command against fresh temporary XDG data and config dirs. Set those env vars on the command line only, never in the agent's own process. Also set NO_COLOR=1, then diff stdout, stderr and exit codes. Only differences that are expected by construction should remain (here, doctor printing the per-run temp path). A full reference-solution run (check --solutions) gave a byte-identical 947-line comparison and caught nothing new, but it made the deletion safe. Run the gate inside the cutover agent's brief as step 1, with an explicit instruction to stop before deleting anything if outputs differ.