Status: done (2026-11-16)
Priority: 2
Size: S
Design ref: design.md, People, households and family records (Births; Marriage, nursing and growth: Nursing); Balance loops and targets (The growth budget); backlog/VB-405.md
Goal: Today a mother nurses for 48 days whether the child lives or not. The child’s death ends the nursing (Kim, 13 Nov): it replaces losses and is the part of the birth interval that regulates itself; the length of nursing stays fixed.
Acceptance criteria:
A mother whose nursing child has died is no longer nursing: sim/births keeps the child she nurses (pawn.nursling, the child’s id, set at the birth and null when the nursing ends), and its daily step skips a woman only while nursingUntil lies ahead and that child is alive; read lazily in the step that already walks the women, so there is no new loop and no call from sim/lifecycle into sim/births. BIRTH.nursingDays stays 48 and is not tuned here.
@state line, src/owners.json, the save (an old save gains nursling null for every pawn: a mother then nursing nurses to her term) and invariants (tests/lib/invariants.js): nursling is null or a child of hers born at most nursingDays ago, and null whenever nursingUntil is null or past. (src/owners.json lists no pawn.nursingUntil or pregnant* either, so nursling follows them with no line; tests/ownership.js passes. The invariant lets the step clear a finished term up to two days late.)
The pawn panel says whom she nurses (“nursing Karin”), and nothing once the child is dead; node tests/smoke.js. (smoke passes; no screenshot of the panel line: it is one phrase of the pawn card, and the shot tool cannot select a nursing mother.)
expectedBirths, the calibration without deaths, is unchanged, and node tools/calibrate.js (or the script that checks the starting targets: about 7 births for a woman married at 20 and 5.5 at 25) prints the same.
Tests on a constructed state, chances forced with fix: a mother whose infant dies on day 5 may conceive on day 6; one whose infant lives may not until day 48; a second child’s death after the nursing ended changes nothing; a mother who dies in childbirth leaves no nursling dangling.
Numbers before and after (Working rules), populous small, 30 years, seeds 3, 7, 11, 42, and founders small, 50 years, seeds 3, 7, 11, 42: yearly growth; births a married woman-year; the mean days from a birth to the next conception after an infant’s death and after a child that lived; the share of children dead before 1; marriages and marriages put off for the means. The review’s mock expects about half a point of yearly growth; say what the game gives, as the ceiling’s new value in design.md’s growth budget is to be read (a line in this task’s notes for the wrap-up, VB-638). Whether households, not only averages, are better off: the completed family size of the mothers who lost an infant against those who did not. Hungry household-days are reported as a description only: over four seeds they swing by 20 to 50% between versions that differ little (backlog/VB-485.md). NOT MET IN FULL: marriages put off (no counter exists for it) and hungry household-days (description only) were not measured; the rest is in the notes below.
npm run verify’s hard checks pass; node tests/counters.js shows no new counter and no counter moved but by the births themselves.
Noted by VB-405, 16 November 2026.
Implementation and validation (VB-632 agent, 16 November)
sim/births: giveBirth sets m.nursling = id; dailyBirths clears nursling and nursingUntil when the term is out or the child is not alive, before the pregnancy check, in the loop that already walks the women. A mother who dies in childbirth has both cleared. Save: load gives nursling null to older pawns (she nurses on by nursingUntil alone, as the criterion says: the step skips her while nursingUntil lies ahead). Page: the card says “nursing " while the child lives, "nursing a baby" for a loaded old save.
Test: tests/nursing.js (in tests/suites.js): infant dies day 5, conception on day 6; infant lives, none till day 48; a death after the term changes nothing; childbirth death leaves nothing dangling; invariants hold. npm run verify 115/115; node tests/counters.js: 48 counters, none new, the three known out (heirRank, roundRank, pastureTiles). expectedBirths and tests/calibrate.js untouched (the function has no diff).
Numbers: scratchpad script over the world and Sim.advance by years, small map (180x130), before = the commit before this one, after = this one, same seeds. Seeds 3, 7, 11, 42, in that order below.
Yearly growth, populous 30 y: before 1.98, 2.03, 1.91, 2.10 % (mean 2.00); after 1.87, 2.13, 1.96, 2.23 % (mean 2.05). Founders 50 y (pool of ten, 8 to 47 living at the end, so very noisy): before 1.40, -0.21, 3.14, 2.91 % (mean 1.81; years 20, 9, 47, 42 living); after 2.08, 2.01, 2.54, 1.18 % (mean 1.95).
Births a married woman-year (women 15 to 49, counted at each year’s end): populous before .246 .258 .253 .256 (mean .253), after .257 .263 .262 .262 (.261): +3%. Founders before .242 .243 .310 .275 (.268), after .262 .256 .284 .235 (.259).
Mean days from a birth to the next conception: after an infant’s death (died within 48 days of birth), populous before 119 132 118 112 (mean 120), after 80 94 71 101 (86); after a child that lived, before 124 113 119 117 (118), after 118 115 123 114 (117). So the death shortens the gap by about 34 days, as 48 days of nursing minus those already passed would give; the lived gap is unchanged. Founders (few cases, 4 to 28): lost before 207 67 116 103, after 86 108 114 82; lived before 115 124 101 122, after 125 109 111 142.
Share of children dead before 1: populous before .200 .186 .203 .215 (.201), after .212 .211 .225 .183 (.208); founders before .324 .385 .162 .213, after .222 .273 .255 .188. Not a mechanism here (a child’s death does not change its own chance); the difference is noise.
Marriages in the run (unions begun): populous before 166 175 172 200 (178), after 181 193 173 206 (188); founders before 10 4 11 11, after 7 7 11 5. Marriages put off: not measured, no counter.
Completed family size (mothers who passed 45 within the run, births a mother): populous, mothers who lost a child before 1: before 4.8 4.7 4.7 3.4 (n 23 to 36 each; mean 4.4), after 5.9 4.2 4.6 5.2 (5.0); those who did not: before 2.1 2.2 2.2 2.7 (2.3), after 2.8 2.7 2.9 2.6 (2.75). The mothers who lost a child have the larger families (they are the ones who bore the most, and the death now frees them sooner); both groups are a little larger after. Founders: groups of 0 to 4 mothers: not readable.
What the game gives as the ceiling’s new value (for VB-638): about +0.05 points of yearly growth on populous small in 30 years (four seeds, 2.00 to 2.05 %), +3% births a married woman-year, against the mock’s +0.5 point; founders show +0.1 but with a pool of ten the spread between seeds is 3 points, so no reading. The mock’s half point is not reached: births a woman-year rose by 0.008 on 0.25, and nursing there was nearly the whole interval in the mock (a year’s nursing), whereas the game’s 48 days are one tenth of the birth interval, so an infant’s death frees at most 48 days of about 400 between births; that gives the order of a fifth of a point at the most. Read the ceiling’s line as “about +0.05 to +0.2 points”, not 0.5.
Hungry household-days: not measured here (description only, not asked to be tuned).
Noted for Kim: nothing needing an answer. No parameter was tried.
Closed by Kim, 16 Nov 2026, with the numbers criterion met in part: marriages put off and hungry household-days are VB-654.
The numbers VB-632 could not take (VB-654, 19 Nov)
Same runs as above (small map, seeds 3, 7, 11, 42; runScenario of tests/lib/bands.js), the commit 2faa551 against its parent. Marriages put off = the sum of n of the putOff events (the moving round’s couples refused for the means; the counter existed already in the round). Seeds in order 3, 7, 11, 42.
Populous 30 y, marriages put off: before 28 25 19 39 (111, mean 27.8), after 26 2 33 33 (94, mean 23.5). Marriages (unions begun): before 164 159 162 201 (686), after 193 175 183 196 (747). Put off a marriage: before 0.16, after 0.13. The seed-to-seed spread (2 to 39) is wider than the difference; no reading of an effect, nursing does not touch the round’s means test directly.
Founders 50 y: no marriage put off in any seed, before or after (marriages before 10 6 13 11, after 8 7 11 5; pool of ten, 14 to 47 living at the end).
Hungry household-days (description only): populous before 17 24 33 5 of 144360 134217 139287 155034 = 79 in 572,898 (0.0138%), after 22 19 32 6 of 145318 130598 138928 145697 = 79 in 560,541 (0.0141%). Founders before 6 0 7 21 (34 of 60,244), after 8 0 1 10 (19 of 60,778). Hunger is rare in both and does not move.
For VB-638: the nursing change leaves the means test and hunger as they were; the rise in marriages comes with a larger population, not with fewer refusals.