Status: done (2026-11-17) Priority: 3 Size: M Design ref: backlog/VB-256.md; backlog/VB-894.md; AGENTS.md, Deciding without Kim, 14 and 15 Goal: The small things that stood in a player’s way in the first two years are mended. Acceptance criteria:
src/page/plan.js, planSites).planMsg).tests/browser.js now fails if the sheet moves the camera.tests/browser.js covers the first three; node tests/smoke.js passes; node tools/same.js --base REF prints same (the page only, but for the history line, whose event is reported).Each stands alone and may be done and ticked apart; one that turns out larger gets a task of its own and is struck here.
Notes:
Implementation notes (VB-1027), 17 Nov 2026, from commit 9d1b0ee:
src/page/plan.js): planSites returns the tiles that would do and, for when there is none, the rule’s reason that refuses the most tiles within reach (the house’s own tile aside), in the rule’s words. With none, planClick puts the reason at the head of the tab (“The next hay meadow: no tile will take it; the farm has 6 meadows, the most it keeps.”) and starts no tool.planMsg): it goes when the tab is closed (drawPlanMarks, which already runs each frame and knows whether the Plan tab is open) and when the plan changes under it (planKey: the targets, the named tiles, the order, the project; compared when the tab is drawn), as well as at the next choice.projectTile: the open step’s place, read from sim/projects as the Reserved rows already do) with the same “Show on map” link (flyBtn), and marked in gold with the named tiles while the tab is open. While a project of its kind is under way and no tile is named, Next field reads “after the one being made”. Found on the way: the “Show on map” link of VB-894 had no handler (planClick returned on data-plan="fly"), so it flew nowhere; it flies now, and tests/browser.js checks the camera arrives.kind (‘custom’ in ink, ‘head’ in gold; before, the colour went by order, so a target with no custom drew the head’s mark in the custom’s colour), and markKey (src/page/meter.js) is their key under Targets. Each target’s unit is under its value (winters, loads, barrels; the row’s title says “in winters of the herds’ need”). Cows read “3, no more wanted” or “3, one more wanted”; with none held, “0, none wanted” as before.pick, src/page/tileinfo.js, hands the hover to planPoint) writes into the tool’s banner what it is: the biome, its fertility as a field (open meadow 100, the river’s water counted), “by the river”, the steps from the house, and “would do” or the rule’s refusal. Facts only; the harvest it would give is an estimate and plan mode’s (VB-1026).joined event of a move between farms (sim/heirs moveTo, the one act of every change of household) now names the farm left (fromFarm, a field of the record). Sim.chronicle of a farm reads that one event from either end (sim/notable moveLine): the farm left tells “Astrid Svensdotter left Norrgården for the new farmstead Backa.” (a servant’s: “… to serve at …”), the farm come to “… came to Backa from Norrgården.” unless another event of that hour at the farm tells the coming (a wedding, a new farm: the rule the pawn’s own history already had). The village’s history and log do not tell it, as before. The History tab links both farms’ names.build, src/page/loader.js).flyToFarmOf, src/page/play.js); a loaded game with a pawn played ends its opening glide on that farm, not on the first village’s centre.buildLabels (src/page/settlement.js) puts the name under the centre where a house stands above and none below, and raised over the row of houses where both do; labelAt reads a name under its centre.Decisions (Deciding without Kim):
left event for the farm left: Rules for cost, 8 (bound history), and one happening is one event. It adds one field to the record.joined stays a personal event everywhere else.PLAN_DAILY: the four the criterion names): sim/kinds has no word for it. Close call: the daily ones keep their arrows inside the fold, since the verb takes any order and the player has what its pawn has (16); another agent could as well have shown them without controls.tests/browser.js plays a holder whose farm has free land within a field’s reach: on tiny populous, seed 7, the first household’s reach is all owned, and the tile part of the plan panel’s test (VB-256, VB-894) was failing on the base commit for it.Close calls and candidates, for Kim:
sim/kinds), since the page now names the four itself.Validation:
npm test 66/66 after each change; npm run verify 187/187, 10 targets out (advisory), as on 9d1b0ee (run there too: 187/187, 10 out); node tests/smoke.js passes; tests/browser.js, tests/browser-saves.js, tests/browser-start.js and tests/browser-mobile.js pass.tests/browser.js covers the first three criteria (the meadow tool refused at once on a farm at its most meadows, the refusal gone after the tab is left, the project’s row with its link and the camera brought to its tile) and, beside them, the facts of a pointed tile, the camera on the played pawn’s farm after Play as, and the camera still on opening People. tests/browser-saves.js: a loaded game opens paused, from a page running at 1× (it fails without the fix). tests/chronicle.js: the farm left, the farm come to, one event, none in the village’s history. tests/lib/invariants.js: fromFarm is a farm.node tools/same.js --base 9d1b0ee (founders and heirs, seeds 7 and 42, tiny, 2 years): differs in 8 keys, every differing leaf record[N].fromFarm: (absent) -> farm id, 1 to 5 leaves a run (21 in all); no other leaf differs, so the simulation is as it was but for the event’s new field.tools/sim.js --save, the save’s record read): seed 7: 927 slots of the record, 3 moves between farms (2 founding a new farmstead, 1 by marriage) from 3 farms to 2; seed 42: 936 slots, 3 moves (2 founding, 1 marriage) from 3 farms to 2. Before, a farm’s History told none of them; now each of the 3 farms left tells its leaving. The 3 comings of each run are told by the wedding or the new farm of that hour, as before. Cost: one integer on 3 events of 927; chronicle is one pass over the record on demand, as it was. No household’s food, work or standing is touched.docs/img/vb1027-plan.png (the key, the units, “3, no more wanted”).