VB-439: Walking costs: each ground its own, roads clear the ground, slopes a little steeper
Status: done (2026-11-13)
Priority: 2
Size: S
Design ref: design.md, World and scale (Walking and terrain); src/sim/rules.js TERRAIN, PATHS, SLOPE
Goal: Thick forest with no way through is much slower than a road through it, which is a little slower than meadow, which is a little slower than a road over meadow; steep ground turns routes aside a little more.
Acceptance criteria:
Each kind of ground has its own cost: meadow 1, shore 1.15, heath 1.25, pine 1.6, hills 1.8, broadleaf forest 2, marsh 2.5, mountain 3.5 (TERRAIN; they were 1, 1, 1, 1.5, 2, 1.5, 2, 3).
A worn tile costs (1 + (TERRAIN - 1)(1 - PATHS.clear[stage])) / PATHS.speed[stage], clear [0, 0.25, 0.75, 0.8], speed [1, 1.03, 1.1, 1.15] (it was the terrain over [1, 1.05, 1.15, 1.3]). A road is a path or a lane, stages 2 and 3, from 200 crossings (PATHS.at).
Thick forest 2, its road 1.14 (path) or 1.04 (lane), meadow 1, its road 0.91 or 0.87: the order Kim asked for; tests/routes.js holds it.
SLOPE.grade 1.5 → 2: a step at the median, 90th and 99th percentile of rise is slowed 1.3, 2.0 and 4.1 times (it was 1.2, 1.7, 2.9); the cap of 6 is reached from a difference of 0.26 (it was 0.34).
Numbers before and after are below; design.md (Walking and terrain; Worn paths) says what the code does.
Decisions
Kim asked for this tuning (13 November) and gave the order and the words (significantly, slightly, a bit); the numbers are the agent’s
reading of them, each a named tunable, and no run chose them.
A road clears the ground rather than only speeding it. Dividing the terrain’s cost by a speed could not give the order asked for:
a forest lane at 2 / 1.3 is still half again slower than meadow. So wear takes away a share of the cost above meadow (clear).
The lane’s speed fell from 1.3 to 1.15, so that a forest road stays slower than open meadow and a meadow road is slightly, not much, faster.
A ford and a bridge keep their own cost, divided by the stage’s speed as before: wading is not cleared by wear.
Hills fell from 2 to 1.8: the slope’s factor now carries most of what makes hills slow.
Numbers (small map, 10 years; before → after; before is main with VB-438)
Walking hours between villages (populous, seed 7, 45 pairs by land): median 8.04 → 9.5, third quartile 10.49 → 12.54, most 11.77 →
14.44; the nearest neighbour’s median 1.39 → 1.58. Within a day’s walk (12 h): 45 → 31 pairs. The rules that read those hours
(service, kin at occasions, the culture’s tie) reach fewer villages; a row of docs/tuning.md holds it for the run.
Households: hungry-days rose in two runs and fell in one, within what the runs’ chance divergence gives; no household can be compared
one to one. Not shown that households are better or worse off.
Cost: paths and routes, populous seed 7, three years: 2.41 → 2.35 ms a game day (one run each). Work counters: the same nine out as on main.
The walking share is the hours report’s rows summed over its groups, unweighted: a description, not a target.
Validation
npm test and npm run verify pass (104 of 104; 16 targets out, where main has 18; which two came in was not looked into).