Refactor routing internals and archive retry benchmarks
This commit is contained in:
parent
a8720ac8c9
commit
ea5cfe7f31
4 changed files with 3481 additions and 2583 deletions
|
|
@ -19,7 +19,10 @@
|
|||
- `inire/geometry/static_obstacle_index.py` and `inire/geometry/dynamic_path_index.py`: Spatial-index management for static obstacles and routed paths, including dynamic per-object indices, per-net grid occupancy, congestion grid membership, and per-net dynamic envelopes.
|
||||
- `inire/router/_search.py`, `_astar_moves.py`, `_astar_admission.py`, `_astar_types.py`: The state-lattice A* search loop and move admission pipeline.
|
||||
- `inire/router/_router.py`: The negotiated-congestion driver and refinement orchestration.
|
||||
- `inire/router/_congestion_policy.py` contains the iteration review, reroute selection, and stopping rules. `_route_traces.py` formats diagnostics from the driver’s collected data.
|
||||
- `inire/router/_pair_local.py` searches for replacements in a separate routing world. The driver installs and verifies proposed replacements and restores the incumbent layout when a candidate is rejected.
|
||||
- `inire/router/_automatic.py` selects and verifies planner candidates for the default public routing mode. It retries at the configured lattice search ceiling when the first pass falls short of the routing bound.
|
||||
- `inire/router/_capacity.py` calculates vertical cut bounds and disjoint fixed-port conflicts for the automatic router.
|
||||
- `inire/router/_topology.py` builds alternative corridors through triangulated free space and ranks portal lanes using capacity, route overlap, and estimated turn clearance.
|
||||
- `inire/router/_bundle.py` constructs ordered routes from rectangular barriers and terminal order for the opt-in bundle mode. `_waypoints.py` compiles its turns and S-bends into physical path seeds.
|
||||
- `inire/router/refiner.py`: Post-route path simplification for completed paths.
|
||||
|
|
@ -55,4 +58,4 @@ When enabled, topological planning runs before the first iteration. The lattice
|
|||
|
||||
`RoutingRunResult.metrics` includes both A* counters and index/cache/verification counters. The committed example-corpus baseline for those counters is tracked in `docs/performance.md` and `docs/performance_baseline.json`.
|
||||
|
||||
The [topological routing experiment](topological-routing.md) compares soft corridor guidance and corridor-first seed generation with the state-lattice baseline.
|
||||
The [topological routing experiment](topological-routing.md) compares soft corridor guidance and corridor-first seed generation with the state-lattice baseline. The [refactor plan](routing-refactor-plan.md) documents the exact parity command for checking implementation changes against a baseline.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
# Automatic routing policy and route cost goals
|
||||
|
||||
This historical milestone describes the original 37-board automatic-routing objective. The [routing benchmark record](topological-routing.md) tracks the expanded corpus and subsequent tuning.
|
||||
|
||||
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
|
||||
|
|
|
|||
59
docs/routing-refactor-plan.md
Normal file
59
docs/routing-refactor-plan.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Routing refactor plan
|
||||
|
||||
Make routing behavior easier to measure, test, and change through independent refactors. Start with shared benchmark configuration and parity checks, then make temporary obstacle cleanup exception-safe. Keep the [public routing API](../DOCS.md) and current planner behavior as the baseline for planned changes.
|
||||
|
||||
## 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/_automatic.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](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 results and reproduction](topological-routing.md)
|
||||
|
||||
Capture the same cases and options from the baseline and the changed checkout, then compare them with the parity command. Its default capture uses `corpus-regression` (the 500-node, three-iteration pytest configuration) and `public-defaults`. Use `--profile matched-budget` for the original comparison CLI configuration. Use `--case` to select a case or group, `--callbacks` to add runs with live callbacks, and `--diagnostics` to capture detailed traces.
|
||||
|
||||
```sh
|
||||
python -m scripts.routing_benchmark_parity capture /tmp/routing-before.json
|
||||
python -m scripts.routing_benchmark_parity capture /tmp/routing-after.json
|
||||
python -m scripts.routing_benchmark_parity compare /tmp/routing-before.json /tmp/routing-after.json
|
||||
```
|
||||
|
||||
### Refactor validation
|
||||
|
||||
The 134 corpus runs matched the baseline exactly. In 20 runs with diagnostics enabled, the routes, costs, stage metadata, traces, and callback results also matched. Reusing final verification details eliminated 172 path verification calls, 524 static buffer operations, and 48 dynamic candidate-net checks across those diagnostic runs.
|
||||
|
||||
On a 32-net seeded straight-route layout with conflict and frontier diagnostics enabled, verification calls fell from 224 to 160 and median routing time fell from 19.05 ms to 15.28 ms. Each checkout ran 27 measured samples in alternating batches after warmup. The corpus timing totals stayed close at 105.04 s before and 105.74 s after, measured as the sum of individual runs.
|
||||
|
|
@ -239,6 +239,8 @@ python -m scripts.compare_topological_routing --profile public-defaults \
|
|||
|
||||
`--profile matched-budget` is the default CLI profile. It uses the configured common budget and iteration count and retains the benchmark weights for automatic candidate selection. Use it for controlled mode and policy comparisons. Automatic rows print median elapsed time by operation, with individual timings and the planner, mode, and retry policy in JSON. [Report fields](../DOCS.md#automatic-routing)
|
||||
|
||||
Use `--profile corpus-regression --case corpus` to reproduce the pytest configuration with 500 search nodes, 500 seed nodes, and three congestion iterations. The comparison reports both benchmark-weighted length (`valid_costs` in JSON) and the native objective (`native_valid_costs`) for verified nets. The native objective uses the run's length, bend, and danger weights. The profile also controls which cost automatic routing uses to rank candidates. [Exact parity command](routing-refactor-plan.md#verification)
|
||||
|
||||
One full-corpus run per profile verified 384/388 nets and completed 55/57 boards. Both profiles matched the baseline net IDs and geometric bounds on every board. In the matched-budget run at 500 nodes and three congestion iterations, fixed-heading Terminal-Bench spent 10.42 of 10.60 seconds in refinement and used zero A* expansions. The staggered crossing grid spent 10.00 of 10.08 seconds in search.
|
||||
|
||||
### Refinement and early guide experiments
|
||||
|
|
@ -327,6 +329,8 @@ Four bend-first windows are now the default. A full comparison against the 24-wi
|
|||
|
||||
Trying column jogs before the near-port probe reproduced exact paths and costs on all 67 boards in both profiles. On the alternating doglegs, width-key passage, and split-merge passage, the new order reduced A* expansions from 3,300, 7,200, and 7,200 to zero under public defaults. The earlier constructive planners still run first.
|
||||
|
||||
Trying the residual dogleg as soon as the near-port probe left one net unfinished reproduced exact paths, costs, and routing bounds on all 67 boards in both profiles. For the straight decoy, public-default search fell from 13,200 to 1,200 A* expansions and elapsed time fell from 5.47 to 0.67 seconds in the corpus sweeps. At the matched budget, expansions fell from 5,500 to 500 and elapsed time fell from 3.69 to 0.41 seconds.
|
||||
|
||||
### External and fallback benchmarks
|
||||
|
||||
`--case external` runs six fixed-placement problems from two public sources. The fixtures preserve net IDs and device locations, with optical ports snapped to a 0.1 µm lattice and expressed relative to the imported board. Device boxes become obstacles with outward access cutouts at the selected ports. The timed runs start from empty initial paths. The converted inputs are checked into the repo so benchmark runs work offline. [Fixture data](../inire/tests/data/external_routing_benchmarks.json)
|
||||
|
|
@ -382,6 +386,99 @@ python -m scripts.compare_topological_routing --case all --case broad --mode aut
|
|||
--nodes 173 --seed-nodes 173 --iterations 3 --json /tmp/inire-budget-173.json
|
||||
```
|
||||
|
||||
### Earlier lattice and incumbent retries
|
||||
|
||||
The opt-in `lattice-1500` policy tries lattice routing before seed recovery when the near-port and lookahead searches stop at the same verified set, one net short. It requires a configured ceiling of at least 1,500 nodes. On the return shelf, early caps of 500, 750, and 1,000 spent extra work before the usual fallback completed the board. The 1,500- and 2,000-node retries both completed it with the same paths and expansion count.
|
||||
|
||||
The opt-in `recover-near-port` policy tries locked incumbent recovery before the second direct search when the first has verified at least two thirds of the nets and leaves at most two unresolved. The recovery uses at most 500 nodes per search and two congestion iterations. The direct retry is skipped once recovery verifies the complete layout. The `recover-lookahead` variant applies the same idea one net short during the wider split-budget attempt. Both worked on the crossing detour, with near-port recovery completing earlier. [Retry benchmark driver](../scripts/benchmark_retry_order.py)
|
||||
|
||||
The full sweep ran the baseline and four experimental policies over all 67 boards under public defaults and corpus-regression settings, with three interleaved repeats per case and policy. All policies preserved the same verified net IDs, path seeds, and per-net benchmark and native costs. Each reached every board's bound and verified 433/437 nets in both profiles. The combined policy changed search stages only on the return shelf and crossing detour. The splitter tree kept the same stages and expansion count.
|
||||
|
||||
| Case and profile | Baseline median | Combined median | Baseline to combined expansions |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Return shelf, public defaults | 10.04 s | 4.34 s | 21,199 → 8,399 |
|
||||
| Crossing detour, public defaults | 5.67 s | 0.86 s | 11,373 → 1,370 |
|
||||
| Crossing detour, corpus regression | 5.12 s | 0.85 s | 5,959 → 839 |
|
||||
|
||||
| Profile | Baseline to combined median | Baseline to combined p95 | Baseline to combined sum of medians |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Public defaults | 0.370 → 0.369 s | 3.94 → 2.33 s | 55.13 → 44.57 s |
|
||||
| Corpus regression | 0.181 → 0.180 s | 2.49 → 2.26 s | 36.00 → 31.74 s |
|
||||
|
||||
The corpus percentile and sum are calculated over the 67 board medians.
|
||||
|
||||
```sh
|
||||
python -m scripts.benchmark_retry_order --case corpus \
|
||||
--policy baseline --policy lattice-1500 --policy recover-lookahead \
|
||||
--policy recover-near-port --policy lattice-1500-and-recover-near-port \
|
||||
--repeat 3 --jobs 6 --json /tmp/inire-retry-order.json
|
||||
```
|
||||
|
||||
#### Retry holdouts
|
||||
|
||||
The `retry-holdout` group contains ten unseeded layouts with 63 nets across three families. The return shelves vary the wall and return bay. The crossing detours vary the floor keepout, outer bypass, and port headings. The competing trunks test straight locks against perpendicular branches. Separate waypoint witnesses establish that all ten layouts are feasible. The 67-board regression corpus keeps its original membership. [Holdout fixtures](../inire/tests/retry_holdout_benchmarks.py)
|
||||
|
||||
The baseline verified 60/63 nets under public defaults and 59/63 under the 500-node corpus-regression profile. Both retry policies verified exactly the same net IDs in both profiles. Each row aggregates three interleaved repeats into per-board medians. The p95 equals the slowest board median in this ten-board sample. Failed retry time is the sum of time spent inside the unsuccessful retries, with one median per affected board.
|
||||
|
||||
| Profile and policy | Median / p95 across boards | Sum of board medians | Completed / failed early retries | Time / expansions spent on failed retries |
|
||||
| --- | ---: | ---: | ---: | ---: |
|
||||
| Public defaults, baseline | 7.00 / 33.37 s | 92.50 s | — | — |
|
||||
| Public defaults, `lattice-1500` | 4.61 / 33.40 s | 91.54 s | 1 / 4 | 9.79 s / 5,398 |
|
||||
| Public defaults, `recover-near-port` | 5.74 / 30.58 s | 86.11 s | 2 / 1 | 1.51 s / 2,000 |
|
||||
| Corpus regression, baseline | 4.88 / 12.97 s | 50.54 s | — | — |
|
||||
| Corpus regression, `recover-near-port` | 4.86 / 12.44 s | 49.56 s | 1 / 2 | 3.48 s / 4,338 |
|
||||
|
||||
Keep both experiments opt-in. `lattice-1500` cut the stepped-roof median from 11.00 s to 3.88 s with identical paths. It failed on four of the five boards where it ran. The corpus-regression ceiling of 500 nodes prevented it from running in that profile. Near-port recovery cut the public floor-pocket median from 4.67 s to 0.77 s with identical paths. On stretched crossings it cut the median from 1.46 s to 0.71 s and increased the cost of `outside_lower` from 1,097.65 to 1,107.65 by the weighted benchmark and from 1,432.12 to 1,437.77 by the native objective. All other per-net costs matched.
|
||||
|
||||
```sh
|
||||
python -m scripts.benchmark_retry_order --case retry-holdout \
|
||||
--policy baseline --policy lattice-1500 --policy recover-near-port \
|
||||
--repeat 3 --jobs 6 --json /tmp/inire-retry-holdout.json
|
||||
```
|
||||
|
||||
#### Splitter tree probe budget
|
||||
|
||||
The public near-port probe spent its last seven congestion iterations retrying the same four unresolved nets at 16 expansions each and stayed at 2/6. The lookahead retry spent another 475 expansions on negotiated iterations, reached 4/6, and supplied the paths that let ordinary incumbent recovery complete the layout.
|
||||
|
||||
| Profile | Baseline | One probe iteration | Two probe iterations |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Public defaults | 5.76 s / 5,764 expansions | 5.08 s / 4,436 | 5.38 s / 4,875 |
|
||||
| Corpus regression | 4.16 s / 4,689 expansions | 3.78 s / 4,057 | 4.00 s / 4,389 |
|
||||
|
||||
The splitter tree verified all six nets with identical paths and costs in three interleaved repeats of each policy. The one-iteration cap also verified the same net IDs across all 67 regression boards in both profiles. On `crossing-obstructed-approaches` under public defaults, it increased the weighted cost of `x0.e->south-east` by 872.96 and its native cost by 478.21.
|
||||
|
||||
The two-iteration cap preserved exact paths on all 77 boards in both profiles. The 67-board sweep reduced public-default expansions from 59,695 to 46,066 (23%) and corpus-regression expansions from 30,093 to 27,743 (8%). The ten holdouts ran twice per policy. Expansions fell from 121,941 to 109,549 (10%) under public defaults and from 71,761 to 69,511 (3%) under corpus regression. This comparison applies to the initial probe only. The lookahead and incumbent stages retain their existing budgets.
|
||||
|
||||
```sh
|
||||
python -m scripts.benchmark_retry_order --case pic-splitter-tree-1x8-ew \
|
||||
--policy baseline --policy probe-iterations-1 --policy probe-iterations-2 --policy probe-iterations-3 \
|
||||
--repeat 3 --jobs 2 --json /tmp/inire-splitter-probe.json
|
||||
```
|
||||
|
||||
#### Wider search for one unresolved net
|
||||
|
||||
The three public-default holdouts that stopped one net short still had connected residuals with the verified paths locked. Raising the residual search and corridor seed limits let the router finish with those exact paths. The experiment freezes the incumbents, uses at most two congestion iterations for the remaining net, and verifies the merged layout before it can win. Timed runs start with no supplied paths.
|
||||
|
||||
| When the residual budget rises | Verified nets | Fully routed boards | Sum of public-default board times |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Baseline for the early sweep | 60/63 | 7/10 | 100.12 s |
|
||||
| Before the remaining fallbacks, 1,500 nodes | 62/63 | 9/10 | 104.75 s |
|
||||
| Before the remaining fallbacks, 3,000 nodes | 63/63 | 10/10 | 75.02 s |
|
||||
| Baseline for the late sweep | 60/63 | 7/10 | 87.57 s |
|
||||
| After the ordinary fallbacks, 3,000 nodes | 63/63 | 10/10 | 90.55 s |
|
||||
|
||||
The early sweeps used medians of three repeats. Early 3,000-node recovery changed `fold` on deep roof by +6.44 weighted cost and −226.61 native cost. It also spent 11,000 expansions on a failed stepped-roof attempt. On the 67-board public-default corpus it added 10,025 expansions to the original return shelf and the existing fallback supplied the same result.
|
||||
|
||||
The late sweep ran once across all ten holdouts. Its three retries added 3,881 expansions and preserved every baseline path. The two crossing boards also completed 9/9 in two additional runs each. The seven already complete holdouts kept their exact search stages and expansion counts. Across the original corpus, all 134 case/profile results matched the baseline and the late retry never ran. Keep the escalation opt-in while testing more one-net misses. The existing residual search and verification functions were enough to run this experiment.
|
||||
|
||||
```sh
|
||||
python -m scripts.benchmark_retry_order --case retry-holdout --profile public-defaults \
|
||||
--policy baseline --policy residual-1500 --policy residual-3000 \
|
||||
--repeat 3 --jobs 6 --json /tmp/inire-wider-residual.json
|
||||
python -m scripts.benchmark_retry_order --case retry-holdout --profile public-defaults \
|
||||
--policy baseline --policy late-residual-3000 --jobs 5 --json /tmp/inire-late-residual.json
|
||||
```
|
||||
|
||||
### Selective column scoring
|
||||
|
||||
All three column policies verified the same 335 net IDs across three repeats at 200 nodes per attempt. The cost totals sum one run across all 53 boards. Runtime statistics pool the three runs per board. The column-board median uses the 21 boards where span scoring produced a column candidate.
|
||||
|
|
|
|||
Loading…
Reference in a new issue