When the graph tier returns a verified path longer than
suspicious_ratio * chord + suspicious_margin_m, and the lattice tier is
enabled, run one lattice attempt within its own time budget and the request
deadline. The lattice path replaces the graph path only if it is verified, not
cancelled, and its cost (length plus zone_deviation_weight * deviation / 45)
is at least detour_upgrade_min_saving lower, without adding more than
detour_upgrade_max_extra_zone_deviation_m of zone-deviated length.
- PlannerConfig: detour_upgrade_enabled (true), detour_upgrade_time_limit_s
[s] (2.0), detour_upgrade_min_saving (0.15, in [0, 1)),
detour_upgrade_max_extra_zone_deviation_m [m] (0.5); validated in
PlannerConfig::validate().
- PlanInfo: detour_upgrade_outcome (off, not_triggered, taken, kept_graph,
kept_graph_zone_deviation, lattice_failed, cancelled), graph/lattice length,
cost, zone deviation, time and lattice reason.
- lane_route_eval: overrides for the new keys, outcome fields in the JSON.
- Tests: lane_route_core_test 135/135.