Status: done (2026-11-24) Priority: 2 Size: M Design ref: docs/ui2/HANDOFF.md (round 3, points 1 and 3); backlog/VB-1649.md; src/sim/playerplan.js; src/sim/agenda.js; src/sim/meadows.js; src/sim/fieldwork.js; src/sim/plans.js (plan.tiles, the head’s verbs tile and project) Goal: A player who plans by hand can make hay and bring in the harvest, each as one task at its tile. Acceptance criteria:
plant (VB-1649) becomes the first chain with its behaviour unchanged (tests/plan.js section 6 passes as it stands). A task of a chain is {<chain>: tile, kind: '<chain>', site: tile}, added by Sim.plan(st, 'add', {<chain>: tile, at?}); a tile holds one task a chain.hay: a meadow of the played pawn’s household, or the place of its open project making a meadow: the steps from clearing the meadow (a project’s) through mowing and whatever the sim’s haymaking goes through after it (drying, raking, carrying the hay home: read src/sim/meadows.js) until this year’s hay of that meadow is home. It may be added before the haymaking window opens: it stands, and is fed when its step is posted. It leaves when the hay is home or the window has closed with the meadow unmown (plan.last.which).harvest: a sown field of the household: reaping when ripe and carrying the sheaves in (not the threshing, which is indoor work for any day). It may be added while the crop grows: it stands until the reaping is posted. It leaves when the sheaves are in, or the crop is lost (which).plant and hay are also accepted for the tile the head has marked for its next field or meadow (plan.tiles, sim/plans) while another project is open or none is begun; when the task’s turn comes and the household has no open project, the feeder begins that project through the head’s own verb (the played pawn is the head; refused for one that is not, with the reason), so that nothing moves without the pawn’s act; until then the task stands.Sim.planView(st) and Sim.agenda(st) treat every chain as they treat plant now: step, stands; in the agenda the hours of all steps left, ends, deadline (the haymaking window’s end; the frost the head expects), verdict, rough, steps, laid into days step by step, a step not yet posted laid no earlier than its window opens or the crop is expected ripe.Sim.planGaps(st): the windows that press with no task of the plan covering them, for the played pawn’s household: [{tile, chain, deadline {t, what}, days (left)}]: a field unsown in its sowing window with no plant task, a meadow unmown in the haymaking window with no hay task, a field sown with no harvest task once it is ripe or within a few days of it (a tunable). Computed when asked; writes nothing.tests/plan.js and tests/agenda.js extended on a small constructed state: a hay task carries a meadow from mowing to hay home with no further act; a harvest task added in summer waits and then brings the sheaves in; a marked tile’s plant task begins its project when the first is done; the gaps listed and gone once planned; the refusals; a save and a load go on the same. A run with no played pawn is unchanged (node tools/same.js --base REF, founders and solo).planGaps as warning icons and offer the chains in the tile’s callout.CHAINS (sim/playerplan) declares plant, hay, harvest as {noun, mark, kinds, which, at, none, why, steps, gone, deadline};
a project’s or a marked tile’s steps come first for any chain. A task at a tile is one with no key (a job kind hay exists too).planGaps is in sim/agenda.which: hay home | closed | rotted | gone; harvest in | lost | gone (‘lost’: back in stubble not reaped this year, or after the
year’s frost; no state marks a crop lost, so a task first checked after the frost while automatic behaviour was on reads ‘lost’).same.js --base 50cc747 --scenario founders,solo: same.