Repository navigation
WO20: the reverse-mode golden gate — ts replay (#286) - #141
Merged
Merged
Conversation
test/golden-isc-reverse.test.ts mirrors golden-isc-wf0.test.ts for the rs reverse golden (interscript-rs tests/golden/isc-reverse.jsonl, 10,024 rows over 313 maps, captured once by iscrs capture --reverse): load every row's map, reverse it (dependencies reverse with it, the InterscriptRuntime#reverse closure walk), execute the reversed main stage on the row's src, require byte-identical output. Errors map to null, the canonical capture marker; no adopting-set exemption. The rs reverse fixtures (tests/reverse_maps, siblings of the golden) join the bundled sources FIRST-WINS after the corpus, so a corpus map shadows a same-named fixture like the capture's load path. Verified locally against the sibling checkouts: 10,024/10,024 rows byte-identical. Maps the engines still diverge on live in the rs manifest (tests/golden/reverse-divergent-maps.txt) — shrink-to-zero follow-up.
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.
Summary
WO20 (#286, interscript/maps): the reverse-mode golden gate — the ts replay side. The rs capture (interscript-rs#32) records
tests/golden/isc-reverse.jsonl(10,024 rows over 313 maps) once; this branch replays it byte-identically here.test/golden-isc-reverse.test.tsmirrorsgolden-isc-wf0.test.ts: load every row's map, reverse it (dependencies reverse with it — theInterscriptRuntime#reverseclosure walk), execute the reversed main stage on the row's src, require byte-identical output. Errors map tonull, the canonical capture marker. No adopting-set exemption: the reverse golden has no adoption flow.tests/reverse_maps, siblings of the golden file) join the bundled sources FIRST-WINS after the corpus, so a corpus map shadows a same-named fixture exactly like the capture's load path.Verification
GOLDEN_ROOT=<workspace> npx vitest run test/golden-isc-reverse.test.ts).tests/golden/reverse-divergent-maps.txt— shrink-to-zero as the engines converge.Companion branches: wo20-reverse-gate-rs (capture + golden), wo20-reverse-gate-ruby (ruby + py replay), wo20-reverse-gate-ci (maps workflow wiring).