Status: done (2026-10-31, e3a14f3)
Priority: 2
Size: M
Arch: work
Phase: implement
Design ref: Time and calendar (Short nights, Daily rhythm, Night and sleep, Twilight); Weather, seasons and daylight (Day and night; Daylight). Kim, 30 Oct 2026: work 6:00–18:00; dark about 6 hours at the equinoxes (22:00–4:00), 4 at midsummer, 8 at midwinter; pawns sleep in the dark; twilight of 2 hours (accepted when merging main, QUESTION_ARCHIVE.md).
Goal: Work runs from 7:00 to 17:00 (WORK in src/sim/rules.js) and the page dims at fixed hours (evening in src/body.html). The design now has a longer, fixed working day because nights are short, and a dark part of the day that changes a little with the season.
Acceptance criteria:
WORK becomes [6, 18]: jobs are posted from 5:00, pawns start at 6:00 and go home at 18:00, as they do at 17:00 today. The cook’s 14:00 rule (VB-022) is unchanged.dark(c) in src/sim/rules.js returns [start, end] of the dark part for a calendar date: length D = 6 − 2 × cos(2π (doy − 15) / 48) hours, centred on 1:00, so 22:00–4:00 at the equinoxes, 23:00–3:00 on summer day 3 and 21:00–5:00 on winter day 3. Sim exports it.Sim.dark: full day, 2 hours of dusk before the dark, night (the land darker and cooler in tone but readable, hearths glowing), 2 hours of dawn after it. This replaces the fixed 16:00 and 8:00 in src/body.html.--report idle (VB-101), fields sown, crops lost to frost and hungry household-days, before and after (reported, not asserted).tests/interrupts.js starts its scene once the farmer and the son are both hoeing, in place of at 8:30: on the first day the pawns now wander at 6:00, before the first jobs are posted, and start hoeing later, and the hour moves with every change to the random draws. tests/daylight.js now checks the dark (Sim.dark) in place of 19:00–6:00: founders sometimes fetch firewood after 15:00 and carry it home until about 20:00, which the 18:00 rule allows (a delivery is finished first), and the old check passed on the branch only narrowly.