Status: done (2026-11-24) Priority: 2 Size: M Design ref: docs/cost.md, 1.3 (rules 6 and 8); backlog/VB-1554.md (the measure) Goal: The second part of the jobs line (VB-1554’s profile, populous small, seed 7, 2 years): the commands takeDay issues are 22% of it (takeDay 23%, of which the verb work’s run 79%: start 58%, of that walkTo and setOut 41%, findRoute 25%; release 11%), about 1.27 route searches a pawn-day against 1.9 hits. A pawn that takes a task walks from where it stands to the task’s site, and most such walks are between the farm’s door and its own fields, day after day. Acceptance criteria:
work commands with source planner, the share that are searched (routeSearch) against found (routeHit), by from-and-to class (door to own field, field to field, to the village’s task, elsewhere), by counters and one CPU profile, as a description. Unticked in part: the classes are of every search of the cache (route), not split by the command’s source; the cut is the same for every class, so the split was not needed (the notes).routeSearch a pawn-day falls by at least a third at populous small (node tools/sim.js --scenario populous --seed 7 --map small --years 2 --report counts, before and after; node tests/counters.js --update), with no route cache unbounded.node tools/same.js --base REF prints same): a route found from a cache is the route a search finds.npm run format and npm run verify pass.Noted by VB-1554, 23 November 2026.
route): by tile class of from and to, house to wild ground 22%, to or from the green 16%, door to own field 14%, field or meadow to field 8%, field to door 8%, wild to house 11%, house to house 7%, door to another’s field 5%, the rest 9%. The cache was emptied on all 96 days (13 tiles changed a day): 42% of the searches were of a pair the cache held the day before. CPU: route 5.0% of the simulation, findRoute 4.8%.st.routeKept, with a log of each day’s changed tiles by 16-tile cell) and tested only when asked for again: testing every route each day cost what it saved (measured, 90 ms against 120 ms).routeSearch 1.161 to 0.627 a pawn-day (-46%); routeExpand 18.8 to 14.4; routes taken back counted as hits (routeHit 1.66 to 2.20); new routeCheck 7.7. CPU over three profiles each: route 5.0% to 4.5%, findRoute 4.8% to 3.7%.ROUTE.keepDays 16 (tried 1, 4, 8, 16, 48: routeSearch 0.80, 0.72, 0.67, 0.63, 0.60): bounds the log and what is set aside (with cacheMax).same.js prints same: populous, founders, heirs at seeds 7 and 3, small, 4 years, and the default tiny runs. tests/routekeep.js holds every route taken back equal to a fresh search on a grid whose ground changes daily (and fails when the test is switched off).scaling.routeCheck 1.28 (limit 1.15). The checks per take are flat (11.7 to 11.9), but routes asked grow 1.14 in the probe (as routeSearch did on main, 1.138) and a larger share is taken back at 4 villages (34% to 37%); routeSearch itself fell from 1.138 to 1.07.