diff --git a/CHANGELOG.md b/CHANGELOG.md index e993992..0fa8d5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to Econ-Engine are documented here. The changelog records what changed in each update. Design rationale, experiments, observations, and lessons are documented separately in [Lab Notes](LAB_NOTES.md). +## [LIFE19-Generations-078] - (2026-11-09) + +- Life 19, generations. Every person is an agent from birth, with their own body ledger, memory, ties, tasks and wake-ups; nothing turns on at an age. Each person has a birth minute and an age in thousandths of a year. Founders arrive aged 18 to 35, from a new `age` stream. +- Bodies grow: height, weight and grip are the adult draws times `growthByAge`, with energy rates times `metabolismByAge`, walking times `walkByAge` and work times `workByAge`, each interpolated within the year. A body's age is its age at the last midnight, so bodies change only at midnight or at birth. Children stay within `rangeByAge` of their hearth, eat only milk under 6 months, do not walk on their own under about 3 and do not cut logs, make axes or practise until fully grown in work. +- Nursing: a child under 3, hungry or thirsty, within talking distance of their mother wakes her, and she moves up to `feedKcal` (400) and its milk water from her body to theirs (a `fed` event). Carrying: a child who cannot walk is carried by their mother, else father, else closest kin, on the carrier's walk (`carried` task); their weight slows the carrier. +- Provisioning: a parent carries home food for children at home and adds their day needs, and a pregnancy's, to the store target. Kin give more readily (`kinGoodwillMinutes`, a partner counting as 500‰) and are asked first. +- Pairing: an unpaired woman and man of 15 or more, not kin, pair when each is the other's most familiar eligible person with at least a week of minutes together (`paired`). Conception at midnight from `conceive:` for a paired woman of 15 to 45 with enough reserve, not nursing a child under 2, who slept near her partner (`conceived`); birth at term at the mother's side (`born`), the newborn's reserve taken from her. A pregnancy adds 12 kcal an hour. +- Deaths of illness, accident and age at each midnight from `fate:`, against a stored table of the !Kung Siler fit (Gurven and Kaplan 2007, Table 2; b1 0.913 as in the paper, not the draft's 0.943). +- The midnight lifecycle runs growth, deaths, births and conceptions in that order. A child shares a parent's hut and fire at the same hearth, and asks nobody for wood. +- The checker rebuilds newborns and every person's body at any minute of an interval, replays feeds and births in the ledgers, checks carried tasks against their carrier's walk, and rejects impossible feeds, births, conceptions and pairings, a baby on milk eating or drinking, work beyond a child's range and a body that does not match its age. +- The observer is labelled Life 19. The header counts people and those under 15; newborns get figures, and a carried child is drawn on the carrier's back. The person panel adds age, girl or boy, the adult body they grow to, partner, parents and children, pregnant, nursing and carried by; the history lists pairings, births and deaths; the People charts add people by age, births and deaths, and couples; the relationship graph shows partners and parents. +- Trajectories change: new fingerprints are recorded for all 22 runs. New `growth.ts`, `lifecycle.ts`, `kin.ts`, `nursing.ts`, `PeopleCharts.tsx` and `generations.test.ts`. `docs/LIFE19_SPEC.md` replaces the Life 18 specification; the calibration document gains a Life 19 section. + ## [LIFE17-Sky-077] - (2026-11-08) - The observer draws the year. The sun follows the solar declination for the day of the year at 52° N: about 61° high and 16½ hours of daylight at the summer solstice, 38° and 12 hours at the equinoxes, 15° and 7½ hours at the winter solstice. The run starts at the spring equinox. The day sky is paler in winter and warmer while the sun is low. diff --git a/LAB_NOTES.md b/LAB_NOTES.md index df4ce9f..13d4201 100644 --- a/LAB_NOTES.md +++ b/LAB_NOTES.md @@ -6,6 +6,26 @@ Every meaningful model, architecture, experimental, or design update should receive a newest-first entry. Use at most one base update number per Git commit. Refinements completed before that commit keep the same base number with a decimal suffix—for example, `003` and `003.1` belong to the same commit family. Allocate the next base number only for a later commit. Preserve the context, observed problem or research question, rationale, important implementation decisions, trade-offs, findings, and unresolved questions. Distinguish verified observations from hypotheses. If the original rationale is unknown, say so rather than inferring intent from the finished code. +## [LIFE19-Generations-078] - (2026-11-09) + +The owner approved the generations specification with one rule above the rest: every person is an agent from birth. A baby is not a counter on a parent; it has its own body, wake-ups and choices, and what changes with age is only what its body can do. + +**Mortality.** The specification's draft took the !Kung Siler b1 as 0.943; the paper's Table 2 gives 0.913, which is used. A unit fixture checks the stored table against the fit and survival by the daily rule over a million lives to within a percentage point. + +**What implementation changed in the specification.** +- *When a body changes.* With ages read at any minute, a child's body changed in the middle of a task, and the checker could not tell which body a rate came from. A body's age is now its age at the last midnight, or at birth, and the checker rebuilds each person's body for the minute a task began (`natureHistory`), adding the people born in an interval first (`withNewborns`). +- *Lifecycle order.* Growth ran last at midnight, after people woken at that minute had used the old body. It now runs first. +- *Feeding.* Moving milk inside the child's wake-up changed the mother's ledger without her wake-up. The child now addresses the mother in the same minute and her wake-up feeds every child of hers who wants it. Hunger flags were then set twice around a feed and, with hysteresis, a restored flag made the mother decline a feed the child kept asking for, looping in one minute; flags are set once after the feed, and whether a child wants a feed reads hunger from their energy. +- *Conception beside a newborn.* A child born that midnight had not fed yet, so its mother could conceive at once. A child born in the last day now counts as nursing. +- *Shelter and fire.* A baby asleep away from its hearth counted as sheltered by a parent's hut, and a newborn with no fire of its own asked for wood. Shelter needs the person at their hearth; a child shares a parent's fire at that hearth and asks nobody for wood. The midnight warmth pass skips sleepers whose body changed at that minute, since they set their own warmth when re-addressed. +- *Smaller corrections.* Water's base scales against the person's own adult body, so adults are unchanged; pregnancy adds 12 kcal an hour (300 a day, rounded down); a carried child's weight does not cut the room in a load begun later; `conceived` is recorded only on success; children do not cut logs, make axes or practise. + +*Checker found by a long run.* A checked 120-day run at 8 days a year (about 15 years, 47 births, 38 deaths) found three checker rules that disagreed with the engine and the specification, none in the engine: a child who had died still counted against the mother's conception; the replay sheltered a baby carried to their father's hut, away from their own hearth (pairs keep their own hearths); and a baby who could not reach water slept with severe thirst, which the Life 13 rule forbade. The checker now follows the specification on all three. + +**Observed.** In the browser at 8 days a year, seed 20260813, the valley reached year 7 with about fifty people, ten to sixteen of them under 15, births in the history and a clean console. A checked 30-day run at 8 days a year passed. These are single observations, not measurements. + +**Open.** Pairings in the person history are recent only; energy bars use the configuration's levels rather than each person's; the whole-land map draws a carried child at their own recorded position. + ## [LIFE17-Sky-077] - (2026-11-08) The owner asked to see the seasons in the valley: the sun's path and day length changing through the year, and trees turning brown in autumn and losing their leaves in winter, without temperature or snow. This is drawn by the observer alone, from the displayed minute, so no trajectory changes. diff --git a/README.md b/README.md index b8cbfac..e10f03c 100644 --- a/README.md +++ b/README.md @@ -83,13 +83,13 @@ Government is deliberately narrow and stylized: one flat cash-wealth tax, one Gi ## Life: the bottom-up core -A separate Life core runs beside the frozen MVP9 economy. **Life 18 · strangers** is the current step of the [roadmap](docs/ROADMAP.md): forty adult strangers are scattered over a generated 4 km square of Mesolithic young-moraine country, with lakes and rivers. They discover thickets, wood stands, outcrops and banks; drink, fish and gather berries, nuts and wood; meet, form groups, keep shared fires, build huts and make or exchange axes. They arrive at the start of the berry season. Berries ripen for a few weeks and hazelnuts fall after them; what is not gathered is soon taken by animals or rots, and each year's crop is poor, normal or good. Everyone knows the seasons but learns this year's crop only by seeing it. Each person keeps a store of nuts at their hearth, filled in the nut season towards a target that would last until the next berries (the conscientious plan further ahead), and eats from it through the lean months; stored nuts keep for a year. Every decision uses their own needs, observations and memories. People remember the ways they walk between home, places and water, and take them again, planning a new way only when they have none or have seen new ground since. With nothing to do, they take a walk along one of those ways or rest at home. Time spent together makes ties that fade when unused; a hungry or cold person asks those they know best, and is given food or wood when the giver can spare it and the asker does not already owe too much. Skill grows with experience over a working life and fades slowly when unused, faster for the talented; axes are made by three techniques, flaked, tranchet and ground. Every attempt at an axe may break, less often the more skilled the maker; open people sometimes think of a technique while working, or get the idea from an axe they buy, and know it once an attempt by it works. With nothing needed, people practise for a while each day, the conscientious longer, taking apart and remaking practice axes they have no room to keep; a leisure walk comes at most once a week. An axe is priced by the logs it will cut. Each person has a fixed sex, height, weight, strength and five personality traits that affect carrying, energy needs, company, exchange, preparation, caution and exploration. +A separate Life core runs beside the frozen MVP9 economy. **Life 19 · generations** is the current step of the [roadmap](docs/ROADMAP.md): forty adult strangers, aged 18 to 35, are scattered over a generated 4 km square of Mesolithic young-moraine country, with lakes and rivers. They discover thickets, wood stands, outcrops and banks; drink, fish and gather berries, nuts and wood; meet, form groups, keep shared fires, build huts and make or exchange axes. They arrive at the start of the berry season. Berries ripen for a few weeks and hazelnuts fall after them; what is not gathered is soon taken by animals or rots, and each year's crop is poor, normal or good. Everyone knows the seasons but learns this year's crop only by seeing it. Each person keeps a store of nuts at their hearth, filled in the nut season towards a target that would last until the next berries (the conscientious plan further ahead), and eats from it through the lean months; stored nuts keep for a year. Every decision uses their own needs, observations and memories. People remember the ways they walk between home, places and water, and take them again, planning a new way only when they have none or have seen new ground since. With nothing to do, they take a walk along one of those ways or rest at home. Time spent together makes ties that fade when unused; a hungry or cold person asks those they know best, and is given food or wood when the giver can spare it and the asker does not already owe too much. Skill grows with experience over a working life and fades slowly when unused, faster for the talented; axes are made by three techniques, flaked, tranchet and ground. Every attempt at an axe may break, less often the more skilled the maker; open people sometimes think of a technique while working, or get the idea from an axe they buy, and know it once an attempt by it works. With nothing needed, people practise for a while each day, the conscientious longer, taking apart and remaking practice axes they have no room to keep; a leisure walk comes at most once a week. An axe is priced by the logs it will cut. An unpaired woman and man who are not kin pair when each is the other's closest eligible companion; a paired woman may conceive, and nine months later a child is born at her side. Every person is a person from birth, with their own body, memory, ties and choices: babies feed from their mother and are carried by her or by kin, children grow, walk and work more as they age and stay near home, parents carry food home and plan their store for their children, and kin give to each other more readily. People also die of illness, accident and age, at the !Kung rates by age. Each person has a fixed sex, height, weight, strength and five personality traits that affect carrying, energy needs, company, exchange, preparation, caution and exploration. Life 12 re-founded the core so that it can later hold thousands of people over years. Time is a minute clock, but people are not advanced every minute: each person chooses a task (walk, gather, rest, sleep) and wakes again when it ends or something they see changes. Thickets, stands and outcrops are places with one stock each, and people route over the known ground of a triangle mesh that follows every shore and slope, so they can walk any dry land, however narrow. The land is drawn from the same low-poly triangles. Evidence and estimates are distinguished in the [calibration document](docs/CALIBRATION.md). -**[▶ Open Life 18](https://neolorenzo.github.io/Econ-Engine/life.html)**. Choose the seed, days per year, world size (1 to 10 km), founders (1 to 100) and whether they start scattered, then press Start; the settings are fixed for the run, and New run starts again. Pause, step one minute or change speed; drag to pan, scroll to zoom, and use the whole-land map to move the camera. The heading shows the day, time, season and this year's hazel crop, and how many are alive; a hearth with a store shows a pile of nuts. Follow a person to see what they are doing, bars for energy, thirst and load, what their store holds and how many days it would last, body measurements, five trait bars, how they found the current walk, how many ways they know, their remembered ways drawn on the ground, how many people they know and their closest ties, drawn as lines, with recent gifts and refusals, rings for their skills with level names and how fast they learn, the axe techniques they know and are learning, recent axes made and techniques learnt, and details on food, tools, hut and group; the history panel has three views: a skill map placing everyone by the mix of their foraging, wood and craft skills, ringed when they know a better axe, a relationship graph of who knows whom and on what terms, and the charts over time, in Food, People, Craft and Exchange sections: what was eaten by source this season, this year or in the whole run, food eaten against energy burned, food on the land, in stores and in bodies, everyone's energy reserves with deaths marked by cause, and each year's crop and its fate; its ⓘ shows the run's settings and how to move around. Below a day per second people walk continuously along their route; from a day per second up, people are hidden and the valley is shown as a map of stocks, groups and huts. Fast speeds are best effort. +**[▶ Open Life 19](https://neolorenzo.github.io/Econ-Engine/life.html)**. Choose the seed, days per year, world size (1 to 10 km), founders (1 to 100) and whether they start scattered, then press Start; the settings are fixed for the run, and New run starts again. Pause, step one minute or change speed; drag to pan, scroll to zoom, and use the whole-land map to move the camera. The heading shows the day, time, season and this year's hazel crop, and how many are alive and under 15; a hearth with a store shows a pile of nuts. Follow a person to see what they are doing, bars for energy, thirst and load, what their store holds and how many days it would last, their age, body measurements and the adult body they grow to, partner, parents and children, pregnant, nursing or carried by whom, five trait bars, how they found the current walk, how many ways they know, their remembered ways drawn on the ground, how many people they know and their closest ties, drawn as lines, with recent gifts and refusals, rings for their skills with level names and how fast they learn, the axe techniques they know and are learning, recent axes made and techniques learnt, and details on food, tools, hut and group; the history panel has three views: a skill map placing everyone by the mix of their foraging, wood and craft skills, ringed when they know a better axe, a relationship graph of who knows whom and on what terms, and the charts over time, in Food, People, Craft and Exchange sections: what was eaten by source this season, this year or in the whole run, food eaten against energy burned, food on the land, in stores and in bodies, everyone's energy reserves with deaths marked by cause, each year's crop and its fate, and the people by age, births and deaths and couples; the relationship graph also shows partners and parents; its ⓘ shows the run's settings and how to move around. Below a day per second people walk continuously along their route; from a day per second up, people are hidden and the valley is shown as a map of stocks, groups and huts. Fast speeds are best effort. -Details are in the [Life 18 specification](docs/LIFE18_SPEC.md), [validation notes](docs/VALIDATION.md#life-18) and [lab notes](LAB_NOTES.md). +Details are in the [Life 19 specification](docs/LIFE19_SPEC.md), [validation notes](docs/VALIDATION.md#life-19) and [lab notes](LAB_NOTES.md). ## Direction The long-term aim is an institution-agnostic engine: markets, taxes, governments and other institutions should emerge from agents' decisions instead of being built in. The [vision document](docs/VISION.md) describes that direction. The [merge document](docs/MERGE.md) records the decision to merge Life Engine into this project and build a new core bottom-up, starting from a band of foragers, and the [roadmap](docs/ROADMAP.md) sets that core's goal: civilization emerging from strangers, with realism kept only where it explains a mechanism. None of them is a description of the current model. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 6197109..6709e4d 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -81,9 +81,9 @@ The draw sequence is therefore: one orientation draw per non-square plot, one po The 3D world draws each firm and Government across its plot: `buildingScale` stretches the building model to the plot, less a 0.1-tile inset, and raises it with the square root of the plot's area. The camera's default distance, zoom-out limit, fog and far plane scale with the grid, and Locate stays further out for bigger plots. -## Life 18: seasons and stores, skills, techniques, ties, habitual routes, bodies, clock and ground mesh +## Life 19: generations, seasons and stores, skills, techniques, ties, habitual routes, bodies, clock and ground mesh -`src/valley/` is the independent Life core described by [LIFE18_SPEC.md](LIFE18_SPEC.md). It imports only the pure RNG helpers from the frozen MVP9 core. Quantities are integers: centimetres, kilocalories, kilograms, millilitres and minutes. `stepValley(state, toMinute)` is pure and deterministic: it clones the state, runs every queued wake-up up to `toMinute` and sets the clock there. `advanceValley(state, toMinute)` runs the same loop on the state itself, for a caller that owns it: only the worker does. +`src/valley/` is the independent Life core described by [LIFE19_SPEC.md](LIFE19_SPEC.md). It imports only the pure RNG helpers from the frozen MVP9 core. Quantities are integers: centimetres, kilocalories, kilograms, millilitres and minutes. `stepValley(state, toMinute)` is pure and deterministic: it clones the state, runs every queued wake-up up to `toMinute` and sets the clock there. `advanceValley(state, toMinute)` runs the same loop on the state itself, for a caller that owns it: only the worker does. - **Bodies and personality.** `nature.ts` draws bounded integer normals and applies integer Cholesky factors to body and Big Five correlations. `layout.ts` owns isolated body and traits streams; founder positions, skills and craft draws are unchanged. Each person stores immutable body measurements, trait scores, derived thresholds, load and rates. `personConfig` supplies a cached personal view to shared body, route and task helpers; run settings stay separate. Founder means and spreads by sex are recorded once, in thousandths. State copies copy the small body/trait records independently. - **Clock and queue.** `clock.ts` holds the wake-up queue, ordered by minute, then world before people, then person id. `calendar.ts` turns a minute into a day, a season and a year of `daysPerYear` days, counted from the arrival day (`arrivalPerMille` of the year), and gives the berry and nut windows as day ranges of at least one day, the days to a window's next start and the minute its latest one began. `world.ts` owns hourly and midnight work: spoiling stores, the year's crop draw on its first day, thicket losses and window growth, fish growth, fires and daily summaries. `wake.ts` handles a person's wake-up: it settles the task that ended, perceives, chooses the next task by priority and queues the next wake-up. @@ -94,8 +94,9 @@ The 3D world draws each firm and Government across its plot: `buildingScale` str - **Ties.** `ties.ts` keeps each person's ties: an immutable record per person known, at most `tiesRemembered` (150), the least familiar forgotten first. A tie holds familiarity (minutes spent standing within talking distance, counted once at the end of a task in both ties), credit (minutes of work given less received) and grievance (minutes, from refusals), each fading by `tieFadePerMillion` a day with its own remainder. After an exchange, a person who needs food or wood asks the people met, closest tie first and each at most once a day; the one asked gives up to what they can spare and the asker lacks when their goodwill covers what the asker already owes, and otherwise refuses. Gifts move food lots or wood and are recorded as `gift` events; refusals as `refusal` events; time together as `together` events. - **Skills and techniques.** `skills.ts` holds each person's experience in integer seconds for foraging, wood and each axe technique. At midnight `skillDay` fades it by a fixed share a day (half in ten years) and adds the day's work times `daysPerYear`-anchored talent, then sets skill as `floor + (ceiling − floor)·E/(E + half)`, from 50% towards 150%. Talents are drawn once by `drawTalents` and founders start with years of experience. A person holds two bitsets: `ideas`, the techniques they may try, and `known`, those they have made one of that worked. Founders have the idea of what they know. After every stint of axe work, `inventAfter` draws from the invent stream for each technique whose prerequisite is known, at a chance per hour of work raised by openness; buying an axe gives the idea of its technique. Proficiency is defined for every idea and carries a share of the person's other technique experience. `axes.ts` begins an axe with an attempt drawn from the attempt stream (`attemptOf`): it works with a chance rising with proficiency above the floor, or breaks at a drawn second, losing its stone and returning its wood; the first success by an idea makes it known. Needed axes use the known technique with least work per working log, counting a stone fetch when the person holds no spare. Under priority 9, `practiceChoice` in `forager.ts` spends a daily budget raised by conscientiousness on practice axes, untried ideas first, fetching a stone within exploring range; only practice tries an idea. A practice axe that works when its maker already holds an axe and a spare is taken apart (`dismantled`), its stone and wood back in hand. `leisureWalk` allows one walk in `leisureWalkDays` days. `skillViolations`, the checker's replay of attempt and invention draws, and its midnight replay hold experience, ideas, techniques and practice to these rules. - **Tasks and lazy bodies.** `tasks.ts` builds a `TaskRecord` (kind, start and end minute, place, route, reason, starting body and load). `body.ts` gives energy and water at any minute of a task in closed form (`energyAt`, `waterAt`), and `positionAt` gives the position along its route. A route is stored in `state.routes` under its id while a walk can read it; each step first frees every route below the lowest still walked (`releaseRoutes`), and ids keep counting. Nobody is advanced minute by minute. Food, wood, fire, huts, axes, trade and skills (`food.ts`, `work.ts`, `fire.ts`, `huts.ts`, `axes.ts`, `trade.ts`, `practice.ts`, `social.ts`) apply their rules when a task settles or two people meet. +- **Generations.** `growth.ts` holds ages in thousandths of a year and the age tables (growth, metabolism, walking, work, range), interpolated within the year. `nature.ts` derives a person's body from their adult draws, their body age and pregnancy (`deriveNature`); a body changes only at a midnight or a birth, and `natureMinute` records when. `lifecycle.ts` runs the midnight lifecycle in the `world` phase (growth, deaths drawn from `fate:` against the stored Siler table, births due, conceptions from `conceive:`) and gives the checker `bodyAge`, `natureHistory` (each person's body at any minute of an interval) and `withNewborns`. `kin.ts` derives relatedness from recorded parents, carriers, children at home and the fire a child shares. `nursing.ts` feeds: a child who wants a feed addresses their mother in the same minute, and her wake-up moves energy and water to each child of hers who wants it. A carrier's walk turns each child they carry into a `carried` task on the same route. - **Stores.** `stores.ts` holds each person's store, nut lots at their hearth: its target (`storeKcalPerDay` for the days to the next berry season, scaled by weight and conscientiousness), putting carried nuts in at the hearth (a `stored` event), eating from it (`fromStore`, lots marked so eaten food counts by source) and midnight spoiling past `nutShelfLifeHours` (`storeSpoiled`). `forager.ts` reads expected stock by the calendar (`expectedFoodStock`) and ranks the store need with food and wood need; `wake.ts` runs the `store` and `eat store` tasks. -- **Checker.** `invariants.ts` checks each interval against the preceding immutable state. `replay.ts` keeps separate stock, fish, body, tool, hut and water ledgers, replays recorded transfers and regrowth, and compares them with the returned state. `replayTies` replays time together, gifts, refusals and the midnight fade, and checks each gift against the giving rule. Geography is checked once. +- **Checker.** `invariants.ts` checks each interval against the preceding immutable state, extended with the people born in it, and checks each rate against the body rebuilt for the minute the task began. It rejects feeds, births, conceptions and pairings no rule allows, a baby on milk eating, and a child working beyond their range. `replay.ts` keeps separate stock, fish, body, tool, hut and water ledgers, replays recorded transfers and regrowth, and compares them with the returned state. `replayTies` replays time together, gifts, refusals and the midnight fade, and checks each gift against the giving rule. Geography is checked once. `ruleFixtures.ts` is imported only by tests: surveyed ground and small explicit lakes isolate rules without changing production starts. diff --git a/docs/CALIBRATION.md b/docs/CALIBRATION.md index edafe6d..7ba6225 100644 --- a/docs/CALIBRATION.md +++ b/docs/CALIBRATION.md @@ -249,13 +249,13 @@ Life 11 continuous-bank refinement: the 5 m lattice still supplies drainage and ## Life 14: adult bodies and personality -The body rules approved in Life 14, kept in the [current specification](LIFE18_SPEC.md), use Mesolithic European adult means: women 154 cm and 52 kg; men 165 cm and 62 kg; within-sex spreads 6 cm and 6 kg (Formicola and Giannecchini 1999; Ruff 2018). Grip means are 24 kg and 38 kg, spread 6 kg, following forager-horticulturalist field magnitudes (Gurven et al. 2006; Apicella 2014). Within-sex height/weight, height/grip and weight/grip correlations are 0.55, 0.35 and 0.40. These are magnitude targets, not calibrated trajectories. +The body rules approved in Life 14, kept in the [current specification](LIFE19_SPEC.md), use Mesolithic European adult means: women 154 cm and 52 kg; men 165 cm and 62 kg; within-sex spreads 6 cm and 6 kg (Formicola and Giannecchini 1999; Ruff 2018). Grip means are 24 kg and 38 kg, spread 6 kg, following forager-horticulturalist field magnitudes (Gurven et al. 2006; Apicella 2014). Within-sex height/weight, height/grip and weight/grip correlations are 0.55, 0.35 and 0.40. These are magnitude targets, not calibrated trajectories. The ten Big Five correlations follow van der Linden et al. (2010), in O-C, O-E, O-A, O-N, C-E, C-A, C-N, E-A, E-N, A-N order: 0.20, 0.43, 0.21, -0.17, 0.29, 0.43, -0.43, 0.26, -0.36, -0.36. Trait effects on approach distance, bargaining share, stocks/satiation, dusk margin and novelty are directional estimates. Their strengths remain questions for later experiments. The carrying rule keeps average women's loads closer to men's than grip strength alone would, consistent with forager loads of roughly 15 to 25 kg or more (Lee 1979; Marlowe 2010). Full reference details are in the specification. ## Life 18: seasons and stores -The rules approved in Life 18, kept in the [current specification](LIFE18_SPEC.md), replace the all-year regrowth of berries and hazel above with crops that ripen in a season, are lost to animals and rot, and swing from year to year. The land's food is now day-anchored: a thicket's yearly crop is stated per 365 days, so at the default 90 days a year it grows 90/365 of it. Foragers and subsistence farmers lose a few per cent of body weight in their lean season and regain it at harvest [50]; Life 18 is checked against that pattern. +The rules approved in Life 18, kept in the [current specification](LIFE19_SPEC.md), replace the all-year regrowth of berries and hazel above with crops that ripen in a season, are lost to animals and rot, and swing from year to year. The land's food is now day-anchored: a thicket's yearly crop is stated per 365 days, so at the default 90 days a year it grows 90/365 of it. Foragers and subsistence farmers lose a few per cent of body weight in their lean season and regain it at harvest [50]; Life 18 is checked against that pattern. | Parameter | Value | Basis | Status | | --- | --- | --- | --- | @@ -274,3 +274,40 @@ Sources added for Life 18: 49. Hazel seed fate. The task named a 2024 study of *Corylus mandshurica* seed fate in *Global Ecology and Conservation* (October 2024). **It could not be verified**: PubMed and the publisher could not be read from this session, and no paper with that species, journal and date was found. Candidates found instead: a study of habitat differences in scatter-hoarding reporting a mean removal time of about 14 days (14.24 ± 10.53 d pooled across species; PubMed 37234965, PMC10208085); a 2024 *Global Ecology and Conservation* paper on *Corylus heterophylla* (https://doi.org/10.1016/j.gecco.2024.e03073); and work in *ZooKeys* (2021) on *C. mandshurica* finding 15.83% of seeds eaten in place and 84.17% dispersed by rodents. The 14-day half-life stands as an estimate until the source is confirmed. 50. Jenike, M. R. (2001). Nutritional ecology: diet, physical activity and body size. In C. Panter-Brick, R. H. Layton and P. Rowley-Conwy (eds.), *Hunter-Gatherers: An Interdisciplinary Perspective* (pp. 205–238). Cambridge University Press. + +## Life 19: generations + +The rules approved in Life 19, kept in the [current specification](LIFE19_SPEC.md), add ages, growing bodies, nursing, pairing, births and deaths of illness, accident or age. + +### Mortality by age + +Deaths other than of hunger and thirst follow the Siler fit to the !Kung (Gurven and Kaplan 2007, Table 2 [51]): yearly hazard at age `t` is `a1·e^(−b1·t) + a2 + a3·e^(b3·t)` with a1 0.340, b1 0.913, a2 0.010, a3 3.31×10⁻⁴, b3 0.077. The specification as first drafted had b1 0.943; the paper's table gives 0.913, which is used. The fit gives 79% surviving the first year, 66% to 5, 59% to 15, 38% to 45 and 13% to 70, a life expectancy of 32 at birth, 38 more at 15 and 20 more at 45. + +`deathPerMillionByAge[a]` is the fit's mean yearly hazard over age `a` to `a+1`, `H(a+1) − H(a)` with `H` the cumulative hazard, times a million and rounded. The daily rule (chance `entry / daysPerYear` per million each midnight) reproduces the fit within 0.04 of a percentage point at 90 days a year. The 111 entries, ages 0 to 110: + +``` +233292,99845,46309,24844,16251,12827,11478,10964,10787,10748,10767,10812,10871,10938,11012,11092,11180,11274,11376,11486,11605,11733,11872,12022,12184,12359,12547,12751,12972,13209,13466,13744,14043,14367,14717,15094,15502,15942,16418,16932,17487,18086,18733,19432,20187,21002,21883,22834,23861,24971,26169,27463,28861,30371,32001,33763,35665,37719,39937,42334,44922,47717,50736,53997,57518,61322,65429,69866,74658,79833,85423,91460,97980,105022,112628,120842,129715,139297,149646,160823,172896,185934,200016,215226,231652,249394,268555,289251,311603,335743,361817,389977,420391,453239,488717,527035,568419,613116,661391,713530,769842,830661,896348,967294,1043917,1126674,1216055,1312590,1416852,1529460,1651080 +``` + +The fit counts all causes, hunger among them, so the valley's deaths are expected to exceed it. + +### Children, nursing and births + +| Parameter | Value | Basis | Status | +| --- | --- | --- | --- | +| `growthByAge` | Weight, height and grip per mille of the adult value at ages 0 to 18; weight 60‰ at birth, 300‰ at five, 490‰ at ten, full at 18 | About 3 kg at birth, 15 at five and 25 at ten for a 52 kg woman (Walker et al. 2006); strength grows late | Measured shape, judged | +| `metabolismByAge` | Energy per kg, 2,900‰ of the adult rate at birth, falling to 1,000‰ at 18 | An average child's day is about 600 kcal in the first year, 800 at one, 1,300 at five and 2,000 at twelve (FAO/WHO/UNU 2004) | Measured | +| `walkByAge`, `workByAge` | Walking from one, at an adult's pace by 15; work from three, full at 18 | Children's foraging returns are low and rise through the teens (Blurton Jones et al. 1989; Kaplan et al. 2000) | Judgement | +| `rangeByAge` | 300 m from the hearth at three to 3 km at 11, unlimited from 12 | Forager children forage near camp, further as they grow (Hawkes et al. 1995) | Judgement | +| `carryBelowPerMille` | Carried while below 450‰ of adult weight | A child walks on their own from about three | Judgement | +| `solidFoodMilliYears`, `weaningMilliYears` | Solid food from six months, weaned at three years | Weaning at about 2.5 to 3 years (Marlowe 2005; Konner 2005) | Measured | +| `feedKcal`, `milkMlPerThousandKcal` | 400 kcal a feed; 1,500 ml of water in 1,000 kcal of milk | Breast milk is about 0.67 kcal a ml | Measured | +| `amenorrheaMilliYears` | Two years after a birth | Births three to four years apart among foragers (Howell 1979; Konner and Worthman 1980) | Measured | +| `pairFromYears`, `lastBirthYears` | 15 and 45 | First marriage for forager women at about 17 to 19 (Marlowe 2004) | Measured | +| `fecundReserveKcal` | 56,000 kcal of reserve | Energy-dependent ovulation (Ellison 2001; Valeggia and Ellison 2009, direction) | Judgement | +| `fecundPerMillePerCycle` | 200‰ a cycle, a cycle a twelfth of a year | Fecundability about 0.2 a cycle (Wood 1994) | Measured | +| `pregnancyMilliYears`, `pregnancyKcalPerDay` | Nine months; 300 kcal a day, charged as 12 kcal an hour (288 a day) | About 80,000 kcal over a pregnancy (Butte and King 2005) | Measured | + +Sources added for Life 19: + +51. Gurven, M. and Kaplan, H. (2007). Longevity among hunter-gatherers: a cross-cultural examination. *Population and Development Review* 33(2): 321–365. Table 2, Siler parameter estimates. diff --git a/docs/LIFE18_SPEC.md b/docs/LIFE19_SPEC.md similarity index 64% rename from docs/LIFE18_SPEC.md rename to docs/LIFE19_SPEC.md index 7af535f..e601e58 100644 --- a/docs/LIFE18_SPEC.md +++ b/docs/LIFE19_SPEC.md @@ -1,12 +1,27 @@ -# [LIFE18-Seasons-076] +# [LIFE19-Generations-078] -**Approved by the owner on 2026-11-03.** This specification replaces the Life 17 specification and describes the whole simulation. It is step 18 of the [roadmap](ROADMAP.md), seasons and stores, which the owner moved ahead of the chief and generations on 2026-11-02, after deferring conflict until the valley knows scarcity. It is built under the [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) of the design rules. Life 17's update history (skills and techniques, the skill card and strip, and the free-route fix) is recorded in the changelog and the lab notes, entries 074 and 075. +**Approved by the owner.** This specification replaces the Life 18 specification and describes the whole simulation. It is step 19 of the [roadmap](ROADMAP.md), generations. It is built under the [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) of the design rules. Life 18's update history (seasons and stores, and its speed-up) is recorded in the changelog and the lab notes from entry 076. -Forty strangers are dropped on 4 km square of young glacial land in Mesolithic northern Europe: drumlins, moraine fronts, kames, hummocks, kettle hollows and tunnel valleys, with lakes in the hollows and rivers running downhill to the edge. The ground is grass, dirt and stone. They arrive in high summer, as the bilberries ripen. People discover drinking banks, drink, pick berries, gather hazelnuts, fish, gather firewood, meet, form groups, exchange wood and axes for food, and build huts around shared fires. Their knowledge comes from observation and memory. Each of them is a woman or a man with a body and a personality of their own. They find their way by the ways they remember, and they know the others they have spent time with, ask them for food or wood, and give when they know the asker well enough. Each person carries a working life of experience, talents, ideas and techniques. From this step the year turns: **berries ripen in late summer and hazelnuts fall in early autumn**, each for a few weeks; what is not gathered is eaten by animals or rots; **some years the crop is good and some years it fails**; and people **store nuts at home** to carry them through the long months when nothing ripens. +Forty strangers are dropped on 4 km square of young glacial land in Mesolithic northern Europe: drumlins, moraine fronts, kames, hummocks, kettle hollows and tunnel valleys, with lakes in the hollows and rivers running downhill to the edge. The ground is grass, dirt and stone. They arrive in high summer, as the bilberries ripen. People discover drinking banks, drink, pick berries, gather hazelnuts, fish, gather firewood, meet, form groups, exchange wood and axes for food, and build huts around shared fires. Their knowledge comes from observation and memory. Each of them is a woman or a man with a body and a personality of their own. They find their way by the ways they remember, and they know the others they have spent time with, ask them for food or wood, and give when they know the asker well enough. Each person carries a working life of experience, talents, ideas and techniques. From this step the year turns: **berries ripen in late summer and hazelnuts fall in early autumn**, each for a few weeks; what is not gathered is eaten by animals or rots; **some years the crop is good and some years it fails**; and people store nuts at home to carry them through the long months when nothing ripens. From this step **people are born, grow up, grow old and die**: a woman and a man who have come to know each other well **pair**; a paired woman who is well fed **conceives**, carries the child for nine months and nurses it for years; **children must be fed and carried** by those who care for them until they are grown; **kin** know each other and give to each other more readily; and everyone, at every age, can **die of illness, accident or age**, as well as of hunger and thirst. Time is one clock in minutes. Nobody is stepped: a person is woken when their task ends, a body threshold arrives, someone enters their chunk, or someone addresses them, and their position and body at any minute follow from their task. A year has as many days as the run's settings say, from 8 to 365. Lengths are integer centimetres, food integer kilocalories, wood integer kilograms, water deficit integer millilitres, experience integer seconds, and fractional amounts accumulate in integer remainders. `stepValley` advances the state to a target minute, is pure and deterministic, and every random draw comes from a named derived stream. The observer displays real records and interpolates movement between them. -## What Life 18 makes possible +## What Life 19 makes possible + +- **Ages.** Every person has a birth minute and an age. Founders arrive aged 18 to 35. Ages, growth, pregnancy and nursing are year-anchored: they pass with the calendar, so at the default 90-day year a child born on day 100 is 15 on day 1,450. +- **Pairing from relationships.** An unpaired woman and man, both past puberty and not close kin, pair when each is the other's most familiar eligible person and they have spent at least a week of minutes together. Nothing else decides who pairs: closeness comes from time together, which comes from groups, fires, food and shelter. A pair lasts until one of them dies. +- **Fertility that follows food.** A paired woman of 15 to 45 may conceive on a night she sleeps near her partner, unless she is pregnant, nursing a child under two, or her energy reserve is low. A well-fed woman conceives within months; a hungry one waits. Birth spacing comes from nursing and food, not from a rule that sets it. +- **Every person is a person from birth.** A newborn has their own body, energy, water, memory, ties, wake-ups and choices, like anyone. Nobody becomes a person at an age: what changes is what they can do. +- **Bodies that grow.** Each person's adult body is drawn at birth, and their body at any age is a share of it that grows year by year to 18: weight, height and strength, and with them the energy they burn, the reserve they hold, the load they can carry and how fast they walk and work. A baby cannot walk, a three-year-old walks slowly and picks a few berries, a ten-year-old forages near camp, and a sixteen-year-old does nearly an adult's work. +- **Babies are nursed and carried.** A baby eats only milk for its first six months and milk and food until its mother weans it at three. Nursing moves energy and water from the mother's body to the child's, when the child is hungry and with her. A child too slow to keep up is carried by its mother, or by kin if she is gone, whenever she walks; its weight slows her and takes room from her loads. +- **Children feed themselves as they can, and ask.** A child who can walk chooses for themselves, by the same rules as anyone, within a distance of home that grows with age: they drink, forage, rest, sleep at their hearth and meet people. Children's foraging returns are small, so a hungry child asks, kin first. Parents with young children at their hearth gather food beyond their own needs to bring home, in proportion to what their children cannot yet get for themselves, and give it when asked. +- **Kin.** Each person knows their mother, father and, through them, their siblings, grandparents, aunts, uncles and cousins. Kin give to each other more readily when asked, close kin never pair, and kin carry a small child whose mother has died. A baby who loses its mother before it can eat food dies of hunger, not by a rule. +- **Death at every age.** Besides hunger and thirst, each person faces each day the chance of dying of illness, accident or age that a forager of their age faced: high in infancy, low through adulthood, rising steeply after fifty. About six in ten children born live to fifteen, and few people pass seventy, as among the !Kung. +- **Why now.** Life 18 brought scarcity: deaths come in the lean months and after failed hazel years, and in the canonical run forty founders fell to twenty-six by day 270. Generations add the mouths, the children and the replacement that decide whether a group lasts. The chief, next, means more when there are families to lead and a next generation to follow. + +This step adds ages, growing bodies, pairing, pregnancy, birth, nursing, carrying, provisioning, kin and death of illness, accident and age. It does not change the map, the land's food or the calendar, wood, trees, huts, fires, how people find their way, adult bodies, personality, skills, ties between non-kin, groups or exchange; children use all of these by the same rules as adults, with their own bodies. Divorce, more than one partner, moving hearth to a partner, teaching, children's play and children foraging in bands, inheriting traits from parents, and the decline of an old body's strength wait for later steps. + +### What Life 18 made possible (unchanged) - **The valley grows what real land grows.** Until now a berry thicket regrew about 2,000 kg of berries a hectare a year, 30 to 500 times a wild bilberry patch, and every thicket and hazel regrew evenly all year round. Berry thickets now yield what a good wild patch does, about 200 kg a hectare. Hazel thickets keep their yield, already at the top of the wild range. The valley's food in a full-length year falls from enough for about 180 people to enough for about 135 if every berry and nut were gathered, and far fewer once the seasons, animals and failed years take their share. - **Food is grown by the day, not by the year.** The days-per-year setting compresses the calendar so that skills, seasons and, later, lives pass quickly. Until now it compressed the land's growth too: at the default 90-day year the land regrew a full year's food every 90 days while people still ate every day, so it fed four times as many people as it would in life. The food the land grows is now day-anchored, like eating: a thicket grows as much food in a day whatever the length of the year. A short year has short seasons, not a richer valley. @@ -17,12 +32,23 @@ Time is one clock in minutes. Nobody is stepped: a person is woken when their ta - **Scarcity, from the land.** Nobody is told to save or to share. Hunger comes from the calendar, the crop and how much each person put by. A person who stored too little, or a valley hit by a failed hazel year, meets the end of winter short of food, and that is where asking, giving, exchange and, later, conflict and influence begin to matter. - **Why now.** In Life 17's canonical year all forty people were alive at day 365, and people seldom carried food beyond what they ate. The owner deferred conflict and moved seasons ahead of the chief and generations, because neither leadership nor growth means much where there is nothing to run short of. -This step changes the land's food, the calendar, how people expect food at places, and adds stores and the work of filling them. It does not change the map, wood, trees, logs, huts, fires, how people find their way, bodies, personality, skills, ties, asking and giving, groups or exchange. Day length, cold winters, weather, drying and smoking, shared stores and claims on stores wait for later steps. +Life 18 changed the land's food, the calendar, how people expect food at places, and added stores and the work of filling them. It did not change the map, wood, trees, logs, huts, fires, how people find their way, bodies, personality, skills, ties, asking and giving, groups or exchange. Day length, cold winters, weather, drying and smoking, shared stores and claims on stores wait for later steps. ## Checked against | Measure | Evidence and comparison | Status | | --- | --- | --- | +| Mortality by age | Among foragers about 60% of those born live to 15 and life expectancy at birth is about 30 to 37 years; adult deaths are about 1% a year from 15 to 40 and rise steeply after 50; the modal adult age at death is about 70 (Gurven and Kaplan 2007). The !Kung Siler fit (a1 0.340, b1 0.913, a2 0.010, a3 0.000331, b3 0.077; Table 2 of the paper) gives 79% surviving the first year, 66% to 5, 59% to 15, 38% to 45 and 13% to 70, and a life expectancy of 32 at birth and 38 more at 15. | A unit fixture: the stored table is the fit's mean yearly hazard by year of age, within 1 per million; over a million simulated lives drawn by the daily rule, survival to 1, 5, 15, 45 and 70 within one percentage point of the fit. Recorded once: deaths by cause and age. Deaths of hunger come on top, so survival in the valley is expected to fall below the fit. | +| Fertility | Forager women have about 4.5 to 6 live births over their lives (!Kung about 4.7, Howell 1979; Hadza about 6, Blurton Jones 2016); the first birth comes at about 19 (Howell 1979); the last at about 37 to 40. | Recorded once: births by mother's age; completed births of women who reached 45. Arithmetic: a well-fed woman paired from 15 to 45 at about three years a birth would have about nine; mortality, the wait for pairing and lean seasons are what bring a real count lower. | +| Birth spacing | Interbirth intervals among foragers are about 3 to 4 years: !Kung about 4 (Howell 1979; Konner and Worthman 1980), Hadza about 3.4 (Marlowe 2010). Nursing suppresses ovulation for longer in women short of energy (the metabolic load model, Ellison 2001; Valeggia and Ellison 2009). | A unit fixture: a well-fed paired woman's next conception comes no sooner than two years after a birth, and later when her reserve is below the fecund level. Recorded once: intervals between births by the mother's reserve in the year before. A median of about three to four years is expected. | +| Fecundability | The chance of conceiving in a cycle among women not using contraception is about 0.2 (Wood 1994). | Arithmetic: 200‰ a twelfth of a year, about five months' wait on average for a well-fed woman. | +| Pregnancy and nursing costs | A pregnancy costs about 77,000 to 85,000 kcal in all, about 300 kcal a day in its later months; exclusive breastfeeding costs about 500 to 600 kcal a day (Butte and King 2005). Forager children are weaned at about 2.5 to 3 years (Marlowe 2005; Konner 2005). | Magnitudes: 300 kcal a day for 750‰ of a year; nursing moves what the child burns from the mother's body to theirs. | +| Children's needs | Children eat roughly 800 kcal a day at one year, 1,300 at five and 2,000 at twelve (FAO/WHO/UNU 2004, at forager body sizes). | A unit fixture: an average child at rest and at light work burns within 10% of these at ages 1, 5 and 12, from their growing weight and the metabolism table. | +| Growth | Forager children are small and grow slowly, reaching adult size in the late teens; a newborn weighs about 3 kg, a five-year-old about 15, a ten-year-old about 25 (Walker et al. 2006). | Magnitudes: the growth tables. A unit fixture: an average child's weight at 0, 5, 10 and 18. | +| Children's foraging | Children forage from early childhood, more where food is close and easy: Hadza children gather a substantial share of what they eat, mostly near camp, !Kung children very little (Blurton Jones et al. 1989; Hawkes et al. 1995). Even so, forager children eat more than they produce until their late teens (Kaplan et al. 2000). | Recorded once: by age, kcal children gathered against kcal they ate, and the share they were given. Children who feed themselves partly, more as they grow, and are net consumers into their teens, are expected. | +| Population growth | Forager populations grew at close to zero over the long run, with growth in good periods and crashes in bad ones; measured rates are about 0 to 1% a year (Hassan 1981; Pennington 2001). | Recorded once over the runs below: the living by year and births and deaths by year. Near-zero growth is the pattern to compare with, not a target; a valley that dies out or explodes is examined in the lab notes, not tuned. | +| Pairing | Most forager adults are married; first marriage for women at about 17 to 19; marriages are mostly monogamous (Marlowe 2004; Kelly 2013). | Recorded once: age at first pairing by sex; the share of adults paired by year. | +| Orphans | Children who lose their mother die far more often, and infants almost always (Hill and Hurtado 1996; Sear and Mace 2008). | Direction, not a rule: a baby who loses its mother before six months has nothing it can eat; an older one depends on what kin give and carry. Recorded once: children who lost their mother, their age, who carried and fed them, and whether they lived. | | Berry yield | Wild bilberry forest yields 4 to 65 kg a hectare a year; an exceptional huckleberry field in an exceptional year about 630 (calibration, Food). | Arithmetic: a berry thicket's yearly crop at a normal year is 200 kg a hectare of its footprint, within 1%. | | Hazel yield and good and bad years | Wild woodland hazel about 400 kg a hectare (calibration, Hazel and the lake); hazel bears heavy and light crops in alternating years (calibration [31]), and nut crops of most trees swing widely from year to year, synchronised over whole regions. | A unit fixture: each year's crop follows its drawn class. Recorded once on the canonical seed: the class of every year run. | | Seasons | In northern Europe bilberries ripen from mid-July to late August and hazelnuts fall from September to mid-October. | A unit fixture: the windows at 90, 365 and 8 days a year. | @@ -52,11 +78,40 @@ This step changes the land's food, the calendar, how people expect food at place | Trait correlations | The meta-analysis of the five traits across 212 samples (van der Linden et al. 2010): openness with extraversion 0.43, conscientiousness with agreeableness 0.43, conscientiousness with neuroticism −0.43, extraversion with neuroticism −0.36, agreeableness with neuroticism −0.36, conscientiousness with extraversion 0.29, agreeableness with extraversion 0.26, openness with agreeableness 0.21, openness with conscientiousness 0.20, openness with neuroticism −0.17. | A unit test over 10,000 draws, each within 0.05. | | What the traits do | Extraverts seek contact more (Asendorpf and Wilpers 1998); agreeable people offer fairer splits in bargaining games (Ben-Ner et al. 2004); conscientious people plan and store; neurotic people avoid risk; open people seek novelty. | Direction only: each trait's rule has a unit fixture showing the direction. The strengths of the effects are judgement, not calibration, and are listed as questions for later. | | Carrying | Forager women carry loads of 15 to 25 kg for hours, men more; women's load capacity is closer to men's than their grip is (Hadza and !Kung loads; Lee 1979; Marlowe 2010). | Magnitudes. | -| Speed | A year of forty people in about a second, as since Life 12; in the browser, a month a second, which needs about 30 ms a simulated day. | Not met since update 072. Seasons and stores must not make it noticeably slower: measured once and recorded, days 50 to 59 in 12-hour steps against update 074's. More than about 10% slower is examined before this step is merged. Measured: days 51 to 60 first took 3.3 s a day against 267 ms, as hungry people fish in short stints and choose food far more often; a speed-up that keeps every fingerprint brought it to about 0.5 s, within the browser's second for a day (see the lab notes). | +| Speed | A year of forty people in about a second, as since Life 12; in the browser, a month a second, which needs about 30 ms a simulated day. | Not met since update 072. Children are people with their own wake-ups, so more people cost more, as they always have; what must not grow is the cost per person. Measured once and recorded: days 50 to 59 in 12-hour steps against Life 18's last measurement, where few children are yet born, and the time per person-day over the ten-year run. More than about 10% slower on days 50 to 59 is examined before this step is merged. | ## Design decisions -### Seasons, harvests and stores (new) +### Generations (new) + +| Decision | Reason | +| --- | --- | +| **Every person is a full person from birth.** A newborn has their own body ledger (energy, water and remainders), memory, ties, tasks and wake-ups, and chooses by the same rules as anyone. No age turns a person on or off; what changes with age is what their body can do, below. | The owner's rule: every human is a separate agent. It is also rule 1 and realism rule 3 at once: people are the only things modelled as individuals with full state, and a child decides things (where to go, whom to ask) that nobody else decides for them. | +| **Every person has a birth minute**, and an age in thousandths of a year, `floor(1,000 · (m − birth) / (1,440 · daysPerYear))`. Every age in this step is year-anchored. | The roadmap lists pregnancy, childhood and ageing as year-anchored. One stored minute, from which every age follows, cannot disagree with itself. | +| **Founders arrive aged 18 to 35**: whole years drawn uniformly, then a day within the year, from a new `age` stream. Their experience is unchanged: fifteen years of foraging and wood whatever their age. | Strangers who set out to a new valley are young adults. Scaling experience with age would change every founder's skill for a reason this step does not study; it is a question for later. | +| **Bodies grow.** A person's adult height, weight and grip are drawn at birth. At age `a` their body is the adult one times `growthByAge` per mille for each of the three, interpolated linearly within the year in thousandths, reaching 1,000 at 18. Every quantity derived from the body (the rate table, load capacity, thirst thresholds, loaded walking speed) is recomputed from the grown body at each midnight while a person is under 18. A body's age is its age at the last midnight, or at birth if later, so a body never changes between midnights and the checker can rebuild every body from its birth minute. | One rule turns a newborn into an adult by degrees, with nothing switched. Weight sets what a body burns and holds, grip what it carries; both already set those for adults. Forager children are small and grow into their late teens (Walker et al. 2006). | +| **Children burn more for their size.** Every energy rate is the adult rate for the grown weight times `metabolismByAge` per mille, 1,000 from 18; water loss's base scales the same way, relative to the person's own adult body, so an adult's water base is unchanged. The energy reserve, its cap and every threshold on it (hungry, satisfied, fecund) scale by the share of adult weight grown. | Children need more energy per kilogram than adults, for growth and a faster metabolism; the table makes an average child's day what FAO/WHO/UNU (2004) give. A small body holds a small reserve: a baby has days of reserve, not weeks, which is why infants starve quickly. Adults are unchanged: both factors are 1,000. | +| **Walking and working grow with age.** Walking speed is times `walkByAge` per mille; every work rate (picking, gathering, fishing, wood, chopping, making) is times `workByAge` per mille, on top of the person's skill from their own experience. Both reach 1,000 by 15 and 18. Until their work factor reaches 1,000, a person does not cut logs, fetch stones, make axes or practise: crafts wait for teaching, and a parent's hut shelters them. | Children walk slower and work less well for their size, strength and attention, and skill comes from their own practice as anyone's does. Hadza children forage from about three, slowly (Blurton Jones et al. 1989). | +| **Children stay near home.** A person whose `rangeByAge` is limited chooses no work, drink, exploring or approach whose target lies further than that from their hearth in a straight line, except under severe thirst. The range grows from 300 m at 3 to 3 km at 11 and is unlimited from 12. | Forager children forage close to camp, further as they grow (Blurton Jones et al. 1989; Hawkes et al. 1995). It is the child's own threshold, like a trait rule, not an outcome; they still decide what to do within it. | +| **Babies eat milk.** Under `solidFoodMilliYears` (500) a person eats and drinks only milk; from then on they eat any food and drink at banks too. | Infants cannot live on solid food before about six months. | +| **Nursing.** A person under `weaningMilliYears` (3,000), hungry or thirsty, whose mother is living and within talking distance, feeds: they take from the mother's body the kcal that brings them to their satiation, at most `feedKcal` (400), with `milkMlPerThousandKcal` (1,500) ml of water each thousand kcal, as one discrete transfer at that minute, waking the mother to pay her body first. The child's wake-up, finding it wants a feed, wakes the mother in the same minute and does nothing else; the mother's wake-up settles her body and feeds each child of hers who wants it (a `fed` event, and the child's `lastFedMinute`), then wakes them. A child's hunger and thirst flags are set once, after the feed. | Nursing moves energy and water from one body to another, both of them real ledgers, and nothing is created. Babies feed on demand, many times a day, which the cap gives. Weaning at three is the mother's practice among foragers (Marlowe 2005; Konner 2005); it is her rule, not the child's switch. A mother whose milk costs her more than she eats grows hungry and forages more, which is the mechanism behind lactation's cost (Butte and King 2005). | +| **Carrying.** A person whose walking factor is below `carryBelowPerMille` (450, about age three) does not walk on their own; when their **carrier** starts a walk within talking distance of them, they are carried: their task is the same route, ending with the carrier's, and their weight counts as load for the carrier's speed but not against the room in the carrier's load of wood or nuts, which is fixed when the work begins. Their carrier is their mother if living, else their father, else the living kin of highest relatedness, ties by older then lower id, whose load capacity holds them and who can walk. | A child who cannot keep up goes where their carrier goes, as forager babies do on their mother's back. Kin carry a child whose mother has died, older siblings included, as allomothers do. A carrier is defined by the child's family, never by the engine choosing a guardian. | +| **Children eat and ask as anyone does.** A hungry child eats what they carry, forages within their range, or asks: partner and kin first, then by ties. | Demand sharing is how forager children get most of their food from others (Peterson 1993); kin goodwill, below, makes a parent give to their child. | +| **Provisioning.** A person with children of their own who share their hearth carries home food for them: a **family food need** while what they carry is below `sum over those children of dayNeed(child) · (1,000 − workByAge(child)) / 1,000`, where `dayNeed` is `storeKcalPerDay` for the child's grown weight and metabolism. It ranks with food need, after the person's own hunger. Children get the food by asking. | Forager parents bring food home for children who cannot yet get enough themselves, and less as the children grow and forage more (Kaplan et al. 2000; Hawkes et al. 1995). The parent knows their children and their ages (rule 1), and the amount falls smoothly with the child's work, not at an age. | +| **Families plan for winter.** A parent's store target adds the same children's day needs, babies on milk included, and a pregnant woman's her `pregnancyKcalPerDay`: the family's day is added to the person's own weight-scaled day, `floor(daysToBerries · f_C · (storeKcalPerDay · weightKg + family · referenceBodyKg) / (referenceBodyKg · 1,000))`. | Conscientiousness's job is planning ahead; a parent planning for the winter plans for the children too. | +| **Pairing.** An unpaired woman and an unpaired man, both at least `pairFromYears` (15), not kin, pair when they meet within talking distance and each is the other's **most familiar eligible person**, by their own ties, with familiarity at least `pairFamiliarityMinutes` (10,080) on both sides, ties by lowest id. A pair lasts until one of them dies; the survivor may pair again. | The roadmap asks for pairing from relationships. Time together is already the measure of closeness, and choosing the closest is what each person can know (rule 1). Fifteen is puberty, a fact of the body, not a change in who is a person. A week of minutes is about two weeks of evenings by a shared fire. Monogamy is the norm among foragers (Marlowe 2004). | +| **Pairs keep their own hearths.** A pair sleeps together only if their hearths lie within talking distance, as group members' huts round a shared fire do. | Moving a hearth would move a store and a hut, which no rule can do yet. Where couples live is a question for later. | +| **Kin.** A person knows their mother and father, and through them their kin: relatedness 1/2 for parent and child and full siblings; 1/4 for half siblings, grandparents and grandchildren, aunts, uncles, nieces and nephews; 1/8 for first cousins; else none. Kin is derived from the parents recorded at birth, never stored as a tie. Founders have no kin. | Kinship as a relationship type, as the roadmap asks, from the one fact a birth records. People know their families (rule 1). | +| **Kin never pair.** Anyone with relatedness 1/8 or more is not eligible. | Incest avoidance is near universal; here it is a rule because nothing yet models how it arises. | +| **Kin give more readily.** When asked, a person gives when `familiarity · trustPerMille · agreeablenessGive / 1,000,000 + kinGoodwillMinutes · r / 1,000 ≥ credit + grievance`, with `r` the relatedness in per mille and a partner counted as 500‰. A person asks kin and their partner even with no familiarity, and asks them first, closest relatedness first, then by the tie order. | Food among foragers flows more to kin (Gurven 2004; Allen-Arave et al. 2008). The same rule as before with kin weighted. `kinGoodwillMinutes` (1,440) means a parent or partner covers a debt of 12 hours' work. Judgement. | +| **Conception.** At each midnight a paired woman aged 15 to `lastBirthYears` (45) may conceive if she is not pregnant, has no child of her own younger than `amenorrheaMilliYears` (2,000) who was born or fed from her in the last day, her energy reserve is at least `fecundReserveKcal` (56,000), and she and her partner both slept the night within talking distance. She conceives with chance `min(1,000,000, floor(fecundPerMillePerCycle · 12,000 / daysPerYear))` per million, from `conceive:`. | Fecundability is about 0.2 a cycle (Wood 1994). Nursing suppresses ovulation, and for longer in a woman short of energy (Ellison 2001; Valeggia and Ellison 2009): the two years apply only while a young child is actually feeding from her, and the reserve threshold is the energy. A mother whose baby died can conceive again. Birth spacing emerges at about three to four years. | +| **Pregnancy** lasts `pregnancyMilliYears` (750), at least a day, and adds `floor(pregnancyKcalPerDay / 24)` an hour (12 kcal, from 300 a day) to every one of the mother's rates. The child is born at the midnight it comes to term, at the mother's position, with her as carrier. A woman who dies while pregnant loses the child with her. | Nine months and about 80,000 kcal in all (Butte and King 2005), day-anchored like eating. Miscarriage, stillbirth and death in childbirth are within the drawn deaths below. | +| **A child at birth** has a new id, the mother and her partner recorded as mother and father, a sex drawn half and half, and adult body scores, traits and talents drawn as founders' are, from `birth::`. They start with the reserve and water of a newborn (the full reserve scaled by their grown weight), no experience, the idea and knowledge of the flaked axe, no memory beyond their birthplace, their mother's hearth and her group. The newborn's starting reserve is taken from the mother's body. | Each person's body and personality are drawn once and fixed for life. Drawing them like founders' keeps one rule; resemblance to parents is a question for later. A newborn's reserve comes from the mother, so nothing is created; it is a few thousand kcal. Children learn the world as anyone does, by seeing it, carried at first. | +| **Death of illness, accident or age.** At each midnight every living person dies with chance `deathPerMillionByAge[a] / daysPerYear` per million, `a` their age in whole years, capped at 110, drawn from `fate:`. The table holds, for each year of age, the mean yearly hazard of the !Kung Siler fit over that year, in per million, computed once offline and stored as integers. | Illness is not modelled, but without it nobody would die young except of hunger and nobody would die of age, and the valley's numbers would be a lie (realism rule 5). Randomness here stands for what is not modelled (rule 20): one declared hazard from a published fit, not a rate tuned to the valley. The fit counts all causes, hunger among them, so the valley's deaths will exceed it; that is recorded, not corrected. | +| **No rule for orphans.** A child whose mother dies keeps living by the same rules: a baby under six months has nothing it can eat and dies of hunger unless something else changes; an older one eats what kin give when asked and is carried by kin. | What happens to orphans among foragers (Hill and Hurtado 1996; Sear and Mace 2008) should follow from nursing, carrying and kin, not from a rule that kills or rescues them. | +| **Lifecycle happens at midnight**, in the `world` phase after the day's land, spoilage, skills and ties, in this order: growth, deaths drawn, births due, conceptions. A `conceived` event is recorded only for a woman who conceives. | One fixed order makes every birth and death replayable. Growth comes first so that every body used after midnight, by the world and by people woken at that minute, is the day's body. | + +### Seasons, harvests and stores (Life 18, unchanged) | Decision | Reason | | --- | --- | @@ -145,7 +200,7 @@ This step changes the land's food, the calendar, how people expect food at place | Decision | Reason | | --- | --- | | Each founder is a woman or a man, drawn half and half. | Height, weight and strength are bimodal by sex; drawing one distribution for everyone would give a population with no real counterpart. Sex is needed again for pairing at step 19. Until then it does nothing but set which body distribution is drawn. | -| Bodies are adults and fixed for life. | Nobody grows or ages before step 19. | +| Adult bodies are fixed for life. (Life 19: bodies grow to the adult body by 18; under Generations.) | An old body's loss of strength is a question for later. | | Height, weight and grip are drawn together from one correlated normal draw per person, clamped to three standard deviations. | The roadmap asks for real correlations; three spreads cover 99.7% of real people and keep integer rates safe. | | Normal draws are made in integers: the sum of twelve uniform draws from 0 to 999, less 5,994, is a standard normal in thousandths. Correlations come from a Cholesky factor computed in integers with an integer square root. | `Math.log`, `Math.cos` and the like may differ between JavaScript engines; integer arithmetic replays bit for bit everywhere. The sum of twelve uniforms has the normal's mean and spread; its tails stop at six spreads, beyond the clamp. | | Height has no rule of its own yet. | It is drawn because weight and strength follow it; it is shown, and it is there for conflict (reach) and for the observer's figures. | @@ -239,6 +294,8 @@ A person's record holds the task, its start minute, its route (for a walk) and t | --- | --- | | Losses and crops on thickets, fish growth, deadfall and log regrowth, spoilage of carried and stored lots, hut weathering, experience and skills, ties fading | Daily at midnight, `world` phase | | The year's crop classes | At minute 0 and the first midnight of each calendar year, `world` phase, before the day's losses and crops | +| Growth of bodies under 18, deaths drawn, births, conceptions | Daily at midnight, `world` phase, after the day's land, spoilage, skills and ties, in that order | +| Pairing, feeding, carrying | At the person's wake-ups: pairing when meeting, feeding at eating, carrying when a carrier starts a walk | | Time together, asking and giving | At the person's wake-ups | | An attempt's success, inventing | When an axe is begun; when a stint of axe work ends | | Group and personal fires | Hourly at night, `world` phase | @@ -246,26 +303,32 @@ A person's record holds the task, its start minute, its route (for a walk) and t | Conservation checks | At every event that moves food, wood, logs, stones, axes or water | | Full invariants | Daily at midnight, and at the end of every `stepValley` call in checked runs | -Bodies, traits and talents are drawn once, when the founders are made, and never change. +Bodies, traits and talents are drawn once, when a founder is made or a child is born, and never change. ### Days per year -`daysPerYear` is a run setting from 8 to 365, default 90. Day-anchored, unchanged by the setting: sleep, the hour of rest, picking, gathering, chopping, drinking and making rates, spoilage, firewood per night, hut weathering days, the 24-hour memory of heard terms, the one leisure walk a day, the daily practice budget, every trait rule (margins in minutes, distances, shares), and, from this step, **the food the land grows**: thicket crops and fish growth per 365 days, losses to animals, and the store's daily need. Year-anchored, scaled by the setting: the season windows and the founders' arrival, as fractions of the year; wood deadfall per year and tree regrowth in years; experience gained per second worked and its fading; the chance of an idea per hour of axe work; and the displayed calendar. A year-anchored duration is never shorter than one day. +`daysPerYear` is a run setting from 8 to 365, default 90. Day-anchored, unchanged by the setting: sleep, the hour of rest, picking, gathering, chopping, drinking and making rates, spoilage, firewood per night, hut weathering days, the 24-hour memory of heard terms, the one leisure walk a day, the daily practice budget, every trait rule (margins in minutes, distances, shares), since Life 18 the food the land grows (thicket crops and fish growth per 365 days, losses to animals, and the store's daily need), and from this step **what bodies cost and can do at each size**: a growing body's rates, reserve, load, walking speed and work by its grown size, a pregnancy's kcal a day, and a feed. Year-anchored, scaled by the setting: the season windows and the founders' arrival, as fractions of the year; wood deadfall per year and tree regrowth in years; experience gained per second worked and its fading, a child's included; the chance of an idea per hour of axe work; the displayed calendar; and, from this step, **every age**: founders' ages, pregnancy, the two years of nursing before a woman can conceive again, solid food, weaning, growth, the range from home, the fertile years and pairing age, the chance of conceiving per twelfth of a year, and the yearly chance of death by age. A year-anchored duration is never shorter than one day. What turns strange at short years: at 90 days a year each hour worked counts about four hours of experience, so a novice reaches the base rate in a technique after about 75 hours at the hearth; at 8 days a year each hour counts about 46, and a novice becomes competent in a few days. Founders' fifteen years of experience are counted in full-length years whatever the setting, so they start the same. Seasons shrink with the year but a body's reserve does not: at 90 days the lean months last about 67 days, and a full reserve of about 28 days of food bridges more than a third of them, where at 365 days it bridges a tenth of the 275-day lean season. Stores therefore matter less at short years than in life, and the measurements below are taken at the default year and noted as such. +Generations compress the same way. A child eats by the day and grows by the year, so raising a child costs the same share of a parent's working life at any setting, but the body's reserve, which is day-anchored, bridges a larger share of a pregnancy, a nursing and a lean season at short years. At 90 days a year a pregnancy lasts 67 simulated days, nursing before the next conception 180, and a child reaches 15 after 1,350 simulated days, about 70 minutes of computing at Life 18's speed. At 8 days a year a pregnancy lasts 6 days, a woman well fed and paired conceives on about three nights in ten, and a child reaches 15 after 120 days. A day's chance of death in the first year of life is about 0.26% at 90 days a year and 2.9% at 8, the same hazard per year. + ### Streams -Every draw comes from a stream derived from the seed and a name: the terrain and layout streams as in Life 11; the founder stream for starts, unchanged; `axe::` for an axe's quality; the body, traits and talent streams, unchanged; the attempt and invent streams of Life 17, unchanged; and from this step one new name, with its own salt: +Every draw comes from a stream derived from the seed and a name: the terrain and layout streams as in Life 11; the founder stream for starts, unchanged; `axe::` for an axe's quality; the body, traits and talent streams, unchanged; the attempt and invent streams of Life 17 and the harvest stream of Life 18, unchanged; and from this step four new names, each with its own salt: +- **`age`** (new): per founder in id order, `randomInt(18)` for whole years above 18, then `randomInt(daysPerYear)` for the day within the year; a founder's birth minute is minus `(years · daysPerYear + day) · 1,440`; +- **`conceive:`** (new): at midnight, one `randomInt(1,000,000)` for each woman able to conceive that night, in id order, against her chance; +- **`birth::`** (new): for a child born, `randomInt(2)` for sex, then three standard normals for the body, five for the traits and three for the talents, in the founders' orders; +- **`fate:`** (new): at midnight, one `randomInt(1,000,000 · daysPerYear)` for each living person, of every age, in id order; below their age's hazard per million a year, they die; - **body**: per founder, one draw `randomInt(2)` for sex (0 woman, 1 man), then three standard normals for height, weight and grip; - **traits**: per founder, five standard normals for openness, conscientiousness, extraversion, agreeableness and neuroticism, in that order; - **talent**: per founder in id order, three standard normals for foraging, wood and craft talent, then `randomInt(1,000)` for knowing the tranchet axe and `randomInt(1,000)` for knowing the ground axe, known when below the founder share; - **`attempt::`**: when an axe is begun, `randomInt(1,000)` against its success chance; for a failure, `randomInt(needed)` for the second of work at which it breaks; - **`invent::`**: when a stint of axe work ends, one `randomInt(1,000,000)` per technique the person could think of, in technique order; -- **`harvest:`** (new): two draws `randomInt(1,000)`, for berries then hazel; a draw below `poorYearPerMille` is a poor year, one at or above `1,000 − goodYearPerMille` a good year, any other a normal year. +- **`harvest:`** (Life 18): two draws `randomInt(1,000)`, for berries then hazel; a draw below `poorYearPerMille` is a poor year, one at or above `1,000 − goodYearPerMille` a good year, any other a normal year. -Nothing is drawn per minute. The mesh, ways, plans, ties, asking, giving, practice, losses and stores draw nothing. +Nothing is drawn per minute. The mesh, ways, plans, ties, asking, giving, practice, losses, stores, pairing, kin and growing up draw nothing. ## Bodies and personality @@ -329,7 +392,7 @@ The five scores are drawn as real ones spread: on the three fingerprint seeds' 1 ## Knowledge and perception -A person remembers: places, with kind, position, the stock last seen and the minute it was seen; bank points; the triangles of the mesh it has seen; the ways it has walked, below; the point of its last survey; people it has met, with the minute; its ties, below; its own experience, skills, talents, and the ideas and techniques it knows, under Skills and techniques; heard exchange terms for 24 hours; its group, flag, hearth and hut. A person knows their own body and traits, and nobody else's. +A person remembers: places, with kind, position, the stock last seen and the minute it was seen; bank points; the triangles of the mesh it has seen; the ways it has walked, below; the point of its last survey; people it has met, with the minute; its ties, below; its own experience, skills, talents, and the ideas and techniques it knows, under Skills and techniques; heard exchange terms for 24 hours; its group, flag, hearth and hut. A person knows their own body and traits, and nobody else's. From this step a person knows their own age, partner and kin, and the ages of their kin; nobody knows anyone else's pregnancy, reserve or fertility. At every wake-up a person observes in two parts: @@ -344,11 +407,11 @@ A person's ties are a map from another person's id to a tie: `familiarity`, `cre **Time together.** At step 3 of a wake-up, after meeting, the waker `a`, if their ended task was not a walk, takes each living person `b` within talking distance whose current task is not a walk, in id order. The minutes together are `m − max(a.taskStart, b.taskStart, countedMinute)`, where `a.taskStart` is the start of the task just ended, `b.taskStart` the start of `b`'s current task, and `countedMinute` the later of the values in `a`'s tie with `b` and `b`'s tie with `a` (minus infinity where there is none). If positive, the minutes are added to familiarity in both `a`'s tie with `b` and `b`'s tie with `a`, created if absent, and `countedMinute` is set to `m` in both. A founder's first wake-up counts nothing. -**Asking.** At step 3, after exchange, a person who is hungry and carries no food, or for whom wood matters and who holds less than one night's firewood, asks. For food they ask the living people within talking distance who carry food; for wood, those holding any wood. Of these, only people with whom the asker has a tie of familiarity above zero and whose `askedDay` is not today are asked, in order of `familiarity − grievance` in the asker's tie, highest first, ties by id. Asking sets `askedDay`; everyone asked was met at this wake-up and so is already woken in the same minute. A person in need of both asks for food first. They stop asking for a thing once given some of it, and a person given food eats it at once, the meal counted with their task's eating. +**Asking.** At step 3, after exchange, a person who is hungry and carries no food, or for whom wood matters and who holds less than one night's firewood, asks. For food they ask the living people within talking distance who carry food; for wood, those holding any wood. Of these, only their partner, their kin, and people with whom the asker has a tie of familiarity above zero are asked, and only those whose `askedDay` is not today, in order of relatedness, the partner counting 500, highest first, then of `familiarity − grievance` in the asker's tie, highest first, ties by id. (Life 19: partner and kin added; a tie is created for them when asked if none is held.) Asking sets `askedDay`; everyone asked was met at this wake-up and so is already woken in the same minute. A person in need of both asks for food first. They stop asking for a thing once given some of it, and a person given food eats it at once, the meal counted with their task's eating. **Giving.** The person asked, `g`, with their own tie to the asker `r` (all three values zero if `g` holds none), gives if -`familiarity · trustPerMille · agreeablenessGive ≥ (credit + grievance) · 1,000,000`, compared exactly in integers, +`familiarity · trustPerMille · agreeablenessGive + kinGoodwillMinutes · rel · 1,000 ≥ (credit + grievance) · 1,000,000`, compared exactly in integers, where `rel` is the giver's relatedness to the asker in per mille, 500 for a partner, else 0 (Life 19), and has something to spare, which is checked first: @@ -436,9 +499,37 @@ Making an axe by `t` takes `ceil(3,600 · hours_t · 100 / P_t)` seconds of work ## People -Each person is one object: sex, height, weight, grip, the five trait scores and their derived quantities; three talents; position, task record, energy and water with their remainders, carried food lots, carried wood, carried log, stones, axe with its technique, hut, group, experience with its remainders, the ideas and techniques known, minutes practised today, the seconds worked today, skills, rates and proficiencies, the **store**'s food lots, and alive. Its memories are typed arrays, bitsets and maps inside it, never read by the checker as truth. +Each person is one object: sex, height, weight, grip, the five trait scores and their derived quantities; three talents; position, task record, energy and water with their remainders, carried food lots, carried wood, carried log, stones, axe with its technique, hut, group, experience with its remainders, the ideas and techniques known, minutes practised today, the seconds worked today, skills, rates and proficiencies, the store's food lots, and alive; from this step its **birth minute**, its **mother** and **father** (or none, for founders), its **partner**, the day a pregnancy began, the minute it last fed from its mother, and its **grown body** and the quantities derived from it, recomputed at midnight while it grows. Its memories are typed arrays, bitsets and maps inside it, never read by the checker as truth. A newborn has every field an adult has. + +People are numbered in the order they join the valley, founders first, then each child at birth. Every per-person array and index in the state grows when a child is born; nobody's number is reused. + +Founders are `founders` people, 40 by default, placed from their own streams within the central `startAreaCm` (800 m) on walkable grass or dirt of the main land, with Life 11's spacing when `scattered`, or at the nearest valid camp when together. They arrive on the first day of the berry season with fifteen years of foraging and wood experience and the axe techniques they know, as under Skills and techniques. Everyone starts with 66,000 kcal, no water deficit, nothing carried, an empty store and no ties: they are strangers. Each founder's age is drawn from 18 to 35; founders have no parents, no kin and no partner. + +## Generations + +**Ages.** A person's age is `floor(1,000 · (m − birth) / (1,440 · daysPerYear))` thousandths of a year. Every age table below is indexed by whole years and interpolated linearly within the year by the thousandths, rounded down; ages past the table's end take its last entry. + +**The growing body.** For a person of age `a`, their grown height, weight and grip are their adult values times `growthByAge` per mille for each. From the grown body: the rate table is the configured rates times `grownWeightKg · metabolismByAge(a) / (referenceBodyKg · 1,000)`; water's base loss is `waterBaseMlPerDay` times the person's grown weight and metabolism over their own adult weight, so an adult's is unchanged; the energy reserve's start, cap and thresholds are the configured values times `weightGrowth(a) / 1,000`; thirst thresholds follow the grown weight; load capacity is the adult formula on the grown grip, times `weightGrowth(a) / 1,000`; flat walking speed is times `walkByAge(a) / 1,000`; every work rate is times `workByAge(a) / 1,000`. The age used is the age at the last midnight, or at birth if later. For a person under 18 these are recomputed at each midnight and take effect as a rate change in their current task at that minute, rescheduling their next body threshold. + +**What a body can do.** Under `solidFoodMilliYears` a person eats only by feeding and drinks only milk. A person whose walking factor is below `carryBelowPerMille` does not choose walks; every other choice is open to them. A person whose `rangeByAge` is limited does not choose a target further than it from their hearth, except a bank under severe thirst. + +**Feeding.** At step 2 of a wake-up, a person under `weaningMilliYears` who is hungry (by their hunger rule applied to their energy now) or thirsty, whose mother is living and within talking distance, feeds: the kcal moved is `min(feedKcal, the person's satiation less their energy, the mother's energy)`, with `floor(kcal · milkMlPerThousandKcal / 1,000)` ml taken off the person's water deficit, down to zero, and added to the mother's. The child's wake-up only addresses the mother in the same minute and ends; the mother's wake-up pays her body to that minute, then moves the kcal and water to each child of hers who wants a feed, records a `fed` event and the child's `lastFedMinute`, reschedules her next threshold and addresses the child, whose hunger and thirst flags are then set once. A feed draws nothing; a mother mid-task does not feed. + +**Carrying.** When a person starts a walk, each person whose carrier they are, who cannot walk, and who stands within talking distance and is not mid-feed, is carried, in id order while the carrier's load capacity holds them: their task becomes `carried`, on the same route and timings, ending with the carrier's walk, and they are addressed at its end. Their grown weight counts as load for the carrier's speed and is recorded on the carrier's walk as `childKg`; it does not reduce the room in a load of wood or nuts begun later. A carried person is drawn and perceived at the carrier's position and observes at their own wake-ups as anyone does. A person's carrier is their mother if living, else their father if living, else the living kin of highest relatedness, ties by greater age then lower id, who can walk and whose free load capacity holds them. -Founders are `founders` people, 40 by default, placed from their own streams within the central `startAreaCm` (800 m) on walkable grass or dirt of the main land, with Life 11's spacing when `scattered`, or at the nearest valid camp when together. They arrive on the first day of the berry season with fifteen years of foraging and wood experience and the axe techniques they know, as under Skills and techniques. Everyone starts with 66,000 kcal, no water deficit, nothing carried, an empty store and no ties: they are strangers. +**Provisioning.** A person's **children at home** are their living children who share their hearth. Their **family food target** is `sum over children at home of dayNeed(child) · (1,000 − workByAge(child)) / 1,000`, with `dayNeed = floor(storeKcalPerDay · grownWeightKg · metabolismByAge / (referenceBodyKg · 1,000))`. A person has a **family food need** while the food they carry, beyond what they would eat to reach their own satiation, is below that target. Gathering for it ends at the target, a full load or the return before dusk. Their store target adds the same day needs, babies on milk included, and a pregnant woman's `pregnancyKcalPerDay`, each at the reference body: `floor(daysToBerries · f_C · (storeKcalPerDay · weightKg + family · referenceBodyKg) / (referenceBodyKg · 1,000))`. + +**Shelter and fire for a family.** A person is sheltered by a whole hut only at their hearth: their own, or a living parent's at the same hearth. A person with no group is warmed by their own fire or by the fire of a living parent with no group at the same hearth, and a child who lives with a parent asks nobody for wood. The midnight warmth pass skips a sleeper whose body changed at that minute: they are re-addressed and set their own warmth. + +**Pairing.** At step 4 of a wake-up, after time together is counted, the waker `a` pairs with a person `b` within talking distance if both are living, at least `pairFromYears`, unpaired, of opposite sexes, not kin, and each is the other's most familiar eligible person in their own ties, with familiarity at least `pairFamiliarityMinutes`, ties by lowest id. Both record the other as partner. A pair ends when either dies. + +**Kin.** Relatedness `r` in per mille follows from the recorded parents: 500 for parent and child and for full siblings; 250 for half siblings, grandparent and grandchild, and aunt or uncle and niece or nephew by a full sibling; 125 for first cousins and an aunt or uncle by a half sibling; else 0. Two people are kin when `r` ≥ 125. A partner is not kin but counts as 500 in giving and asking. + +**Conception.** At midnight, a living woman aged 15 to `lastBirthYears`, paired with a living partner, not pregnant, with no child of hers younger than `amenorrheaMilliYears` who was born or fed from her in the last 1,440 minutes, with energy at least her grown `fecundReserveKcal`, who slept the night ending at that midnight within talking distance of her partner, both asleep, draws once against `min(1,000,000, floor(fecundPerMillePerCycle · 12,000 / daysPerYear))` per million. Only a draw below the chance records a `conceived` event. + +**Birth.** A pregnancy that began on day `c` comes to term at the midnight of day `c + max(1, floor(pregnancyMilliYears · daysPerYear / 1,000))`. The child is born at the mother's position: a new person with the mother as mother, her partner at conception as father, drawn as under Streams; their energy is the configured start reserve times `weightGrowth(0) / 1,000`, taken from the mother's energy, and their water deficit zero; their hearth is the mother's; they are a member of her group, if any; they know only what they see at their first wake-up, which is in the same minute. + +**Deaths drawn.** At midnight every living person, in id order, draws once from `fate:`, and dies of illness, accident or age, recorded as `illness`, when the draw is below `deathPerMillionByAge[min(age in years, 110)]`. ## Tasks @@ -454,22 +545,23 @@ Founders are `founders` people, 40 by default, placed from their own streams wit | Make an axe | The technique's hours scaled by the maker's proficiency, pausable; a failed attempt ends at its break; a practice stint ends when the day's practice budget is spent | the person's making rate | | Rest | One hour, or an interruption | the person's resting rate | | Sleep | Dawn, or severe thirst | by hut and fire, as Life 11, scaled by weight | +| Carried (new) | The carrier's walk ends | the person's resting rate | -Gathering nuts for the store produces at the person's nut rate, as gathering to eat does. Eating from the store moves `storeKcalPerHour` an hour from the store's oldest lots into the person's carried lots, which are eaten at the next wake-up. Water loss is `waterBaseMlPerDay/1,440` a minute plus `waterExtraMlPerKcal` per kcal above the person's resting rate, with Life 11's exact remainders. Eating happens at wake-ups, oldest lots first, up to reserve capacity. +Gathering nuts for the store produces at the person's nut rate, as gathering to eat does. Eating from the store moves `storeKcalPerHour` an hour from the store's oldest lots into the person's carried lots, which are eaten at the next wake-up. Water loss is `waterBaseMlPerDay/1,440` a minute plus `waterExtraMlPerKcal` per kcal above the person's resting rate, with Life 11's exact remainders. Eating happens at wake-ups, oldest lots first, up to reserve capacity. Every task's rates are the person's grown body's, with a pregnancy's added, under Generations. A person sleeps warm in a whole hut standing at their hearth, their own or a kin's who shares the hearth. ## A wake-up 1. Pay the body for the minutes since the last wake-up, at the ended task's rates for this person; credit what the task produced and the seconds worked; record the task's events. A finished axe draws its quality; a broken one loses its stone; either may give an idea. If a fatal threshold was crossed, record the death at that minute and stop. -2. Spoil carried lots past their life; eat oldest first up to reserve capacity. +2. Spoil carried lots past their life; a child under weaning age feeds from their mother if hungry or thirsty and she is within talking distance; a person past solid-food age eats carried lots oldest first up to reserve capacity. 3. At the hearth, put every carried nut lot into the store, recording it. -4. Observe: survey the still landscape if the person has moved far enough, and always what changes. Meet people within talking distance: count time together, found or join a group, hear terms, exchange wood for food at the agreeableness price, ask for food or wood still needed, request or promise an axe, deliver hut logs, contribute to the group's fire. +4. Observe: survey the still landscape if the person has moved far enough, and always what changes. Meet people within talking distance: count time together, pair, found or join a group, hear terms, exchange wood for food at the agreeableness price, ask for food or wood still needed, request or promise an axe, deliver hut logs, contribute to the group's fire. 5. Update needs: hunger with the person's own satiation level, thirst with the person's own thresholds, wood need with the person's own stock target, store need with the person's own store target. 6. Choose the next task by the priorities below, using only memory; a new axe chooses its technique and draws whether the attempt will work. 7. Start it: if it is a walk, take a remembered way or plan one, and remember a new way; schedule its end and its first body threshold; record the task start with how the walk was found. ## Priorities -Choose the first applicable rule. "Before dusk" means before dusk less the person's margin. "No need" means not hungry, not short of wood and no store need. +Choose the first applicable rule. "Before dusk" means before dusk less the person's margin. "No need" means not hungry, not short of wood, no family food need and no store need. From Life 19, a person who cannot walk chooses only among drinking where they stand, sleeping and resting, and is carried when their carrier walks; a person whose range is limited treats any target beyond it as unknown, except a bank under severe thirst. | Priority | Condition | Action | | --- | --- | --- | @@ -482,7 +574,7 @@ Choose the first applicable rule. "Before dusk" means before dusk less the perso | 7 | No need, without a group | Approach the nearest seen person, or else the nearest known flag, within the person's company radius; otherwise go on to priority 9. | | 8 | A member with no need | Finish an axe; otherwise cut hut logs if equipped; otherwise buy a worthwhile known axe or make one by the known technique that costs least work per log, fetching a stone and wood first. | | 9 | No need | Explore the nearest frontier if it lies within the person's exploring range of home. Otherwise, at home: practise while today's practice budget lasts (under Skills and techniques); then, once a day, walk out along a remembered way from home (below); else rest. Away from home: walk home to rest. | -| 10 | Food, wood or store needed | Hungry or short of wood: choose productive gathering, the store (for food) or an advantageous local exchange; search if no remembered source is worth working; otherwise rest with the reason recorded. Otherwise, with a store need: gather nuts for the store at the best expected hazel place; if no hazel place is worth working, the store need does not hold the person, and rules 7 to 9 decide. | +| 10 | Food, wood or store needed | Hungry or short of wood: choose productive gathering, the store (for food) or an advantageous local exchange; search if no remembered source is worth working; otherwise rest with the reason recorded. Otherwise, with a family food need (Life 19): gather food to carry home by the same choice, and go home when the target is carried. Otherwise, with a store need: gather nuts for the store at the best expected hazel place; if no hazel place is worth working, the store need does not hold the person, and rules 7 to 9 decide. | Food choice scores one hour's expected food at a remembered place as `3,600 * rate / (estimatedWalkSeconds + 3,600)`, from the place's expected stock, under Knowledge and perception. The person's store is scored the same way, at the walk home and `storeKcalPerHour`, if it holds food and the food is to eat, not to pay with. A store load is chosen by the same score at the person's nut rate among hazel places expected to hold nuts. Work must leave time to return home before dusk less the margin, except drinking under severe thirst. @@ -502,7 +594,34 @@ Run settings are unchanged: | `founders` | 40 | 1 to 1,000; the page allows 1 to 100 | | `scattered` | true | | -New and changed parameters: +Parameters added by Life 19: + +| Parameter | Default | Basis | +| --- | --- | --- | +| `founderAgeYears` | 18 to 35 | Young adults set out to a new valley. Judgement. Year-anchored. | +| `growthByAge` | per mille of the adult value at ages 0 to 18. Weight: 60, 170, 210, 240, 270, 300, 330, 370, 410, 450, 490, 540, 600, 670, 740, 810, 880, 940, 1,000. Height: 320, 470, 540, 600, 650, 690, 730, 760, 790, 820, 840, 870, 900, 930, 960, 980, 990, 1,000, 1,000. Grip: 30, 60, 90, 120, 150, 180, 220, 260, 300, 340, 390, 440, 500, 580, 660, 750, 840, 920, 1,000 | Forager growth: about 3 kg at birth, 15 at five, 25 at ten for a 52 kg woman (Walker et al. 2006); strength grows late, through adolescence. Year-anchored. | +| `metabolismByAge` | per mille at ages 0 to 18: 2,900, 2,200, 2,100, 2,050, 2,000, 2,000, 1,950, 1,900, 1,800, 1,750, 1,700, 1,600, 1,550, 1,450, 1,350, 1,250, 1,150, 1,050, 1,000 | Children's energy per kilogram, so that an average child's day is about 600 kcal in the first year, 800 at one, 1,300 at five and 2,000 at twelve (FAO/WHO/UNU 2004). | +| `walkByAge` | per mille at ages 0 to 15: 0, 100, 300, 450, 550, 620, 680, 740, 790, 840, 880, 910, 940, 960, 980, 1,000 | Children walk from about one, slowly, and keep up with adults in their early teens. Judgement. | +| `workByAge` | per mille at ages 0 to 18: 0, 0, 0, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 700, 800, 870, 940, 1,000 | Children's foraging returns, low and rising through the teens (Blurton Jones et al. 1989; Kaplan et al. 2000). Judgement. | +| `rangeByAge` | cm from the hearth at ages 3 to 11: 30,000, 40,000, 50,000, 70,000, 90,000, 120,000, 150,000, 200,000, 300,000; unlimited from 12 | Forager children forage near camp, further as they grow (Hawkes et al. 1995). Judgement. | +| `carryBelowPerMille` | 450 | A child walks on their own from about three. | +| `solidFoodMilliYears` | 500 | Infants eat solid food from about six months. Year-anchored. | +| `weaningMilliYears` | 3,000 | Weaning at about 2.5 to 3 years (Marlowe 2005; Konner 2005). Year-anchored. | +| `feedKcal`, `milkMlPerThousandKcal` | 400, 1,500 | Feeds many times a day; breast milk is about 0.67 kcal a ml. | +| `amenorrheaMilliYears` | 2,000 | Nursing suppresses ovulation for about two years among foragers; with pregnancy and the wait, births come three to four years apart (Howell 1979; Konner and Worthman 1980). Year-anchored. | +| `pairFromYears` | 15 | Puberty; first marriage for forager women at about 17 to 19 (Marlowe 2004). Year-anchored. | +| `lastBirthYears` | 45 | The end of a woman's fertile years. Year-anchored. | +| `fecundReserveKcal` | 56,000 | About a kilogram of fat below the hunger threshold: energy-dependent ovulation (Ellison 2001; Valeggia and Ellison 2009, direction). Judgement. | +| `fecundPerMillePerCycle` | 200 | Fecundability about 0.2 a cycle (Wood 1994), a cycle a twelfth of a year. | +| `pregnancyMilliYears` | 750 | Nine months. Year-anchored. | +| `pregnancyKcalPerDay` | 300 | About 80,000 kcal over a pregnancy (Butte and King 2005). Day-anchored. | +| `pairFamiliarityMinutes` | 10,080 | A week of minutes together. Judgement. | +| `kinGoodwillMinutes` | 1,440 | A parent, child, sibling or partner covers 12 hours' work of debt. Judgement. | +| `deathPerMillionByAge` | 111 integers for ages 0 to 110, the mean yearly hazard of the !Kung Siler fit over each year of age: 233,292 at 0, 99,845 at 1, 12,827 at 5, 11,092 at 15, 13,466 at 30, 26,169 at 50, 85,423 at 70, 361,817 at 90, 1,651,080 at 110 | Gurven and Kaplan (2007). Computed once offline from the fit's five parameters and stored as data; recorded in the calibration document. Year-anchored. | + +Validation rejects a `founderAgeYears` whose first age is below `pairFromYears` or whose range is empty; age tables of the wrong length, with entries outside 0…1,000 (metabolism 1…5,000), not ending at 1,000, or, for growth, walking and work, falling with age; a `rangeByAge` with a negative entry; a `carryBelowPerMille` outside 0…1,000; a `solidFoodMilliYears` above `weaningMilliYears`; an `amenorrheaMilliYears` below 0; a `lastBirthYears` not above `pairFromYears`; a `fecundReserveKcal` outside 0…`reserveMaxKcal`; a `fecundPerMillePerCycle` outside 0…1,000; a `pregnancyMilliYears` below 1; a `feedKcal` below 1; a negative `pregnancyKcalPerDay`, `milkMlPerThousandKcal`, `pairFamiliarityMinutes` or `kinGoodwillMinutes`; a `deathPerMillionByAge` without 111 non-negative entries; and any product that is unsafe: the heaviest body's rates at the highest metabolism, a family food target for a child a year from `pairFromYears` to `lastBirthYears`, and the fate draw's range at 365 days. + +Parameters added by Life 18, unchanged: | Parameter | Default | Basis | | --- | --- | --- | @@ -578,11 +697,11 @@ The base, effect, low and high of each trait rule are the values in the personal All other Life 14 defaults are retained. -Validation rejects an `arrivalPerMille` outside 0…999; a season whose start is not below its end or whose end is above 1,000; a berry or hazel yield below 0 or whose product with 365 days and the good factor is unsafe; a poor or good chance below 0, or summing above 1,000; year factors below 0, or not rising from poor to good; a loss per mille outside 0…1,000; a `nutShelfLifeHours` below 1; a `storeKcalPerDay` below 0 or whose product with 365 days, the heaviest body and the highest conscientiousness factor is unsafe; and a `storeKcalPerHour` below 1. As in Life 17, it rejects a `skillFloorPercent` below 1 or above `skillCeilingPercent`; a half-experience below 1 hour; a `transferPerMille` outside 0…1,000; an `experienceHalfYears` below 1; founder hours below 0 and founder shares outside 0…1,000; an `attemptHalfPercent` below 1; an `inventPerMillionPerHour` below 0 or whose lifetime product is unsafe; a `practiceMinutesPerDay` outside 0…1,440; `axeTechniques` that are not the three above in order with positive hours and logs, or whose needs do not name an earlier technique; and a `talentRule`, `opennessInventRule` or `conscientiousnessPracticeRule` that fails the rule checks below, or a `talentRule` with `low` below 1. It checks that work rates at the skill floor still exceed resting, as it did at the lowest skill and practice, and that no experience product of a lifetime (a hundred years of full days at the highest talent) is unsafe. As in Life 16, it rejects a `tiesRemembered` below 1 or above 10,000; a negative `trustPerMille` or `refusalGrievanceMinutes`; a `tieFadePerMillion` below 0 or above 1,000,000; and an `agreeablenessGiveRule` that fails the rule checks. As in Life 15, it rejects a `waysRemembered` below 1 or above 1,000; a `wayRecheckMinutes` below 1; a `resurveyCm` below 1 or above `sightRadiusCm`. As in Life 14, it rejects non-integers, non-finite values and unsafe products; settings outside their ranges; non-positive means and spreads; a mean less three spreads that is not positive; correlations outside −999…999; a correlation matrix that is not positive definite by the integer factorisation above; a rule with `low > high`, a negative `low`, or an `effect` whose product with 3,000 is unsafe; and every check that used `bodyKg` or `woodLoad` (such as a log still being movable, and work rates exceeding resting) evaluated at the extreme person: the lightest weight, the lowest load capacity, the highest scaled rates. It also keeps every Life 13 check on the mesh, places, thresholds and placement. +As in Life 18, validation rejects an `arrivalPerMille` outside 0…999; a season whose start is not below its end or whose end is above 1,000; a berry or hazel yield below 0 or whose product with 365 days and the good factor is unsafe; a poor or good chance below 0, or summing above 1,000; year factors below 0, or not rising from poor to good; a loss per mille outside 0…1,000; a `nutShelfLifeHours` below 1; a `storeKcalPerDay` below 0 or whose product with 365 days, the heaviest body and the highest conscientiousness factor is unsafe; and a `storeKcalPerHour` below 1. As in Life 17, it rejects a `skillFloorPercent` below 1 or above `skillCeilingPercent`; a half-experience below 1 hour; a `transferPerMille` outside 0…1,000; an `experienceHalfYears` below 1; founder hours below 0 and founder shares outside 0…1,000; an `attemptHalfPercent` below 1; an `inventPerMillionPerHour` below 0 or whose lifetime product is unsafe; a `practiceMinutesPerDay` outside 0…1,440; `axeTechniques` that are not the three above in order with positive hours and logs, or whose needs do not name an earlier technique; and a `talentRule`, `opennessInventRule` or `conscientiousnessPracticeRule` that fails the rule checks below, or a `talentRule` with `low` below 1. It checks that work rates at the skill floor still exceed resting, as it did at the lowest skill and practice, and that no experience product of a lifetime (a hundred years of full days at the highest talent) is unsafe. As in Life 16, it rejects a `tiesRemembered` below 1 or above 10,000; a negative `trustPerMille` or `refusalGrievanceMinutes`; a `tieFadePerMillion` below 0 or above 1,000,000; and an `agreeablenessGiveRule` that fails the rule checks. As in Life 15, it rejects a `waysRemembered` below 1 or above 1,000; a `wayRecheckMinutes` below 1; a `resurveyCm` below 1 or above `sightRadiusCm`. As in Life 14, it rejects non-integers, non-finite values and unsafe products; settings outside their ranges; non-positive means and spreads; a mean less three spreads that is not positive; correlations outside −999…999; a correlation matrix that is not positive definite by the integer factorisation above; a rule with `low > high`, a negative `low`, or an `effect` whose product with 3,000 is unsafe; and every check that used `bodyKg` or `woodLoad` (such as a log still being movable, and work rates exceeding resting) evaluated at the extreme person: the lightest weight, the lowest load capacity, the highest scaled rates. It also keeps every Life 13 check on the mesh, places, thresholds and placement. ## Invariants and ledger -The checker replays the events of each `stepValley` interval against the state in checked runs, validates immutable geography once, and runs the full set at every midnight. +The checker replays the events of each `stepValley` interval against the state in checked runs, validates immutable geography once, and runs the full set at every midnight. Before replaying an interval it adds the people born in it to the earlier state, and it rebuilds each person's body at any minute of the interval from their birth minute and the pregnancies and births recorded, so every rate, speed and threshold is checked against the body the person had when the task began. Feeds move energy and water from mother to child in the replay, and a birth takes the newborn's reserve from the mother. The replay follows each person's hearth through the interval, so a sleeper's hut status is checked at their own hearth. Severe thirst must interrupt work as before, except that a person who cannot walk on their own, or a baby on milk, may sleep. A child who has died no longer counts against their mother's conception. - **The mesh, once per layout:** as Life 13: winding, areas, neighbours, shores, shore heights, shoreline and heights within tolerance, places and banks on walkable ground. - **Bodies and traits:** every person's sex is 0 or 1; height, weight and grip lie within three spreads of their sex's mean; trait scores lie within −3,000…3,000; and the stored load capacity, rate table, thirst thresholds, company radius, exchange rule inputs, stock target, satiation level, dusk margin, exploring range and expected share equal those recomputed from the scores and the configuration. None changes during a run. @@ -603,21 +722,40 @@ The checker replays the events of each `stepValley` interval against the state i - **Seasons and crops:** each year's crop classes replay from the `harvest:` stream; at every midnight each berry and hazel place's stock equals the day before, less its loss by the rule, plus its window share of the year's crop, capped at capacity, less what people took that day; nothing grows outside a window; capacity equals the good-year crop. Fish growth replays at the 365-day rate. - **Stores:** every store's lots sum to what was put in, less what was taken and what spoiled, and every lot is younger than its shelf life; a lot enters a store only at its owner's hearth, from what they carried, and leaves only by its owner's eating from the store, or by spoiling; nobody else's event touches it. A dead person's store only spoils. - **Expectation and store need:** every choice of a seasonal place reads its expected stock by the calendar rule, and every store load and store need follow from the store target recomputed from weight, conscientiousness and the calendar. The checker recomputes the target at each store load; unit fixtures cover the choices. +- **Ages:** every birth minute is not in the future; founders' ages at arrival lie in `founderAgeYears` and replay from the `age` stream. +- **Growing bodies:** every person's stored grown body and derived quantities (rate table, reserve cap and thresholds, thirst thresholds, load capacity, walking and work factors) equal those recomputed from their adult body, their age at the last midnight and the tables; under 18 they change only at midnight, from 18 never. +- **Feeding and carrying:** every feed was by a person under weaning age from their living mother within talking distance, moved no more than `feedKcal`, the child's room or the mother's energy, and moved the stated water; both bodies conserve across it. Nobody under solid-food age ate a food lot or drank at a bank. Every carried person cannot walk, was within talking distance of their carrier when the walk began, is carried by the carrier the rule names, and follows the carrier's route and end exactly; the carrier's load counted their grown weight. Nobody who cannot walk started a walk of their own. +- **Range and provisioning:** no person with a limited range chose a target beyond it from their hearth, except a bank under severe thirst; every family food need and store target follows from the person's children at home and the tables. The checker recomputes the target at each family food task start; unit fixtures cover the choices. +- **Pairs:** partners are mutual, both living, both at least `pairFromYears`, of opposite sexes and not kin; a pairing was recorded at a wake-up where both stood within talking distance, both unpaired, each the other's most familiar eligible person, with familiarity at least `pairFamiliarityMinutes`; a partner of a dead person is cleared at the death. +- **Kin:** every person's mother and father, where recorded, were born before them, the mother a woman and the father a man paired with her at conception; the checker recomputes relatedness from the recorded parents for every gift, every pairing and every carrier. +- **Conception and birth:** every conception replays from `conceive:`, and only women eligible by every condition drew; every pregnancy ends at term in a birth, or at the mother's death; every child born replays its sex, body, traits and talents from `birth::`; a newborn's energy equals what left the mother's body; nobody is born to a woman who is not pregnant. +- **Deaths drawn:** every death recorded as `illness` replays from `fate:` against the table at the person's age, and every living person drew once at each midnight. +- **People:** ids run from 0 without gaps in the order people joined; every per-person array and index has an entry for every person, living or dead. - The queue holds at most one task end and one threshold per living person; no wake-up is in the past; dead people have none. - Every decision reads memory only. - Hunger and thirst hysteresis with the person's own levels, death minute and cause, and group dissolution below two living members follow the stated order. -Events are as Life 17. New events: `harvest` (minute, year, the berry and hazel classes and their factors); `stored` (minute, person, the lots put into the store and its total after); `fromStore` (minute, person, kcal moved from the store to the hand); `storeSpoiled` (minute, person, kcal). A store-load task start records the person's store target and store. The daily summary adds each person's store and store target, and world totals of the day's crops, losses, overflow and fish growth by kind, the food standing on the land by kind, and the food held in stores. It also adds the day's kcal eaten, by source (berries, fresh nuts, nuts from a store, fish), and the day's kcal burned, summed over the living. A lot moved from a store into a person's hand keeps a mark that it came from a store, through gifts too, so eating it counts as "nuts from a store"; the mark changes nothing else. Eaten and burned counts are bookkeeping only and never feed a decision. +Events are as Life 18. New events from Life 19: `paired` (minute, the two people); `conceived` (minute, mother, the draw); `born` (minute, child, mother, father, sex); `fed` (minute, child, mother, kcal, water); `carried` (minute, child, carrier, the walk's end); and deaths with a new cause, `illness` (with the draw). Growth at midnight is not an event: it follows from the age and the tables. The daily summary adds the living by age band, births, pairings, deaths by cause and age, pregnant women, the paired, the kcal moved by nursing, the kcal pregnancies cost, and the minutes children spent carried and working. + +Events added by Life 18: `harvest` (minute, year, the berry and hazel classes and their factors); `stored` (minute, person, the lots put into the store and its total after); `fromStore` (minute, person, kcal moved from the store to the hand); `storeSpoiled` (minute, person, kcal). A store-load task start records the person's store target and store. The daily summary adds each person's store and store target, and world totals of the day's crops, losses, overflow and fish growth by kind, the food standing on the land by kind, and the food held in stores. It also adds the day's kcal eaten, by source (berries, fresh nuts, nuts from a store, fish), and the day's kcal burned, summed over the living. A lot moved from a store into a person's hand keeps a mark that it came from a store, through gifts too, so eating it counts as "nuts from a store"; the mark changes nothing else. Eaten and burned counts are bookkeeping only and never feed a decision. ## Observer -Label the page **Life 18 · strangers**. The engine runs in a worker thread and the page draws from view copies of its states (update 069): the view copy carries each person's store total and target, the year's crop classes and the day's land totals, and keeps `harvest`, `stored` and `fromStore` events alongside gifts, refusals and exchanges. Everything else in the settings screen, loading card, header and playback is as Life 17. +Label the page **Life 19 · generations**. The view copy carries each person's birth minute, mother, father, partner, whether pregnant, whom they are carried by, and their grown height and weight, and keeps `paired`, `born`, `fed`, `carried` and the new deaths alongside the events below. Words like "baby", "child" and "elder", family words and "the valley's first child" are the observer's, never the engine's. + +- **Header.** The count of the living reads with children: "31 people · 6 under 15". +- **Landscape.** Every person is drawn as their own figure, scaled to their grown height and weight, so children are small and grow. A carried person is drawn small on their carrier's back while the walk lasts; a child working or walking on their own is drawn where they are, like anyone. A pregnant woman's figure is unchanged; the panel says it. +- **Person panel.** An age row ("Age 24", "Age 2 years 4 months" under 3); a family row naming partner, children, mother and father, each clickable to follow ("Partner: Forager 12 · Children: Forager 41 (2), Forager 47 (0) · Mother: —"); "pregnant" and "nursing" on the body line; "Carried by Forager 7" while carried; "fed by her mother" in the task line after a feed; and a "Grows to" line with the adult height and weight. +- **History.** "Forager 7 and Forager 12 paired"; "Forager 7 gave birth to a girl, Forager 41"; deaths name the cause and age: "Forager 9 died of illness at 61", "Forager 47 starved at 1, a year after her mother died". +- **Over time.** The People section adds, before its Life 18 charts: **The living by age**, a stacked area of babies (under 3), children (3 to 14), adults (15 to 49) and elders (50 and over) by day; **Births and deaths**, bars per calendar year of births and of deaths by cause (hunger, thirst, illness); and **Age at death**, a histogram of the ages of everyone who has died, with the !Kung fit's distribution as a faint line for comparison. +- **Relationship graph.** Partners are joined by a solid line and parents to children by a thin one, in their own colours, beside the familiarity lines. + +The Life 18 observer, unchanged: the engine runs in a worker thread and the page draws from view copies of its states (update 069): the view copy carries each person's store total and target, the year's crop classes and the day's land totals, and keeps `harvest`, `stored` and `fromStore` events alongside gifts, refusals and exchanges. Everything else in the settings screen, loading card, header and playback is as Life 17; the settings screen's days-per-year help adds how many simulated days a generation of 25 years takes at the chosen length (2,250 at 90 days a year). Crop classes and seasons are named by the observer, never the engine: "a poor hazel year", "a good berry year"; "berry season", "nut season" and "the lean months" from the calendar windows, beside the existing spring, summer, autumn and winter. - **Header.** The date reads with the season and what is in season: "Day 34 of year 0 · summer · berry season"; in the lean months, "the lean months". From the first nut day, the year's hazel class is shown: "a poor hazel year". - **Landscape.** Berry and hazel thickets are drawn bare outside their windows and fuller as their stock rises, as now by stock; a hearth whose owner's store holds food shows a small pile, larger with the store. -- **Sky and foliage.** Drawn from the displayed minute's place in the year, counted from the spring equinox, so any year length works. The sun follows the solar declination at 52° N, Mesolithic northern Europe: `δ = 23.44° · sin(2π · yearFraction)`, `sin(altitude) = sin φ sin δ + cos φ cos δ cos H`, with the hour angle `H` zero at the middle of the simulation's day and ±π at `dawnHour` and `duskHour`, so at the equinoxes the sun rises and sets on them. Noon stands at about 61° at the summer solstice, 38° at the equinoxes and 15° at the winter solstice; days last about 16½, 12 and 7½ hours. The sun's direction, its strength, the ambient light and the sky colour (paler in winter, warm while the sun is low) follow it, so winter nights are long and summer evenings light. Only the picture changes: people still keep the simulation's fixed day. Leaves blend through the year: bilberry, hazel and the birches (about half the trees, picked by a hash of the tree's number) open fresh green through April and May, stay green through summer, turn from mid-September (bilberry red, hazel and birch yellow), go brown and fall through October and November, and stand bare from late November to early April as thinner crowns of grey-brown twigs, or bilberry's green stems. Pines stay green. Grass is a little greener in spring and duller and browner from late autumn through winter. Colours and crown sizes are shared uniforms of the leaf materials, recoloured when the year has moved a tenth of a day, so nothing is rebuilt as the year turns. - **Person panel.** A "Store" row: "Store · 41,000 kcal of nuts, about 16 days (target 72,000)"; the task line reads "gathering nuts for the store" and "eating from the store". - **History.** "A poor hazel year"; "Forager 7 stored 30 kg of nuts"; deaths keep their cause, with the season: "Forager 12 starved in the lean months". - **Over time.** The pane is split into four sections, in this order: **Food**, **People** (alive, groups, without a group), **Craft** (axes made by technique, axes sold, huts whole, attempts broken) and **Exchange** (wood costs, wood swapped, hours slept cold). The People, Craft and Exchange charts are Life 17's, regrouped. The Food section replaces "Berries per bush", the nuts, berries and fish taken each day, and the hazel and fish stock percentages: @@ -631,47 +769,61 @@ Unchanged from Life 17: skill levels, the skill card and strip, technique rows, ## Code layout -- `calendar.ts`: the arrival offset in `dayOfYear` and `yearOf`; season windows; days to the next window. -- `places.ts`: the year's crop, derived capacities, the daily loss and window share; fish growth per 365 days. -- New `src/valley/stores.ts`: the store, its target and need, putting in, eating from and spoiling. -- `perception.ts` or `forager.ts`: expected stock by the calendar rule; store need in the priorities; store loads and the store as a food source in food choice. -- `food.ts`, `tasks.ts`, `wake.ts`: the two new tasks, the weight of carried nuts against load capacity, putting nuts in the store at the hearth. -- `world.ts`, `engine.ts`, `summary.ts`: the `harvest` draw at each year's start, the new events and daily totals. -- `types.ts`, `config.ts`: the person's store, the year's classes in the state, the new parameters, their validation, and the removed ones. +- New `src/valley/lifecycle.ts`: ages; the midnight lifecycle in its order (growth, deaths drawn, births, conceptions); `bodyAge`, `natureHistory` and `withNewborns`, which let the checker rebuild each person's body at any minute of an interval and the people born in it; the death table lookup; a newborn's draws and the energy taken from the mother. +- New `src/valley/growth.ts`: the age tables and their interpolation; the grown body and every quantity derived from it (rates, reserve and thirst thresholds, load capacity, walking and work factors, range). +- New `src/valley/kin.ts`: relatedness from recorded parents; a person's carrier; children at home. +- New `src/valley/nursing.ts`: a feed at a wake-up, both bodies paid to the minute and the mother rescheduled. +- `ties.ts`: pairing at a meeting; kin and partner in the order of asking and the goodwill term in giving. +- `food.ts`, `tasks.ts`, `wake.ts`: rates from the grown body and pregnancy, rate changes at midnight growth; the `carried` task, a carried person's weight in the carrier's load and speed, and their wake-up at the walk's end; milk only under solid-food age; range limits on targets. +- `forager.ts`: the family food need in the priorities; founders' ages from the `age` stream. +- `stores.ts`: the store target with children at home and pregnancy. +- `world.ts`, `engine.ts`, `summary.ts`: the lifecycle at midnight; growing every per-person array and index when a child is born; the new events and daily totals. +- `perception.ts`: a carried person perceives from the carrier's position. +- `types.ts`, `config.ts`: birth minute, parents, partner, pregnancy, last fed minute and grown body on the person; the new parameters and their validation. - `invariants.ts`, `replay.ts`: the checks above. -- `src/valleyView/`: the view copy's stores and land totals, season and crop names, the header, bare thickets and store piles, the panel row, the history lines, the Over time pane in four sections with the Food charts (a pie chart and stacked area chart join the shared chart components if they have none), the Life 18 label. -- `SIMULATION_DESIGN_RULES.md`, rule 9, and `docs/ROADMAP.md`, Time: the land's food is day-anchored. -- `docs/CALIBRATION.md`: berry thicket yield, seasons, losses, year classes and nut shelf life. -- `docs/ROADMAP.md`: seasons and stores as step 18, the chief and generations after it. -- `docs/LIFE17_SPEC.md` is removed: this specification replaces it. +- `src/valleyView/`: the view copy's family fields, every person drawn at their grown size, carried people on their carrier's back, the header count, the panel's age, family and carried rows, the history lines, the three new People charts, partner and parent lines in the relationship graph, the Life 19 label. +- `docs/CALIBRATION.md`: mortality by age and the Siler fit, fertility, birth spacing, fecundability, pregnancy, nursing, growth and children's needs, walking and foraging. +- `docs/LIFE18_SPEC.md` is removed: this specification replaces it. -Terrain, hydrology and mesh, routes and ways, bodies and traits, skills and axes, ties, and exchange of wood for food (`terrain.ts`, `water.ts`, `mesh.ts`, `routes.ts`, `ways.ts`, `nature.ts`, `skills.ts`, `axes.ts`, `ties.ts`, `trade.ts`) are unchanged. The MVP9 core is unchanged. +Terrain, hydrology and mesh, routes and ways, the land's food, seasons and the calendar, adult bodies and traits, skills and axes, and exchange of wood for food (`terrain.ts`, `water.ts`, `mesh.ts`, `routes.ts`, `ways.ts`, `places.ts`, `calendar.ts`, `nature.ts`, `skills.ts`, `axes.ts`, `trade.ts`) are unchanged. The MVP9 core is unchanged. ## Tests and implementation acceptance -The Life 17 fingerprint suite passes before the engine is changed. Every trajectory changes once the calendar, crops and stores do: this step records new fingerprints for all its configurations. The founders' places, bodies, traits and talents stay as Life 17's on every fingerprint seed. Fingerprints are not updated to conceal a failed rule. +The Life 18 fingerprint suite passes before the engine is changed. Every trajectory changes once founders have ages and people pair, conceive and die of illness: this step records new fingerprints for all its configurations. The founders' places, bodies, traits and talents stay as Life 18's on every fingerprint seed. Fingerprints are not updated to conceal a failed rule. New unit fixtures: -1. Calendar: arrival, berry and nut windows at 90, 365 and 8 days a year, as under Seasons, crops and losses; every window at least one day; days to the next berry window from any day. -2. Day-anchoring: a hazel thicket's crop over a normal year at 90 days a year is 90/365 of its crop at 365, within 1 kcal; a window day grows about as much at either length. -3. Year classes: a draw below the poor chance gives the poor factor, at or above 1,000 less the good chance the good factor; the same seed gives the same classes. -4. Losses: a stock nobody takes halves in 14 days within 1%; nothing grows outside a window. -5. Expectation: an unseen thicket is expected empty outside its window and at the openness share of a normal crop's growth so far inside it; one seen before the window's start is forgotten; one seen since the start is expected as seen, grown by a normal crop's daily shares while the window is open. -6. Store target: grows with days to the next berry season, weight and conscientiousness; the least conscientious target half of the average's. -7. Storing: a person not hungry, with wood and a store below target in the nut season, gathers nuts until their load is full, carries them home and stores them; at the target they stop; outside the nut season with no nuts expected, nobody gathers for the store. -8. Eating from the store: a hungry person with no fresh food worth working walks home and eats from the store; a hungry person beside a full ripe thicket eats there; stored nuts spoil after `nutShelfLifeHours`; nuts eaten from the store, also when given on, count as "nuts from a store", and the day's eaten kcal by source sum to what the living ate. -9. Giving: a person asked for food gives only from what they carry, never from their store. -10. The checker rejects a stock that grew outside its window or by more than its share, a loss that does not follow the rule, a crop class that does not replay from its stream, a store holding food that was never put in, food taken from another person's store, and a stored lot past its shelf life. +1. Ages: a birth minute gives the stated age at 90, 365 and 8 days a year; founders' ages lie in range and replay from their stream. +2. Death table: the stored table equals the Siler fit's mean yearly hazard within 1 per million; a million lives drawn by the daily rule at 90 days a year survive to 1, 5, 15, 45 and 70 within a percentage point of the fit. +3. Growth: a child's grown weight, rates, reserve cap and load capacity at 0, 5 and 12 follow the tables; they change at midnight and nowhere else; an adult's are unchanged from Life 18. +4. Feeding: a hungry baby beside their mother feeds; the kcal and water leave her and reach them exactly; a baby whose mother is away, dead, or who is past weaning does not; a baby under six months never eats a lot or drinks at a bank. +5. Carrying: a baby beside their mother goes with her walk and arrives with her; her speed and load room fall by the baby's weight; with the mother dead, a father, then an older sibling carries; a baby out of talking distance is left behind. +6. Children's choices: a five-year-old forages and drinks within their range and not beyond; a twelve-year-old has no limit; a hungry child asks a parent first and is given food by a parent with no familiarity, where a stranger with the same credit and grievance refuses. +7. Provisioning: a parent with two young children at home gathers on past their own need up to the family target; the target falls as the children's work factor grows; a parent whose children live elsewhere has none. +8. Pairing: two people of 15 or more who are each other's most familiar eligible person with a week of minutes pair when they meet; a third person more familiar to one of them prevents it; kin, two people of one sex, a 14-year-old and someone already paired never pair. +9. Kin and conception: relatedness for parent, full and half siblings, grandparent, aunt and cousin from a small family tree; a well-fed paired woman sleeping by her partner can conceive; none can while pregnant, nursing a child under two, below the fecund reserve, apart from her partner for the night, or outside her fertile years; a pregnancy comes to term after its days and the newborn's energy leaves the mother. +10. The checker rejects a feed by someone past weaning or from a mother out of reach, a feed that creates energy, a carried person away from their carrier's route, a baby who ate a lot, a target beyond a child's range, a child's rates not matching their grown body, a pairing of kin, a birth with no pregnancy, a conception by a woman nursing a young child, and an `illness` death whose draw does not replay. -The Life 17, 16, 15 and 14 fixtures are kept, with fixtures updated only where seasons now change what a person does: a fixture that needs food on a thicket sets its day inside the window. +The Life 18, 17, 16, 15 and 14 fixtures are kept, with fixtures updated only where ages, deaths drawn or pairing change what they test: a fixture that must not lose a person to a drawn death sets the death table to zero. -Measured once and recorded in the lab notes, on the canonical seed, at the default year, over three years: the year classes drawn; each year's crop by kind and the shares gathered by people and lost; each person's store at the end of each nut season against their target and conscientiousness; the median and range of energy reserves by day of the year; deaths by cause, day of the year and the year's classes; the living at the end of each year; asks, gifts and refusals by season; and days 50 to 59 in 12-hour steps as the worker runs, against update 074's. In the browser: the season and crop in the header, bare thickets in the lean months, a high summer sun and green crowns, yellow-brown birches and hazels in autumn, low winter sun with long shadows and bare birches beside green pines, a store pile at a hearth, the "Store" row and "gathering nuts for the store", a harvest line in the history, the Over time pane's four sections with the Food pie changing with its period choice, and the console clean. +Measured once and recorded in the lab notes, on the canonical seed: at the default 90-day year over ten years from arrival, and at 24 days a year over sixty years. Each: the living by age band and year; births and deaths by year, deaths by cause and age; survival of those born to 1, 5 and 15 against the fit; age at first pairing by sex and the share of adults paired; births by mother's age, intervals between births with the mother's reserve in the year before, and completed births of women who reached 45; kcal nursed against the mother's own needs; the share of children's food they gathered themselves, were given and were nursed, by age; children who lost their mother, and what became of them; and the growth rate by decade. Speed: days 50 to 59 in 12-hour steps as the worker runs, against Life 18's last measurement, and the cost per person-day as the valley grows. In the browser: a pairing and a birth in the history, a baby carried on their mother's back, a child walking on their own, the panel's age and family rows, the new People charts, and the console clean. Final validation is `npm run agent:check`. ## Questions for later +- The death table counts deaths of every cause among the !Kung, hunger among them, and the valley adds its own deaths of hunger on top. Should the table be reduced to illness and accident alone, once the valley's own deaths of hunger are measured? +- Are the growth, metabolism, walking, work and range tables right? They are read from forager and reference studies by judgement, and every child's day depends on them. +- Should a feed's size, the carrying threshold and the family target's discount for a child's own work be different? Are 400 kcal a feed and three years of nursing right? +- Should a child stay by their mother rather than wander within their range, and should someone go looking for a lost child? +- Should someone other than the mother nurse a baby whose mother has died, as wet nurses among foragers sometimes did? +- Should a pair move to one hearth, and whose? Forager couples often live first with the wife's family, later by choice. +- Should pairs separate, and should anyone have more than one partner? Divorce is common among foragers, and some men have two wives. +- Should children resemble their parents in body, traits and talents? Height and personality are partly heritable, which would let later steps see lineages. +- Should founders' experience grow with their age, and should an old body lose strength and speed? Forager returns fall after about fifty. +- Are a week of minutes to pair, 56,000 kcal to conceive and a day's work of kin goodwill the right magnitudes? +- Should a person avoid pairing with someone raised beside them, rather than with recorded kin, as the Westermarck effect works? +- Should the default year change now that a generation of 25 years is 2,250 simulated days at 90 days a year? - Should wood be day-anchored too, once the valley has its real woodland? - The valley has none of the spring foods real foragers had: roots, greens, eggs, birds and game. Its lean months are harsher than life until herds (and perhaps roots) arrive. Should roots come with herds, or sooner? - Are a 14-day half-life for losses, poor and good years one in four each, and hazel's 300‰ to 1,600‰ the right magnitudes? @@ -682,12 +834,29 @@ Final validation is `npm run agent:check`. - Should the default year change now that seasons exist? At 90 days the nut season is twelve days long. - Day length, cold winters and the extra food and wood a winter night costs: when do they explain something? -The Life 17 questions stand: the strengths of talent, transfer, attempts, invention and practice; breaks early or late; learning by watching or being taught; talent and personality; splitting foraging; chopping and building as craft; specialisation and the spread of techniques; cutting speed by technique; whether a ground axe pays. So do the Life 16 questions on ties, giving and grievance, the Life 15 questions on wayfinding and speed, and the Life 14 questions on the strength of each trait's effect, body mass and survival, strength and chopping, height and speed, and personality changing with age. +The questions above from wood onwards are Life 18's and stand. The Life 17 questions stand: the strengths of talent, transfer, attempts, invention and practice; breaks early or late; learning by watching or being taught; talent and personality; splitting foraging; chopping and building as craft; specialisation and the spread of techniques; cutting speed by technique; whether a ground axe pays. So do the Life 16 questions on ties, giving and grievance, the Life 15 questions on wayfinding and speed, and the Life 14 questions on the strength of each trait's effect, body mass and survival, strength and chopping, height and speed, and personality changing with age. ## Left out -Day length that changes with the season; cold winters, heat balance and clothing; weather; drying berries and smoking fish, and recipes beyond axes and huts (step 24); roots, greens and game (game at step 21); shared or group stores, giving from a store, taking from another's store, inheritance of a store, and any claim on a thicket (property, step 23, and conflict, deferred); wood anchored by the day and the valley's real woodland; ice on lakes; foraging split into finding, picking speed and judgement; deliberate teaching and children learning (steps 19 and 24); prestige and influence (step 20); kinship and pairing (step 19); offering unasked and sharing a catch; asking strangers; ties deciding group membership, approach or exchange partners; gossip, or knowing anyone's ties, skills or stores but one's own; trails, shared or taught ways, ways blocked by anything, and sight blocked by relief; illness; personality change; wading, swimming and boats; planting. +Day length that changes with the season; cold winters, heat balance and clothing; weather; drying berries and smoking fish, and recipes beyond axes and huts (step 24); roots, greens and game (game at step 21); shared or group stores, giving from a store, taking from another's store, inheritance of a store, and any claim on a thicket (property, step 23, and conflict, deferred); wood anchored by the day and the valley's real woodland; ice on lakes; foraging split into finding, picking speed and judgement; deliberate teaching, and children learning crafts by watching (step 24); prestige and influence (step 20); nursing by anyone but the mother, and searching for a lost child; a pair's shared hearth, separation and more than one partner; twins, miscarriage, stillbirth and death in childbirth apart from the drawn deaths; adoption as a rule; parents choosing when to have children, infanticide and contraception; inherited bodies, traits and talents; growth that varies between children or with food, and the loss of strength with age; menopause apart from the end of the fertile years; inheritance of stores, huts and axes (property, step 23); offering unasked and sharing a catch; asking strangers; ties deciding group membership, approach or exchange partners; gossip, or knowing anyone's ties, skills or stores but one's own; trails, shared or taught ways, ways blocked by anything, and sight blocked by relief; illness as a mechanism (it is a drawn hazard); personality change; wading, swimming and boats; planting. ## References + +- Gurven, M. and Kaplan, H. (2007), *Longevity among hunter-gatherers: a cross-cultural examination*, Population and Development Review 33(2): 321–365: forager mortality by age and the Siler fits. The !Kung parameters are those of the paper's Table 2 (b1 is 0.913; an earlier draft of this specification had 0.943). +- Howell, N. (1979), *Demography of the Dobe !Kung*, Academic Press: fertility, birth spacing, age at first birth. +- Blurton Jones, N. (2016), *Demography and Evolutionary Ecology of Hadza Hunter-Gatherers*, Cambridge University Press: Hadza fertility and mortality. +- Walker, R. et al. (2006), *Growth rates and life histories in twenty-two small-scale societies*, American Journal of Human Biology 18: 295–311: forager children's growth. +- Blurton Jones, N., Hawkes, K. and O'Connell, J. (1989), Modelling and measuring costs of children in two foraging societies, in Standen and Foley (eds), *Comparative Socioecology*, Blackwell: Hadza children's foraging. +- Hawkes, K., O'Connell, J. and Blurton Jones, N. (1995), *Hadza children's foraging: juvenile dependency, social arrangements, and mobility among hunter-gatherers*, Current Anthropology 36(4): 688–700: how far children forage from camp, and what they gather. +- Marlowe, F. (2004), *Marital residence among foragers*, Current Anthropology; Marlowe, F. (2005), *Hunter-gatherers and human evolution*, Evolutionary Anthropology; Marlowe, F. (2010), *The Hadza*, University of California Press: pairing, weaning, birth spacing. +- Konner, M. and Worthman, C. (1980), *Nursing frequency, gonadal function, and birth spacing among !Kung hunter-gatherers*, Science; Konner, M. (2005), Hunter-gatherer infancy and childhood, in Hewlett and Lamb (eds), *Hunter-Gatherer Childhoods*. +- Ellison, P. T. (2001), *On Fertile Ground*, Harvard University Press; Valeggia, C. and Ellison, P. T. (2009), *Interactions between metabolic and reproductive functions in the resumption of postpartum fecundity*, American Journal of Human Biology 21(4): 559–566: the metabolic load model. +- Wood, J. W. (1994), *Dynamics of Human Reproduction*, Aldine de Gruyter: fecundability. +- Butte, N. F. and King, J. C. (2005), *Energy requirements during pregnancy and lactation*, Public Health Nutrition 8(7A): 1010–1027. +- FAO/WHO/UNU (2004), *Human energy requirements*: children's energy needs. +- Kaplan, H., Hill, K., Lancaster, J. and Hurtado, A. M. (2000), *A theory of human life history evolution*, Evolutionary Anthropology: children as net consumers. +- Hill, K. and Hurtado, A. M. (1996), *Ache Life History*, Aldine de Gruyter; Sear, R. and Mace, R. (2008), *Who keeps children alive? A review of the effects of kin on child survival*, Evolution and Human Behavior: orphans and kin. +- Hassan, F. (1981), *Demographic Archaeology*, Academic Press; Pennington, R. (2001), Hunter-gatherer demography, in Panter-Brick, Layton and Rowley-Conwy (eds), *Hunter-Gatherers: An Interdisciplinary Perspective*: near-zero long-run growth. + - Mithen, S. et al. (2001), *Plant use in the Mesolithic: evidence from Staosnaig, Isle of Colonsay, Scotland*, Journal of Archaeological Science: hundreds of thousands of burnt hazelnut shells from one year's harvest. - Jenike, M. R. (2001), Nutritional ecology: diet, physical activity and body size, in Panter-Brick, C., Layton, R. H. and Rowley-Conwy, P. (eds), *Hunter-Gatherers: An Interdisciplinary Perspective*, Cambridge University Press, pp. 205–238: seasonal weight loss among foragers. - Binford, L. (2001), *Constructing Frames of Reference*; Kelly, R. (2013), *The Lifeways of Hunter-Gatherers*: forager population densities. diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 6f31414..555163a 100644 --- a/docs/VALIDATION.md +++ b/docs/VALIDATION.md @@ -112,7 +112,7 @@ No existing simulation test needed a new expected value: they assert behaviour r The eight-seed MVP8/MVP9 comparison is in [MVP9_SPEC.md](MVP9_SPEC.md#mvp8-and-mvp9-compared). The fast-mode browser check passed with a pause latency of 256 ms. In the browser, the 40×40 town, plot buildings, the overlay and scenery, clicking a plot, Locate, the 2D market map and the 375px layout were checked with no console errors. -# Life 18 +# Life 19 Use `npm run agent:check` as the implementation gate. On memory-constrained machines, `ECON_TEST_WORKERS=1` serializes the test workers. @@ -120,7 +120,7 @@ Use `npm run agent:check` as the implementation gate. On memory-constrained mach Rule tests use small explicit fixtures. A canonical thirty-day run is checked at daily intervals with all eight founders alive. Observer tests check that people are drawn on their recorded route at every displayed minute, that the drawn minute stays within the minute the state has reached, that the playback clock never goes back, asks no further ahead than its 0.1 s lead, runs at the speed shown when the engine keeps up and waits when it does not, that Step's minute is shown once it arrives, and that map speeds hide people. `viewCopy.test.ts` rebuilds each state's view copy from its changes alone, copied as between threads, at strides from 1 to 1,440 minutes and across a change of the person followed; checks that a copy keeps only the routes under way, each person's next wake-up, exchanges and walk records, and current memory only for the person followed; and that a state the engine recopied unchanged sends nothing. It runs on a state advanced in place, as the worker does, and checks each copy equals the one made from a pure run. `engine.test.ts` checks that advancing a state in place equals stepping copies of it. The worker leaves the engine unchanged, so update 069 keeps every fingerprint, and the speed-ups of update 070 keep them too. -The 22 fingerprints are checked thirty-day runs, partitioned by configuration for parallel validation: three seeds each for the eight-person canonical, together, spread (ideas thought of about ninety times as often), wide-talent, equal-talent and flat configurations and the twelve-person one, and one run of the forty-founder default on seed 20260813 (about three to four minutes). Life 17 fingerprints passed before the engine changed. Life 18 re-records all 22 after the rule and checker tests pass, because the arrival day, day-anchored crops, losses and stores change every trajectory; the founders' places, bodies, traits and talents stay as Life 17's on every fingerprint seed, checked against Life 17's code. The fingerprint runs check one thirty-day interval, so the checker replays every midnight skill update, store spoiling, crop draw and thicket loss and growth within an interval in order. A refactor or speed-up must leave them all unchanged. `runSettings.test.ts` checks the page's ranges, including 7 and 366 days rejected, and that a 1 km world can be laid out. +The 22 fingerprints are checked thirty-day runs, partitioned by configuration for parallel validation: three seeds each for the eight-person canonical, together, spread (ideas thought of about ninety times as often), wide-talent, equal-talent and flat configurations and the twelve-person one, and one run of the forty-founder default on seed 20260813 (about three to four minutes). Life 17 fingerprints passed before the engine changed. Life 19 re-records all 22 after the rule and checker tests pass, because founders' ages, deaths of illness, pairing and births change every trajectory. (Life 18 re-recorded them for the arrival day, day-anchored crops, losses and stores.) The fingerprint runs check one thirty-day interval, so the checker replays every midnight skill update, store spoiling, crop draw and thicket loss and growth within an interval in order. A refactor or speed-up must leave them all unchanged. `runSettings.test.ts` checks the page's ranges, including 7 and 366 days rejected, and that a 1 km world can be laid out. `node scripts/time-life.mjs 90 batch` times a canonical ninety-day year with the default forty founders; creation is reported separately. The benchmark excludes rendering and invariant checking. Life 14's ninety-day daily-interval measurement required `node --max-old-space-size=8192 scripts/time-life.mjs 90 daily`; the default 4 GB Node heap exhausted memory. It completed in 852.90 s with all forty founders alive. The speed target and long-run memory use remain unresolved. @@ -136,6 +136,8 @@ Life 14 adds bounded-normal moments, integer factorisation and positive-definite `calendar.test.ts` checks the arrival day and the berry and nut windows at 90, 365 and 8 days a year, every window at least one day, and the days to the next berry window. `places.test.ts` checks the arrival day's crop and capacities, a year's crop shared exactly over its window and nothing outside it, day-anchoring (a year at 90 days grows 90/365 of a year at 365, within 1 kcal), year classes from their stream, and an untouched stock halving in 14 days within 1%. `stores.test.ts` checks expected stock by the calendar, the store target (days to the berry season, weight, conscientiousness; the least conscientious half the average), gathering a load for the store, carrying it home and stopping at the target, nobody storing outside the nut season with no nuts expected, eating from the store, a ripe thicket at hand winning over a store with a slow rate, spoiling, nuts from a store counted as such also when given on, eaten food by source summing to what was eaten, giving never from a store, and the checker rejecting growth outside a window or above its share, a loss off the rule, a crop class off its stream, a store holding food never put in, food taken from another's store and a stored lot past its shelf life. +`generations.test.ts` holds the Life 19 fixtures: ages and founders' ages; the death table against the !Kung Siler fit within 1 per million, and survival by the daily rule to 1, 5, 15, 45 and 70 within one percentage point; growth to the adult body and a child's day of energy; a feed moving energy and water from the mother, nothing at weaning; carriers in order, a carried child slowing the carrier, rides in a checked run and none for a child out of reach; a child's range and kin goodwill; provisioning and the family store target; pairing by mutual familiarity and never of kin; relatedness, conception's conditions, term and birth; and the checker on a family's day, rejecting a tampered feed, birth, conception, pairing, a baby eating, work beyond range and a grown body that does not match its age. + `skills.test.ts` checks the skill curve from its floor towards its ceiling with diminishing returns, unused experience halving in ten years at 90 and 365 days a year, experience anchored to the year and scaled by talent, transfer between techniques, an attempt's chance at proficiencies 50, 63 and 120, a broken attempt losing its stone, returning its wood and still counting as experience, the first success making a technique known, ideas thought of after axe work only when their prerequisite is known and at twice the chance one spread more open and none one spread less, the practice budget rising with conscientiousness, practice of an untried idea before the walk and not when the budget is spent or a need arises, failure weighing in the choice of technique, an axe's worth rising with its logs, and the checker rejecting a wrong skill, wrong experience, impossible or unrecorded ideas and techniques, an idea whose draw is above its chance, practice over the budget, an axe in progress whose attempt differs from its draw, making by a technique not among the maker's ideas, and an impossible axe. `huts.test.ts` checks technique choice by work per log, with and without a stone to fetch, and the idea gained by buying an axe. `life13-founders.json` freezes starts and talents on the three fingerprint seeds. -Life 18 browser acceptance covers the season and crop in the header, bare thickets out of season, a store pile at a hearth, the "Store" row and "gathering nuts for the store", a harvest line, the Over time pane's four sections with the Food pie changing with its period, and the console. Life 17 browser acceptance covers skill level names on the rings, the "Techniques" row, the recent axes and techniques list, the ring on the skill map and the console. Life 16 browser acceptance covers the "Ties" row, the closest ties and the gifts and refusals lists, the tie lines and the console. Earlier acceptance covered the followed person's remembered ways drawn as lines, the task line naming the kind of walk, the "Ways" row, and the console. Earlier steps' acceptance covered a woman's and a man's person panels, five trait bars, figures scaled by height and weight, minute stepping and an exchange line with its price and gain share. Results and the single canonical year measurement are recorded in update 064's lab notes. +Life 19 browser acceptance covers the header's count of people and those under 15, a child's panel (age, grows to, parents), births in the history at 8 days a year and the console. Life 18 browser acceptance covers the season and crop in the header, bare thickets out of season, a store pile at a hearth, the "Store" row and "gathering nuts for the store", a harvest line, the Over time pane's four sections with the Food pie changing with its period, and the console. Life 17 browser acceptance covers skill level names on the rings, the "Techniques" row, the recent axes and techniques list, the ring on the skill map and the console. Life 16 browser acceptance covers the "Ties" row, the closest ties and the gifts and refusals lists, the tie lines and the console. Earlier acceptance covered the followed person's remembered ways drawn as lines, the task line naming the kind of walk, the "Ways" row, and the console. Earlier steps' acceptance covered a woman's and a man's person panels, five trait bars, figures scaled by height and weight, minute stepping and an exchange line with its price and gain share. Results and the single canonical year measurement are recorded in update 064's lab notes. diff --git a/life.html b/life.html index 9980c46..dda12fd 100644 --- a/life.html +++ b/life.html @@ -6,9 +6,9 @@ - Life 18 · strangers + Life 19 · generations