Status: blocked Waits for: VB-818 Priority: 3 Size: M Arch: roads Phase: implement Design ref: World and scale (Uses of regions: hierarchical pathfinding for 1,000 pawns, HPA, Botea, Müller and Schaeffer 2004: Agreed). Goal: The design plans hierarchical pathfinding over the 169-tile regions. Routes today are searches up to 60 steps (VB-064), cached per pair of tiles in a cache that grows without bound (REVIEW.md, Performance). Build HPA only if it is needed: measure first. Depends on VB-096 (terrain costs), so the abstract graph is built once with them; if it is not done, mark this blocked. Acceptance criteria:
medium-ref (docs/bench/budget.md, line 38: about 4% of 244 ms), under this task’s own 5% stop, and VB-198 bounded the route cache at 60,000; boats and ice will change the cost grid, so slice 10’s plan decides.needs-review.src/sim/routes.js, and on populous medium at seed 7 it no longer shows in the profile (it was about 40% of the simulation’s time). Measure on Large as the criteria say before building anything; routes along worn paths (VB-110) are the natural abstract graph if it is ever needed.docs/slices.md, section 3.10; the slices Decided by Kim): moved to slice 10, arch roads (from tooling). blocked until the slice’s plan (VB-190) confirms, rewrites or closes it.docs/cost.md section 1.4 asks; this task keeps the HPA* routes, for the day routes cost too much. Measured for the plan: 25,723 cached routes at year 40 of populous small (1 MB of the save).docs/plans/VB-190.md, sections 6 and 8): confirmed as written. Slice 10’s design adds no search that mixes modes (a journey by water is a walk, a leg by water and a walk; the table by boat is landing to landing, searched once a village), so nothing in it calls for routes over regions. The wrap-up (VB-818) measures this task’s trigger on populous Large at seed 7 with carts, sledges and boats built: under 5% of simulation time in route search it closes this task with the numbers, over it makes it ready. It should wait for VB-818, which the orchestrator sets.