VB-477: The timetable in the page: the day, its ranges, and the head’s verbs
Status: done (2026-11-24)
Priority: 2
Size: M
Design ref: docs/review-blocks.md; design.md section 7 (A leg, and its end, to The timetable); docs/mocks/blocks/README.md; design.md section 15 (parity of command)
Goal: The player runs a household against a timetable it can read, doubt and change.
Acceptance criteria:
Sim.timetable(st, household, viewer): each member’s list laid end to end with its walks, each task {lo, mid, hi}; worked out on demand, never in a step.
The head’s verbs in src/sim/commands.js: reorder a member’s list, move a task to another member, call a member off; each checks it is possible and returns why not; the allotment keeps the head’s choices until the day is next allotted, and says so.
Before a call, the panel names its cost: the walk home in hours and the load left.
An audit of the page: every place that shows hours left or a time of finishing shows the inhabited pawn’s estimate; progress so far stays exact. The pawn panel, the cards and the idle line are named in the task’s notes with what each shows.
A control of the page’s speed, “until my task ends” (Kim, 15 Nov): the clock runs at its fastest and stops at the end or cut of the inhabited pawn’s leg, or at anything that concerns its household (a call, a request for help, a death, an occasion, a store crossing a target). Not a verb: the simulation is the same run with or without it.
The page’s functional tests; node tests/smoke.js.
Notes / questions:
15 Nov 2026, from the plan VB-469 (docs/review-blocks.md, section 4, step 7). Kim, 15 Nov: scheduled blocks, a breaking change allowed.
This takes “who holds which task” from the plan panel (VB-256), which keeps routines, targets, the project and reservations.
15 Nov 2026, Kim, on what the player does while its pawn works a long leg: the control as proposed; “later there will be more for the player to do (plan social manoeuvres, design outfits)” (QUESTION_ARCHIVE.md, VB-469).
17 Nov 2026 (the playthrough behind VB-1026): a mock of the day as a strip, with an act the player takes landing at now, the task it cuts shown where it was and where it goes on, and what slips named with the head’s estimate; the same on a member’s row: docs/mocks/day-strip.html. One answer to this task’s panel, not a requirement; VB-1026 asks that the season’s strip and the day’s be one object.
18 Nov 2026, amended to agree with VB-1123 (plan mode; Kim’s decisions of 18 Nov): the day’s timetable and plan mode’s season bar are one object at two lengths (principle 15): a member’s row, the actions on it one after the other with icon and name, the uncertain end striped. Work comes in three lengths (Kim, 18 Nov): a daily chore is a pill under the member’s name; what takes half a day or more is a bar on the season; shorter work is gathered into one block of small work on the season’s bar and laid out, job by job, here on the day. The head’s verbs of this task (reorder, hold) meet plan mode’s (give to a member, replace, delete): one set, for every head. The mock docs/mocks/day-strip.html was drawn before these decisions.
24 Nov 2026, the page (second session): the day is the Plan tab’s first section, Today (src/page/day.js): a row a member, each task its walk, its range by the inhabited pawn’s reckoning (the head’s with none played) and its share done, exact; for the played head, up and down, Give (a member’s list) and Call home, whose first press names the cost (walk home, load put down, the task left) and second calls.
Audit: no page place showed hours left or a finishing time before this task. The pawn panel (its card) now shows its task in hand, “% done” exact and the hours left by the inhabited pawn’s reckoning (Sim.taskLeft); the cards: the harvest is the head’s estimate, the supplies the head’s outlook, the village overview the played pawn’s (all named); the idle line (Sim.reasonLine) names no time; the queue’s “Idle until HH:MM” is the player’s own order, not an estimate.
Until my task ends: a button beside Skip (#taskBtn); the same skip with Sim.taskFrom/taskStop (sim/timetable) beside skipStop’s own stops (death, wedding or funeral ale, help received): the end or cut of the pawn’s walk, work or task, a change of the day by another, an ask for help from or to the household, the hay or firewood crossing its target. The cursor is the page’s; taskStop writes nothing (tests/timetable.js 7). A wait is no leg of a task: from one, the next walk or work is adopted.
tests/browser.js: the day, the call’s cost, a reorder said to stand, and the control pass; its “whole steps” check (60 fps 30x against headless) fails at 6d3b268 already, before this session’s changes: VB-1654 (main).
24 Nov 2026, the simulation (first session): the verbs dayOrder, dayGive, dayCall are registered in sim/day, the owner of plan.day (commands knows no domain); the head’s change (plan.day.edited) and a call off (plan.day.off) stand until the day is next allotted, the literal criterion: the allotment does not pin them (close call). Review (revise): the view’s walks no longer write the route cache (F1); one called off is slotted, given and called nothing (F2); no head’s rule uses the verbs yet (F3, noted on VB-478).