Prevent selective rerip route starvation#127
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Benchmark This PRRun benchmarks by commenting on this PR: Everything after Examples:
Any PR whose title contains |
seveibar
approved these changes
Jul 14, 2026
|
Thank you for your contribution! 🎉 PR Rating: ⭐⭐⭐ Track your contributions and see the leaderboard at: tscircuit Contribution Tracker |
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.
sample 14 now solves:

Summary
Root cause
Selective rerip previously placed every newly ripped blocker at the front of the queue, immediately after the failed route. Repeated rerips could therefore keep recycling the same blocker group ahead of untouched routes. In dataset-srj18 sample 14, seven pending routes were never attempted before the solver reached its 2,000,000-iteration limit.
The new order is the failed route, previously pending routes, then newly ripped blocker routes. This keeps the failed route retry behavior while preventing repeated rerips from starving the existing queue.
Impact
Pipeline 7 dataset-srj18 sample 14 now completes at 1x effort instead of failing in
SelectiveReripTinyHyperGraphSolver. The change only affects route scheduling after a selective rerip; it does not add a fallback or relax solver acceptance.Sample 14 still has relaxed DRC violations, which are outside the iteration-exhaustion issue addressed here.
Validation
tscircuit-autorouter:tsc -p tsconfig.json --noEmitpassed with the patched dependencyThe standalone
tiny-hypergraphfocused test and typecheck could not run in this clone because its development dependencies were unavailable after the attempted no-save install.