Repository navigation
Finish every layout past the deadline, report it, and drop Cryo cooling links - #16
Merged
Merged
Conversation
…ng links The cleanup after the search (prune, right-size, pooled-cooler evacuation and sweep, empty-tile gathering) is no longer capped: a budget shared across the shortlist was spent by the first alternate, leaving the rest ungathered. Each pass terminates on its own. The wait is reported: SearchHooks.onFinalizing -> ISLAND_FINALIZING -> the coordinator's summed, monotonic count -> "finalizing d/t" in the readout, and each report re-arms the watchdog. A STOP during the search keeps the whole shortlist; only one during the cleanup cuts it. Under Cryo Nexus the board no longer draws cooler links: the pool serves everyone, so the flows were a complete bipartite graph.
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.
What
gatherEmptyTilesnow run to completion on the primary and every alternate. The shared caps (EVACUATE_BUDGET_MS,GATHER_BUDGET_MS,EMPTY_GATHER_BUDGET_MS) are gone: the first alternate used up the budget, so the later variants came back ungathered. Every pass terminates on its own, and the deadline parameters now default toInfinity.SearchHooks.onFinalizing(done, total)sends a worker message,ISLAND_FINALIZING. The coordinator sums the reports into a count that never goes backwards. Once the countdown runs out, the readout shows "finalizing d/t". Each report re-arms the watchdog (FINALIZING_GRACE_MS, never shortened), so a slow phone is not stopped partway through its shortlist.Review
Two review agents read this, one on the solver package and one on the app. Neither found a correctness bug. Their lower-severity findings are fixed here:
Checks
npm run check,npm run knip,npm test(1205 passed),npm run fixtures(reproduces byte for byte) andnpm run build:solverall pass locally.