Status: done (2026-11-25)
Priority: 2
Size: M
Design ref: design.md section 7, Standing duties, The day’s work, Types of work; docs/review-agency.md, section 4; docs/review-jobs.md, section 5.2 (the long-lived assignment)
Goal: The head’s day has no memory: each morning allot (src/sim/jobs.js) weighs every member for every task afresh and breaks ties by a task’s id, so nobody is the one who sees to the wood. Build design.md’s row Standing duties: the types of work (KINDS[kind].type) of the tasks the morning’s allotment gives a member within its hours are its duties, kept on the plan’s day (plan.day.duties, written by allot only); at the next morning’s allotment a pair whose type the member holds as a duty has its fit times MATCH.keep (1.25, a tunable of sim/roles beside join). A duty no task of the morning answers lapses; a much more urgent task still takes the member (keep is under switchRatio). The head’s verb duty (a member, a type of work, set or lift) pins one: a set duty stands until lifted, the member leaves or the head changes, and with no choice made the rule runs (parity: the planner’s rule and the played head pass the same check). A member’s card names its duties.
Acceptance criteria:
plan.day.duties as @state on the plan’s day: plain data, saved (tests/saves.js, tests/plaindata.js), written only by allot and the verb; MATCH.keep a @tunable with its meaning. No random draw is added.keep at 1 the order is as before; a task above the switch test still takes the member; a duty with no task lapses; a pinned duty survives a morning with no task of its type and goes when the head changes.duty is registered by the module that owns the plan’s choices (as order and target), returns why not (not the head, not a member, no such type), and is in the played head’s Actions or the timetable’s verbs; tests/commands.js passes.dutiesLine, which the timetable takes when it is built)keep at 1.1 and 1.15 (at most five runs, recorded) and note the shortfall for the tuning run.npm run format and npm run verify pass; sim/jobs over 700 formatted lines opens or names its split task.
Notes:plan.day.duties {day, head, held, set} (sim/jobs allot writes it whole; the verb duty of sim/plans its one other write), MATCH.keep, counters dutyDay and dutyKept, Sim.dutiesOf, the card’s line and the Plan tab’s Duties section, tests/duties.js (at keep 1.25).MATCH.keep ships at 1, no memory. On the merged branch every value above 1 turned a hard check red: tests/hay.js (89% of meadows in by autumn day 4, of 90 asked, 92% at 1) and tests/meadows.js (a farm with animals and no meadow by its second spring); before the merge 1.25 and 1.15 each broke one and 1.1 passed. At 1, tools/same.js against the run’s branch differs in the new field alone.duty lifts any duty, set or given.tests/head.js asks a raised hay target at 3 winters at the start of winter while keep is 1, and above it met at its peak and 2.5 at the winter (the hay is in sooner, the mowing called off at the target, the stack falls: VB-1561).Sim.head(st, 'duty', ...) any); VB-1561, VB-1562 (a pawn away in no phase, met at keep 1.15).879a080c is reverted on the run’s branch (the keep factor, plan.day.duties, the verb duty, the Plan tab’s buttons, tests/duties.js); the code stays in history at that commit. design.md section 7, Standing duties, is Open: a mechanism must not delay work with a window and should give the played head a choice that weighs. This task waits for Kim with that question.docs/review-agency.md, section 8, and design.md section 7, Standing duties. The removed build is commit 879a080c (its tests, the verb duty, the Plan tab’s buttons): reuse the record and the verb if the new mechanism is a duty the head pins, which was the orchestrator’s proposal and is not decided.tests/hay.js, tests/meadows.js) are reviewed by VB-1687 (Kim, 24 Nov: an outcome on seeds is a band’s target and never blocks a mechanism).plans, VB-1742): closed, superseded by VB-1771. Kim decided the mechanism on 25 Nov (design.md section 7, Standing duties: Replaced; Plans at four scales, The days ahead): a duty is a step of the days ahead for one type of recurring work without a window, given by the head at its review, giving its holder the first place for that type and nothing more; work with a window is never a duty, which is what turned tests/hay.js and tests/meadows.js red here. Nothing is left waiting for Kim; VB-1771 reuses this build’s record and verb where they fit.