Load serialized region assignments as initial routing state - #133
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
marked this pull request as ready for review
July 27, 2026 18:28
Contributor
Author
|
@0hmX imo this is good to go and sort of sets up Pipeline9 |
|
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.
Summary
regions[].assignmentsfromSerializedHyperGraphinto tiny-hypergraph's numeric routing stateWhy
SerializedGraphRegion.assignmentsalready describes which connection occupies the chord between two existing region ports. A separate graph-level fixed-occupancy schema duplicated that model and incorrectly made preloaded traces permanently immutable.This implementation uses assignments as ordinary solver state. Intersections between preloaded and newly routed traces are therefore included in the same region intersection cache and cost calculation.
No change to
@tscircuit/hypergraph's serialized schema is required.Validation
bun run format:checkbun run typecheckbun run buildThree local image-snapshot test files cannot load the checkout's missing macOS
sharpnative binary; GitHub Actions runs the complete suite.