Commit Graph

1 Commits

Author SHA1 Message Date
master
61852892a2 Exclude valid gateway face approaches from backtracking violations
Short orthogonal stubs at diamond (Decision/Fork/Join) boundaries are
the correct routing pattern for orthogonal edges — they're face
approaches, not overshoots. The detection now excludes stubs where the
exterior point is closer (Manhattan distance) to the target center than
the predecessor, indicating consistent progress toward the boundary.

Applied as a post-search FinalScore adjustment only — the iterative
routing search uses the original scoring to keep its search trajectory
stable. This eliminates 3 backtracking violations without affecting
routing speed (12.47s vs 12.65s baseline).

Remaining violations (4): target-joins=1, shared-lanes=1, under-node=2.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 07:38:52 +03:00