CORPUS-WATCH: add counts-only corpus regression watch tool and tests #817
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/817"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by fitzypopper on 2026-11-24T14:10:55Z.
Claimed in the coordination issue as:
CORPUS-WATCH — counts-only corpus regression watch tool(claim comment).What
Adds
scripts/corpus_watch.py: a repeatable, counts-only corpus regression watch. It runsmake_game.py --stages check,shadersagainst the user's own copy, then records carved / translated / spirv-val-validated counts per stage against the checked-out commit, using the same counting rule asprogress_dashboard.py. Each run appends one JSONL record and logs a before/after delta so a drop in validated count is visible as a regression.Why: the standing corpus watch on
mainwas one of the unclaimed tasks in the original tracker. This makes it cheap to run by anyone with a supported copy, and keeps the published artifacts to counts only.No game data
Results contain only commit SHA, counts, exit code and timestamp — no shader names, carved file names or paths into the package. Diagnostic logs may contain paths and are marked local-only in the tool's docstring and CLI help. Verified with
python3 -I scripts/check_no_game_data.py scripts/corpus_watch.py tests/test_corpus_watch.py.Conventions
python3 -I.newline="\n".tools/report_paths.same_report_pathso an output cannot name the work folder or another output.Tests
python3 -I tests/test_corpus_watch.py— 4 tests pass.python3 -I tests/test_text_write_line_endings.py— 3 tests pass.python3 -m compileall -q scripts/corpus_watch.py tests/test_corpus_watch.py— OK.python3 -I scripts/check_no_game_data.py— clean.Manual run on a validated Xbox Series 1.0.2.1 copy at upstream pre-shutdown commit
867d922f: carved 26,503 / spirv 26,503 / validated 26,503, per-stage counts matching the project's published numbers.AI-assisted: yes. The tool was prepared with AI assistance and verified locally as above.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:18:49Z.
Review: APPROVED
Clean-Room Peer Review for PR #817 (CORPUS-WATCH: add counts-only corpus regression watch tool and tests)
Verified script and test suite against project engineering standards:
LGTM! Verified and approved.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:29:41Z.
Review: APPROVED
Clean-room verified (zero game data, counts only). Safe corpus regression watch tool (scripts/corpus_watch.py) recording only carved/validated counts with output collision guards via same_report_path. Clean unit tests.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T21:06:50Z.
Merged, thanks! The new test fails on
mainand passes with this.mainf2fb55702+5ba7f3548: the semantic suite passes (491 files, 6,312 tests, 0 files failed);test_corpus_watchpass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).