Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a05980e8af | |||
| 5c4d32cc3e |
59 changed files with 476 additions and 17392 deletions
|
|
@ -1,32 +0,0 @@
|
|||
# Routing development archive
|
||||
|
||||
Use these records to recover the rationale for a routing decision or compare a fresh capture with an earlier run.
|
||||
|
||||
## Recover earlier decisions
|
||||
|
||||
- For the original coverage target and retry priorities, read the [routing policy goal](routing-policy-goal.md).
|
||||
- For the reason a responsibility lives in a particular module, consult the [routing refactor plan](routing-refactor-plan.md).
|
||||
- For the work removed by the routing cleanups and the prototypes that changed search behavior, read the [simplification results](simplification-results.md).
|
||||
- For the original audience and page split, see the [first documentation reorganization plan](documentation-improvement-plan.md).
|
||||
|
||||
## Reproduce probe and retry experiments
|
||||
|
||||
- To recover the measured probe and holdout tables from November 26, 2026, run `git show 2b02c6e:docs/topological-routing.md`.
|
||||
- For the original retry triggers, budget sweeps, and authored Terminal-Bench lane comparisons, run `git show ea5cfe7:docs/topological-routing.md`. To rerun a retired policy, use that revision's driver in a separate worktree.
|
||||
- To see how these experiments inform the current probe and retry policy, read the [measurement summary](../../docs/benchmark-results.md).
|
||||
|
||||
## Compare performance or diagnose a trace
|
||||
|
||||
| What to recover | Archive record |
|
||||
| --- | --- |
|
||||
| Example coverage and timings | [Baseline report](performance.md) with a [machine-readable snapshot](performance_baseline.json) for comparisons. |
|
||||
| Work measured during the earlier optimization pass | [Optimization log](optimization_pass_01_log.md). |
|
||||
| Conditions under which repair succeeds in the fan-out fixture | [Pair-local characterization](pair_local_characterization.md) with [per-case measurements](pair_local_characterization.json). |
|
||||
| Work by net and iteration | [Iteration trace](iteration_trace.md). |
|
||||
| Overlapping components before and after repair | [Conflict trace](conflict_trace.md). |
|
||||
| Sampled prune reasons near remaining overlaps | [Frontier trace](frontier_trace.md). |
|
||||
| Reroute order and work immediately before repair | [Pre-pair frontier trace](pre_pair_frontier_trace.md). |
|
||||
|
||||
Each trace report has a companion JSON file with the same basename. The baseline comparison tool reads `performance_baseline.json` from this directory by default. For a fresh trace, set `--output-dir` to keep the capture separate from the archived record. See the [fan-out capture command](../../docs/routing-diagnostics.md#follow-a-late-conflict-into-pair-local-repair).
|
||||
|
||||
In the archived traces and pair-local characterization, `nodes_expanded` excludes pair-local search. The archived `pair_local_search_nodes_expanded` counts only attempts that produced a locally valid pair. Neither convention affects the nine scenarios in the saved performance baseline, which used no pair-local search. Fresh captures count every pair-local search in both counters.
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,57 +0,0 @@
|
|||
# Conflict Trace
|
||||
|
||||
Generated at 2026-11-26T21:47:32-08:00 by `scripts/record_conflict_trace.py`.
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
| Stage | Iteration | Conflicting Nets | Conflict Edges | Completed Nets |
|
||||
| :-- | --: | --: | --: | --: |
|
||||
| iteration | 0 | 9 | 16 | 1 |
|
||||
| iteration | 1 | 8 | 12 | 2 |
|
||||
| iteration | 2 | 5 | 4 | 5 |
|
||||
| iteration | 3 | 8 | 4 | 2 |
|
||||
| iteration | 4 | 4 | 2 | 6 |
|
||||
| iteration | 5 | 4 | 2 | 6 |
|
||||
| restored_best | | 4 | 2 | 6 |
|
||||
| final | | 0 | 0 | 10 |
|
||||
|
||||
Top nets by traced dynamic-collision stages:
|
||||
|
||||
- `net_06`: 7
|
||||
- `net_07`: 7
|
||||
- `net_02`: 7
|
||||
- `net_03`: 6
|
||||
- `net_00`: 4
|
||||
- `net_01`: 4
|
||||
- `net_08`: 3
|
||||
- `net_09`: 3
|
||||
- `net_05`: 1
|
||||
|
||||
Top net pairs by frequency:
|
||||
|
||||
- `net_06` <-> `net_07`: 7
|
||||
- `net_02` <-> `net_03`: 6
|
||||
- `net_00` <-> `net_01`: 4
|
||||
- `net_00` <-> `net_02`: 3
|
||||
- `net_01` <-> `net_02`: 3
|
||||
- `net_08` <-> `net_09`: 3
|
||||
- `net_00` <-> `net_03`: 2
|
||||
- `net_01` <-> `net_03`: 2
|
||||
- `net_06` <-> `net_08`: 2
|
||||
- `net_06` <-> `net_09`: 2
|
||||
|
||||
Top component pairs by frequency:
|
||||
|
||||
- `net_06[3]` <-> `net_07[2]`: 6
|
||||
- `net_06[2]` <-> `net_07[2]`: 6
|
||||
- `net_06[1]` <-> `net_07[1]`: 6
|
||||
- `net_02[2]` <-> `net_03[3]`: 5
|
||||
- `net_02[1]` <-> `net_03[1]`: 5
|
||||
- `net_02[2]` <-> `net_03[2]`: 5
|
||||
- `net_06[2]` <-> `net_07[1]`: 5
|
||||
- `net_02[1]` <-> `net_03[2]`: 4
|
||||
- `net_01[2]` <-> `net_02[2]`: 3
|
||||
- `net_01[2]` <-> `net_02[3]`: 3
|
||||
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
# Documentation improvement plan
|
||||
|
||||
Give readers a direct path to their task. A new user should be able to route a layout and diagnose a failure. A developer should be able to run a benchmark, explain a routing decision, or find the right diagnostic. Before the reorganization, the benchmark link opened on corridor algorithms and several pages buried steps and choices in long paragraphs. The original combined page is available with `git show 24559bb:docs/topological-routing.md`.
|
||||
|
||||
## Proposed navigation
|
||||
|
||||
- **`README.md`** gives the project purpose, installation, and one runnable route with an inline result plot. Link directly to **User guide**, **Developer guide**, and **Benchmarks**.
|
||||
- **`DOCS.md`** is the user landing page.
|
||||
- **Route a layout** in `docs/user/route-a-layout.md`. Define ports, headings, widths, and keepouts. Show preplaced crossings, movable seeds, and fixed routes where each matters in the workflow.
|
||||
- **Tune and troubleshoot** in `docs/user/tune-and-troubleshoot.md`. Read a result, distinguish a geometric bound from an unfinished search or a collision, and choose the next setting to test.
|
||||
- **API reference** in `docs/user/api-reference.md`. Look up public signatures, fields, units, and defaults. Link back to a worked example when an option's effect needs explanation.
|
||||
- **Examples** in `examples/README.md`. Show a small visual gallery grouped by task, with links to runnable scripts and advanced examples.
|
||||
- **`docs/development.md`** is the developer landing page.
|
||||
- **Benchmarks** in `docs/benchmarks.md`. Choose a case and profile, run a command, and compare the results.
|
||||
- **Architecture** in `docs/architecture.md`. Explain the automatic stage sequence, what gets locked or retried, and what must be verified before selection. Link to `docs/topological-routing.md` for corridor and lane algorithms.
|
||||
- **Diagnostics** in `docs/routing-diagnostics.md`. Start from a symptom and select a report, counter, or trace. Use a worked trace to show what the evidence can establish.
|
||||
- **Design and experiment records** link to prior goals, refactor plans, measured results, and generated traces with their original context.
|
||||
|
||||
## Split benchmarks from topological routing
|
||||
|
||||
1. Make the README's **Benchmarks** link lead directly to `docs/benchmarks.md`. Open with `overloaded-gate` under `corpus-regression`, where three of four nets route at the three-track bound. Use the output to explain how to judge coverage. Follow with choices for the full regression corpus, mode comparisons, and holdout validation.
|
||||
2. Move case groups, profile definitions, coverage and cost interpretation, and comparison commands to the benchmark guide. Put fixture provenance, import commands, and Terminal-Bench reproduction in `docs/benchmark-fixtures.md`. Put probe and retry findings in `docs/benchmark-results.md`, with the decision, the conditions, and the evidence needed to reproduce it.
|
||||
3. Keep `docs/topological-routing.md` focused on free-space triangulation, portals, lane assignment, and how guide and seed modes use them. Use a contextual link to the benchmark guide when a reader wants to measure the algorithms.
|
||||
4. Update inbound links as part of the move. Map old section links to their new destinations and keep brief forwarding links for useful bookmarks. Preserve the source pins, licenses, and historical commands with the fixture and experiment records.
|
||||
|
||||
## Write for scanning and use
|
||||
|
||||
- Open each page with the task it supports and put the first action or decision near the top. Name headings after what readers are looking for, such as **Run a benchmark** or **Why a net stopped short**.
|
||||
- Use numbered lists for procedures, bullets for independent checks and options, and tables for lookup or comparison. Use short paragraphs to explain why a decision follows from the evidence.
|
||||
- Keep the public workflows and option reference separate. Explain an option at the point where a user needs to choose it, then link to its canonical default or field definition.
|
||||
- Pair an example with its expected result and the next action it demonstrates. Put implementation names and detailed counters beside the developer decisions that use them.
|
||||
- Lead benchmark findings with their implication. Include the profile, comparison baseline, and relevant metric. Link to the full measurements when readers need the raw evidence.
|
||||
|
||||
## Illustrations to add
|
||||
|
||||
| Place | Show | Reader takeaway |
|
||||
| --- | --- | --- |
|
||||
| README quick start | A compact plot generated from the exact quick-start snippet, with start and target arrows | See what a finished path looks like and how to read arrival direction. |
|
||||
| Route a layout | A preplaced crossing with the keepout, port access, and the external nets labeled | See which geometry belongs to the placed device and which connections to give Inire. |
|
||||
| Troubleshooting | Two panels of the same best-effort layout showing a partial path and a completed path after increasing the budget | See why a partial path can indicate unfinished search. |
|
||||
| Examples gallery | Inline previews of selected existing plots, including locked paths and S-bends | Pick the example that resembles the layout at hand. |
|
||||
| Architecture | A small flow diagram of construct, probe, widen, recover, verify, and refine | See where the router stops, retries, or rejects a candidate. |
|
||||
| Topological routing | A single fixture shown as free space and portals, a chosen lane, and the verified physical route | See where the corridor ends and the detailed router's work begins. |
|
||||
|
||||
Use the existing plots where they read clearly at page width. Regenerate focused figures from the documented inputs with the existing plotting tools. Give each figure a caption that explains what to notice and alt text that conveys the takeaway. Distinguish states with labels or line styles as well as color. Use a checked-in image for diagrams when the repository renderer needs one. [Example plots](../../examples/README.md) · [Plotting helpers](../../inire/utils/visualization.py)
|
||||
|
||||
## Order of work
|
||||
|
||||
1. **Fix navigation.** Split the benchmark and topology pages, add the developer landing page, and update links. This is the first reviewable change.
|
||||
2. **Rebuild the user path.** Turn `DOCS.md` into a guide index, move the field tables into the reference, and write the layout and troubleshooting pages as steps and decisions. Add the quick-start, crossing, and partial-route figures.
|
||||
3. **Finish the developer path.** Rework the architecture and diagnostics headings, add the flow and corridor figures, and connect the benchmark guide to fixtures and dated results. Embed the selected existing plots in the examples gallery.
|
||||
4. **Check the paths as a reader.** Preview the rendered docs at normal and narrow widths. Check links, old anchors, image paths, and command output. Run the quick start, a benchmark smoke case, and a diagnostic capture from the published instructions.
|
||||
|
||||
## Acceptance checks
|
||||
|
||||
- From the README, a new user can install, run the first route, see the expected result inline, and find what to check if a real layout returns a partial path.
|
||||
- From the README, a developer can click **Benchmarks** and immediately find how to run a case. The landing page gives enough context to compare verified IDs, path cost, and work under a chosen profile.
|
||||
- A developer looking for corridor internals reaches the topology page through **Architecture** and can follow the stages in an annotated figure.
|
||||
- Each main page has one clear job. The headings alone make the path through it apparent, and procedural sections can be followed from their lists.
|
||||
- Figures match the current snippets or fixtures, remain legible at ordinary page width, and have descriptive captions. Historical measurements and fixture attributions remain findable from the relevant guide.
|
||||
|
|
@ -1,122 +0,0 @@
|
|||
{
|
||||
"generated_at": "2026-11-26T21:47:35-08:00",
|
||||
"generator": "scripts/record_frontier_trace.py",
|
||||
"scenarios": [
|
||||
{
|
||||
"frontier_trace": [],
|
||||
"metrics": {
|
||||
"congestion_cache_hits": 24,
|
||||
"congestion_cache_misses": 3411,
|
||||
"congestion_candidate_ids": 7213,
|
||||
"congestion_candidate_nets": 7410,
|
||||
"congestion_candidate_precheck_hits": 1677,
|
||||
"congestion_candidate_precheck_misses": 1795,
|
||||
"congestion_candidate_precheck_skips": 37,
|
||||
"congestion_check_calls": 3411,
|
||||
"congestion_exact_pair_checks": 5860,
|
||||
"congestion_grid_net_cache_hits": 1676,
|
||||
"congestion_grid_net_cache_misses": 3276,
|
||||
"congestion_grid_span_cache_hits": 1517,
|
||||
"congestion_grid_span_cache_misses": 1637,
|
||||
"congestion_lazy_requeues": 0,
|
||||
"congestion_lazy_resolutions": 0,
|
||||
"congestion_net_envelope_cache_hits": 1801,
|
||||
"congestion_net_envelope_cache_misses": 3433,
|
||||
"congestion_presence_cache_hits": 1857,
|
||||
"congestion_presence_cache_misses": 2075,
|
||||
"congestion_presence_skips": 460,
|
||||
"danger_map_cache_hits": 13605,
|
||||
"danger_map_cache_misses": 6252,
|
||||
"danger_map_lookup_calls": 19857,
|
||||
"danger_map_query_calls": 6252,
|
||||
"danger_map_total_ns": 180793966,
|
||||
"dynamic_grid_rebuilds": 0,
|
||||
"dynamic_path_objects_added": 430,
|
||||
"dynamic_path_objects_removed": 384,
|
||||
"dynamic_tree_rebuilds": 0,
|
||||
"guidance_bonus_applied": 3275.0,
|
||||
"guidance_bonus_applied_bend90": 1075.0,
|
||||
"guidance_bonus_applied_sbend": 200.0,
|
||||
"guidance_bonus_applied_straight": 2000.0,
|
||||
"guidance_match_moves": 131,
|
||||
"guidance_match_moves_bend90": 43,
|
||||
"guidance_match_moves_sbend": 8,
|
||||
"guidance_match_moves_straight": 80,
|
||||
"hard_collision_cache_hits": 0,
|
||||
"iteration_conflict_edges": 40,
|
||||
"iteration_conflicting_nets": 39,
|
||||
"iteration_reverified_nets": 60,
|
||||
"iteration_reverify_calls": 6,
|
||||
"late_phase_capped_fallbacks": 2,
|
||||
"late_phase_capped_nets": 2,
|
||||
"move_cache_abs_hits": 1831,
|
||||
"move_cache_abs_misses": 5516,
|
||||
"move_cache_rel_hits": 4926,
|
||||
"move_cache_rel_misses": 590,
|
||||
"moves_added": 6594,
|
||||
"moves_generated": 7347,
|
||||
"nets_carried_forward": 6,
|
||||
"nets_reached_target": 52,
|
||||
"nets_routed": 54,
|
||||
"nodes_expanded": 1408,
|
||||
"pair_local_search_accepts": 2,
|
||||
"pair_local_search_attempts": 3,
|
||||
"pair_local_search_nodes_expanded": 42,
|
||||
"pair_local_search_pairs_considered": 2,
|
||||
"path_cost_calls": 0,
|
||||
"pruned_closed_set": 414,
|
||||
"pruned_cost": 339,
|
||||
"pruned_hard_collision": 0,
|
||||
"ray_cast_calls": 4577,
|
||||
"ray_cast_calls_expand_forward": 1356,
|
||||
"ray_cast_calls_expand_snap": 36,
|
||||
"ray_cast_calls_other": 0,
|
||||
"ray_cast_calls_straight_static": 3179,
|
||||
"ray_cast_calls_visibility_build": 0,
|
||||
"ray_cast_calls_visibility_query": 0,
|
||||
"ray_cast_calls_visibility_tangent": 6,
|
||||
"ray_cast_candidate_bounds": 162,
|
||||
"ray_cast_exact_geometry_checks": 0,
|
||||
"refine_path_calls": 10,
|
||||
"refinement_candidate_side_extents": 0,
|
||||
"refinement_candidates_accepted": 0,
|
||||
"refinement_candidates_built": 0,
|
||||
"refinement_candidates_verified": 0,
|
||||
"refinement_dynamic_bounds_checked": 0,
|
||||
"refinement_static_bounds_checked": 0,
|
||||
"refinement_windows_considered": 0,
|
||||
"route_iterations": 6,
|
||||
"score_component_calls": 6958,
|
||||
"score_component_total_ns": 205362623,
|
||||
"static_net_tree_rebuilds": 1,
|
||||
"static_raw_tree_rebuilds": 1,
|
||||
"static_safe_cache_hits": 1778,
|
||||
"static_tree_rebuilds": 1,
|
||||
"timeout_events": 0,
|
||||
"verify_dynamic_candidate_nets": 1638,
|
||||
"verify_dynamic_exact_pair_checks": 507,
|
||||
"verify_path_report_calls": 152,
|
||||
"verify_static_buffer_ops": 699,
|
||||
"visibility_builds": 0,
|
||||
"visibility_corner_hits_exact": 0,
|
||||
"visibility_corner_index_builds": 1,
|
||||
"visibility_corner_pairs_checked": 0,
|
||||
"visibility_corner_queries_exact": 0,
|
||||
"visibility_point_cache_hits": 0,
|
||||
"visibility_point_cache_misses": 0,
|
||||
"visibility_point_queries": 0,
|
||||
"visibility_tangent_candidate_corner_checks": 6,
|
||||
"visibility_tangent_candidate_ray_tests": 6,
|
||||
"visibility_tangent_candidate_scans": 1356,
|
||||
"warm_start_paths_built": 0,
|
||||
"warm_start_paths_used": 0
|
||||
},
|
||||
"name": "example_07_large_scale_routing_no_warm_start",
|
||||
"summary": {
|
||||
"reached_targets": 10,
|
||||
"total_results": 10,
|
||||
"valid_results": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# Frontier Trace
|
||||
|
||||
Generated at 2026-11-26T21:47:35-08:00 by `scripts/record_frontier_trace.py`.
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
| Net | Hotspots | Closed-Set | Hard Collision | Self Collision | Cost | Samples |
|
||||
| :-- | --: | --: | --: | --: | --: | --: |
|
||||
|
||||
Prune totals by reason:
|
||||
|
||||
- None
|
||||
|
||||
Top traced hotspots by sample count:
|
||||
|
||||
- None
|
||||
|
||||
Per-net sampled reason/move breakdown:
|
||||
|
||||
- None
|
||||
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,82 +0,0 @@
|
|||
# Iteration Trace
|
||||
|
||||
Generated at 2026-11-26T21:47:40-08:00 by `scripts/record_iteration_trace.py`.
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
| Iteration | Penalty | Routed Nets | Completed | Conflict Edges | Dynamic Collisions | Nodes | Congestion Checks | Candidate Ids | Exact Pairs |
|
||||
| --: | --: | --: | --: | --: | --: | --: | --: | --: | --: |
|
||||
| 0 | 100.0 | 10 | 1 | 16 | 50 | 571 | 0 | 0 | 0 |
|
||||
| 1 | 140.0 | 10 | 2 | 12 | 54 | 269 | 1074 | 2581 | 2150 |
|
||||
| 2 | 196.0 | 10 | 5 | 4 | 18 | 244 | 980 | 1868 | 1539 |
|
||||
| 3 | 274.4 | 10 | 2 | 4 | 20 | 95 | 483 | 977 | 749 |
|
||||
| 4 | 384.2 | 10 | 6 | 2 | 10 | 196 | 703 | 1370 | 1137 |
|
||||
| 5 | 537.8 | 4 | 6 | 2 | 10 | 33 | 171 | 417 | 285 |
|
||||
|
||||
Top nets by iteration-attributed nodes expanded:
|
||||
|
||||
- `net_09`: 249
|
||||
- `net_03`: 217
|
||||
- `net_00`: 213
|
||||
- `net_08`: 159
|
||||
- `net_02`: 158
|
||||
- `net_06`: 151
|
||||
- `net_01`: 129
|
||||
- `net_07`: 91
|
||||
- `net_04`: 21
|
||||
- `net_05`: 20
|
||||
|
||||
Top nets by iteration-attributed congestion checks:
|
||||
|
||||
- `net_03`: 687
|
||||
- `net_06`: 545
|
||||
- `net_02`: 538
|
||||
- `net_01`: 433
|
||||
- `net_07`: 358
|
||||
- `net_08`: 254
|
||||
- `net_00`: 219
|
||||
- `net_09`: 165
|
||||
- `net_04`: 108
|
||||
- `net_05`: 104
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start_seed43
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
| Iteration | Penalty | Routed Nets | Completed | Conflict Edges | Dynamic Collisions | Nodes | Congestion Checks | Candidate Ids | Exact Pairs |
|
||||
| --: | --: | --: | --: | --: | --: | --: | --: | --: | --: |
|
||||
| 0 | 100.0 | 10 | 1 | 16 | 50 | 571 | 0 | 0 | 0 |
|
||||
| 1 | 140.0 | 10 | 1 | 13 | 53 | 281 | 1037 | 2807 | 2205 |
|
||||
| 2 | 196.0 | 10 | 4 | 3 | 15 | 157 | 697 | 1678 | 1289 |
|
||||
| 3 | 274.4 | 6 | 4 | 3 | 15 | 59 | 277 | 610 | 455 |
|
||||
| 4 | 384.2 | 6 | 6 | 2 | 10 | 167 | 584 | 1201 | 958 |
|
||||
| 5 | 537.8 | 4 | 6 | 2 | 10 | 33 | 171 | 419 | 287 |
|
||||
|
||||
Top nets by iteration-attributed nodes expanded:
|
||||
|
||||
- `net_09`: 248
|
||||
- `net_03`: 219
|
||||
- `net_00`: 176
|
||||
- `net_08`: 168
|
||||
- `net_07`: 140
|
||||
- `net_06`: 130
|
||||
- `net_02`: 97
|
||||
- `net_01`: 65
|
||||
- `net_05`: 13
|
||||
- `net_04`: 12
|
||||
|
||||
Top nets by iteration-attributed congestion checks:
|
||||
|
||||
- `net_03`: 695
|
||||
- `net_07`: 454
|
||||
- `net_06`: 449
|
||||
- `net_02`: 368
|
||||
- `net_08`: 302
|
||||
- `net_09`: 178
|
||||
- `net_01`: 136
|
||||
- `net_00`: 75
|
||||
- `net_05`: 55
|
||||
- `net_04`: 54
|
||||
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,30 +0,0 @@
|
|||
# Pair-Local Search Characterization
|
||||
|
||||
Generated at 2026-04-02T15:53:29-07:00 by `scripts/characterize_pair_local_search.py`.
|
||||
|
||||
Grid: `num_nets=[6, 8, 10]`, `seed=[41, 42, 43]`, repeats=2.
|
||||
|
||||
| Nets | Seed | Repeat | Duration (s) | Valid | Reached | Pair Pairs | Pair Accepts | Pair Nodes | Nodes | Checks |
|
||||
| :-- | :-- | :-- | --: | --: | --: | --: | --: | --: | --: | --: |
|
||||
| 6 | 41 | 0 | 0.5462 | 1 | 6 | 0 | 0 | 0 | 500 | 674 |
|
||||
| 6 | 41 | 1 | 0.5256 | 1 | 6 | 0 | 0 | 0 | 500 | 674 |
|
||||
| 6 | 42 | 0 | 0.5241 | 1 | 6 | 0 | 0 | 0 | 503 | 683 |
|
||||
| 6 | 42 | 1 | 0.5477 | 1 | 6 | 0 | 0 | 0 | 503 | 683 |
|
||||
| 6 | 43 | 0 | 0.5199 | 1 | 6 | 0 | 0 | 0 | 493 | 654 |
|
||||
| 6 | 43 | 1 | 0.5160 | 1 | 6 | 0 | 0 | 0 | 493 | 654 |
|
||||
| 8 | 41 | 0 | 1.8818 | 8 | 8 | 2 | 2 | 38 | 1558 | 4313 |
|
||||
| 8 | 41 | 1 | 1.8618 | 8 | 8 | 2 | 2 | 38 | 1558 | 4313 |
|
||||
| 8 | 42 | 0 | 1.4850 | 8 | 8 | 1 | 1 | 19 | 1440 | 3799 |
|
||||
| 8 | 42 | 1 | 1.4636 | 8 | 8 | 1 | 1 | 19 | 1440 | 3799 |
|
||||
| 8 | 43 | 0 | 1.0652 | 8 | 8 | 0 | 0 | 0 | 939 | 1844 |
|
||||
| 8 | 43 | 1 | 1.0502 | 8 | 8 | 0 | 0 | 0 | 939 | 1844 |
|
||||
| 10 | 41 | 0 | 2.8617 | 8 | 10 | 2 | 2 | 41 | 2223 | 6208 |
|
||||
| 10 | 41 | 1 | 2.8282 | 8 | 10 | 2 | 2 | 41 | 2223 | 6208 |
|
||||
| 10 | 42 | 0 | 2.0356 | 10 | 10 | 2 | 2 | 68 | 1764 | 4625 |
|
||||
| 10 | 42 | 1 | 2.0052 | 10 | 10 | 2 | 2 | 68 | 1764 | 4625 |
|
||||
| 10 | 43 | 0 | 50.1863 | 10 | 10 | 2 | 2 | 38 | 61259 | 165223 |
|
||||
| 10 | 43 | 1 | 50.4019 | 10 | 10 | 2 | 2 | 38 | 61259 | 165223 |
|
||||
|
||||
## Recommendation
|
||||
|
||||
No smaller stable pair-local smoke scenario satisfied the rule `valid_results == total_results`, `pair_local_search_accepts >= 1`, and `duration_s <= 1.0` across all repeats.
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
# Performance Baseline
|
||||
|
||||
Generated on 2026-11-26 by `scripts/record_performance_baseline.py`.
|
||||
|
||||
The full machine-readable snapshot is in [performance_baseline.json](performance_baseline.json).
|
||||
Use `scripts/diff_performance_baseline.py` to compare a fresh run against that snapshot.
|
||||
|
||||
| Scenario | Duration (s) | Total | Valid | Reached | Iter | Nets Routed | Nodes | Ray Casts | Moves Gen | Moves Added | Dyn Tree | Visibility Builds | Congestion Checks | Verify Calls |
|
||||
| :-- | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: |
|
||||
| example_01_simple_route | 0.0043 | 1 | 1 | 1 | 1 | 1 | 2 | 10 | 11 | 7 | 0 | 0 | 0 | 4 |
|
||||
| example_02_congestion_resolution | 0.2541 | 3 | 3 | 3 | 1 | 3 | 366 | 1164 | 1413 | 668 | 0 | 0 | 0 | 16 |
|
||||
| example_03_locked_paths | 0.1476 | 2 | 2 | 2 | 2 | 2 | 191 | 657 | 904 | 307 | 0 | 0 | 0 | 10 |
|
||||
| example_04_sbends_and_radii | 0.0222 | 2 | 2 | 2 | 1 | 2 | 15 | 70 | 123 | 65 | 0 | 0 | 0 | 8 |
|
||||
| example_05_orientation_stress | 0.1878 | 3 | 3 | 3 | 2 | 5 | 284 | 1237 | 1617 | 673 | 0 | 0 | 151 | 17 |
|
||||
| example_06_bend_collision_models | 0.1732 | 3 | 3 | 3 | 3 | 3 | 240 | 682 | 1026 | 629 | 0 | 0 | 0 | 12 |
|
||||
| example_07_large_scale_routing | 0.1869 | 10 | 10 | 10 | 1 | 10 | 78 | 383 | 372 | 227 | 0 | 0 | 0 | 40 |
|
||||
| example_08_custom_bend_geometry | 0.0154 | 2 | 2 | 2 | 2 | 2 | 18 | 56 | 78 | 56 | 0 | 0 | 0 | 8 |
|
||||
| example_09_unroutable_best_effort | 0.0053 | 1 | 0 | 0 | 1 | 1 | 3 | 13 | 16 | 10 | 0 | 0 | 0 | 1 |
|
||||
|
||||
## Full Counter Set
|
||||
|
||||
Each scenario entry in the JSON records the full `RouteMetrics` snapshot, including cache, index, congestion, and verification counters.
|
||||
These counters are currently observational only and are not enforced as CI regression gates.
|
||||
|
||||
Tracked metric keys:
|
||||
|
||||
nodes_expanded, moves_generated, moves_added, pruned_closed_set, pruned_hard_collision, pruned_cost, route_iterations, nets_routed, nets_reached_target, warm_start_paths_built, warm_start_paths_used, refine_path_calls, timeout_events, iteration_reverify_calls, iteration_reverified_nets, iteration_conflicting_nets, iteration_conflict_edges, nets_carried_forward, score_component_calls, score_component_total_ns, path_cost_calls, danger_map_lookup_calls, danger_map_cache_hits, danger_map_cache_misses, danger_map_query_calls, danger_map_total_ns, move_cache_abs_hits, move_cache_abs_misses, move_cache_rel_hits, move_cache_rel_misses, guidance_match_moves, guidance_match_moves_straight, guidance_match_moves_bend90, guidance_match_moves_sbend, guidance_bonus_applied, guidance_bonus_applied_straight, guidance_bonus_applied_bend90, guidance_bonus_applied_sbend, static_safe_cache_hits, hard_collision_cache_hits, congestion_cache_hits, congestion_cache_misses, congestion_presence_cache_hits, congestion_presence_cache_misses, congestion_presence_skips, congestion_candidate_precheck_hits, congestion_candidate_precheck_misses, congestion_candidate_precheck_skips, congestion_grid_net_cache_hits, congestion_grid_net_cache_misses, congestion_grid_span_cache_hits, congestion_grid_span_cache_misses, congestion_candidate_nets, congestion_net_envelope_cache_hits, congestion_net_envelope_cache_misses, dynamic_path_objects_added, dynamic_path_objects_removed, dynamic_tree_rebuilds, dynamic_grid_rebuilds, static_tree_rebuilds, static_raw_tree_rebuilds, static_net_tree_rebuilds, visibility_corner_index_builds, visibility_builds, visibility_corner_pairs_checked, visibility_corner_queries_exact, visibility_corner_hits_exact, visibility_point_queries, visibility_point_cache_hits, visibility_point_cache_misses, visibility_tangent_candidate_scans, visibility_tangent_candidate_corner_checks, visibility_tangent_candidate_ray_tests, ray_cast_calls, ray_cast_calls_straight_static, ray_cast_calls_expand_snap, ray_cast_calls_expand_forward, ray_cast_calls_visibility_build, ray_cast_calls_visibility_query, ray_cast_calls_visibility_tangent, ray_cast_calls_other, ray_cast_candidate_bounds, ray_cast_exact_geometry_checks, congestion_check_calls, congestion_lazy_resolutions, congestion_lazy_requeues, congestion_candidate_ids, congestion_exact_pair_checks, verify_path_report_calls, verify_static_buffer_ops, verify_dynamic_candidate_nets, verify_dynamic_exact_pair_checks, refinement_windows_considered, refinement_static_bounds_checked, refinement_dynamic_bounds_checked, refinement_candidate_side_extents, refinement_candidates_built, refinement_candidates_verified, refinement_candidates_accepted, pair_local_search_pairs_considered, pair_local_search_attempts, pair_local_search_accepts, pair_local_search_nodes_expanded, late_phase_capped_nets, late_phase_capped_fallbacks
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,48 +0,0 @@
|
|||
# Pre-Pair Frontier Trace
|
||||
|
||||
Generated at 2026-11-26T21:47:45-08:00 by `scripts/record_pre_pair_frontier_trace.py`.
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
Captured iteration: `5`
|
||||
|
||||
Conflict edges: `(('net_02', 'net_03'), ('net_06', 'net_07'))`
|
||||
|
||||
| Net | Nodes | Checks | Closed-Set | Cost | Hard Collision | Guidance Seed | Frontier Samples |
|
||||
| :-- | --: | --: | --: | --: | --: | :--: | --: |
|
||||
| net_07 | 16 | 85 | 3 | 0 | 0 | yes | 2 |
|
||||
| net_02 | 17 | 86 | 4 | 0 | 0 | yes | 3 |
|
||||
| net_06 | 0 | 0 | 0 | 0 | 0 | yes | 10 |
|
||||
| net_03 | 0 | 0 | 0 | 0 | 0 | yes | 16 |
|
||||
|
||||
Frontier prune totals by reason:
|
||||
|
||||
- `closed_set`: 31
|
||||
- `hard_collision`: 0
|
||||
- `self_collision`: 0
|
||||
- `cost`: 0
|
||||
|
||||
## example_07_large_scale_routing_no_warm_start_seed43
|
||||
|
||||
Results: 10 valid / 10 reached / 10 total.
|
||||
|
||||
Captured iteration: `5`
|
||||
|
||||
Conflict edges: `(('net_02', 'net_03'), ('net_06', 'net_07'))`
|
||||
|
||||
| Net | Nodes | Checks | Closed-Set | Cost | Hard Collision | Guidance Seed | Frontier Samples |
|
||||
| :-- | --: | --: | --: | --: | --: | :--: | --: |
|
||||
| net_07 | 16 | 85 | 3 | 0 | 0 | yes | 2 |
|
||||
| net_02 | 17 | 86 | 4 | 0 | 0 | yes | 3 |
|
||||
| net_06 | 0 | 0 | 0 | 0 | 0 | yes | 10 |
|
||||
| net_03 | 0 | 0 | 0 | 0 | 0 | yes | 14 |
|
||||
|
||||
Frontier prune totals by reason:
|
||||
|
||||
- `closed_set`: 29
|
||||
- `hard_collision`: 0
|
||||
- `self_collision`: 0
|
||||
- `cost`: 0
|
||||
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
# Automatic routing policy and route cost goals
|
||||
|
||||
Use this historical milestone to understand why automatic routing combines constructive planners with search and why the project checks coverage before cost. Use the [current benchmark guide](../../docs/benchmarks.md) to evaluate a new change.
|
||||
|
||||
Run one inire policy across the full benchmark corpus from empty initial paths. The first milestone is to verify **242 of 243 nets and fully route 36 of 37 boards** in one run. The overloaded gate should reach its three-track capacity. Once the policy reproduces that baseline, reduce weighted route cost while preserving coverage.
|
||||
|
||||
## Benchmark baseline
|
||||
|
||||
| Full corpus result | Verified nets | Fully routed boards |
|
||||
| --- | ---: | ---: |
|
||||
| Bundle-first at 100 nodes per attempt and two iterations | 155/243 | 15/37 |
|
||||
| Best existing policy per board after targeted retries | 190/243 | 20/37 |
|
||||
| Best result per board including standalone experiments | 242/243 | 36/37 |
|
||||
|
||||
The clearance-checked column planner completed all 15 serial, split, and bidirectional bypass layouts with zero A* expansions. An experimental bundle turnaround routed all nine nets with the fixed Terminal-Bench headings. An automatic perimeter detour completed the two-net subset. The integrated policy should generate these routes from the input geometry and settings. Keep feasibility witnesses in the test harness for independent coverage and cost checks. [Benchmark corpus and methods](../../docs/benchmarks.md#choose-a-case)
|
||||
|
||||
## Planner selection and verification
|
||||
|
||||
Use geometry checks to select a candidate planner. Use column lane assignment for ordered tracks through successive openings, bundle planning for perimeter returns, and a perimeter detour when the layout leaves room for one. Preserve fixed terminal headings and infer headings only for point-terminal inputs.
|
||||
|
||||
Check complete candidate layouts with inire's geometry verifier before accepting them. Retain the best verified layout across attempts. Use the existing guide, seed, and near-port probe policies for layouts outside the constructive planners' scope or for unresolved nets. Where verification identifies a failed turn, an aperture with insufficient room, or a conflict between nets, use that information to choose the next retry. Stop at a capacity limit only when the geometry proves it.
|
||||
|
||||
## Weighted route cost
|
||||
|
||||
At this milestone, the column planner ranked lateral movement and forward span. On `bypass-interleaved-directions`, its verified solution used 86 S-bends compared with 22 in the feasibility witness and cost 36% more. The difference motivated scoring transitions by physical component cost and considering lanes reachable in a single S-bend. A cheaper transition still needs enough forward room between obstacles and must pass the full-board check.
|
||||
|
||||
## Original next steps
|
||||
|
||||
1. Port the three experimental planners into the benchmark policy and run it with one configuration on all 37 boards. Record the selected planner, retries, valid net IDs, and any capacity limit. Add regression checks for the fixed-heading turnaround and the overloaded gate.
|
||||
2. Set aside validation layouts with staggered terminal columns, uneven widths, and different obstacle arrangements before tuning. Keep closely related variants together so the validation set tests unfamiliar geometry.
|
||||
3. Compare weighted transition scoring against the integrated baseline, starting with `bypass-interleaved-directions`, `split-moving-divider`, and `serial-terminal-jogs`. Report complete boards, weighted cost on identical net sets, A* expansions, and median and tail runtime. Use the full corpus and the held-out layouts to evaluate a default-policy change.
|
||||
|
||||
The archived automatic policy validation records the completed corpus and holdout runs and the scoring comparison. [Experiment archive](../../docs/benchmark-results.md#experiment-archive)
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
# Routing refactor plan
|
||||
|
||||
Use this record to recover the original refactor scope and the reason for each proposed boundary. The initial refactor landed in `ea5cfe7`. Start with the future-looking items when considering new work, and use the [architecture](../../docs/architecture.md) and [diagnostics guide](../../docs/routing-diagnostics.md) for current behavior.
|
||||
|
||||
## Planned
|
||||
|
||||
### Benchmark reproducibility and router state
|
||||
|
||||
1. **Share the corpus and benchmark profiles.** Give the comparison CLI, pytest, and the performance snapshot tools one source for case groups and named configurations. The CLI's matched-budget defaults currently use two congestion iterations and a 600-node seed budget. The corpus test uses three iterations and a 500-node seed budget. Make those settings explicit and preserve the existing configurations when moving them. Store expected coverage with the fixtures, including the bounds for `overloaded-gate` and `lidar-clements-8x8`. [Benchmark CLI](../../scripts/compare_topological_routing.py) · [Corpus tests](../../inire/tests/test_routing_benchmarks.py)
|
||||
2. **Make exact parity a reusable benchmark command.** Compare runs by case and effective profile. Check verified net IDs, path seeds, per-net costs, selected stages and stage order, stable counters, and callback payloads. Report the first differing case, stage, or net and compare elapsed time separately. Use the command when checking subsequent behavior-preserving work.
|
||||
3. **Scope temporary obstacle reservations.** Greedy warm starts remove temporary obstacles on normal completion, and corridor seeding already uses `finally`. Share the cleanup rule while preserving insertion order and cache invalidation. Test that an interrupted greedy search leaves the routing world reusable. [Warm starts and corridor seeds](../../inire/router/_router.py)
|
||||
4. **Consolidate routing counter definitions.** Define counter defaults, reset behavior, and snapshot aggregation once. Keep direct attribute increments in the search loop, preserve the distinction between per-search and cumulative counters, and retain the public `RouteMetrics` fields. Check that runs and reports expose the same counter values. [Mutable counters](../../inire/router/_astar_types.py) · [Public metrics](../../inire/results.py)
|
||||
|
||||
### Routing decisions and diagnostics
|
||||
|
||||
5. **Extract trace formatting from `PathFinder`.** Start with pure formatters for conflict and iteration entries. Keep trace capture points visible in the routing loop, including the stages around best-iteration restoration and pair-local repair. Compare the serialized traces before and after. [Trace capture](../../inire/router/_router.py)
|
||||
6. **Extract negotiated-congestion decisions.** Make reroute selection, late search caps, and stop conditions testable against an iteration review and recent search work. Use small tests to exercise those rules independently of A*, with corpus parity to check their integration. [Congestion routing](../../inire/router/_router.py)
|
||||
7. **Group the per-search congestion caches.** Give the six congestion cache dictionaries one owner for each A* search. Simplify the signatures between the search loop, move expansion, and admission while preserving cache keys and lifetime. Compare stable counters and runtime. [Search loop](../../inire/router/_search.py) · [Move admission](../../inire/router/_astar_admission.py)
|
||||
8. **Consolidate direct-policy settings.** Define each direct policy's connectivity checks, lookahead, budget splitting, and unlocked probe in one internal table. Keep the attempt sequence and early exits explicit and preserve policies exposed by the benchmark CLI. [Direct and residual policies](../../inire/router/_routing_policy.py)
|
||||
9. **Make automatic trial acceptance explicit.** Distinguish locally feasible candidates, whole-board validity, and eligibility to replace an incumbent. Preserve the rule that cost ranks alternatives with the same verified net IDs. Record when residual results are checked and when unresolved results are merged so stage metadata remains consistent. [Trial selection](../../inire/router/_routing_policy.py) · [Automatic orchestration](../../inire/router/_automatic.py)
|
||||
10. **Make capacity bounds independently testable.** Extract the cut-capacity calculation and the disjoint port-conflict check. State the geometry assumptions beside each bound and test when a bound applies separately from the policy decision to stop. Preserve reported cuts, conflict pairs, and routing targets. [Capacity and port checks](../../inire/router/_capacity.py)
|
||||
11. **Separate topological planning from corridor construction.** Give endpoint access, mesh paths, lane assignments, and conversion to `Corridor` explicit internal boundaries. That lets lane-allocation tests exercise choices and tie-breaking independently of the lattice router. [Topological corridors](../../inire/router/_topology.py)
|
||||
12. **Separate column scheduling from seed generation.** Distinguish opening and track assignment, feasible S-bend schedules, and the conversion of a schedule to seeds. Preserve candidate order and full-board verification. Exercise individual transition failures so new passage patterns can be tested in isolation. [Column planning](../../inire/router/_columns.py)
|
||||
13. **Reuse verification details in final diagnostics.** Share final verification details with conflict and frontier reporting where they cover the same net population and installed geometry. Compare exact routes and trace payloads, then measure the change in verification calls and runtime. [Final verification and frontier capture](../../inire/router/_router.py)
|
||||
|
||||
### Geometry and tooling cleanup
|
||||
|
||||
14. **Expose live raw static obstacles through `RoutingWorld`.** Give pair-local search and corridor setup an ordered iterator so both can use current obstacles, including obstacles added after problem creation. Keep index storage details inside the world. [Routing world](../../inire/geometry/collision.py) · [Pair-local search](../../inire/router/_pair_local.py)
|
||||
15. **Centralize cardinal coordinate transforms.** Share forward and lateral projection across the refiner, perimeter planner, and direct-route planner. Cover all four headings and leave snapping at its current points. [Port primitives](../../inire/geometry/primitives.py) · [Refiner](../../inire/router/refiner.py)
|
||||
16. **Move shared geometry helpers out of planner modules.** Give helpers such as exact S-bend spans a neutral home so compact routing can reuse them directly. Preserve exact integer spans for constructive routing and floating-point reach calculations for search. [Compact routing](../../inire/router/_compact.py) · [Column planning](../../inire/router/_columns.py)
|
||||
17. **Share component construction between seed replay and A*.** Reuse the mapping from move parameters to straight, 90-degree bend, and S-bend geometry. Preserve A* cache keys, handling of infeasible moves, and the geometry options applied during seed replay. [Seed materialization](../../inire/router/_seed_materialization.py) · [Move admission](../../inire/router/_astar_admission.py)
|
||||
18. **Name scoring objectives by purpose.** Make search cost, refinement cost, automatic trial ranking, and benchmark-weighted length clear in code and reports. Reuse the weighted-length calculation where it is identical and label native and benchmark costs explicitly. [Automatic scoring](../../inire/router/_automatic.py) · [Benchmark reporting](../../scripts/compare_topological_routing.py)
|
||||
19. **Share trace recorder boilerplate.** Reuse scenario selection, result summaries, command-line arguments, and artifact writing across conflict, frontier, pre-pair, and iteration recorders. Keep each report's renderer and schema in its own script. [Frontier recorder](../../scripts/record_frontier_trace.py) · [Iteration recorder](../../scripts/record_iteration_trace.py)
|
||||
20. **Keep fixtures and routing docs easy to maintain.** Organize large fixture modules by family while preserving stable case names and corpus order. Keep feasibility witnesses separate from timed inputs. Update the architecture map for pair-local search and label the original routing goal as a historical milestone. [Benchmark fixtures](../../inire/tests/routing_benchmarks.py) · [Architecture](../../docs/architecture.md) · [Original routing goal](routing-policy-goal.md)
|
||||
21. **Resolve the remaining lint findings.** Review and fix the reported issues in `inire` and `scripts`, including redundant comprehensions and long lines. Review suggested fixes individually where they touch search or benchmark behavior. [Lint configuration](../../pyproject.toml)
|
||||
|
||||
## Future-looking
|
||||
|
||||
22. **Consider a common residual routing interface when a new recovery strategy needs it.** Identify which operations can be shared across direct locks, incumbent seeding, perimeter recovery, and pair-local search. Preserve their distinct roles for frozen obstacles, seed hints, and merge-time verification. [Residual policies](../../inire/router/_routing_policy.py) · [Pair-local search](../../inire/router/_pair_local.py)
|
||||
23. **Split collision queries further when profiling or geometry work identifies a reason.** Candidate lookup, exact overlap, and ray casting are possible boundaries. Compare clearance, boundary touches, physical and proxy geometry, and cache behavior before adopting a new split. [Collision queries](../../inire/geometry/collision.py)
|
||||
24. **Revisit public option grouping with a compatibility plan.** Consider grouping planner settings or bend geometry when an API change is warranted. Account for legacy custom bend polygons and separate physical and proxy geometry. Handle changes to defaults, validation, and public names as explicit API decisions. [Public options](../../inire/model.py)
|
||||
|
||||
## Verification
|
||||
|
||||
Use the current 67-board corpus as the regression baseline for routing changes. The `corpus-regression` and `public-defaults` profiles reach every board's routing bound and verify 433 of 437 nets each. For behavior-preserving changes, compare exact paths, per-net costs, bounds, planner stage order and metadata, and relevant callback and trace payloads. For changes that intentionally eliminate work, such as item 13, record the expected counter differences while checking route and trace parity. [Corpus reproduction](../../docs/benchmarks.md#run-the-full-benchmark-corpus)
|
||||
|
||||
Capture the same cases and options at both revisions. The parity command defaults to the `corpus-regression` and `public-defaults` profiles. [Parity commands](../../docs/routing-diagnostics.md#reproduce-and-compare)
|
||||
|
||||
### Refactor validation
|
||||
|
||||
The refactor matched paths, costs, stage data, traces, and callbacks on the applicable parity runs. Reusing final verification details reduced repeated checks and improved timing on a diagnostic-heavy straight-route fixture. The full corpus showed little time change. Use trace-heavy cases to measure this kind of refactor, and keep the full corpus for correctness. The paired measurements are in `git show 2b02c6e:docs/routing-refactor-plan.md`.
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
# Routing simplification results
|
||||
|
||||
These checks compare the November 27, 2026 implementation with `6608e18`. The [routing simplification plan](../../plans/routing-simplification.md) defines the implementation batches and the questions each prototype tested.
|
||||
|
||||
## Changes implemented
|
||||
|
||||
| Plan items | Decision and verification |
|
||||
| --- | --- |
|
||||
| 1 | Reuse the live index when the last completed iteration is also the best. Timeout, an earlier winner, and a callback that edits results each exercised restoration. The change alone avoided 9,201 insertions and 9,201 removals on the public-default corpus. |
|
||||
| 2–3 | Share the layout rank and stable Manhattan net order. Tests cover each ranking criterion, an empty first review, the pair-length tolerance, mixed headings, equal distances, and alternate lock order. |
|
||||
| 4–6 | Represent pair targets directly and roll back only rejected installed candidates. Candidate selection uses net-level conflicts. Rejected local searches, reversed attempts, disjoint targets, and the two-pair limit were checked. |
|
||||
| 7–8 | Share incumbent guidance in frontier replay and remove the unused visibility wrapper. Individual trace flags reproduced the same samples and component indices on the explicit worker runs. Exact and tangent visibility tests passed. |
|
||||
| 10 | Replace only the pair under repair. The 27 explicit-worker comparisons avoided 740 insertions and 740 removals, from runs that include both fan-out seeds under five diagnostics settings. They matched paths and trace payloads through multiple repairs. |
|
||||
| 11 | Reuse the best iteration's review when its geometry is still installed and no restored trace needs a capture. The earlier-winner test still performs the restored review. Final verification still supplies partial-path reports and frontier overlap details. The corpus saved 1,589 report calls, 15,582 static buffers, 32,877 dynamic candidate nets, and 13,352 dynamic exact pair checks. |
|
||||
| 12 | Check for four bends before taking a path out of the index for refinement. Straight and S-bend tests confirm the installed paths stay in place. Bend-heavy fixtures kept their candidate counts and paths. Across both corpus profiles, this saved 416 refinement calls and 2,510 insertions and removals each. |
|
||||
| 14 | Sample obstacle boundaries only when an enabled objective uses proximity. Bounds checks stay available. The mixed-weight test uses zero search danger and nonzero refinement danger. Pair workers use their search objective and the active greedy weight. Both profiles and the custom-bend cases matched exactly. |
|
||||
| 17–20 | Reuse the prepared joint-lane problem and the common perimeter residual worker. Joint-lane lock order, skipped IDs, corridor counts, seeded IDs, and stage records matched. The forced perimeter check matched 61 stage records, including 22 residual searches and a verified two-net result on Terminal-Bench Pair. The shared objective constructor preserves each world's obstacle inputs. The containment check accepts flush ports and rejects a custom physical protrusion even when its proxy fits. The trace fixtures use the same result assembly as production. |
|
||||
| 21–23 | Derive the ordinary scenario runs from the snapshot registry. Repeated selectors preserve registry order across recording and comparison, including a performance-only scenario against an older baseline. The public locked-path example matches both original path reports and the generated plot pixel for pixel. Fixture semantics stayed stable. |
|
||||
|
||||
## Prototypes kept out of production
|
||||
|
||||
| Item | Trial | Result and decision |
|
||||
| --- | --- | --- |
|
||||
| 9 | Explicit no-warm-start fan-out with 8 nets at seeds 41 and 44 and 10 nets at seed 43, plus mutable callbacks, caller seeds, and partial paths. | Three capped incumbents saved 15 insertions and removals each. No capped fallback ran in the two automatic corpus profiles. The hot path keeps its existing sequence. |
|
||||
| 13 | Seeded alternating doglegs, return shelf, and detour under both corpus profiles, with 108 proposals near the improvement threshold. | Choices, costs, and built and accepted candidates matched. The prototype saved 1,330 component scores in six runs. Across 11 interleaved public-default repeats, the median changed from 431.2 to 430.3 ms on the doglegs, 35.1 to 34.1 ms on the return shelf, and 11.3 to 11.3 ms on the detour. Keep the simpler scoring loop. |
|
||||
| 15 | A cold, bounded cache of 512 physical clearance buffers, keyed by polygon and clearance. Five interleaved public-default runs per case. | The buffer counts fell on all four cases. The largest retained geometry payload was 474 kB in WKB, before object and native memory overhead. The additional cache state has a modest end-to-end payoff. Keep the direct verification path. |
|
||||
| 16 | Bypass each congestion precheck separately on offset gates, obstructed crossings, the splitter tree, and ten-net fan-out at seed 42. Five interleaved runs per case. | Skipping the grid presence check changed the fan-out expansion sequence. Skipping the candidate check added 37 congestion checks there and left the exact pair count at 5,860. The splitter tree and fan-out median gains were about 1–2%. Keep both filters. |
|
||||
|
||||
### Static verification measurements
|
||||
|
||||
| Public-default fixture | Buffer calls before → cache | Median before → cache | Retained input and buffer WKB |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| PIC splitter tree | 1,255 → 145 | 5,258 → 5,167 ms | 474 kB |
|
||||
| Alternating doglegs | 1,695 → 873 | 464 → 438 ms | 437 kB |
|
||||
| Obstructed crossing approaches | 158 → 20 | 392 → 386 ms | 20 kB |
|
||||
| Custom physical bend | 36 → 9 | 32.2 → 31.5 ms | 1.9 kB |
|
||||
|
||||
The cache trial preserved the mitred-corner distance check. The clearance and collision suites passed with the cache active, including boundary touching.
|
||||
|
||||
### Congestion precheck measurements
|
||||
|
||||
| Fixture | Grid presence rejections | Candidate rejections after presence | Mean presence / candidate query time |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Offset gates | 0 | 0 | No congestion queries |
|
||||
| Obstructed crossing approaches | 425 | 0 | 1.42 / 2.54 µs |
|
||||
| PIC splitter tree | 2,101 | 0 | 2.78 / 11.37 µs |
|
||||
| Fan-out at seed 42 | 460 | 37 | 2.34 / 14.66 µs |
|
||||
|
||||
Query timings include cache hits and misses. In the fan-out run the envelope lookup averaged 11.28 µs and the grid-net lookup averaged 3.22 µs, inclusive of their own checks. Removing the presence filter moved work into the candidate filter and increased full congestion checks from 3,411 to 3,530. Exact tests still distinguish frozen conflicts, soft overlap, and boundary contact.
|
||||
|
||||
## Triggers for broader changes
|
||||
|
||||
**24. Residual routing.** The direct probe uses locked physical geometry and emits placeholders for disconnected IDs. A connected incumbent retry uses the same prepared residual for ordinary seeding and joint-lane recovery. The joint trial needs a seeded layout check before it can win. A disconnected incumbent instead passes movable seeds on the whole original problem. Perimeter recovery holds one local route, adds it back to the result, and verifies the whole candidate when complete. Residual dogleg generation also holds the incumbents, then checks a whole seeded layout. These flows now share preparation where their inputs match. A broader interface can wait for a recovery case that duplicates the seed merge or the whole-layout check.
|
||||
|
||||
**25. Collision queries.** The candidate lookup and exact overlap are already distinct steps. Candidate collection feeds both soft counts and frozen blocking, while final verification checks physical geometry and optionally records component pairs. The precheck measurements show an expansion-order dependency, and the buffer measurements show a limited benefit from adding state. Keep the current lookup boundary around `DynamicPathIndex`. Revisit it when profiling shows that the exact-test work or cache invalidation can be isolated without changing reroute work.
|
||||
|
||||
**26. Public options.** Keep the five routing modes and the six option groups. Constructors, benchmark profiles, and option serialization depend on the four bend geometry fields. A legacy polygon can define both proxy and physical geometry, and an explicit custom proxy keeps the standard arc unless a physical geometry is provided. The geometry overrides and the serialized benchmark cases are covered by tests. Revisit grouping with a caller-facing change that can document those cases and migrate existing constructors and fixture presets.
|
||||
|
||||
## Combined verification
|
||||
|
||||
- Both profiles verified 433 of 437 nets across 67 boards and reached each board's bound. Overloaded Gate verified 3/4 across a three-track cut. LiDAR Clements verified 3/6 with three disjoint fixed-port conflicts. The unseeded Terminal-Bench export verified 9/9 and passed the pinned upstream geometry and cost checker.
|
||||
- The 134 corpus, 20 retry-holdout, and 20 focused callback and diagnostic comparisons matched their recorded paths, verified IDs, costs, stages, bounds, and trace payloads. The 27 explicit-worker comparisons also matched, including guide and seed reports and both fan-out seeds.
|
||||
- The expected stable counter differences were `dynamic_path_objects_added`, `dynamic_path_objects_removed`, `verify_path_report_calls`, `verify_static_buffer_ops`, `verify_dynamic_candidate_nets`, `verify_dynamic_exact_pair_checks`, and `refine_path_calls`. The public-default corpus avoided 11,461 insertions and removals each across the combined changes.
|
||||
- The complete correctness suite passed 385 tests. The separate opt-in run passed all 11 example performance tests.
|
||||
|
||||
The parity capture command and counter allowance syntax are in the [verification section of the plan](../../plans/routing-simplification.md#verification-and-sequencing).
|
||||
|
|
@ -46,4 +46,4 @@ Holding the straight trunk fixed in `stress-retry-straight-decoy` blocks both ve
|
|||
| Pair-local repair | Coverage and conflict edges before repair, plus the final installed geometry. | [Pair-local search](../inire/router/_pair_local.py), [pair repair trace](routing-diagnostics.md#follow-a-late-conflict-into-pair-local-repair) |
|
||||
| Cost or refinement | Per-net costs on equal verified ID sets and validity after the final check. | [Path refinement](../inire/router/refiner.py), [refinement handoff](../inire/router/_automatic.py#L610) |
|
||||
|
||||
Use [benchmark profiles](benchmarks.md#choose-a-profile) for policy comparisons and [exact parity](routing-diagnostics.md#reproduce-and-compare) for behavior-preserving changes.
|
||||
Use [benchmark profiles](benchmarks.md#choose-a-profile) for policy comparisons and [route results and traces](routing-diagnostics.md#reproduce-and-compare) for behavior-preserving changes.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
## Micron-scale routing cases
|
||||
|
||||
The `expanded` group adds 75 deterministic, unseeded boards with independently constructed reference routes. The authored grid units are 10, 100, 250, 500, and 1000 nm. Bend radii span 10–100 µm and trace widths span 1–20 µm. The comparison script records `grid_nm` for these boards and the imported fixtures. Convert benchmark-weighted lengths to microns by multiplying by `grid_nm / 1000`.
|
||||
The `expanded` group adds 75 deterministic, unseeded boards with independently constructed reference routes. The authored grid units are 10, 100, 250, 500, and 1000 nm. Bend radii span 10–100 µm and trace widths span 1–20 µm. The fixtures include `grid_nm` for these boards and the imported layouts. Convert benchmark-weighted lengths to microns by multiplying by `grid_nm / 1000`.
|
||||
|
||||
| Group | Boards | Coverage |
|
||||
| --- | ---: | --- |
|
||||
|
|
@ -14,9 +14,7 @@ The `expanded` group adds 75 deterministic, unseeded boards with independently c
|
|||
| `search-challenges` | 11 | Alternating comb walls and other tight passages that require repeated turns or exercise search-budget exhaustion. |
|
||||
| `scaling` | 8 | Banks and crossing arrays of up to 256 nets, obstacle fields with up to 320 keepouts, and a 240-net board with 240 keepouts and four blocked approaches. |
|
||||
|
||||
Pytest verifies the 75 reference layouts and checks that unseeded routing reaches the known bound on every board. Use `--case search-challenges` or `--case scaling` with an explicit budget to compare routing policies on the harder boards. For scaling comparisons, use the same grid, mode, and budget and collect repeated timings with `--repeat`.
|
||||
|
||||
To exercise the low-budget fallbacks on tight geometry, run `--case geometry-corners --profile corpus-regression --mode automatic --nodes 1 --seed-nodes 1 --iterations 1`.
|
||||
Pytest verifies the 75 reference layouts and checks that unseeded routing reaches the known bound on every board. For a scaling comparison, use the same grid, mode, and budget across repeated runs.
|
||||
|
||||
- [Fixture definitions](../inire/tests/routing_expanded_benchmarks.py)
|
||||
|
||||
|
|
@ -24,18 +22,11 @@ To exercise the low-budget fallbacks on tight geometry, run `--case geometry-cor
|
|||
|
||||
Use `complex-routing-example-1` to test fixed eastbound arrival and `complex-routing-example-1-point-terminals` to test heading inference.
|
||||
|
||||
Export the bundle planner's verified waypoints for the point-terminal board.
|
||||
|
||||
```sh
|
||||
python -m scripts.route_complex_routing_example --output /tmp/inire-complex-routing-example-1.json
|
||||
```
|
||||
|
||||
Expect nine verified routes. The unseeded export met the original checker's cost and geometry requirements.
|
||||
The Terminal-Bench tests verify the unseeded point-terminal bundle and replay both reference lane plans.
|
||||
|
||||
- [Example gallery](../examples/advanced.md#complex-routing-example-1)
|
||||
- [Complex-routing walkthrough](complex-routing-example-1.md)
|
||||
|
||||
To replay a known layout, pass `--reference-lane-plan` for the shared bottom passage or `--single-bottom-track` for the one-track version. Use the unseeded command above for planner coverage and timing.
|
||||
- [Terminal-Bench tests](../inire/tests/test_terminal_bench.py)
|
||||
|
||||
## Preplaced crossings
|
||||
|
||||
|
|
@ -57,33 +48,14 @@ The layout tests use process dimensions to exercise routing and placement replay
|
|||
| Coplanar waveguide | Route the conductor and gap envelope from the same seed. With a 29.5 µm envelope and 3 µm clearance, 28 and 32 µm pitches fail and 36 µm passes. |
|
||||
|
||||
- [Layout regression tests](../inire/tests/test_layout.py)
|
||||
- [Fabrication study](../plans/full-project-review.md#31-preserve-authored-lengths-when-rerouting-phase-sensitive-connections--medium)
|
||||
|
||||
### Phase-sensitive routes
|
||||
|
||||
In the Raymond fabrication study, the authored arms of `MZI9` measured 286.770 µm and 183.637 µm. A geometrically valid replacement for the longer arm measured 127.208 µm. It passed the EBeam design-rule check and changed the signed arm-length difference from +103.133 µm to −56.429 µm. Replaying a separate Bézier-based waveguide with circular bends changed its reported length from 156.137 µm to 154.948 µm. Compare the reported lengths against the circuit's tolerance before replacing a phase-sensitive route. [Raymond fabrication layout](https://github.com/SiEPIC/openEBL-2025-02/blob/a887476a301db2a014be007717cd1821e111f58e/submissions/EBeam_hannahraymond_MZIv21.gds) · [EBeam bend definitions](https://github.com/SiEPIC/SiEPIC_EBeam_PDK/blob/363fbb52eefa8669100499ab531d3fe7befc4867/klayout/EBeam/WAVEGUIDES.xml#L3-L15) · [Reported lengths](user/api-reference.md#results)
|
||||
|
||||
## Imported fixtures
|
||||
|
||||
The importer cuts port openings in device keepouts and snaps optical ports to a 0.1 µm grid. One layout unit is 0.1 µm.
|
||||
The converted fixtures have port openings cut into device keepouts and use a 0.1 µm grid. The test suite reads the checked-in layouts.
|
||||
|
||||
- [Converted fixture geometry](../inire/tests/data/external_routing_benchmarks.json)
|
||||
|
||||
| Cases | Pinned source | License |
|
||||
| --- | --- | --- |
|
||||
| Splitter tree, ring modulator, and MZM | [FLYR PIC Routing Benchmark archive](https://huggingface.co/datasets/FLYR/pic-benchmark/resolve/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark.zip) | FLYR's bundled `LICENSE` specifies [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). |
|
||||
| Toy layout and subsets of the Clements and MRR weight-bank layouts | [LiDAR benchmark inputs](https://github.com/ScopeX-ASU/LiDAR/tree/4e7004d32b0b80d959553797fb30f0737513de0c/src/picroute/benchmarks) | [ScopeX@ASU's MIT license](../inire/tests/data/LiDAR-LICENSE.txt). |
|
||||
|
||||
### Regenerate the converted inputs
|
||||
|
||||
The importer checks both archive hashes before converting geometry. It uses PyYAML to read the layout files. Generate a scratch copy and compare it with the checked-in fixture data.
|
||||
|
||||
```sh
|
||||
mkdir -p /tmp/inire-external-routing
|
||||
curl -fL 'https://huggingface.co/datasets/FLYR/pic-benchmark/resolve/0c1f445792926d97fae01893c89e96b8a9393800/pic-benchmark.zip' \
|
||||
-o /tmp/inire-external-routing/pic-benchmark.zip
|
||||
curl -fL 'https://codeload.github.com/ScopeX-ASU/LiDAR/tar.gz/4e7004d32b0b80d959553797fb30f0737513de0c' \
|
||||
-o /tmp/inire-external-routing/lidar.tar.gz
|
||||
uv run --with 'pyyaml==6.0.3' python -m scripts.import_external_routing_benchmarks \
|
||||
--pic-archive /tmp/inire-external-routing/pic-benchmark.zip \
|
||||
--lidar-archive /tmp/inire-external-routing/lidar.tar.gz \
|
||||
--output /tmp/inire-external-routing/fixtures.json
|
||||
cmp inire/tests/data/external_routing_benchmarks.json \
|
||||
/tmp/inire-external-routing/fixtures.json
|
||||
```
|
||||
- [Converted geometry](../inire/tests/data/external_routing_benchmarks.json)
|
||||
- [Fixture sources and licenses](../inire/tests/data/README.md)
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue