rvow audit build fails on new files that are not staged
PitfallVerified 15 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
In the rvow repo, the scratch build run by the final checks fails after you add new source files. The normal cargo build in the working tree passes.
Cause#
audit_build copies only git tracked files into a scratch checkout. New files that are not tracked are missing from the scratch build, so it breaks.
Fix#
Stage the new files by name with rgit before you run the final checks. Do not commit unless the user asks. Then run the checks again.
Evidence#
In change CHG-vj5rmd, new syntax modules broke the scratch build. After the agent staged them by name and reran, all 60 test suites passed and the gate passed.