VB-1585: The thirsty pawn: a pawn’s own thirst, and the verb by which it leaves its work to drink and fetch
Status: done (2026-11-25)
Priority: 2
Size: M
Design ref: design.md, Goods and the farming year (Water by the site); backlog/VB-1543.md; backlog/VB-1542.md
Goal: no pawn goes without water for want of a place on a list
Acceptance criteria:
p.drank: the hour a pawn last drank; thirst is read from it in closed form and nothing ticks (design.md, Goods and the farming year, Water by the site, The thirsty pawn). Owner, @state, invariant, and a save without it loads as having drunk.
A pawn drinks at home at the meal when the day’s water is in, at a source when it draws there, and by the verb drink, registered with sim/commands (check names why not: no source in reach), which any pawn has and the played pawn may be given.
At THIRST.thirsty (24 hours) the pawn’s panel says so. At THIRST.leave (36 hours) the pawn leaves whatever it does, a task that rank never interrupts as well (mowing, reaping), walks to the nearest source it may draw at and drinks; where its household’s water is not in, it takes the fetch from there. Children under 7 and the bedridden do not go.
The dry day’s health is the pawn’s own: who ended the day without a drink loses HEALTH.dry, who drank loses none; the uncooked meal stays the household’s. Marsh water drunk costs HEALTH.marsh.
A pawn working away at a site drinks and fetches at the site’s source. Water on a journey stays Open and is noted where the design names it. (Unticked, VB-1585: the drink at the site’s source is built and checked; the fetch at a site is not: a booth has no fetch of its own and its water still comes with its roof, so there is nothing for the pawn to take from there. VB-1601.)
Checks on a small constructed state: a pawn mowing with its household’s water never fetched leaves at 36 hours, drinks and brings the water home; a pawn with no source in reach is refused with the reason; a log line names the event, the pawn and the place.
Measured once, before and after (solo small seeds 7 and 42; founders small seed 7; 10 years): dry household-days, pawns that left work to drink and what they left, health lost to thirst, deaths.
Cost, named before building: a number a pawn; the test where the day’s end already visits the living (1,000 x once a day x a comparison); a due entry only for a pawn that ended a day without a drink (tens a day at most), each one route to the farm’s source; no pass of its own.
Noted by VB-1543, 23 November 2026.
Built, 24 November 2026 (VB-1585). sim/thirst (new: THIRST, pawn.drank, pawn.marsh, dayEnd, the kind drink), sim/drinking (new: the verb drink, st.thirstDue, its step in the clock); sim/hunger and sim/away ask dayEnd for each pawn’s dry day; sim/chores: who draws the water drank; tests/thirst.js.
Found, why the households stay dry (populous small, 10 years): 2,376 of 2,584 dry household-days (seed 7) and 1,146 of 1,418 (seed 42) are of households with nobody in them (on its farm, 0 members, the holder living elsewhere): all of the 11 and 2 “dry over half their days”. With people: 208 and 272 days (0.6%, 0.8%), over half of them with everyone away; with someone at home 77 and 112 (0.2%, 0.3%): hands busy all day (wood, hunt) 39 and 38, a lone hand on a day owed 19 and 43, a fetch begun and not brought home 14 and 30, a child under 7 alone.
Decided: a house with nobody at home has no dry day (dryHouse, anyone): nothing was to be cooked, nobody was there to fetch; hh.dry no longer marks an empty house. The measure moves by its meaning: all households 7.20% -> 6.64% (seed 7), where the empty ones are still counted by waterDay.
Decided: the household drinks at its meal at 18:00 of a day whose water is in (THIRST.meal; the pass is at midnight and reads it back), so 36 hours is 06:00 of the morning after a dry day, as the design’s “a day’s water missed and the night after it”; so the pawn mostly leaves with nothing yet in hand (67 of 72 and 76 of 79 leavings), and the thirsty pawn ends runs of dry days, not the first day. Close call, noted.
Decided: who drank is not dry for its health and its meal’s recovery both; bedridden is pawn.ill; marsh water a pawn drank by itself is charged at that day’s end (pawn.marsh), never twice with its household’s; a pawn on a day owed drinks but may not take its own household’s fetch (the creditor’s day, eligible): close calls, noted. One fetching the water is not called from it; one carrying a load, at an occasion or commanded is asked again in an hour.
Decided: away pawns keep their roof’s rule (a booth’s and a host’s water; none under the open sky: a journey is Open), read back as their own thirst, so one at a roofless site goes to the site’s source at 36 hours. The booth’s water from nowhere is noted (teleport); the site’s fetch and Drink in the Actions list are VB-1601.
Measured, small, 10 years, before -> after. Populous 7: dry household-days with someone at home 77 -> 107, a second day running 15 -> 27 (23 of them one child under 7 alone, twice 12 days: VB-1602); pawn-days ended thirsty 764 -> 638 (520 on the road), at 36 hours at midnight 305; health lost to thirst 778 -> 661; left to drink 72 (wood 3, clear 1, timber 1); deaths 122 -> 126; hungry pawn-days 2,819 -> 2,223. Populous 42: 112 -> 104, a second day running 15 -> 4 (longest run 4 -> 2); thirsty 826 -> 596; health 840 -> 606; left 79 (plow 3); deaths 80 -> 74; hungry 1,715 -> 648. Founders 7: 0 dry days both; thirsty 5 -> 5; health 5 -> 5.5; deaths 7 -> 7. Solo 7: 0 -> 0. Solo 42: 1 dry day -> 1, and the settler went to drink the next morning.
Households: not clearly better off by dry days (the runs part, and two builds of this task gave seed 7 1,628 and 2,223 hungry pawn-days against 2,819); runs of dry days end where an adult is at home (seed 42), and no pawn at home goes past 36 hours unless it is a child alone, commanded or on the road.
Cost: a number a pawn; one comparison a pawn at the meal’s pass; thirstDue (new counter) 586 and 570 entries in 10 years of populous (0.003 a pawn-day); a drink at home is one job to the farm’s source (no search); away, two searches from where it stands (sourceSettled 10,837 -> 11,580 and 10,952 -> 9,649). scaling.thirstDue reads Infinity (0 in the smaller run): advisory.
tests/byre.js: its 3-year founders run moved from seed 7 to 4 (0 animals starved before and after; seed 3 loses 1 before, 5 after): on seed 7 a thirsty pawn’s walk in year 1 changes which farm takes in a cow, a farm of one with no meadow. tests/away.js: its lodger under the open sky is given its drink by the test. Close calls, noted.
25 Nov 2026 (Kim): closed; criterion 5’s fetch at a site was built by VB-1601 (done). The close calls stand.