Include placed geometry in routing parity snapshots

This commit is contained in:
Jan Petykiewicz 2026-12-01 22:48:31 -08:00
commit 266aeb6c5e

View file

@ -77,7 +77,7 @@ Use the returned result to count final successes. For live progress during routi
## Reproduce and compare
1. Start with a fixture that shows the symptom. Capture the same options at both revisions. For a behavior-preserving change, exact parity checks paths, scores, stage metadata, stable counters, and coverage. Add `--callbacks` and `--diagnostics` to both captures when changing callback or trace behavior.
1. Start with a fixture that shows the symptom. Capture the same options at both revisions. For a behavior-preserving change, exact parity checks move sequences, effective ports, physical polygon hashes, scores, stage metadata, stable counters, and coverage. Add `--callbacks` and `--diagnostics` to both captures when changing callback or trace behavior.
2. For a policy change, check verified IDs, paths, and per-net costs first. Advance to the full corpus and relevant holdouts once the focused case behaves as intended. Use interleaved repeats for timing and name the boards that get slower. Time inside failed retries can explain a tail regression that the median obscures.
3. If the run gets slower without more expansions, check the operation timings and use the counters above to pick a narrower trace or profile.
@ -89,6 +89,8 @@ python -m scripts.routing_benchmark_parity capture /tmp/routing-after.json --cas
python -m scripts.routing_benchmark_parity compare /tmp/routing-before.json /tmp/routing-after.json
```
Use capture scripts with the same snapshot schema on both revisions. Version 1 snapshots still compare with each other. Version 2 adds effective port and polygon data.
Select a built-in trace case by name with `--scenario`. Use `--output-dir` to write the capture in a scratch directory.
### Check timing and counters