Repository navigation
Tooling: 6.47× faster production R420 mutants geometry cache with identical receipts - #2276
VictorLiwentao wants to merge 2 commits into
Conversation
Wire the proved research/r420-geometry-cache GeometryCache into the shipped research/e8-bit-r420/code/mutants.py path used by verify.sh. Mutation stdout and JSON receipts stay byte-identical; MANIFEST.sha256 binds the new digest. Demote the pairwise mutants.py pin in research/r420-geometry-cache/ to provenance so research-packages CI does not fail working-source drift. Package research/r420-geometry-cache-production/ with baseline, verify, benchmark and RESULT evidence. No new kappa; leave xcheck.rref (CrocSwap#2263) alone. Prepared by Wentao Li with substantial AI assistance.
Five alternating fresh-process pairs on Linux/CPython 3.12.3: median mutants harness 9.602 → 1.485 s (6.465×) with identical stdout digests. Prepared by Wentao Li with substantial AI assistance.
|
Maintainer review of
Please preserve the original baseline bytes for historical A/B replays, route their executable inputs to those immutable copies (or an explicit pinned historical replay), inventory other executable consumers, and demonstrate affected registered replays still work. Coordinate with #2263 because both modify the same production manifest and R420 historical inputs. The production logic itself looks promising; this hold concerns reproducibility and integration, not the claimed mathematical result or host-specific benchmark ratio. Supplemental exact-head pin evidence will be in |
Change and scope
At base
0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2, productionresearch/e8-bit-r420/code/mutants.pystill rebuilt full geometry for every gate-only mutation control. The opt-in adapterresearch/r420-geometry-cache/already proved geometry reuse with identical mutation receipts. This PR wires that equivalent cache into the production harness used byverify.sh: gate-only controls keep identical geometry fields;Word.__init__/labels()are cached;full()/interface()always rerun.research/e8-bit-r420/MANIFEST.sha256binds the new digest.No certificate κ pins change. The pairwise-era
mutants.pydigest inresearch/r420-geometry-cache/SOURCES.jsonis moved toprovenance_inputsso research-packages CI does not fail working-source drift. Leave #2263xcheck.rrefalone (this tip does not editxcheck.py). Both PRs updateMANIFEST.sha256for different file digests — expect a trivial manifest merge if both land.Tooling improvement; no new kappa. Selected frontier untouched.
Result
On Linux / CPython 3.12.3, five alternating fresh-process pairs gave median mutants-harness wall time 9.602 → 1.485 s (6.47×). Timing is host-descriptive and is not a correctness gate. Mutation stdout digest stays
8c2738b3258e…; JSON receipts match the baseline harness.Package:
research/r420-geometry-cache-production/.Tip:
feb0b96b5c471be0a8c72e6ecb8f9e1f74b48991.Validation
Expected:
Default verify is read-only. Temp-copy stale-
fullfoil rejects via subprocess failure. Package gates under-Ostill launch assertion-enabled children. Fullmake verify, selected cold replay, Lean, and multiplication-theorem obligations were not rerun for this isolated harness change.Overlap and credit
Closest priors (different delivery):
research/r420-geometry-cache/(opt-in geometry reuse; this is the production wiring), CrocSwap/integer-mult-bounds#756, CrocSwap/integer-mult-bounds#2257 / #2263 (same production-promotion + provenance pattern). No competing open PR on productionmutants.pygeometry reuse at refresh.Credit the authors of
research/r420-geometry-cache/and eumemic (PR543 harness/checker). Prepared by Wentao Li (VictorLiwentao, @Is__Victor) with substantial AI assistance, under Apache-2.0.