293. Corpus tests stay committed until every reader shares one answer cache (2026-11-22)
Call: corpus/problems/*/tests/ keeps its committed .in and .ans files.
Inputs are not derivable: scripts/corpus-tests.py make --cases 12 --out target/corpus-regen reproduced 146 of 636 committed files (36 of 100
problems generated), and a search of seeds 0-1299 x 18 sizes per gen.py
matched 49 of 139 inputs and no problem in full; most were picked by hand or
predate their gen.py. Answers are: scripts/corpus-tests.py verify reruns
the accepted C++ and reproduces 532 of 542 answers byte for byte (10 differ),
every answer of 64 problems. Those 64 drop their .ans only once
cpl-conform corpus, cpl test (cpl-contest/src/problem.rs cases_in),
the perf corpus bench (cpl-contest/src/corpus_bench.rs) and
cpl-cli/tests/stress_corpus.rs read answers through one cache under
target/; today a missing .ans turns a cpl test case into run-only,
which would weaken the tests. New generated cases record their seeds.
Reason: the brief requires the regenerated set to be byte-identical before
anything is deleted; inputs fail that, answers pass it but have four readers.
Reverse: with the shared cache in place, delete the 64 problems' .ans after
verify reports all of them reproduced.