VB-446: Cattle lanes into the outland: the herds’ way to pasture reaches the wood and is shared
Status: done (2026-11-25)
Priority: 3
Size: M
Arch: far
Phase: implement
Design ref: design.md, Worn paths; Animals (Herds, Grazing at low cost); Infield, outland and wilderness
Touches: sim/grazing (pasture, todaysPasture, wayOf, droveRoute); sim/legs (setOut); sim/rules (HERD); vb (COUNTERS); tests/lib/invariants.js; new tests/droveway.js
Goal: On a forested island the herds’ daily way to pasture reaches out of the village into its outland wood and wears a cattle lane there, a bad road made by use, where today’s herds graze within 8 steps of home and their lanes stay inside the village.
Acceptance criteria:
Measured first, on the forested island (COVER of src/gen.js at about half forest) at populous small, seeds 7 and 42, 10 years: where the herds graze, how far from the house, and the path and lane tiles a village that lie in forest. Herds already wear the tiles they cross, a quarter crossing a head (VB-136); if that already gives lanes into the wood, the task closes with the numbers.
If not: a village’s herds reach pasture beyond today’s 8 steps by one shared way, chosen a season from the green to the outland pasture’s nearest tile and kept for the season, so that the crossings of all its herds fall on the same tiles; the way is plain data in st with an owner in src/owners.json.
No new pass and no new route search a herder a day: the shared way is one search a village a season (VB-387 already holds the herders’ routes out of the counters’ residual and must not be set back); the cost is named in the plan and measured on a late save.
A check on a small constructed state: a season’s driving over forest tiles brings them to the path’s stage; a way no longer driven fades as any worn way does.
Notes / questions:
15 Nov 2026, opened in the session with Kim on the journey scale (the Reach overlay of PR 131). Kim: paths should function as bad roads. The formula already makes them so (VB-439): a path takes away three quarters of what the ground costs above meadow, so the dearer the forest, the more a path through it is worth. What is missing is traffic: a path needs about 4 crossings a day kept up, and the journeys between villages are about 26 a year on the whole island (design.md, Between villages, Cost).
What exists (VB-136): each grazing day a household’s herder walks its herd to a pasture tile within 8 steps, open land or wood, and home; a herd on the move adds a quarter crossing a head. So lanes wear, but each household’s own and short. This task is what is left: the reach into the outland and the sharing of one way.
Grounds: the fenced cattle lanes (fägator) that led the herds through the infield to the outland pastures (design.md, Worn paths, last paragraph); the outland wood near a village was grazed wood pasture, open and crossed by cattle paths, where the border forests between districts were not.
Flag: with the forest’s share raised (Kim, 15 Nov: about 50% of the land, 30 to 60% by seed) pasture within 8 steps is wood far more often. Kim, 15 Nov: it runs before slice 10, in the arch far; it waits for VB-444, which makes the forested island it is measured on.
It may run beside VB-447; both write the tiles’ wear (sim/paths), so one at a time. It reads the herding of src/sim/herds.js and waits on nothing of VB-387, but must be measured against its counters.
16 Nov 2026 (VB-444’s plan): confirmed as written. It is measured on the forested island with dear ground, which VB-780 builds, so it waits for VB-780. At the journey scale a path through broadleaf forest costs 1.59 against 4 beside it, so a shared lane is worth more than when this was written (1.14 against 2), and pasture within 8 steps is wood far more often (meadow 5 to 9% of the land).
25 Nov 2026 (VB-446), measured before, populous small 10 years, seeds 7 / 42: pasture-days in forest 26.0 / 16.6%, all within 8 steps of the house; path tiles in forest 13 / 9 of 330 / 318, lanes 2 / 0 of 49 / 56. Not lanes into the wood, so built.
After: forest 39.8 / 29.6%, over 8 steps from the house 20.9 / 14.5%; path tiles in forest 25 / 27 of 301 / 338, lanes 4 / 1 of 70 / 70. Route searches 141,276 / 144,116 (before 140,302 / 145,307), expansions 5.03M / 5.42M (5.62M / 5.59M); droveWays 297 / 323 in 10 years.
Decided: the way ends at the outland tile of best grass, least grazed, nearest the green, beyond the farthest house (nearest alone stayed by the green); with a way, every household goes by it (the outland is the common pasture; no stint until VB-710) and grazes within HERD.herding.around (3) of its end, else by the house as before.
Decided: the herder joins the way at its tile nearest the house and walks the last steps to the pasture neighbour by neighbour (sim/grazing droveRoute); legs.setOut asks it first. Cost: one bfs over the outland and one route a village a season (counter droveWays); no search a herder a day.
Left: forest lanes stay few because the way is chosen again each season by grazing pressure and moves (tuning note). Late save (populous small seed 42 at year 15, two years on): route searches 37,746 to 37,657, expansions +1.0%, pastureTiles 62,591 to 34,049, walk points +3.4%, droveWays 60.