Fix routing correctness and bound optional routing work

Check physical keepout clearance, retain useful partial paths, and account for all pair repair searches. Verify complete seeds early and recover narrower corridors when shared guides are blocked.

Keep frontier diagnostics outside routing decisions and bound their work by the worker deadline. Correct benchmark scaling and scenario validation, and update the guides and release metadata.
This commit is contained in:
Jan Petykiewicz 2026-12-02 17:16:34 -08:00
commit 63acb94642
2 changed files with 1073 additions and 199 deletions

View file

@ -40,8 +40,11 @@ def _current_snapshots(
selected_scenarios: tuple[str, ...] | None,
*,
include_performance_only: bool,
baseline: dict[str, dict[str, object]],
) -> dict[str, dict[str, object]]:
snapshots = capture_scenario_snapshots(selected_scenarios, include_performance_only=include_performance_only)
snapshots = capture_scenario_snapshots(
selected_scenarios, include_performance_only=include_performance_only, baseline_scenarios=baseline.keys(),
)
return {snapshot.name: asdict(snapshot) for snapshot in snapshots}
@ -201,7 +204,10 @@ def main() -> None:
metrics = tuple(args.metrics) if args.metrics else SUMMARY_KEYS
_validate_metrics(metrics)
baseline = _load_baseline(args.baseline, selected)
current = _current_snapshots(selected, include_performance_only=args.include_performance_only)
try:
current = _current_snapshots(selected, include_performance_only=args.include_performance_only, baseline=baseline)
except ValueError as exc:
parser.error(str(exc))
report = _render_report(baseline, current, metrics)
if args.output is not None:

View file

@ -99,10 +99,12 @@ def main() -> None:
repo_root = Path(__file__).resolve().parents[1]
output_dir = repo_root / "archive" / "routing" if args.output_dir is None else args.output_dir.resolve()
output_dir.mkdir(parents=True, exist_ok=True)
selected = tuple(args.scenarios) if args.scenarios else None
payload = _build_payload(selected, include_performance_only=args.include_performance_only)
try:
payload = _build_payload(selected, include_performance_only=args.include_performance_only)
except ValueError as exc:
parser.error(str(exc))
output_dir.mkdir(parents=True, exist_ok=True)
json_path = output_dir / "performance_baseline.json"
markdown_path = output_dir / "performance.md"