Files
flightplanner/crates/core
Alexandre 6a3a885c47 fix(routing): make low-level pairs pass IFPS (LFRS-LFST)
Three router bugs surfaced by testing real filed pairs against the
Eurocontrol IFPUV oracle:

- ROUTE130 repair now collapses the leg chain when dropping an unknown
  designator (a computer-nav fix like GT27A on an airway), instead of
  leaving a dangling `AWY AWY`. Same airway on both sides -> merge; else DCT.
- FL detour ratio 1.6 -> 1.25: the FL-filtered graph fragments the
  conventional (<=FL195) network and forced an absurd London detour for a
  domestic French hop; the short full route now wins.
- FL ceiling-cap: file a short low-level pair at its airways' natural
  ceiling instead of an optimistic FL360 (which yields PROF195 on every
  leg). Gated on upper-network fragmentation so genuine high-level
  long-haul (EGLL-LSZH) is never wrongly lowered.
- New PROF195 repair lowers the cruise FL to where the cited airway exists.

LFRS-LFST now no-error at FL080 (0 iterations); LFRN-LFMN and LSGG-LFPO
still pass and now converge in 0 iterations. 4 new unit tests; 49 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-21 11:59:41 +02:00
..