mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
No description
- JavaScript 96.9%
- CSS 2.9%
- HTML 0.2%
* navi-offroute: Auto classify-once / route-once (kill 4-mode contest) PR 1 of the Auto rewrite. _route_auto no longer routes all four modes and keeps a min-time winner; it classifies each endpoint (category map, spatial probe only as untagged-click fallback), picks the first AUTO_MODE_PRIORITY mode in the eligible intersection, and routes ONCE. This removes the measured ~3.03s in-town 4-mode probe (single-mode probing line in journald) -- in-town Auto drops from ~6s toward ~1s. Trade-off (intentional, PR1): no routing-failure fall-through and no min-time refinement -- if the capability-picked mode cannot route, the error is returned. The hybrid path (unchanged here, still gated on the 24km MIN_HYBRID_DISTANCE_KM) recovers road->offroad plans. Semantic hybrid gate is PR 2. Scope: router.py (_route_auto contest loop only) + test_offroute.py (contest tests -> capability-pick tests + new tagged-no-spatial and untagged-spatial-once tests). _try_hybrid_auto body, the hybrid gate, AUTO_MODE_PRIORITY/MODE_PROFILES, and all other modules untouched. Full offroute suite: 84 passed. Design: recon_refactor/auto-rewrite-plan.md (artifacts dir). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Auto: foot-as-last-resort fallback when picked mode fails to route If the capability-picked mode cannot route, retry foot ONCE (foot always routes modulo bbox limits) instead of surfacing a wall to the user. On success, ship the foot route tagged with auto_fallback_from=<picked mode> for the UI; on foot failure, return the original error. No fallback when the picked mode is already foot. selected_mode_set still reflects the original capability intersection. Tests: no_fallthrough -> falls_back_to_foot_on_error; + both-fail returns error; + no-fallback-when-picked-is-foot. Full offroute suite: 86 passed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Matt <mj@k7zvx.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| backend | ||
| frontend | ||