Stage 2 for agents: ground truth
Source of truth: stages/02_ground_truth.md. Schemas: ground_truth.md, float_coverage.md. Rules: rounding.md, stochastic.md.
Goal
One generated table comparing every printed number with the archive’s value and the rewrite’s value, and a coverage table saying how much of each float it checks.
Do
- List every table and figure from the article and appendix themselves, and write a row for each in
float_coverage.csv. - Transcribe every printed value from images of the published pages, as strings, with their printed precision. Read multi-column tables from the rendered page, not from extracted text. Read numbers printed on a figure by position.
- Write
ground_truth/build_ground_truth.R, run last byrun_all.R. It starts from the transcribed values and joins them to the archive’s values (from the Stage 1 runs) and the rewrite’s values (frommaintained/output/, at full precision). - Compare at the printed precision, by formatting the computed value and comparing strings, after the normalizations in
rules/rounding.md. Compare the archive at the coarser of the page’s precision and the precision the deposited code printed. - For values from random draws, first confirm that something draws at random. For unseeded values, compare against the distribution over many seeds, leave
match_rewriteasNA, and record the verdict inholds. - On every row where a comparison fails, set
defect_locuswhere the row is built, and propose adisposition. Computecorrected_herefromerrata_entries.csv. - Make the build stop if: a printed value has been read as a number; a failing row has no locus or a passing row has one (apart from the documented exception); a
paper_internalrow has no disposition; any join is not one-to-one; or a float is missing fromfloat_coverage.csv. - Compute every count in
float_coverage.csv.
Do not
- Type any value except the printed ones.
- Select a row by its printed value.
- Read the printed values with automatic type guessing.
- Count a float as covered because it has one row, or because it prints no numbers.
- Set a default locus for the whole table.
Done when
The build runs last in run_all.R and passes all of its checks.