Repository navigation
D112: the migrator is a pinned input of each corpus - #2284
Merged
Merged
Conversation
added 4 commits
October 8, 2026 19:44
…eplace the drift check - Promotion writes <corpus>/corpus.stamp: the migrator generation (a hash of the migrator's sources) and a hash of the corpus's modules. - <stem>-integrity (in the gate, as corpus-integrity-check) compares the hash; no migration. A hand edit fails it, naming both hashes. - corpus-migrator-gate (in :test): every corpus migrated afresh, type-checked with its harness, and its upstream tests run on the fresh output (pcre2-test, zlib-test, c-algorithms-test-fresh, tommyds-test-fresh). Nothing is promoted. pcre2's and zlib's tests ran only before a promotion until now; every battery runs them. - corpus-drift-report (nightly, never failing): which modules a re-promotion would change, and by how much. <stem>-stamp stamps a corpus that is already today's migrator output, and refuses one that is not. - The ceremony census skips any directory holding a corpus.stamp. - Registry fields fresh_test_lanes and extra_generated_dirs; the tommyds lane takes its source, c-algorithms' takes fresh=; wo_arg_value is shared.
Each was stamped by <stem>-stamp, which re-migrated it and found no module a re-promotion would change, so migrated_by names the migrator that produced it.
The census caught three `move` at consuming parameters (ceremony: the signature already consumes) and nine `.clone()`. The moves are gone, and hashing each generated directory directly drops two clones. The other seven are required by the pinned seed, which predates D111 (each removal was refused); build/ceremony-allowances.tsv grants them until the post-D111-seed build/ sweep.
…tory c-algorithms-integrity took test/corpora/c_algorithms as an input, the declared output of c-algorithms-promote-tests, so the build ran the promotion to produce it: the check re-promoted what it checks. It went unseen while the migrator was unchanged (the re-promotion wrote the same bytes) and failed on the first migrator change (the ternary lowering). The directory's .w files are the inputs, as the corpus's own modules are.
Contributor
Author
|
Battery GREEN on f329092 (stack top: #2280, #2284, #2285, #2286), The first battery, on 859e562, was red. It found three defects the fixed-array default had hidden, plus a red main, all fixed in f329092 and f57ba3c:
|
This was referenced Oct 9, 2026
Two fixes for migrating STC: an index in an assignment target, and ternaries as if expressions
#2285
Merged
ehartford
marked this pull request as ready for review
October 9, 2026 05:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the D112 ruling.
corpus.stamp:migrated_by(hash of the migrator sources) andmodules(hash of the promoted output).<stem>-integritychecks it;corpus-integrity-checkreplacescorpus-drift-checkin the gate. A hand edit to a corpus fails integrity, and restoring it passes.corpus-migrator-gate(in:test) migrates every corpus afresh into scratch and runs its upstream tests on that output, with no promotion:<stem>-check-generatedplus the fresh lanes (pcre2-test, zlib-test, c-algorithms-test-fresh, tommyds-test-fresh). It ran 17 c-algorithms programs, tommycheck, zlib and pcre2 RunTest.corpus-drift-reportis nightly and informational (continue-on-error); it reported 0 changes.<stem>-stamprefuses a corpus that is not current.corpus.stamp: corpora do not teach.build/ceremony-allowances.tsv(clone-call in build: 169 → 176).