Separate user guides, benchmarks, and routing internals

This commit is contained in:
Jan Petykiewicz 2026-11-26 21:14:29 -08:00
commit e4d5952677

30
docs/benchmark-results.md Normal file
View file

@ -0,0 +1,30 @@
# Benchmark results
Use these measurements to understand the current probe policy and choose follow-up retry experiments. [Run a fresh benchmark](benchmarks.md)
## Near-port probe and retry experiments
Results recorded on November 26, 2026. The probe decision compared the two-iteration cap with the full configured probe budget. The retry experiments used the pre-cap policy.
The two-iteration probe cuts repeated shallow searches on layouts such as the splitter tree. It reduced public-default expansion counts by 23% on the regression corpus with identical paths there and on the holdouts. The mixed port-bank case did more work because the shorter probe passed the last net to the wider retry. Test both stages when changing the cap. A one-iteration cap increased the cost of a crossing approach, and the clipped-proxy regression required the original probe budget to keep its cheaper route. These are reasons to check path quality and proxy geometry as well as total expansions. [Probe budget in the policy](architecture.md#automatic-routing)
```sh
python -m scripts.benchmark_retry_order --case corpus --case retry-holdout \
--policy baseline --policy probe-full-budget --jobs 6 --json /tmp/inire-probe.json
```
### Early and late retries
Early retries can save time when they replace a more expensive stage. Their failures add work before the ordinary fallback. The holdout runs found both effects and a case where early incumbent recovery selected a higher-cost path at the same coverage. Review failed-retry time and common-net cost when deciding whether an early exit is worth using. The archived experiments include the trigger counts and the original commands. [Experiment archive](#experiment-archive)
The experimental `late-residual-3000` policy tests a different question. Can a wider search recover the last net while keeping the rest fixed? It requires room in the caller's budget and skips attempts whose locks disconnect the remaining ports. In the pre-cap holdout sweep it completed the last net on two crossing boards and a return shelf, with all previously verified paths intact. Use the experiment to measure the cost of completing one more net after the normal policy stalls.
```sh
python -m scripts.benchmark_retry_order --case retry-holdout --profile public-defaults \
--policy baseline --policy late-residual-3000 --repeat 3 --jobs 6 \
--json /tmp/inire-residual.json
```
## Experiment archive
Use `git show ea5cfe7:docs/topological-routing.md` for the original retry experiments, budget sweeps, and manual Terminal-Bench lane comparisons. Use `git show 2b02c6e:docs/topological-routing.md` for the measured probe and holdout tables. For retired policies, check out `ea5cfe7` in a separate worktree to run the matching driver. [Original goal](routing-policy-goal.md) · [Refactor plan](routing-refactor-plan.md)