Repository navigation
Tests: guard the cliff facing-end invariant; delete cliffConnections.ts - #559
Merged
Merged
Conversation
The cascade that updateConnections starts cannot change a result: it acts only on two facing cliff ends that run the wrong way, and neither the port's queue nor the game's own cliffs ever have one. Switching that cascade off left all 614 workspace tests green and changed 0 cells over 39 regions, so nothing graded it. New test fixtures::no_facing_cliff_ends_run_the_wrong_way_in_the_queue_or_the_games_cliffs asserts 0 wrong-way facing pairs in the raw queue (50,592 cells, 91,722 pairs) and in the five captured cliff-entity fixtures, with frozen counts. About 1.5 s. Reversing one queued west-to-east cell turns it red on its own assertion (8 wrong-way pairs). src/noise/cliffs/cliffConnections.ts had no importers since #360. It is deleted; connections.rs and the notes now point at dc6bccd to read it. connections.rs is unreachable from fmw-wasm, so engine.wasm is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. 🤖 Generated with Claude Code |
This was referenced Nov 27, 2026
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.
Adds one Rust test that guards why the cliff update-pass cascade can never change a result, and deletes the TypeScript original of
connections.rs, which nothing imports.The gap this closes
While proving the #558 cuts, switching the end-destruction cascade off in
connections.rs(do_destroy_end(&mut live, k, side, opts.no_cascade)->..., true)) turned no test red. Checked further:So the switch is an equivalent mutant. No test can catch it without a hand-built state the game never produces. The cascade itself stays: the forced-destroy path uses it, and
the_games_own_destruction_set_reproduces_the_game_exactlygoes red when it breaks.The new test
fixtures::no_facing_cliff_ends_run_the_wrong_way_in_the_queue_or_the_games_cliffsasserts frozen(cells, facing pairs, 0 wrong-way)for the port's queue and for each of the five game fixtures. 1.5 s.Proven: reversing one queued west-to-east cell in
placement.rsturns it red on its own assertion ((50592, 91722, 8)against(50592, 91722, 0); the one cell sits in two overlapping regions). It is not inPOISONED_TESTS: under poison it fails on the queue counts first, because the queue moves throughbasis_noise, so it would not be a clean per-op control.The deletion
src/noise/cliffs/cliffConnections.ts(461 lines) had no importers since #360 deleted its specs. Theconnections.rsmodule comment,docs/noise/cliffs-NOTES.md,docs/noise/vulcanus-cliffs-NOTES.mdanddocs/rust-wasm-port.mdnow say where to read it (dc6bccd).connections.rsis unreachable fromfmw-wasm(measured: a two-line insert there leavesengine.wasmbyte-identical, while the same insert inplacement.rschanges it), soengine.wasmis unchanged.Gate
pnpm run verify:lint, the fullpnpm vp test(116 files, 1,337 passed) andscripts/verify-rust.shpass locally.cargo denyis not installed on hammond; CI runs it.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ