Check physical keepout clearance, retain useful partial paths, and account for all pair repair searches. Verify complete seeds early and recover narrower corridors when shared guides are blocked. Keep frontier diagnostics outside routing decisions and bound their work by the worker deadline. Correct benchmark scaling and scenario validation, and update the guides and release metadata.
41 KiB
Routing follow-up review
Review baseline f6e7bac. This plan follows the full project review and the subsequent changes to routing, dependency requirements, and benchmark reporting. All 20 items were implemented. The reproductions below describe the baseline.
Implementation verification
- The performance-enabled test suite passed all 395 tests. The topology, terminal, visibility, and refinement tests also passed on Python 3.11 with NumPy 1.26 and on Python 3.14 with Shapely 2.2 and GEOS 3.15. Ruff and the offline lockfile check passed.
- All 152 corpus and holdout boards reached their routing bounds under
matched-budget,public-defaults, andcorpus-regression. Each profile verified 2,245 nets. Verified IDs and per-net physical route lengths matched the baseline in all three profiles. Independent Shapely checks and zero-node seed replay confirmed board containment, clearance, and replayed geometry. - The fixed-budget lattice runs verified four nets instead of three on
holdout-staggered-opposedand two instead of zero onlidar-clements-8x8. Guided runs onblocking-turn-roomverified both nets instead of one in both modes, using 25 guide expansions and 32 seed expansions. The equal-rank partial forlane_1onsearch-comb-3x4advanced from x=240 to x=237 in both modes. - The ten-net fan-out retained all ten routes. Its counters now show 624 pair-local expansions and 1,703 total expansions. With shuffle seeds 42, 44, and 45, the pre-pair trace matched the restored iteration's conflict edges and component indices. A fake-clock test stopped diagnostic replay before its first expansion while keeping the same verified results and routing work. Historical captures retain the metric definitions used at capture time, which are recorded in the archive guide.
- The 200-net mixed-width board retained 400 guides with one triangulation and routed all 200 nets in 400 lattice expansions. The exact-width ray-tree cache retained eight entries. The residual connectivity probe constructed one union for 120 residual widths and again found no disconnected nets. Distinct widths still receive their own mesh when they need recovery.
- Guide and seed each verified the 240 supplied paths on
scale-bank-240-with-keepoutswith zero triangulations and zero expansions. The returned seeds matched the supplied paths. - The imported fixture comparison reports a 100 nm grid. The grid-cost test checks the normalized objective at all five authored resolutions. The wheel and source distribution carry matching project URLs and README content. All eight README targets, including the illustration and three heading anchors, resolved from outside the checkout.
Fixes from the implementation review
- The pre-pair trace saves the restored layout and replays it after repair and final verification. Under a controlled deadline, both crossing nets now verify with tracing enabled, using the same 608 expansions and one repair attempt as the untraced run.
- A frontier replay that expires increments
diagnostic_timeout_events. The offset-gate retry still verifies both nets when the guided worker's trace expires. A verification-only worker still delivers its callback. - The 40-net board with 144 keepouts and a one-grid-unit offset uses one triangulation and retains 80 guides. The earlier implementation built 40 triangulations. Guide and seed modes each verified all 40 nets with one triangulation. Narrower meshes still recover missing corridors and passages near obstacles or board edges.
- All 397 tests passed with performance checks enabled. An independent rerun of all three benchmark profiles verified the same 2,245 net IDs and per-net lengths in each profile. Expansion totals also matched the implementation before these review fixes.
Fixes from the second implementation review
- Frontier-only conflict collection uses verified reports and runs after routing, final verification, and the replay callback. In the dense two-net replay, the callback still fired at 31.6 seconds of controlled work with tracing enabled. The diagnostic pass reached the deadline separately. The offset-gate retry still verified both nets.
- Deferred pre-pair tracing collects component conflicts only for colliding nets. On the 22-net board, expiry during the first optional check stopped further checks and kept all 22 verified routes.
- Failed shared guides can recover narrower alternatives when reservations obstruct the shared space. The width-24 seeded blocker and width-2 offset repro now verifies both nets in 1,792 expansions. The clear 40-net offset board still verifies 40/40 with one triangulation in guide and seed modes.
- The performance-enabled suite passed 398 tests. All three corpus profiles reached every routing bound and matched the prior verified IDs, per-net lengths, and expansion totals.
1. Catch physical keepout collisions missed by bend proxies — High
Use a 120 × 120 board, a width-2 net from (10, 20, 0) to (80, 80, 90), clearance 1, and a keepout from (77.3, 22.3) to (77.7, 22.7). Set lattice mode, a 200-node budget, a single 90-degree radius of 10, no S-bends, zero proximity cost, three iterations, and disable warm start and refinement. With bend_collision_type="clipped_bbox" and bend_clip_margin=5, search repeatedly picks a one-bend path that fails final verification. Standard arc admission finds a valid three-bend detour in 37 expansions. A probe that checks the physical clearance of each proposed bend also finds the detour in 37 expansions with the original clipped proxy settings.
Check static clearance against the physical outline when a bend proxy may understate it. Query the physical bounds in that case. Reuse the cached move-admission decision and preserve the fast path for standard geometry. Exercise a shrunken built-in proxy, a custom polygon proxy with an arc outline, and an exact-clearance control. Require unchanged coverage across the corpus and check work and runtime for standard arc routing. Static move admission
2. Count all pair-local search expansions — Medium
In example_07_large_scale_routing_no_warm_start, the router verifies 10/10 nets and reports 1,079 total expansions and 42 pair-local expansions. Instrumenting the actual route_astar calls in pair repair records 624 expansions over three pair attempts. The failed order spends 582 expansions before returning no candidate. All 624 expansions are absent from the top-level nodes_expanded field. The current diagnostics guide documents the narrower meaning of the pair-specific counter.
Return expansion work even when a pair attempt fails and add it to both counters. Keep metrics from diagnostic replay isolated. Update the metric documentation and reconcile the expansion guardrails and saved baselines that use the older definitions. Compare the selected routes, attempt order, and verified coverage independently of the counter changes. Pair search · Counter update · Metric guide
3. Skip planning and seed materialization with zero iterations — Medium
With max_iterations=0, the point-terminal bundle fixture returns nine unroutable results with zero iterations in off and automatic modes. In bundle mode the router builds a schedule, performs zero routing iterations, and raises Bundle schedule failed geometric verification for net_00. The lattice worker also materializes supplied seeds before discovering that it will run zero iterations.
Make the disabled-iteration outcome consistent across modes. Skip bundle planning and unused seed materialization while preserving public input checks and per-net diagnostics. Exercise a supported bundle, a bundle-shaped layout rejected by the planner when enabled, and seeded input. Keep zero-node replay with positive iterations available. Bundle setup · Bundle result check · Seed preparation
4. Read visibility corners in XY at zero clearance — High
A 100 × 80 board with a straight width-2 net from (10, 20, 0) to (80, 20, 0) and a keepout above it is enough to reproduce an exception. Use a polygon with exterior box(30, 40, 60, 60), a hole box(35, 45, 55, 55), and set every vertex's Z coordinate to 5. At zero clearance, both tangent_corner and exact_corner raise ValueError: too many values to unpack in lattice mode. The same input completes when visibility is off. The exception also occurs when the polygon is supplied as a fixed route. At clearance 2 the buffer yields XY coordinates and the search completes in each case.
Read XY coordinates from each exterior and interior ring before indexing corners. Keep the original polygons available for returned geometry. Exercise XY and XYZ keepouts and fixed routes in both visibility modes and at zero and positive clearance. Compare the paths and the corner counts. Visibility corner extraction · Obstacle buffering
5. Keep routing when the conflict count stalls but the layout can improve — High
Under matched-budget fixture settings with mode="off", a 90-node search limit, seven iterations, warm start off, and refinement off, holdout-staggered-opposed stops after four iterations and verifies 3/9 nets. Its conflict edge counts are [4, 1, 1, 1]. Disabling only the repeated-count stop yields [4, 1, 1, 1, 0, 0, 0] and verifies 4/9. The same change improves lidar-clements-8x8 from 0/6 to 2/6, against a bound of three. In both cases the edge identities also repeat before a later iteration improves coverage. Of 60 boards checked under these settings, five met the repeat-stop condition and two gained coverage when it was disabled.
Remove the count-only early exit or replace it with a stopping rule that accounts for the changing congestion penalties. Keep the iteration and time limits. Compare the verified net IDs, check the progression of conflicts and penalties, and measure runtime on the boards that keep searching. Retain the path to pair-local repair while checking that it still triggers where it improves coverage. Iteration stop · Repeated-count rule
6. Bound the cost of width-specific corridor meshes — Medium
On a 1000 × 1000 board with 144 rectangular keepouts below 40 straight nets, corridor planning builds one mesh at uniform width 2 and 40 meshes when widths increase from 2 by 0.01 per net. Both runs guide all 40 nets. The measured planning times were 2.42 seconds and 5.43 seconds in the same process. Every width below the maximum gets a mesh even when the widest mesh has already supplied passages.
A 1400 × 2400 board with 200 nets and 240 rectangular keepouts scales from one to 200 meshes, with two corridors per net in both runs. Planning took about 54 and 68 seconds in the same process. To reproduce it, place keepouts at box(20 + 48*x, 18 + 48*y, 31 + 48*x, 30 + 48*y) for x from 0 through 19 and y from 0 through 11. Give net i east-facing ports at (5, 620 + 8*i) and (45, 620 + 8*i). Compare width 2 with 2 + 0.005*i using clearance 2, bend radius 10, and two corridors per net. Use the mesh count as the primary comparison because the wall times vary with load.
Keep width-specific recovery for missing corridors and passages that are genuinely too narrow in the shared mesh. Reuse a conservative mesh or defer narrower alternatives until the shared candidates fail. Verify both the mixed-width narrow-aperture fixtures and the case where a wide-mesh corridor exists but the narrower net needs a different passage. Compare triangulation counts and routing coverage on a large mixed-width layout before replacing the eager passes. Width-specific planning · Narrow corridor coverage
7. Update the corridor walkthrough after the retry removals — Low
The corridor walkthrough still says that a joint retry can move lanes for several nets. The automatic planner removed that retry and its alternate-lane permutation in 7476209. The architecture overview also describes lattice fallback in terms of planning being unavailable. The current flow requires triangulation and uses lattice when the geometry calls for it or earlier planners leave unresolved nets.
Describe the shared portal assignment, width-specific recovery, and remaining lattice retries in the active guides. Check the walkthrough links and benchmark command against the current output. Keep the historical review and experiment records tied to their revisions. Corridor walkthrough · Automatic architecture
The bundle guide also says the smallest 90-degree radius must be a positive integer shared with sbend_radii. The planner tries the usable common integer radii. The point-terminal fixture verifies all nine nets with 90-degree radii (10.5, 50) and S-bend radii (50,). Describe the eligibility of the common radius and retain the existing layout and geometry requirements. Mode requirements · Bundle radius selection
Restore the link from the archived refactor plan to the current corpus command. It points to #run-the-full-regression-corpus, while the current heading uses #run-the-full-benchmark-corpus. The historical results can stay tied to the original corpus. Archived link · Current corpus command
8. Hand off to pair repair only when the saved layout has a repairable pair — High
Run blocking-turn-room with matched-budget options, an 85-node limit, five congestion iterations, zero guidance cost, and warm start and refinement off. Both guide and seed modes reach one verified net in iteration 0. In iteration 1 both nets reach their targets but conflict, and the router stops to hand off to pair repair. It restores iteration 0, whose partial path has no conflict edges, so pair repair tries no pairs. Bypassing only the pair-local handoff lets iteration 2 verify both nets. The guide run rises from 10 to 25 expansions and the seed run from 17 to 32. The repeated-count rule in item 5 stays enabled for this reproduction.
Base the handoff on the saved layout the repair will receive. Require an eligible conflict pair before skipping the remaining congestion iterations. Cover the zero-edge saved layout and retain the early handoff on the fan-out fixture where pair repair succeeds. A control requiring at least one saved conflict edge retained all 10 fan-out routes and all three pair-search attempts. Evaluate coverage and work jointly with item 5. Pair-local handoff · Pair eligibility · Plateau rule
9. Preserve useful partial paths when congestion iterations tie — Low
With the same settings on search-comb-3x4, guide and seed each finish five iterations with no completed nets or conflict edges. The final path for lane_1 ends at (240, 150, 180). Every callback after iteration 0 shows that net ending at (237, 150, 180), closer to its target at (15, 150, 180). The equal layout rank always keeps the first iteration, even when a later iteration advances a partial path.
Both partial paths fit the board and meet static clearance. On ties in completed net IDs and conflict rank, prefer more useful partial results using the existing target-distance ordering. Check the geometry of any candidate partial path used for this comparison. Preserve completed geometry and keep conflict trace indices aligned with the selected paths. Include an empty-to-partial case and a control where a closer endpoint belongs to a colliding path. Layout selection · Search progress
10. Bound the width-specific ray indexes in lattice search — Medium
Route the 200-net board from item 6 in lattice mode at four nodes per net and one iteration. Turn off bends, visibility, proximity cost, warm start, and refinement. Both width distributions verify 200/200 in 400 expansions. The uniform-width run retains one ray index with 240 buffered obstacles. The mixed-width run retains 200 indexes and 48,000 buffered obstacles. In fresh processes on the same core, the probes took about 0.35 and 2.05 seconds, with peak memory about 78 and 103 MiB.
Bound retention while preserving exact-width geometry. Compare a size-limited index cache with a shared raw index that buffers only candidates for each query. Keep the tree for commonly reused widths if it saves work. Check exact-clearance behavior, repeated-width interleaving, a large mixed-width layout, and the normal lattice coverage and runtime baselines. Width-specific index · Ray query
11. Verify complete seed layouts before planning corridors — Medium
Use the reference paths in scale-bank-240-with-keepouts as initial_paths, with matched-budget options, one iteration, and warm start and refinement off. Guide and seed each verify 240/240 with zero expansions, after building corridors for all 240 nets. In one local run per mode, corridor planning took about 208 seconds in guide and 210 seconds in seed. A probe bypassing just plan_corridors returned identical verified placements in about 0.12 seconds per mode. A 40-net, 144-keepout control reproduced placement parity, with about 2.5 seconds of planning per mode.
With a controlled clock, a plan that consumes the worker deadline returns an empty, unroutable result for an otherwise valid straight seed in both modes. This isolates the ordering problem without relying on host load.
When every net has a seed that reaches its target, check the complete seeded layout before building guides. Take the fast path only if the seeds verify together. Exercise partial, incompatible, overlapping, and missing seeds that still need the normal search. Reuse verification work and retain the requested refinement and callback behavior. Setup before the first iteration · Corridor planning
12. Scale the flat S-bend surcharge linearly with the benchmark grid — Medium
The expanded fixture converter multiplies both bend surcharges by the grid scale raised to the power of 1.5. That compensates for the radius adjustment on 90-degree bends. An S-bend has a flat surcharge, so the same physical route is valued differently when expressed in finer grid units. A width-2 µm S-bend with radius 10 µm, offset 8 µm, and an exact 16 µm span has length 18.546 µm at both 1,000 nm and 10 nm grids. With proximity cost off and the default 500-unit surcharge before conversion, normalized native cost changes from 518.546 to 5,018.546.
Scale the S-bend surcharge by the grid factor. Check normalized costs for a straight, a quarter turn, and an exact-span S-bend across the authored grids. With a corrected surcharge on 24 fine-grid expanded cases that allow S-bends, automatic regression coverage, verified paths, and expansion counts stayed the same. In a lattice control limited to 200 nodes per net and one iteration, complex-column-5x2 retained the same verified net but changed its path and used 842 expansions instead of 992. Reconcile affected benchmark baselines and update the fixture guide, which still lists 72 expanded cases and eight search challenges. The current groups have 75 and 11 respectively. Grid conversion · Component radius · Native surcharge · Fixture guide
Propagate the imported grid into the same comparison records. The converted fixtures declare ten layout units per micron, but the loader discards that scale. A JSON comparison of lidar-toy-example emits "grid_nm": null. The known scale for all six imported boards is 100 nm. Test that the comparison output carries the scale from the fixture data. Imported fixture loader · Comparison export
13. Make the guidance retry regression independent of corridor candidates — Medium
The two-net offset-gate test expects the guided attempt to verify one net in each of its first two iterations and the retry without a guidance cost to verify both nets. This holds on the lockfile environment with Shapely 2.1.2 and GEOS 3.13.1. With the local Shapely 2.2.0 distribution and GEOS 3.15.0, the planner generates different corridor centerlines and the first guided iteration verifies both nets. The worker skips the retry and reports selected attempt 0, and the test fails on the hard-coded callback sequence.
Decouple the retry and attempt-index assertions from the particular corridor candidates this layout receives. Keep the real layout as a coverage control and use a deterministic first-attempt outcome to exercise retry selection and diagnostic indices. Verify the control on both dependency combinations and retain the check that both nets route. Offset-gate regression · Explicit retry and selection
14. Observe the worker deadline during refinement and frontier replay — Medium
On a 100 × 100 board, replay two perpendicular width-2 straights through the center, from (10, 50, 0) to (90, 50, 0) and from (50, 10, 90) to (50, 90, 90). Use lattice mode, a 60-node limit, one iteration, no bends, warm start off, refinement off, and capture_frontier_trace=True. Advance a controlled clock from zero to 61 seconds as the first frontier replay starts. Both diagnostic searches still expand three nodes each past the 60-second worker deadline. The run reports zero timeouts. The same replay routine is used for pre-pair traces.
On the seeded foldback control with unlimited refinement windows, advance the clock at the first window. A second window starts after expiration, and the timeout is counted only after refinement returns. The worker currently checks once before refining each net.
Pass the worker's expiry check through frontier A* replay and check it between diagnostic replays and at refinement windows and bounded candidate checkpoints. Keep final verification and the latest verified geometry available after expiration. Exercise expiry before and during a diagnostic search, expiry during a refinement window, and an uninterrupted run with the same results and stable work counters. Frontier replay · Worker deadline · Refinement loop · Foldback control
15. Keep pre-pair counters and frontier geometry on the same layout — Medium
Run the ten-net fan-out using _trace_example_07_variant(warm_start_enabled=False, seed=44). Iteration 6 verifies six nets and leaves one conflict, net_06–net_07. Iteration 7 verifies four nets and has four conflict edges, none matching that pair. The worker restores iteration 6 and sends net_06–net_07 to pair repair. The pre-pair trace reports iteration 7's edges, reroute order, and work, while replaying the restored iteration 6 geometry. Four routed paths differ between those layouts. The guide presents this trace as a record of the handoff into pair repair.
With seed 45, both iterations verify seven nets with one conflict. The trace lists net_02–net_03, and pair repair receives net_08–net_09. A comparison of counts alone misses the attribution error. Fan-out trace fixture
Keep the attempt metadata associated with the saved layout and use it for the trace after restoring that layout. Include carries and any missing per-net attempt data consistently. The iteration trace already records the discarded iteration. Add a control where the conflict identities change and an earlier layout is restored, and check that the pre-pair conflict edges match the pair-repair input and that hotspot geometry refers to that same layout. Preserve coverage and search selection with diagnostics enabled. Saved-layout restoration · Pre-pair trace assembly · Trace guide
16. Reject unknown performance scenarios before writing reports — Medium
Run scripts.record_performance_baseline --scenario example_01_simple_rote --output-dir <scratch> using the documented module invocation. It exits successfully and writes an empty scenarios list and a Markdown baseline with no measurements. With the default output directory, those writes replace the committed baseline files. The diff tool accepts the same misspelling and emits an empty comparison. The shared snapshot selector simply drops unknown names.
Validate all explicitly requested scenario names before measuring or writing files. Distinguish unknown names from performance-only names that need the existing flag. Keep the diff tool's support for a scenario newly present in the current run or present only in the baseline. Exercise a misspelling alongside an existing output file, a mixed valid and invalid selection, and a valid performance-only selection. Snapshot selection · Baseline recorder · Baseline comparison
17. Resolve heading inference from the caller's seeded request — High
Use terminal-bench-point-terminals in automatic mode with inference enabled, 20 search nodes, one congestion iteration, warm start off, and refinement off. Give net_00 a radius-1000 quarter-turn seed while only radius 50 is configured. The public wrapper rejects the seed and the automatic planner now sees an unseeded request. It verifies 9/9 after changing net_08 from the requested east-facing arrival to west-facing. The API describes caller headings as fixed when initial paths are supplied.
Replace the rejected seed with a compatible StraightSeed(5) prefix on net_00. All headings stay fixed, but the automatic planner skips the fixed-heading bundle turnaround because it checks the configured inference flag. The run verifies 1/9. Turning inference off while keeping the same prefix and budget verifies 9/9 using the bundle turnaround.
Resolve whether inference is active at the public boundary, where the original seeds and options are both available, and use that decision for selecting the compatible constructive planner. Preserve diagnostics for rejected seeds and the unseeded inference behavior. Cover a valid prefix, an unusable nonempty seed, and a fully seeded replay. Verify requested and effective poses as well as counts. Seed filtering · Bundle selection · Inference gate · Heading contract
18. Make the project links usable in release artifacts — Low
The project and repository URLs are present as top-level keys in [project], but the built wheel has neither a Home-page nor a Project-URL header. The README is copied into the wheel and into its long description with seven checkout-relative documentation links. The wheel contains none of those targets. One example is docs/user/route-a-layout.md#define-the-inputs, which resolves from the repository root and fails from the installed README.
Declare the links in [project.urls] and give the released long description and installed README resolvable documentation links. Verify the wheel and source distribution metadata from fresh builds and check the links from outside the checkout. Keep the repository README's documentation useful when browsing the source. Package metadata · Repository README
19. Reuse connectivity work across residual net widths — Medium
On a 1400 × 2800 board, use the 240 keepouts from item 6. Place 240 width-2 nets from (5, 630 + 9*i, 0) to (45, 630 + 9*i + int(i >= 120), 0), with clearance 2. Direct planning locks the first 120 straights. The connectivity check finds no disconnected nets among the 120 remaining shifts. With uniform widths, it buffers 360 polygons and builds one union. Change the width of residual net i to 2 + 0.005*(i - 120). The test still finds no disconnected nets, while preparing 120 unions from 43,200 buffered polygons. Local interleaved probes took roughly 0.06 seconds and 6.8 seconds respectively.
A separate 24-net automatic control with twelve straight locks and twelve mixed-width quarter turns reached this check twice and verified all 24 nets. Screen narrower nets against the widest residual width's free-space regions. Terminals already in one shared region can skip the narrower calculation. Keep the exact-width check where the shared result leaves connectivity unresolved. Compare disconnected IDs, lock selection, and coverage on mixed-width apertures and the corpus. Connectivity check · Lock planning
20. Keep seed guidance from increasing the cost of free moves — Medium
On a 120 × 100 board with no obstacles and zero clearance, use a width-2 net from (10, 45, 0) to (100, 5, 270). Set lattice mode, eight expansion nodes, radius-10 quarter turns, no S-bends, visibility off, warm start off, one iteration, and refinement off. Set all four objective weights to zero. Supply PathSeed((StraightSeed(80), Bend90Seed(10, "CW"))). A matching move with computed cost zero receives a cost of 0.001 at the discount floor. The returned path stops after a straight at (100, 45, 0).
An in-memory probe capped the discounted cost at the original cost. On the same budget it verified the supplied prefix followed by a length-30 straight. Keep the discount nonincreasing while preserving its floor for moves whose original cost already exceeds the floor. Exercise zero and small positive original costs, seeded and unseeded search, and the low-length-cost benchmarks. Guidance scoring
Implementation order
- Fix bend admission, visibility coordinates, zero-iteration handling, and heading inference for seeded requests. Add targeted reproductions and run the timing-enabled suite. Enforce the worker deadline inside optional refinement and diagnostics.
- Evaluate the two congestion stopping rules independently. Check the reproduced coverage gains, preserve successful pair repairs, and measure the runtime cost of continuing through a plateau. Handle tied partial outcomes after the coverage changes.
- Correct pre-pair trace attribution separately from route selection. Update the expansion counters in a separate change so the metric baselines and any affected guardrails can be reconciled with measured work.
- Change seed verification order, mesh scheduling, ray-index retention, and lock connectivity independently after the correctness fixes. Use the large uniform- and mixed-width layouts, the seeded 240-net board, and narrow passages to check the tradeoffs. Update the walkthrough once the retained routing paths are clear.
- Correct the fixture unit conversion and compare old and new scores and paths separately from runtime router changes. Decouple the retry regression from the geometry planner's choice of candidates. Check the guidance discount against zero-cost and low-cost search.
- Validate performance scenario selection and update release metadata. Verify the report and distribution artifacts in scratch directories.
For each routing change, compare verified net IDs across the corpus and holdout under all three profiles. Preserve coverage, validate changed routes against obstacles, fixed routes, peers, and board bounds, and report length and runtime changes over the common verified nets. Use the full timing-enabled suite before combining changes.
Baseline verification
- All 389 tests passed with performance checks enabled. Ruff passed. The local environment used Python 3.13.18, Shapely 2.1.2, and GEOS 3.13.1.
- All 152 corpus and retry-holdout boards were checked with
matched-budget,public-defaults, andcorpus-regression. Each profile produced 2,245 verified routes. Independent geometry checks agreed with the reports, and zero-node seed replays reproduced endpoint poses, lengths, and polygon outlines. - The geometry sweeps covered 96 legal primitive seed replays, 384 active searches across four routing modes, 500 generated corridor plans, 4,320 physical-index comparisons, and 1,077 ray-intersection comparisons. They produced no additional findings.
- Five benchmark cases matched on geometry, counters, and traces across two Python hash seeds, with and without callbacks. The package archives passed content checks and the extracted wheel routed a guide case in the local environment. The documented
offset-gatescomparison also ran successfully with the current command. - A follow-up sweep across 75 boards and three modes checked iteration handoff and selected partial geometry. Four of the 225 runs stopped at the pair-repair handoff before the configured iteration limit. Bypassing only that condition improved coverage in two runs, both on
blocking-turn-room. - The follow-up baseline again passed all 389 timing-enabled tests and Ruff. Another 144 rotated uniform- and mixed-width layouts verified from seed and agreed with the capacity and port-spacing checks.
- In 18 benchmark CLI mode and policy runs, verified outcomes agreed with the selected stages and reported cost entries. Four retry samples on
stress-refine-return-shelfeach verified all four nets and reported placement data for those same net IDs.
Previous closing review
The next full review pass after items 12 and 13 found no additional issues.
- Independently checked all 152 corpus and holdout boards under each of the three profiles on both Python 3.13.18 with Shapely 2.1.2 and GEOS 3.13.1, and Python 3.14.10 with Shapely 2.2.0 and GEOS 3.15.0. Each environment and profile verified 2,245 routes. Checked endpoint poses, polygon validity and clearance, and geometry and lengths after replay.
- On each dependency combination, 648 generated compound paths replayed from seeds and 96 active mixed-width gate layouts met their bounds and clearances. Callbacks, traces, and final reports agreed. The active control layouts returned equal paths and work counts with diagnostics enabled.
- Built the wheel and source archive and matched all 40 runtime modules in the wheel against the checkout. Exercised automatic, off, guide, and seed routing from the extracted wheel on both environments. All 12 advanced examples verified, the fixture export and five documentation figures regenerated byte for byte, and the local file links across the 15 active documentation pages resolved.
- All 389 timing-enabled tests and Ruff passed in the lockfile environment. The Python 3.14 suite passed 387 tests, skipped the opt-in performance test, and reproduced the one retry assertion failure in item 13.
Additional review of deadlines and diagnostics
- All 389 timing-enabled tests and Ruff passed again. Across 128 seeded foldback controls with varied orientation, radius, width, spacing, and routing mode, refinement preserved endpoint poses, clearance, and route validity. All 128 changed placement without increasing the configured path cost.
- The deadline probes in item 14 exercised real frontier searches and refinement with a controlled clock. A sweep of 225 bounded runs produced one pre-pair trace, whose metadata matched the saved layout. The fan-out with seed 44 and a separate three-net control both reproduced the attribution issue in item 15.
Full-codebase review passes
The expanded review took its scope from the 190 tracked files at f6e7bac, including 110 Python files. It covered library modules, tests and fixtures, reporting and import/export commands, examples and visualizations, documentation and archived reports, and packaging and dependency configuration. The first full-codebase pass added items 16–18 and found the imported grid omission in item 12. The release and link checks then added the missing installed-documentation targets in item 18 and the archived link in item 7.
| Area | Evidence gathered in the follow-up passes |
|---|---|
| Public API, geometry, and collision state | 648 compound seed replays exercised terminal poses, clearance, snapshots, and callbacks. An independent oracle agreed with 1,920 physical-index queries after insertions, removals, and replacements. All 36 concurrent routing calls matched serial placements and coverage. |
| Search, constructive planners, congestion, and refinement | Independent clearance and seed-replay checks covered all 152 corpus and holdout boards under the three profiles on Python 3.11, 3.13, and 3.14. Each profile verified 2,245 routes in each environment. Another 96 mixed-width gate controls preserved paths and search work with diagnostics enabled. The earlier 128 refinement controls covered rotated and mirrored paths with several widths and spacings. A same-core check of the slower splitter-tree fixture recorded the same 15,653 expansions and the same verified IDs on Python 3.11 and 3.13. |
| Tests and diagnostics | The lockfile suite passed all 389 tests with performance checks enabled and Ruff passed. The Python 3.11 suite passed 388 tests with the opt-in timing test skipped. A branch-instrumented Python 3.14 run passed 377 tests with performance gates and the known item 13 assertion deselected. The deadline and pre-pair counterexamples were checked against the saved layouts. |
| Benchmarks, scripts, and data | All 16 script entry points accepted --help. Exercised benchmark comparisons, two-worker retries, parity snapshots, performance reports, four trace exports, and both waypoint entry points. All 27 exported paths replayed and independently met clearance. The external importer reproduced the checked-in data byte for byte from the two pinned archives. |
| Examples, visualization, and documentation | Executed the user-guide Python snippets with their documented inputs, ran nine numbered examples, and regenerated 24 documentation and gallery figures. Fifteen figures matched byte for byte. The changed gallery placements retained verified coverage and matched the accompanying descriptions. Checked 388 local links across 30 distinct tracked Markdown pages, including the archive and historical plans. The broken archive fragment is recorded in item 7. |
| Build and dependency compatibility | The lockfile check passed offline. Built the wheel and source archive and rebuilt the wheel from the unpacked archive. The 40 runtime Python files matched the checkout. The installed wheel routed in four modes and serialized results on Python 3.11.11 with Shapely 2.1.0, GEOS 3.13.1, and NumPy 1.26.4 and 2.2.6. The four plotting helpers produced PNGs on the minimum Python and Shapely versions. The unpacked source distribution ran the waypoint export to 9/9. |
The final full-codebase pass after documenting those findings found no additional issues. It reran the suite, independent corpus verification, replay and index controls, command and data round-trips, source and installed documentation checks, and release builds. The numbered findings record the fixes identified at that review baseline.
Additional review of lock connectivity and guidance costs
The next requested pass added items 19 and 20. A two-width aperture control classified the wide net as disconnected and retained the narrow net. The valid eight-node control path also verified independently in seed replay.
All 389 timing-enabled tests passed and Ruff passed. The offline lockfile check, wheel and source archive rebuild, and a smoke test of all 16 command entry points passed again. Benchmark, retry, parity, waypoint, and diagnostics commands produced their artifacts in scratch directories.
Review pass after items 19 and 20
This pass found no additional issues at f6e7bac. It covered the routing and geometry modules, public results, benchmark and diagnostic commands, fixture data, documentation and generated figures, and release artifacts.
- All 389 tests passed with performance checks enabled, Ruff passed, and the offline lockfile check passed. Independent geometry and seed-replay checks verified 2,245 routes per profile across all 152 corpus and holdout boards.
- Search-time and final same-net collision checks agreed on 1,008 generated paths, including 244 with overlaps. Across 240 bounded search configurations, traced and ordinary routing agreed on paths and work counts. All 96 verified placements in that matrix met clearance and bounds. Compound replay, mixed-width gate, physical index mutation, and concurrent placement controls passed again.
- The review checked all 16 script entry points. Selected coverage agreed with reported costs and placement data in 18 comparison records and eight retry samples. Both pinned archive imports regenerated the external fixture data byte for byte. The twelve core documentation figures also regenerated byte for byte.
- The wheel and source archive rebuilt successfully and all 40 runtime modules matched. The extracted wheel passed routing in the four search modes and result serialization on Python 3.11 with Shapely 2.1.0.