From 6ad8effa5549c5a480532cdb182e04b2e1aaf870 Mon Sep 17 00:00:00 2001 From: NeoLorenzo Date: Sun, 8 Nov 2026 14:30:28 +0000 Subject: [PATCH 1/2] docs(life19): approved generations spec, every person an agent from birth [LIFE19-Generations-077] --- docs/LIFE19_SPEC.md | 887 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 887 insertions(+) create mode 100644 docs/LIFE19_SPEC.md diff --git a/docs/LIFE19_SPEC.md b/docs/LIFE19_SPEC.md new file mode 100644 index 0000000..79dd7af --- /dev/null +++ b/docs/LIFE19_SPEC.md @@ -0,0 +1,887 @@ +# [LIFE19-Generations-077] + +**Approved by the owner; to be implemented once Life 18 has merged.** 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. It was drafted on its own branch while Life 18 was finishing; once Life 18 is merged, it is checked against Life 18 as merged, and the update number is confirmed against the newest changelog entry. + +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 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. +- **Seasons.** Bilberries ripen from mid-July to the end of August and hazelnuts fall from September to mid-October, as in northern Europe. Outside those weeks the thickets grow nothing. Fish can be caught all year. The rest of the year, about nine months, nothing new can be gathered from the land. +- **Animals and rot take what people leave.** Ripe berries and fallen nuts are lost day by day: half of what lies on a thicket is gone within two weeks. A thicket nobody visits in its season gives nobody anything. +- **Good years and bad years.** Each year's crop of berries and of nuts is drawn for the whole valley: in a poor year hazel gives less than a third of its usual crop, in a good year half as much again. People learn which kind of year it is only by seeing the thickets. +- **Stores.** Each person keeps a store of nuts at their hearth. Adults know the calendar: in the nut season, a person who is neither hungry nor short of wood gathers nuts in loads and carries them home until their store would last them to the next berry season. The conscientious plan for all of it, the careless for part. Through the lean months people eat from their stores, fish, and draw on their bodies' reserves. Nuts keep for about a year. +- **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. + +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.943, a2 0.010, a3 0.000331, b3 0.077) gives 79% surviving the first year, 66% to 5, 60% to 15, 39% to 45 and 14% to 70, and a life expectancy of 33 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. | +| Loss to animals | Rodents and birds take most fallen hazelnuts: in a seed-fate study of a related hazel in temperate forest, 99% of released nuts were eaten, with a median removal time of about 14 days (Global Ecology and Conservation, 2024). Ripe berries left on the bush drop, rot or are eaten by birds within weeks. | A unit fixture: a stock nobody gathers halves in 14 days within 1%. Recorded once on the canonical seed: the share of each year's crop gathered by people and the share lost. | +| Storage | Mesolithic people gathered and processed hazelnuts in bulk: a single pit at Staosnaig on Colonsay held hundreds of thousands of burnt shells from one year's harvest, about 6000 BC (Mithen et al. 2001); roasting pits at Duvensee and elsewhere point to nuts processed for keeping. | Recorded once on the canonical seed: each person's store at the end of each nut season against their target and conscientiousness. Stores worth weeks to months of food are expected; nobody storing would mean the rule fails. | +| The lean season | Foragers and subsistence farmers lose weight in their lean season, commonly a few per cent of body weight, and regain it at harvest (Jenike 2001). | Recorded once on the canonical seed over three years: the median and range of energy reserves by day of the year; deaths by cause, day of the year and the year's crop. Reserves falling through late winter and spring and recovering at the berry season are expected; deaths, if any, in the lean season and after poor years. | +| What the valley carries | Temperate foragers lived at about 0.05 to 0.5 people a square kilometre (Binford 2001; Kelly 2013), on game as well as plants. This valley has no game yet and unusually dense hazel, so it is not expected to match; how many it carries is recorded, not tuned. | Recorded once on the canonical seed: the living at the end of each of three years. | +| Power law of practice | Across skills, time per task falls as a power of practice: each extra hour adds less than the one before (Newell and Rosenbloom 1981). | A unit test: skill rises with experience, each further block of hours adding less; skill is half way between floor and ceiling at the half-experience. | +| Adult foraging returns | Forager return rates keep rising slowly into the 30s and later, long after strength peaks, because skill takes decades (Kaplan et al. 2000; Koster et al. 2020). | Magnitudes, measured once on the canonical seed: each founder's foraging skill at day 0 and day 365 (a year of 90 days counts as a full year, below), as a median and range. A gain of a few per cent a year for an average founder is expected; most founders still improving at the end. | +| Craft learning | Knapping takes hundreds of hours to learn well: novices given about ninety hours of expert training still failed to make good handaxes (Pargeter et al. 2019; Pargeter et al. 2020); stone adze makers in Irian Jaya trained for years (Stout 2002). Novices' flakes overshoot and fail far more often than a mentor's (Eren et al. 2011). Earlier craft experience helped novices most (Khreisheh 2013). | Unit fixtures: an average-talent novice reaches a technique's half-way skill after `craftHalfHours` (300) of its own experience; a novice's attempts fail more often than an expert's. Recorded once on the canonical seed: attempts and failures by technique and proficiency. Most novice attempts at a new technique are expected to fail. | +| Skill decay | Skills unused fade over months and years, motor skills more slowly than knowledge (Arthur et al. 1998). | A unit test: experience with no work halves in `experienceHalfYears` (10) years within 1%. | +| Talent | Practice explains a minority of the differences in skill between people; the rest is in large part how fast they learn (Macnamara et al. 2014). | Magnitudes: the spread of founders' starting skills is similar to the 75% to 125% of born skill it replaces; recorded once on the canonical seed. | +| Ground and flaked axes | A flaked axe is knapped in under an hour; a ground axe needs about 60 hours of grinding and lasts many times longer (calibration, Making an axe). | Magnitudes; the tranchet axe's numbers are an estimate between the two. | +| Invention | Openness is the strongest and most consistent Big Five predictor of creativity and creative achievement; conscientiousness is mixed, higher among creative scientists and lower among artists (Feist 1998). New techniques are rare: most people use what they learnt. | Recorded once on the canonical seed: every idea, by invention or from an axe, with the person's openness and conscientiousness. A few ideas a year, nearly all from the most open people, are expected. | +| Practice | Conscientiousness predicts sustained effort and performance more than any other trait (Zell and Lesick 2022); conscientious people spend more time working and studying (Rohrer and Lucas 2018). | Recorded once on the canonical seed: hours practised per person against conscientiousness. | +| Specialisation | Among mobile foragers specialisation is modest: most adults do most tasks, and a few are known for a craft; full-time specialists appear in larger, settled societies (Marlowe 2010). | Recorded once on the canonical seed at day 365: how many people made the axes, and the spread of craft experience. A few people making most axes is expected; rigid specialists within a season would mean the learning rules are too strong. | +| Circles of ties | People's ties come in layers of about 5, 15, 50 and 150, each about three times the last, set by how often they meet: the closest few at least weekly, about 15 at least monthly (Zhou et al. 2005; Hill and Dunbar 2003; Sutcliffe et al. 2012). Among the Hadza, ties follow who shares a camp (Apicella et al. 2012). | Magnitudes, measured once on the canonical seed over days 30 to 89: for each person, how many others they spent time with on at least one day in seven, and on at least one day in thirty, as a median and range. With forty people only the 5 and 15 layers can show; layers of about that size, with a ratio near three, are expected. A flat result (everyone in a group equally close) is examined in the lab notes, not tuned away. | +| Reciprocity | Among foragers, what one household gives another correlates with what it receives back, moderately: dyadic correlations of roughly 0.2 to 0.6 across studies (Gurven 2004; Allen-Arave et al. 2008). Most food moves by being asked for (Peterson 1993). | Magnitudes, measured once on the canonical seed over days 30 to 89: the correlation, across pairs, between the food given one way and the other; the share of gifts that went to someone in the giver's group; and refusals against gifts. A positive, moderate correlation is expected. | +| Fading | Ties not kept up weaken over months: emotional closeness to friends falls measurably over a year and a half with less contact (Roberts and Dunbar 2011). | A unit test: a tie with no time together halves in 180 days within 1%. | +| Route choice | People rarely take the shortest path. Most commuters keep to habitual routes longer than the shortest one (Zhu and Levinson 2015); pedestrians choose by familiarity and simple rules such as "head roughly the right way" more than by distance (Golledge 1995; Hölscher et al. 2011). | Magnitudes, measured once on the canonical seed: how much longer walks on a remembered way are than the shortest path over the walker's known ground at that minute, as a median and the largest. A median within about 10% is expected; a large excess is examined in the lab notes, not tuned away. | +| Reuse | Habit: most trips go between a few familiar places along familiar routes (Golledge 1999). | Recorded once on the canonical seed: the share of walks by how they were found (a remembered way, a joined way, a coarse plan, a full plan), day by day. Most walks to places are expected to use a way after the first days. | +| New routes | People head towards the goal by the direction that points most nearly at it (Hochmair and Frank 2000), prefer a long straight first stretch (Bailenson et al. 2000), and take routes longer than the shortest (Zhu and Levinson 2015). Planning by regions before footing gives routes close to the shortest when regions are small against the trip (Botea et al. 2004). | Recorded once on the canonical seed from update 071: the share of new walks straight and steered, and how much longer each kind is than the shortest path over the walker's known ground at that minute, as a median and the largest. A median excess within about 15% is expected. | +| Adult height | Mesolithic Europe, from skeletons: men about 165 cm and women about 154 cm, each with a spread of about 6 cm (Formicola and Giannecchini 1999; Ruff 2018). The forty founders' means lie within 3 cm of these, and the sexes do not overlap much more than real ones. | Magnitudes; checked once on the canonical seed, and by a unit test over 10,000 draws. | +| Adult body mass | Mesolithic Europe, estimated from skeletons: men about 62 kg, women about 52 kg (Ruff 2018). | As above. | +| Strength | Grip strength, the standard field measure, among forager-horticulturalists (Tsimane, Hadza, Agta): men about 38 kg, women about 24 kg, with women's strength about 60% of men's (Gurven et al. 2006; Apicella 2014). | As above. | +| Body correlations | Within each sex, height with weight about 0.55, height with grip about 0.35, weight with grip about 0.40. | A unit test over 10,000 draws, each within 0.05. | +| 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. 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 + +### 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. | 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. 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. | 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. | 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 and against the room in the carrier's load of wood or nuts. 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, and a pregnant woman's her pregnancy's. | 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 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 `pregnancyKcalPerDay` (300) to 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: deaths drawn, births due, conceptions, growth. | One fixed order makes every birth and death replayable. | + +### Seasons, harvests and stores (Life 18, unchanged) + +| Decision | Reason | +| --- | --- | +| **The land's food is day-anchored.** A thicket's yearly crop and a lake's yearly fish growth are stated per 365 days; in a year of `daysPerYear` days the land grows `daysPerYear / 365` of it. The windows in which food ripens stay year-anchored, as fractions of the year. Rule 9 of the design rules is amended to say so. | Eating is day-anchored, so the food that feeds it must be too, or a short year multiplies the land: at 90 days a year the valley fed four times what it would in life. With food grown by the day, a short year has short seasons, short lean months and small crops, in proportion, and a year's balance of food against mouths is the same at any setting. This is the one declared compression applied consistently, not a new one. | +| Wood, deadfall and tree regrowth stay year-anchored in this step. | The valley's woodland, 300 stands of 15 m on 16 km², is a small fraction of the forest that covered Mesolithic northern Europe. Anchoring wood by the day without also giving the valley its real woodland would make fuel short for a reason that is not real (realism rule 5). Wood and woodland are a question for a later step. | +| **Berries ripen from 330‰ to 450‰ of the year and hazelnuts fall from 450‰ to 580‰**, counted from the spring equinox; at 365 days, from about 19 July to 31 August and from 31 August to 20 October. Each window is at least one day. Fish are caught all year. | Bilberry and hazel seasons in northern Europe. Nothing else grows in this valley yet, so the windows are the year. | +| **Founders arrive at 330‰ of the year**, the first day of the berry season. The run's minute 0 is that day; the calendar counts from the spring equinox. | Strangers dropped in spring would have no food on the land for about four months, more than their bodies hold: everyone would die before the first berry, which says nothing about the valley. Arriving at the start of the season gives them one harvest to prepare. | +| A berry thicket yields `berryThicketKcalPerYear` 5,400 kcal (9 kg) a normal year, 200 kg a hectare of its 452 m² footprint. A hazel thicket keeps 150,000 kcal (60 kg in shells), renamed `hazelThicketKcalPerYear`. | 200 kg a hectare is a good wild bilberry patch, between forest averages of 4 to 65 and an exceptional field's 630; a thicket is a patch worth walking to, so it sits towards the top. The old 54,000 kcal was ten times this. Hazel's 477 kg a hectare was already calibrated against wild woodland and is kept. | +| **Each year's crop is drawn for the whole valley**, once for berries and once for hazel, at the start of each calendar year and at the founders' arrival for year 0: a poor year with chance `poorYearPerMille` (250), a good year with `goodYearPerMille` (250), else normal. Berries give 500‰, 1,000‰ or 1,400‰ of a normal crop; hazel 300‰, 1,000‰ or 1,600‰. | Nut crops swing widely and in step over whole regions, and hazel bears heavy and light years. A per-thicket draw would add noise with no mechanism behind it. Three classes are the simplest form that gives famine years; the means are close to a normal year, so poor years are not offset by a rule. The sizes are judgement within the observed swing. | +| A year's crop at a place is `floor(kcalPerYear · daysPerYear · factor / (365 · 1,000))`, delivered over the window's days by the exact daily share, added at midnight and capped at the place's capacity. Capacity is the good-year crop, at least 1 kcal. | The same exact sharing as before, now over the window. Capacity bounds a stock without binding in practice, since losses keep a thicket below a full crop. Picking still slows as a thicket empties against its capacity, as since Life 11. | +| **Losses:** at midnight, before the day's crop, a berry or hazel place loses `floor(stock · lossPerMille / 1,000)`: `berryLossPerMille` and `nutLossPerMille`, 48 each, so half of what lies there is gone in 14 days. Losses are recorded per day in the world's ledger as eaten by animals or rotted. | A related hazel's fallen nuts were removed with a median of about 14 days; berries rot or are taken within weeks. Without losses a crop would wait on the thicket for the whole year and seasons would only delay food, not limit it. Day-anchored, like spoilage. | +| Nuts keep `nutShelfLifeHours` 8,760, a year, in a store or carried. Berries (48 hours) and fish (24) are unchanged and are never stored. | Dry hazelnuts in their shells keep for about a year, and Mesolithic people roasted them, which keeps them longer. Half a year, as before, would spoil a store before the next harvest at a full-length year. Drying berries and smoking fish are recipes for a later step. | +| **Everyone knows the calendar.** A person knows the windows of each food, as an adult forager knows when bilberries ripen, but not this year's crop. | Rule 1: what a person could plausibly know. Founders are adults with fifteen years of foraging behind them. The year's crop is learnt only by seeing thickets. | +| **Expected stock follows the calendar.** A person expects a seasonal place to hold what they last saw if they saw it since the start of its most recent window, grown since by a normal crop's daily shares while the window is open; else, while its window is open, the openness share of what a normal crop has grown so far; else nothing. | Someone who saw a thicket full in August does not walk to it in February. Before this step the remembered stock was trusted all year, which seasons would make foolish. The openness share for an unseen place is unchanged. | +| **Each person has one store, at their hearth.** It holds food lots with their minutes, spoiling as carried lots do. Arriving home, a person first eats as before, then puts every carried nut lot into the store. Only the owner takes from it. A store outlives its owner's death and spoils there untouched. | A pit or cache at camp, as foragers who store keep them. Personal stores keep the rule local and the books simple. Taking from someone else's store is theft, and sharing a store is property or group decision: both wait for later steps. | +| **A store target, planned by the conscientious:** `floor(storeKcalPerDay · weightKg · daysToBerries · f_C / (referenceBodyKg · 1,000))`, where `daysToBerries` is the number of days from today to the start of the next berry window and `f_C` the person's conscientiousness factor (Life 14's "plans ahead", 500 to 1,750 per mille). A person has a **store need** when their store holds less than the target and they expect some nuts at a remembered hazel place. | The target is the food that would carry the person from now to the next fresh food. Conscientiousness's job is already planning ahead, for wood and for when to stop food work; this is the same job applied to the winter. A person at the low end plans for half the lean season and leans on their body, fish and others for the rest. | +| **Filling the store.** A person with a store need, neither hungry nor short of wood, gathers nuts at the best expected hazel place, keeps gathering until the nuts they carry weigh their load capacity, the stock runs out, or they must turn for home, then carries the load home. Store need ranks with food and wood need, ahead of company, axes, practice and leisure. | Gathering for later is work, like gathering wood, and is carried in loads the same way. The load capacity from Life 14 applies: about 30 kg of nuts in shells, about 75,000 kcal. Putting company and craft below storing is what people with a winter ahead do; the hungry still eat first. | +| **Eating from the store.** The store is a food source at the person's hearth, scored like any other, with the walk home and `storeKcalPerHour` 6,000, the rate at which stored nuts are cracked and eaten. Taking is a task at the hearth that ends when the reserve is full or the store empty. | Cracking a stored nut takes time, as gathering includes cracking. A store at home competes with fresh food by the same reckoning as everything else, so a hungry person near a ripe thicket eats there and one far from any food goes home. Rationing is left as a question. | +| Asking and giving still move only carried food and wood, and food to pay for an axe or wood is gathered, never taken from a store. | Giving or paying from a store is sharing a store, which waits with property and group decisions. (Implementation showed the rule was needed: a person picking food to buy an axe chose their own store, took a minute's nuts into the hand and put them straight back at the next wake-up, thousands of times a day.) | + +### Skills and techniques (Life 17, unchanged) + +| Decision | Reason | +| --- | --- | +| Each person holds **experience** for foraging, for wood and for each technique they know, in integer seconds of work with an integer remainder. The 30-day practice log, born skills and the `craftPractice` switch are removed. | Skill built over a working life needs a memory longer than a month. One quantity per skill, in the unit work is already counted in, keeps the books simple and checkable. The switch only recreated Life 9's fixed craft. | +| Skill follows from experience by `skill = floor + (ceiling − floor) · E / (E + H)`, with floor 50%, ceiling 150% and a half-experience `H` per skill, rounded down. | The power law of practice: fast gains early, slow gains late (Newell and Rosenbloom 1981). This saturating curve has that shape in integer arithmetic, with no logarithms, and keeps Life 9's floor and ceiling. A person at the half-experience works at the base rate. | +| Rates are the base rate times skill: foraging for berries, nuts and fish; wood for gathering. A technique's skill, its **proficiency**, sets its making time and the axe's quality as craft did. | Each rate keeps its Life 13 meaning at 100%. | +| Experience is **year-anchored**: each second worked adds `365 / daysPerYear` seconds of experience, scaled by talent. | The roadmap lists skill mastery as year-anchored: becoming an expert takes years of a life, and a short year compresses it as it compresses growth and seasons. Work rates stay day-anchored: an hour's picking still takes an hour. | +| Experience fades at midnight by the share that halves it in `experienceHalfYears` (10) years: `fadePerMillion = round(693,147 / (experienceHalfYears · daysPerYear))`. | Skills unused decay over years (Arthur et al. 1998). Year-anchored like the gain. Fading lets an old skill go and bounds experience; because skill saturates, a long working life loses little. The first-order rate `ln 2 / days` is within half a per cent of the exact share even at the shortest year, and needs no powers. | +| **Talent** is a normal score per person for foraging, wood and craft, in thousandths of a spread, clamped to three spreads. It scales the experience each second gives: `learn = clamp(1,000 + 250 · z / 1,000, 250, 1,750)` per mille. | Talent as speed of learning (Macnamara et al. 2014). One spread more learns a quarter faster; the slowest learn a quarter as fast as average, the fastest three quarters faster. The strength is judgement, listed for later. | +| Founders arrive with experience behind them: `founderForageHours` (16,425, fifteen years at three hours a day), `founderWoodHours` (5,475, fifteen years at an hour a day) and `founderCraftHours` (150) in each technique they know, each times their talent. Every founder knows the flaked axe; a founder knows the tranchet axe with `founderTranchetPerMille` (250) and the ground axe with `founderGroundPerMille` (100). | Founders are adults who learnt at their own talent. Their spread of starting skills then comes from talent, not from a separate draw, and is like the 75% to 125% it replaces. The half-experience equals about an average founder's, so the average founder works at the base rate, as before. Knowing the flaked axe is common to every Mesolithic adult; the other two are not. | +| Three **techniques**, held as data: flaked (needs nothing, 1 hour, 10 logs at quality 100), tranchet (needs flaked, 2 hours, 30 logs) and ground (needs flaked, 50 hours, 200 logs). All take one stone and `axeWood` of wood. | The calibration document's flaked and ground axes. The tranchet axe, the Mesolithic way of re-edging a flaked axe by a sideways blow, sits between them; its numbers are an estimate. A branching tree rather than a ladder: both better axes start from flaking. | +| A technique's proficiency uses its own experience plus `transferPerMille` (300) of the experience in every other technique: `P = skill(E_t + 300 · (G − E_t) / 1,000, craftHalfHours)`, where `G` is the sum of a person's technique experience, their **general craft**. | Craft experience transfers: novices with other craft experience learnt knapping better (Khreisheh 2013), but the specific skill still has to be learnt. General craft is derived, not stored, so it cannot disagree with the techniques. | +| `craftHalfHours` 300: an average novice reaches the base rate in a technique after 300 hours of their own experience. `forageHalfHours` 16,000 and `woodHalfHours` 5,000 are near the average founder's experience. | Knapping skill takes hundreds of hours (Pargeter et al. 2020; Stout 2002). The foraging and wood half-points keep average founders at the base rates and leave adults improving slowly, as forager returns do into the 30s (Kaplan et al. 2000). | +| A person holds, per technique, whether they have its **idea** and whether they **know** it. Everyone has the idea of and knows the flaked axe. An idea lets them try; knowing means they have once made one that worked. | Knowing that a thing can be made, being able to make it, and being good at it are three different things. The person, not the engine, finds out what can be made. | +| **Every axe is an attempt.** At its start the attempt is drawn to succeed with chance `success(P) = 1,000 · d² / (d² + attemptHalfPercent²)` per mille, `d = P − skillFloorPercent`, `attemptHalfPercent` 15; a failed one breaks at a point drawn uniformly through its work. A break loses the stone and the work done; the wood, not yet hafted, is kept. Every second worked, on a success or a failure, adds experience. | Novices fail often and experts rarely (Eren et al. 2011; Pargeter et al. 2019). At proficiency 63, a novice who flakes well trying a tranchet axe, about two in five attempts work; at 83, a founder's flaked axe, five in six; at 120, twenty-four in twenty-five. The square makes success climb quickly once someone is past the beginner's stage. The strength is judgement. | +| **Inventing.** For each technique they have no idea of, whose `needs` they know, a person draws at the end of every stint of axe work: the idea comes with chance `seconds · inventPerMillionPerHour · (365 / daysPerYear) · opennessInvent / (3,600 · 1,000)` per million, from `invent::`. | Ideas come to people who work the material, and build on what they can already do (the adjacent possible): nobody thinks of grinding an axe who has never made one. Year-anchored like experience. Openness has the job: a person a spread above average twice as often, two spreads three times, and one a spread below never (Feist 1998). Conscientiousness acts only through the hours practised. | +| **An idea from an axe.** A person who acquires an axe, by buying it, gains the idea of its technique. | The axe shows what was done to it. This is the only way ideas spread for now; teaching and watching are left for step 24. | +| **Practice.** A person at their hearth with nothing needed (priority 9) practises before a walk, up to `practiceMinutesPerDay` (60) times their conscientiousness factor each calendar day: an attempt at an axe by a technique they have the idea of but do not know, else by the technique they would choose for an axe. An unfinished practice axe waits for the next practice; a finished one is kept or sold like any axe. | Free time is spent on something, and skill is built by practice. Conscientiousness's job, planning ahead, includes working now for a skill later (Zell and Lesick 2022; Rohrer and Lucas 2018): a person a spread above average practises 1¾ hours a day, two spreads 2½, and one 1⅓ spreads below not at all. A day-anchored budget needs no draw and can be checked. | +| A person's experience in a technique starts when they first try it; proficiency comes from general craft at first. A technique once known, or an idea once had, is not forgotten while the person lives. | Knowing how and being good at it are different things. The fading experience is what an unused technique loses. | +| A person about to make an axe they need chooses the known technique with the least `1,000 · (makeSeconds + stoneSeconds) / (success · expectedLogs)`, compared exactly in integers, ties by technique order; `stoneSeconds` is 0 when they hold a spare stone besides the one the axe will use, else the straight-line estimate there and back to the nearest known outcrop with stones; `success` is the attempt's chance; `expectedLogs` is the technique's logs at their expected quality. An axe begun keeps its technique. Techniques they only have the idea of are tried in practice, not for an axe they need. | A person weighs work, and the work a failure wastes, against how long the axe will serve, from what they know. A flaked axe pays when stones are close or skill at grinding low; a ground axe when stones are far or a long working life is ahead. Nothing in the engine says which is better. | +| Axe trade values an axe by the logs it will still cut: a buyer's worth is their own making cost per log, by their own best technique, times the axe's logs left. The seller's ask is their extra energy to make one by the technique they would use. | Life 9's make-or-buy comparison, extended to axes of different lives. A ground axe sells for more than a flaked one because it serves longer. | +| Talent draws come from a new `talent` stream; the skill and craft streams are no longer drawn. Attempts and inventions draw from streams named by person and minute. | Founders' places, bodies and traits stay as Life 16's on every seed. | +### Ties, asking and giving (Life 16, unchanged) + +| Decision | Reason | +| --- | --- | +| A tie is held in each person's own memory, keyed by the other's id: familiarity, credit and grievance, all in minutes, with the minute their time together was last counted and the calendar day the person last asked the other. | The roadmap asks for relationships held in memory per pair. Each person keeps their own view (rule 1): what I think you owe me is my count, not yours. One unit for all three lets one rule compare them. | +| Familiarity is the minutes two people spent within talking distance, neither walking. It is counted when either wakes, from the later of their two task starts and the last minute counted in either person's tie, so no minute is counted twice, and added to both people's ties equally. | Nobody is stepped minute by minute, but a person who is not walking stands still for the whole of their task, so two people standing within 20 m when one wakes have stood there together since the later of their task starts. The count is exact for people standing still and needs nothing new tracked. Walking side by side does not count until groups travel together (step 20). | +| Credit is the minutes of the person's own work a gift stands for: kcal at their own berry-picking rate, wood at their own gathering rate. Giving adds to the giver's credit with the receiver; receiving takes from the receiver's credit with the giver. Positive credit means "they owe me". | Foragers keep account of sharing in effort, not in a currency (Gurven 2004). Each person can value a gift only by what it would cost them, which they know. The two views of one gift can differ, as they do in life. | +| Grievance grows by `refusalGrievanceMinutes` (60) each time a person is refused by someone who had something to spare. It is the only harm in this step. | Stinginess is the grievance foragers voice most (Peterson 1993; Woodburn 1998). Fights, injury and theft come with conflict, deferred until the valley knows scarcity, and will add to grievance then. A fixed amount per refusal is judgement, listed for later. | +| Ties fade at midnight: each of the three loses the same share a day, `tieFadePerMillion` (3,844), so that it halves in 180 days without renewal. A tie whose three values are all zero is forgotten. | Ties not kept up weaken over months (Roberts and Dunbar 2011). Day-anchored: forgetting is a matter of real time, not of the year's length. Fading credit and grievance too means old debts and old slights are let go. | +| A person holds at most `tiesRemembered` (150) ties. A new tie when full forgets the one with the least familiarity, ties by lowest id. | Dunbar's number: about 150 people a person keeps up with (Hill and Dunbar 2003). With forty founders it never binds; it bounds memory once generations arrive. | +| A person asks when hungry and carrying no food after eating, or short of one night's firewood and holding none spare. They ask, one after another, the living people within talking distance whom they know (familiarity above zero) and can see carrying food, or holding wood, closest tie first: highest familiarity less grievance, ties by id. They ask each person at most once a calendar day, and stop asking for a thing once given some of it. | Demand sharing: among foragers food is mostly given when asked for, not offered (Peterson 1993). What someone carries within 20 m is visible, so the asker acts on what they could know. Asking strangers is left out: among foragers sharing follows ties. Once a day keeps a refusal from being repeated every wake-up. | +| The person asked gives when `familiarity · trustPerMille · agreeablenessGive / 1,000,000 ≥ credit + grievance`, all from their own tie with the asker; otherwise they refuse. | Goodwill from time together must cover what the asker already owes and any grievance. A debt the giver owes the asker (negative credit) makes giving easier: reciprocity follows from the ledger, not from a rule saying "repay". `trustPerMille` (100) makes ten minutes together vouch for one minute of work: one night beside each other covers a gift of about 70 minutes' picking. Judgement, listed for later. | +| Agreeableness scales goodwill: `agreeablenessGive = clamp(1,000 + 500 · z / 1,000, 0, 2,000)`. | The roadmap gives agreeableness two parts of one job: yielding in disputes and sharing more. Agreeable people give more to others in sharing games (Ben-Ner et al. 2004). This is the trait's second rule, alongside the exchange price; both are about giving way to another. | +| A gift of food is what the giver carries beyond what they would eat to reach their own satiation, up to what the asker lacks to reach theirs, oldest lots first. A gift of wood is the giver's wood above their own stock target, up to what the asker wants. | People give what they can spare, not what they need tonight. Giving up to the asker's own satiation is the asker's own measure of need. | +| Exchange is unchanged and comes first: a person who can buy what they need asks nobody. A swap builds no credit. | A swap is paid for at the time; both sides gain and nothing is owed. Keeping exchange as it was isolates what ties add. | +| Ties, asking and giving draw nothing at random. | Who asks whom and who gives follow from memory and fixed orders; nothing is uncertain enough to need a draw. | + +### Ways and planning (Life 15, unchanged) + +| Decision | Reason | +| --- | --- | +| A way is the corridor of triangles a walk crossed, kept with its two end points, the minute it was planned and the person's knowledge revision then. The path is pulled tight afresh along the corridor at each use and timed for the walker's load. | The corridor is what a person remembers ("along the stream, through the gap"); pulling it tight is the walking. Keeping the corridor rather than a timed path keeps a way good under any load: a load changes speed, not the way. | +| Ways are kept only for walks to a place, a bank point or the person's hearth, never to a frontier. | Habits form between places used again. Exploring is by definition going somewhere new. | +| A way can be walked in either direction, and joined part-way: a walker standing in a triangle of a way with an end at the target walks the rest of it. | Home to thicket is also thicket to home. Joining from part-way is what makes a habit useful when a walk starts from elsewhere, for instance after an interrupted walk. | +| Joining is only from a triangle on the way itself, not from nearby. (Update 071 keeps this.) | Joining from nearby needs a small search to reach the way and a rule for how near. The exact rule is simpler and already covers walks resumed along a way. A join radius is a question for later. | +| When several ways could serve, the one used most recently wins, ties by lowest way number. | A deterministic, human rule: take the route you took last time. | +| A person keeps at most `waysRemembered` (64) ways. A new way to the same two end points replaces the old one; when full, the way used longest ago is forgotten, ties by lowest way number. | Bounds memory and work per person. People forget routes they stop using. | +| A remembered way is reconsidered when it is about to be used, if `wayRecheckMinutes` (one day) has passed since it was planned and the person's knowledge has grown since. Otherwise it is used as it is, even if a shorter path is now known. | Rules 2 and 10: local, not optimal, decisions, and learning through experience. People notice a shortcut eventually, not the instant it comes into sight. Once a day bounds re-planning per way. | +| A way whose triangles are not all still walkable and known to the person is dropped and planned afresh. | Nothing can block a way in this step, because the ground does not change and knowledge only grows; the rule is for floods, fences and palisades later, and costs one pass over the corridor. | +| An idle person who has nothing new to explore no longer tours the places they know. Once a day they walk out along a remembered way from home, the one used longest ago, and otherwise go home and rest. | Foragers spend much of the day resting and in company at camp (Hawkes et al. 1997; Marlowe 2010), and learn the state of patches while out foraging, not by inspecting every one daily. In Life 14 an idle person walked to every known place unchecked for a day, about 210 short walks a day each from day 13, which also made late days slow. A walk along a known way needs no planning, and refreshes the memory of the place at its far end. | +| A new plan is straight if the line to the target crosses only known walkable ground. (Update 071.) | People head for what they are going to when nothing they know of stands in the way (Hochmair and Frank 2000). One step per triangle crossed. | +| Otherwise a new plan is steered: an A\* over the person's pieces of known ground picks a chain, and the walker crosses it piece by piece, heading for the crossing into the next piece nearest the line to the target, straight where they can and by a fine A\* within the one piece where they cannot. (Update 071; from update 068 to 070 the fine A\* ran over a band of chunks around the whole chain; before, the coarse A\* ran over whole chunks.) | People plan by regions before footing and steer round obstacles as they meet them (Golledge 1999), rather than comparing every footing to the goal. A fine search within one 200 m piece is what a walker can see and judge on the spot. Searching the whole band expanded about twenty times the triangles of the path. | +| The crossing into the next piece is the edge between the two pieces whose midpoint is nearest the straight line from the walker's entry point to the target, ties by the lower triangle id on the walker's side. | The least-angle rule: of the ways onward, take the one pointing most nearly at the goal. It is local, needs no look further ahead, and is deterministic. | +| A person's piece is a largest set of their known walkable triangles in one chunk joined to each other by shared edges within that chunk; it is numbered by its lowest triangle id. Two pieces in different chunks are linked when a known walkable triangle in one shares an edge with one in the other. A triangle belongs to the chunk holding its centroid. The coarse cost is the distance between chunk centres, ties by piece number. | It uses only what the person knows (rule 1), and only ground they know to be joined, so the coarse plan never promises a crossing that is not there. Linking whole chunks failed whenever a chunk held two separate patches of known ground, which on day 13 sent a third of all new plans to a search of everything known. | +| Pieces are worked out from the person's knowledge when needed and not stored in the state; only the chunks holding newly learnt triangles are worked out again. | They follow from knowledge alone, so keeping them would add state that could disagree with it. Most chunks change rarely once known. | +| There is no search over all known ground, and no guard. (Update 071; from update 068 to 070 a `full` search was kept as a guard.) | A piece is joined-up known ground, so the search within a piece always succeeds, and a chain of pieces always yields a walk. | +| The still landscape is surveyed again only once the person stands `resurveyCm` (100 m) or more from where they last surveyed it. People, people-made places and the stock where the person stands are looked at every wake-up. | Ground, water, thickets and stands do not move; looking again over the same kilometre from the same spot learns almost nothing. 100 m is a tenth of the sight radius: what is missed at the edge of sight is learnt on the next move. | +| The route cache by exact end points, knowledge revision and load is removed. | Ways replace it. It was almost never reused, because a start a centimetre away or one newly seen triangle made a new key. | +| Travel estimates for choosing targets stay straight-line lower bounds. | A person judges how far a place is before walking; the way is what they then walk. | + +### Bodies and personality (Life 14, unchanged) + +| 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. | +| 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. | +| Strength sets the wood load: `woodLoad · (grip + referenceGrip) / (2 · referenceGrip)`. | Carrying depends on legs and back as much as hands, so women's loads are closer to men's than their grip is: an average woman carries about 26 kg, an average man about 33 kg, the weakest about 17 kg. A log stays one log for everyone: only the speed it costs differs. | +| Weight replaces the single `bodyKg`: it weighs the load against the body for walking speed, sets the thirst thresholds, and scales every kilocalorie rate. | A heavier body carries a load more easily, holds more water and burns more energy for the same work. Scaling by weight keeps strength from being free: a big strong person carries more but must eat more. | +| Five traits, each stored as a normal score in thousandths of a spread, clamped to three spreads. | Personality is measured as continuous scores with a normal spread in every population; a score in spreads lets each rule say "one spread more moves this by so much". | +| Each trait has exactly one job, attached to a decision people already make, and no trait touches another trait's decision. | Rule 13: a trait with no mechanism is cut. One job each keeps every effect traceable to one trait. Agreeableness's yielding and neuroticism's flight wait for disputes, when conflict is built, but each already has a job now, so neither is cut. | +| Every trait rule is a person's own threshold or share. No trait sets an outcome. | Rule 4: behaviour emerges from incentives. A trait shifts where a person draws a line; whether that pays is left to the world. | +| An average person behaves close to Life 13, but not exactly. | Life 13's rules had no margin before dusk and treated unseen stocks as full. The average person now keeps half an hour before dusk and expects three quarters of an unseen stock. Keeping Life 13 exactly for the average would need rules that only matter at the extremes. | +| Bodies and traits come from their own streams. | The founder stream draws exactly as before, so a person's start, body and traits on a seed are unchanged. | + +## World + +### Terrain, water and ground + +Terrain heights on the 5 m `terrainCellCm` lattice, ground classes per cell, drainage, lakes, river reaches and their levels are generated exactly as in Life 12 and 13, from the same eleven terrain streams and the same parameters, over a square `valleySizeCm` across. The world size setting sets `valleySizeCm` in whole kilometres from 1 to 10; landform counts scale with area, rounded, so that density is the same at every size. The hydrology's shoreline, where each cell's ground meets its water level, is the mesh's input. Water remains an external reservoir: drinking withdrawals are recorded and lower nothing. + +The land is held in chunks of `chunkCm` (200 m). A chunk indexes its places, its bank points, its triangles and the people currently in it. + +### The ground mesh + +Unchanged from Life 13. The mesh is built once per layout, in this order: + +1. **Shorelines.** The hydrology's shore segments are joined into polylines, each ending on itself or on the valley's edge, and simplified by Douglas–Peucker to `shoreToleranceCm`. A simplification is rejected, keeping the vertex, if the new edge would cross or touch another shore edge. A polyline closing on itself keeps at least three vertices. Every shore vertex has integer coordinates and its water level as its height. +2. **Relief vertices.** The valley is divided into squares of `meshMaxEdgeCm` (40 m). A square is split into four while it is larger than one terrain cell and, at any 5 m lattice point inside it, either of its two triangulations strays from the generated height by more than `meshHeightToleranceCm`. The corners of every resulting square are vertices, with their generated heights. Vertices inside water take the water's level as their height and keep the bed height below it as their depth. Vertices within `shoreToleranceCm` of a kept shore edge are dropped. +3. **Triangulation.** All vertices are triangulated by a constrained Delaunay triangulation with every simplified shore edge and the valley's edge as constraints, vertices sorted by `y` then `x` before insertion. Delaunator 5.1.0 and Constrainautor 4.1.0, pinned. A dry 5 m lattice point whose triangle still strays by more than `meshHeightToleranceCm` becomes a vertex and the triangulation is rebuilt, until no dry point strays. +4. **Area types.** Each triangle takes the hydrology at its centroid: `lake` or `river` with its body's id, otherwise `ground`. Each kept shore edge knows its water side from a vote of the hydrology's shore segments beside it, and the triangles on either side take that side's type. Every edge between a ground and a water triangle is a shore edge. A ground triangle takes the ground class of the terrain cell holding its centroid. +5. **Index.** Each triangle records its vertices counter-clockwise, its neighbours, area type, body, ground class, plane and chunk. A grid of 20 m buckets lists the triangles overlapping each bucket. +6. **Regions.** Walkable triangles connected through shared edges form regions, numbered by their lowest triangle id. The largest by area is the main land. + +Height at any point is the plane of the triangle holding it, rounded down. A point on a shared edge or vertex belongs to the lowest-numbered triangle holding it. Slope is the triangle's gradient. + +### Places + +A place is a thing someone can decide to go to. Each has an id, a kind, a position on walkable ground, a chunk, and for resource places one stock. Kinds: + +| Kind | Stock | Count on 4 km | +| --- | --- | --- | +| Berry thicket | kcal of berries, wood in dead stems | 800 | +| Hazel thicket | kcal of nuts | 800 | +| Tree stand | kg of deadfall wood, standing logs | 300 | +| Outcrop | stones | 100 | +| Drinking bank, fishing bank | none; the water body holds the fish | from the mesh's shore edges | +| Hearth, flag, hut site | the group's fire wood; the hut's logs | made by people | + +Places are laid out by the layout stream with Life 11's spacing, their footprints wholly on walkable triangles. A berry thicket yields `berryThicketKcalPerYear` (5,400 kcal) in a normal year and a hazel thicket `hazelThicketKcalPerYear` (150,000), each per 365 days and only in its window, below; a stand holds 300 kg of wood, 60 kg of deadfall a year and 36 logs, with 10 kg of crown wood per felled tree; an outcrop 60 stones. A berry thicket's dead stems give wood as before. Picking retains Life 11's stock-dependent slowdown: the skill-adjusted full rate is multiplied by the remembered fraction of capacity remaining, rounded down, when the task starts, fixed until the next wake-up; production is capped at the stock remaining when credited. + +Bank points come from the mesh: each shore edge between a walkable and a water triangle gives at most one bank point, set back half a metre (or `reachCm`, if less) from the edge's midpoint into the walkable side and kept by Life 11's approach rule. Its id is the edge's half-edge number. + +Every person's **store** lies at their hearth. It is not a place others can use; it is drawn by the observer. + +### Seasons, crops and losses + +The calendar counts days of the year from the spring equinox. The run's minute 0 is day `arrivalDay = floor(arrivalPerMille · daysPerYear / 1,000)` of year 0, so `dayOfYear(minute) = (day + arrivalDay) mod daysPerYear` and `yearOf(minute) = floor((day + arrivalDay) / daysPerYear)`, where `day = floor(minute / 1,440)`. A window `[startPerMille, endPerMille)` covers days `floor(start · D / 1,000)` up to but not including `max(that + 1, floor(end · D / 1,000))`: the berry window is `berrySeason` (330‰ to 450‰) and the nut window `nutSeason` (450‰ to 580‰). At 90 days a year arrival is day 29, berries ripen on days 29 to 39 and nuts fall on days 40 to 51; at 365 days, days 120 to 163 and 164 to 210; at 8 days, day 2 and day 3. + +Once a year, at the first midnight of each calendar year and at minute 0 for year 0, the world draws the year's class for berries and then for hazel from the `harvest:` stream, below. A place's crop for the year is `crop = floor(kcalPerYear · D · factor / (365 · 1,000))`, with `factor` the class's per mille for its kind. Its capacity is `max(1, floor(kcalPerYear · D · goodFactor / (365 · 1,000)))`. + +Once a day at midnight, in this order, each berry and hazel place: + +1. loses `floor(stock · lossPerMille / 1,000)` to animals and rot; +2. if the day lies in its window, at window day `i` of `w`, gains `floor(crop · (i + 1) / w) − floor(crop · i / w)`, capped at capacity. + +Stands' deadfall and logs regrow as before, year-anchored. Fish per lake and reach keep Life 11's capacity and logistic growth, applied once a day with an exact carried remainder, now at `fishGrowthPercentPerYear` per 365 days whatever the year's length; a depleted body is not reseeded. Hut weathering is day-anchored: one log every `hutLogDays`. The day's losses, crops, overflow above capacity and fish growth are recorded as world ledger totals. + +## Time + +### The clock + +The run starts at minute 0, midnight of day 0 of year 0. A day is 1,440 minutes; dawn is minute 360 and dusk minute 1,080; a year is `daysPerYear` days. Day and year are derived from the minute; nothing stores them. + +### Wake-ups + +The state holds a queue of wake-ups `(minute, phase, id)`. Phases, in order within a minute: `world` (daily regrowth, spoilage, invariants at midnight; fires at each hour), then `person`, ordered by id. `stepValley(state, toMinute)` pops and runs wake-ups until the queue's head is past `toMinute`, and is pure: it returns a new state and the events of the interval. `advanceValley(state, toMinute)` runs the same loop on the state itself, for a caller that owns it, as the worker does (update 070). Cancelling a person's wake-ups marks them; a marked entry is dropped when it reaches the front. + +A person's wake-up is scheduled by: + +- **task end**: a walk arrives, a load is full, a thicket is emptied at the current rate, an axe or hut log is finished, sleep ends at dawn, a rest ends after an hour; +- **body threshold**: when a task starts, the minute at which energy or water will cross the person's next threshold (hungry, thirsty, severely thirsty, fatal) is computed from the task's rates and scheduled if it falls before the task's end; +- **arrival in the chunk**: a walker whose route enters a chunk wakes every person in that chunk whose task is interruptible at the minute of entry; +- **address**: a meeting, an exchange offer, an axe request or a delivery wakes the addressee in the same minute, after the addresser. + +A wake-up removes the person's other pending entries; a person has at most one future task end and one future threshold in the queue. + +### Between wake-ups + +A person's record holds the task, its start minute, its route (for a walk) and the body at its start. Position at minute `m` is the point along the route at the distance walked by `m`; for other tasks it is the place. Energy and water at `m` are the start values less the person's rates for the task over `m - start`, with the start's remainders. The observer and perception read these functions; nothing stores a per-minute body. + +### Cadences + +| System | Cadence | +| --- | --- | +| 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 | +| Deaths drawn, births, conceptions, growth of bodies under 18 | 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 | +| Bodies | Lazily, at the person's wake-ups | +| 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 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), 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 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:`** (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, stores, pairing, kin and growing up draw nothing. + +## Bodies and personality + +### Integer normal draws + +A standard normal in thousandths is `z = u1 + u2 + … + u12 − 5,994`, each `u` drawn by `randomInt(1,000)` from the stream, then clamped to −3,000…3,000. + +A correlation matrix `C` in per mille (1,000 on the diagonal) gives a lower-triangular factor `L` in per mille, computed in integers once per configuration: + +- `L[i][j] = trunc((1,000 · C[i][j] − Σ_{k:`: it succeeds if `randomInt(1,000) < success(P_t)`, with `success(P) = floor(1,000 · d² / (d² + attemptHalfPercent²))`, `d = max(0, P − skillFloorPercent)`; otherwise it breaks after `1 + randomInt(needed)` seconds of work, and the draw is stored with the axe in progress. A break ends the making: the stone is lost, the wood returned to the person, and a `broke` event records the person, the technique and the seconds worked. On finishing a success, its quality is drawn from the axe stream uniformly from `floor(P_t / 2)` to `P_t`, at least 1, and it cuts `max(1, floor(logs_t · quality / 100))` logs; a log's cut takes `logChopMinutes · 100 / quality` minutes, as in Life 9, whatever the technique. The expected quality is `max(1, floor(3 · P_t / 4))`. An axe records its technique. The first success by a technique the person did not know makes it known, and a `learnt` event records it. + +**Choosing a technique.** When a person starts an axe they need (priority 8), they take the known technique with the least `1,000 · (makeSeconds_t + stoneSeconds) / (success_t · expectedLogs_t)`, compared as the cross products in integers, ties by technique order. `stoneSeconds` is 0 if they hold a spare stone besides the one the axe will use (corrected in implementation: a person beginning an axe always holds one, so "holds a stone" would never count the walk); otherwise twice the straight-line walking estimate from their hearth to the nearest outcrop they remember holding stones. `expectedLogs_t` uses the expected quality. + +**Midnight.** For each living person, in id order, in the `world` phase after spoilage: each experience `E` first fades by `(E · fadePerMillion + remainder) / 1,000,000` rounded down, the rest carried; then gains `(seconds · 365 · learn + remainder) / (daysPerYear · 1,000)` rounded down, the rest carried, from the seconds worked that day at foraging (picking, nuts and fishing), at gathering wood, or at making by that technique, broken attempts and practice included, with the matching talent. `practicedToday` is cleared. Then skills, rates and proficiencies are set, and a `skills` event records each experience before and after, the seconds worked, and the new skills. Chopping logs and delivering them are not counted as experience, as in Life 9. + +**Inventing.** When a stint of axe work of `S` seconds ends (the making task ends, is interrupted, finishes or breaks), for each technique `s` the person has no idea of and whose `needs` they know, in technique order, they draw `randomInt(1,000,000)` from `invent::`; below `min(1,000,000, floor(S · inventPerMillionPerHour · 365 · opennessInvent / (3,600 · daysPerYear · 1,000)))` they gain the idea of `s`, and an `idea` event records the person, the technique and `invented`. `opennessInvent = clamp(1,000 + 1,000 · z / 1,000, 0, 3,000)` from openness. + +**An idea from an axe.** A person who buys an axe by a technique they have no idea of gains its idea, and an `idea` event records `from an axe` and the maker. + +**Practice.** A person at their hearth under priority 9, with no frontier in their exploring range, practises if `practicedToday` is below their budget `floor(practiceMinutesPerDay · conscientiousnessPractice / 1,000)`, `conscientiousnessPractice = clamp(1,000 + 750 · z / 1,000, 0, 3,000)` from conscientiousness. They continue a practice axe in progress; else they begin one, by the lowest-numbered technique they have the idea of and do not know, else by the technique they would choose for an axe, if they hold a stone and `axeWood`. A practice stint is a making task that ends when the budget is spent, at the latest; `practicedToday` adds its minutes. Lacking a stone, they fetch one from the nearest known outcrop with stones within their exploring range if they can be back before dusk less their margin, as for an axe; otherwise, and once the budget is spent, they take their walk or rest as under Leisure. A finished practice axe is held as their axe if they have none, else as a spare for sale; if they hold both, they take it apart, `dismantled`, and its stone and `axeWood` are back in hand for the next try. A dismantled axe counts as an attempt that worked: it gives experience, can make its technique known and can bring an idea. (Added by the owner after the first measurement, in which practice stopped once a person held an axe and a spare, as an implementation rule had it, so that people practised two to four hours a year. A member who comes to need an axe for their hut while a practice axe is in progress finishes it under priority 8, outside the budget, rather than leaving its stone and wood stranded.) + + +**Founders.** At creation each founder's experience is `founderForageHours · 3,600 · forageLearn / 1,000` for foraging, likewise for wood, and `founderCraftHours · 3,600 · craftLearn / 1,000` in each technique known; every founder knows the flaked axe, and the tranchet and ground axes by the talent stream's draws; a founder has the idea of every technique they know and of no other. Skills, rates and proficiencies are then set as at midnight. + +**Who knows what.** A person knows their own experience, skills, ideas, techniques and talents, and nobody else's. They see an axe's technique when they acquire it. + +## 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; 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 same factor over the reference body's; 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`. 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 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 mother is addressed: her body is paid to that minute, the kcal and water are moved, and her next threshold is rescheduled. A feed draws nothing. + +**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 taken from the room in the carrier's loads. 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. + +**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, and a pregnant woman's `pregnancyKcalPerDay`. + +**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 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. + +**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 + +| Task | Ends when | Rates per hour (kcal, ml) | +| --- | --- | --- | +| Walk | Route's last segment arrives | the person's walking rates | +| Pick berries, gather nuts, fish | Carried reserve room is full, the stock at the current rate is exhausted, or the person's return before dusk is due | the person's picking rate | +| Gather nuts for the store | The nuts carried weigh the person's load capacity at `nutKcalPerKg`, the stock at the current rate is exhausted, or the person's return before dusk is due | the person's picking rate | +| Eat from the store | Carried reserve room is full or the store is empty; at the hearth only | the person's resting rate | +| Drink | Deficit is below `drinkStopMl` | the person's resting rate | +| Gather wood | The person's load is full or the stock is exhausted | the person's gathering rate | +| Cut a log | `logChopMinutes` scaled by axe quality | the person's chopping rate | +| 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. 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; 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, 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, 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 | +| --- | --- | --- | +| 1 | Severe thirst, day or night | Drink at a reachable bank, else walk to the nearest known accessible bank, else explore for water. No margin applies. | +| 2 | Away from home and night, or the walk home would end after dusk less the margin | Walk home by the known route; explore to recover one if there is none. | +| 3 | Night | Sleep. Ordinary thirst waits; severe thirst wakes. | +| 4 | Thirsty in daylight | Drink or seek water, leaving time to return before dusk; if no eligible bank is known, search a frontier; if too late, return home or rest. | +| 5 | Carrying a log | Take it home. | +| 6 | Not hungry and filling or carrying a wood load or a store load | Finish the person's load, or take a full load home. | +| 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 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. + +## Food, wood, shelter and exchange + +As Life 13, with each person's own quantities: food in timestamped lots by kind, berries spoiling after 48 hours, nuts after `nutShelfLifeHours` (8,760) and fish after 24, in the hand or in a store; energy starting at 66,000 kcal, capped at 70,000, hungry below 64,000 and satisfied at the person's own level; wood need below one night's firewood, cleared at the person's own stock; store need below the person's own store target, under Seasons, harvests and stores; loads up to the person's capacity and logs of 35 kg; groups founded by two ungrouped people within 20 m, joined by a lone person, with a flag, a common fire burning 1 kg an hour at night, and a 23-log hut per member weathering a log every 60 days; axes attempted by technique from one stone and 1 kg of wood, a broken attempt losing its stone, cutting a log in 30 minutes at quality 100, as under Skills and techniques; rates from experience; wood-for-food swaps at the agreeableness price; axes asked at the maker's extra energy and valued by the logs they will still cut. Since Life 16, food and wood are also given when asked for, by the rules under Ties, from what is carried, never from a store. There is no money, no ownership of water, no forced or unasked sharing, no taking from another's store and no planned specialisation. + +## Defaults and configuration validation + +Run settings are unchanged: + +| Setting | Default | Range | +| --- | --- | --- | +| `seed` | 20260813 | any integer | +| `daysPerYear` | 90 | 8 to 365 | +| `worldKm` | 4 | 1 to 10 | +| `founders` | 40 | 1 to 1,000; the page allows 1 to 100 | +| `scattered` | true | | + +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: 230,476 at 0, 96,104 at 1, 12,478 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 | +| --- | --- | --- | +| `arrivalPerMille` | 330 | Founders arrive about 19 July, the first day of the berry season. Year-anchored. | +| `berrySeason` | 330 to 450 per mille | Bilberries ripen from mid-July to late August in northern Europe. Year-anchored. | +| `nutSeason` | 450 to 580 per mille | Hazelnuts fall from September to mid-October. Year-anchored. | +| `berryThicketKcalPerYear` | 5,400 | 9 kg on 452 m², 200 kg a hectare: a good wild bilberry patch (calibration, Food). Per 365 days. Replaces `berryThicketRegrowthKcalPerYear` (54,000). | +| `hazelThicketKcalPerYear` | 150,000 | 60 kg in shells on 0.126 ha, 477 kg a hectare (calibration, Hazel and the lake). Per 365 days. Replaces `hazelThicketRegrowthKcalPerYear`, same value. | +| `poorYearPerMille`, `goodYearPerMille` | 250, 250 | A poor and a good year each about one year in four. Judgement. | +| `berryYearPerMille` | poor 500, normal 1,000, good 1,400 | Berry crops vary less than nut crops. Judgement. | +| `hazelYearPerMille` | poor 300, normal 1,000, good 1,600 | Hazel's heavy and light years (calibration [31]). Judgement within the observed swing. | +| `berryLossPerMille`, `nutLossPerMille` | 48, 48 | Half of what lies on a thicket is gone in 14 days (median removal of fallen hazelnuts, about 14 days). Day-anchored. | +| `nutShelfLifeHours` | 8,760 | A year: dry hazelnuts in their shells keep about that long. Was 4,380. | +| `storeKcalPerDay` | 2,500 | A day's food for the 60 kg reference body, scaled by weight. Day-anchored. | +| `storeKcalPerHour` | 6,000 | Cracking and eating stored nuts, about 2.4 kg in shells an hour, faster than gathering them. Judgement. | + +`fishGrowthPercentPerYear` (40) keeps its value, now per 365 days. Removed: `berryThicketCapacityKcal` and `hazelThicketCapacityKcal`, now derived from the good-year crop, and the two regrowth parameters above. + +Parameters added by Life 17, unchanged: + +| Parameter | Default | Basis | +| --- | --- | --- | +| `skillFloorPercent`, `skillCeilingPercent` | 50, 150 | Life 9's practice range, now the range of the experience curve. | +| `forageHalfHours` | 16,000 | About an average founder's fifteen years of foraging: the average founder picks at the base rate. | +| `woodHalfHours` | 5,000 | As above, for an hour of wood a day. | +| `craftHalfHours` | 300 | Hundreds of hours to learn knapping (Pargeter et al. 2020; Stout 2002). | +| `transferPerMille` | 300 | A third of other craft experience helps a technique (Khreisheh 2013, direction). Judgement. | +| `experienceHalfYears` | 10 | Skill decay over years (Arthur et al. 1998, magnitude). Year-anchored. | +| `talentRule` | base 1,000, effect 250, low 250, high 1,750 | One spread more talented learns a quarter faster. Judgement. | +| `founderForageHours`, `founderWoodHours`, `founderCraftHours` | 16,425, 5,475, 150 | Fifteen years at three hours and one hour a day; about a hundred axes made in a life before. | +| `founderTranchetPerMille`, `founderGroundPerMille` | 250, 100 | Some founders bring the better techniques with them. Judgement. | +| `axeTechniques` | flaked 1 h, 10 logs; tranchet 2 h, 30 logs, needs flaked; ground 50 h, 200 logs, needs flaked | Calibration, Making an axe; the tranchet axe is an estimate. | +| `attemptHalfPercent` | 15 | Half of attempts work at 15 points above the skill floor; five in six at a founder's flaked axe. Judgement. | +| `inventPerMillionPerHour` | 556 | About one idea in 1,800 hours of axe work, year-anchored, at average openness. Judgement. | +| `opennessInventRule` | base 1,000, effect 1,000, low 0, high 3,000 | One spread more open has ideas twice as often; one spread less, never (Feist 1998, direction). | +| `practiceMinutesPerDay` | 60 | An average person practises an hour a day when nothing is needed. Day-anchored. Judgement. | +| `conscientiousnessPracticeRule` | base 1,000, effect 750, low 0, high 3,000 | One spread more conscientious practises 1¾ hours (Zell and Lesick 2022, direction). | + +Parameters added by Life 16, unchanged: + +| Parameter | Default | Basis | +| --- | --- | --- | +| `tiesRemembered` | 150 | Dunbar's number (Hill and Dunbar 2003). Never binds with forty founders. | +| `trustPerMille` | 100 | Ten minutes together vouch for one minute of work. Judgement. | +| `refusalGrievanceMinutes` | 60 | A refusal weighs about as much as an hour's work given. Judgement. | +| `tieFadePerMillion` | 3,844 | A value halves in 180 days without renewal (Roberts and Dunbar 2011, magnitude). Day-anchored, unchanged by `daysPerYear`. | +| `agreeablenessGiveRule` | base 1,000, effect 500, low 0, high 2,000 | One spread more agreeable gives on half again as little familiarity; three spreads less, never. | +Parameters added by Life 15, unchanged: + +| Parameter | Default | Basis | +| --- | --- | --- | +| `waysRemembered` | 64 | Enough for every place a person uses in a season and the ways between them; a person who uses more forgets the stalest. | +| `leisureWalkDays` | 7 | A leisure walk at most once a week, set by the owner to save computation. Judgement. | +| `wayRecheckMinutes` | 1,440 | A day: a shortcut seen today is taken from tomorrow. Day-anchored, unchanged by `daysPerYear`. | +| `resurveyCm` | 10,000 | 100 m, a tenth of the sight radius. | + +Parameters added by Life 14, unchanged: + +| Parameter | Default | Basis | +| --- | --- | --- | +| `womanHeightCm`, `manHeightCm`, `heightSdCm` | 154, 165, 6 | Mesolithic European stature. | +| `womanWeightKg`, `manWeightKg`, `weightSdKg` | 52, 62, 6 | Mesolithic European body mass. | +| `womanGripKg`, `manGripKg`, `gripSdKg` | 24, 38, 6 | Forager-horticulturalist grip strength. | +| `heightWeightPerMille`, `heightGripPerMille`, `weightGripPerMille` | 550, 350, 400 | Within-sex body correlations. | +| `traitCorrelationsPerMille` | the ten values in "Checked against", in the order O–C, O–E, O–A, O–N, C–E, C–A, C–N, E–A, E–N, A–N | van der Linden et al. 2010. | +| `referenceBodyKg` | 60 | The single body of Life 13, against which energy rates are stated. | +| `referenceGripKg` | 31 | The adult mean grip, halfway between the sexes; a person of this grip carries `woodLoad`. | +| `companyRadiusCm` | 60,000 | An average person approaches someone seen up to 600 m away; one spread more extravert, 900 m. | +| `duskMarginMinutes` | 30 | An average person turns home half an hour before dusk; one spread more neurotic, 45 minutes. | +| `exploreRangeCm` | 150,000 | An average person explores idle up to 1.5 km from home; one spread more open, 2.25 km. | + +The base, effect, low and high of each trait rule are the values in the personality table, held in the configuration as `extraversionRule`, `agreeablenessRule`, `conscientiousnessRule`, `neuroticismRule`, `opennessRule` and `opennessExpectRule`, each `{ base, effect, low, high }` in per mille. + +All other Life 14 defaults are retained. + +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 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. +- Every wake-up's body charge equals the person's own rates for the task over its minutes, with bounded remainders; energy and water at a wake-up equal the lazy functions evaluated there. +- **Ways:** every person holds at most `waysRemembered` ways, no two with the same end points; every way's corridor is a chain of triangles each sharing an edge with the next, every one walkable and known to the person, its first and last holding its end points; numbers are below the person's next way number; last-used minutes are not in the future. Every walk recorded as a way or joined walk stays within the triangles of the way it names. No walk is recorded as `full` (update 068). The checker does not recompute the pieces, the coarse band or the recheck rule; unit fixtures cover them. +- **Leisure:** nobody sets out on two leisure walks fewer than `leisureWalkDays` calendar days apart, and `leisureMinute` is the start of the last one. +- **Ties:** every person holds at most `tiesRemembered` ties, none to themselves or to an id that never existed; familiarity and grievance are not negative; `countedMinute` is not in the future, and `askedDay` is not after today. Where two people each hold a tie to the other with the same familiarity remainder, both have the same familiarity, unless one of them forgot the tie and made it anew. At midnight every value replays from the day before: fading, plus the time together, gifts and refusals recorded that day. +- **Gifts:** the giver's goodwill covered their credit and grievance, and both credits changed by the gift's value at each person's own rate; food and wood conserve across it in the stock and body ledgers. Nobody asks the same person twice in a calendar day. Every refusal for want of goodwill adds exactly `refusalGrievanceMinutes`, and one for want of anything to spare adds none. The checker does not recompute a gift's amount from bodies and loads; unit fixtures cover the amounts. +- **Skills:** every experience and remainder is non-negative and every remainder below its divisor; every talent, `opennessInvent` and `conscientiousnessPractice` equals the one recomputed from the scores; at midnight each experience replays from the day before: fading, plus the seconds worked that day at the matching task times the gain (corrected in implementation: the checker does not recount the seconds worked from the day's task records; it checks that craft seconds by technique sum to the day's making seconds, and replays every midnight within an interval in order, since a checked interval may span many days); and every stored skill, rate and proficiency equals the one recomputed from experience. Experience outside midnight never changes. +- **Ideas and techniques:** every known technique is among the person's ideas; the flaked axe is known by everyone; a technique becomes known only at a successful attempt by it, recorded by `learnt`; an idea is gained only by a founder, by an `idea` event whose invention draw, replayed from its stream and the stint's seconds, fell below the chance, or by buying an axe of that technique. Neither is ever lost while the person lives. +- **Attempts and practice:** every axe begun records its attempt draw, which the checker replays from its stream and proficiency; a broken attempt ends at its break second, loses exactly its stone and returns its wood; an axe in progress by a technique the person does not know is a practice attempt; `practicedToday` never exceeds the person's budget and is cleared at midnight. +- **Axes:** every axe in progress or made is by a technique its maker had the idea of when it was begun; its making time is that technique's at the maker's proficiency then; its quality lies within `floor(P/2)…P` and its logs follow from technique and quality. Every exchange of an axe values it by its logs left. +- **Survey:** each observation is replayed against the rule: it is a survey exactly when the person had no survey point or stood at least `resurveyCm` from it, and the survey point changes only at a survey, to where they stood. +- No person's trip wood exceeds their load capacity. +- Every exchange's price equals the agreeableness price for its two parties, and both gained at it. +- Every person's position at every recorded minute is on walkable ground, and every route segment lies in walkable triangles the person knew when the walk started. Nobody is at two places, and the chunk index agrees with positions. +- Food, wood, logs, stones and axes conserve at every event; fish and thicket stocks replay from losses, crops and takes; water withdrawals equal recorded drinks. +- **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 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 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. +- **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: + 1. **Where eaten food comes from.** A pie of kcal eaten by source: berries, fresh nuts, nuts from a store, fish. A choice above it sets the period: this season, this year or the whole run. Each slice is labelled with its share. + 2. **Food eaten each day.** A stacked area of kcal eaten per day by the same four sources, in the pie's colours, with a line for the kcal people burned that day. Where the area falls below the line, the valley is living off its bodies. + 3. **Where the food is.** Lines of food on the land, in stores and in bodies (the energy reserves of the living), by day. + 4. **Energy reserves.** The median reserve of the living by day, a shaded band from the lowest to the highest, and the followed person's reserve as a dashed line; each death is a mark on the time axis, coloured by cause. + 5. **Each year's crop.** One bar per year and kind, berries and hazel: the kcal grown, split into gathered by people, lost on the land, and still standing at the year's end; for hazel, nuts that spoiled in stores are a fourth part, taken from the gathered share. + +Unchanged from Life 17: skill levels, the skill card and strip, technique rows, practice and attempts in the panel and history. Unchanged from Life 16: the followed person's tie lines and "Ties" rows, gifts and refusals in the history, and the relationship graph. Unchanged from Life 15: ways drawn as faint lines and the wording for how a walk was found. Unchanged from Life 14: figures scaled to height and weight, the body line and five trait rows, and the exchange line. + +## Code layout + +- New `src/valley/lifecycle.ts`: ages; the midnight lifecycle in its order (deaths drawn, births, conceptions, growth); 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 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, 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 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. 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 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 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? +- Do people ration a store, eating fresh food first and the store only when they must, or do they empty it in autumn? The store competes with fresh food by the same score as everything else. +- Should the store target count the body's reserve, fish and a margin for a poor year? Here it is the days to the next berry season at a day's food, scaled by conscientiousness. +- Should group members share a store, or give from it when asked, and should taking from another's store be possible, as theft? Both wait for conflict and property. +- How dense should hazel be? Here thickets cover about 6% of the valley, which makes it a rich valley for Mesolithic foragers without game. +- 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 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 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 to be checked against the paper's table when the calibration document is written. +- 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. +- A seed-fate study of *Corylus mandshurica* in temperate forest (Global Ecology and Conservation, October 2024): 99% of released nuts eaten, median removal about 14 days. To be cited in full in the calibration document. + +- Peterson, N. (1993), *Demand sharing: reciprocity and the pressure for generosity among foragers*, American Anthropologist. +- Gurven, M. (2004), *To give and to give not: the behavioral ecology of human food transfers*, Behavioral and Brain Sciences: who shares with whom, and dyadic reciprocity. +- Allen-Arave, W., Gurven, M. and Hill, K. (2008), *Reciprocal altruism, rather than kin selection, maintains nepotistic food transfers on an Ache reservation*, Evolution and Human Behavior. +- Woodburn, J. (1998), *"Sharing is not a form of exchange": an analysis of property-sharing in immediate-return hunter-gatherer societies*, in Hann (ed.), Property Relations. +- Apicella, C., Marlowe, F., Fowler, J. and Christakis, N. (2012), *Social networks and cooperation in hunter-gatherers*, Nature. +- Hill, K. et al. (2011), *Co-residence patterns in hunter-gatherer societies show unique human social structure*, Science. +- Hill, R. and Dunbar, R. (2003), *Social network size in humans*, Human Nature. +- Zhou, W.-X., Sornette, D., Hill, R. and Dunbar, R. (2005), *Discrete hierarchical organization of social group sizes*, Proceedings of the Royal Society B. +- Sutcliffe, A., Dunbar, R., Binder, J. and Arrow, H. (2012), *Relationships and the social brain: integrating psychological and evolutionary perspectives*, British Journal of Psychology. +- Roberts, S. and Dunbar, R. (2011), *The costs of family and friends: an 18-month longitudinal study of relationship maintenance and decay*, Evolution and Human Behavior. + +- Siegel, A. and White, S. (1975), *The development of spatial representations of large-scale environments*, Advances in Child Development and Behavior: landmark, route and survey knowledge. +- Golledge, R. (1995), *Path selection and route preference in human navigation: a progress report*; Golledge, R. (ed.) (1999), *Wayfinding Behavior: Cognitive Mapping and Other Spatial Processes*. +- Hölscher, C., Tenbrink, T. and Wiener, J. (2011), *Would you follow your own route description? Cognitive strategies in urban route planning*, Cognition. +- Zhu, S. and Levinson, D. (2015), *Do people use the shortest path? An empirical test of Wardrop's first principle*, PLoS ONE. +- Hochmair, H. and Frank, A. (2000), *Influence of estimation errors on wayfinding-decisions in unfamiliar street networks: analyzing the least-angle strategy*, Spatial Cognition and Computation. +- Bailenson, J., Shum, M. and Uttal, D. (2000), *The initial segment strategy: a heuristic for route selection*, Memory and Cognition. +- Botea, A., Müller, M. and Schaeffer, J. (2004), *Near optimal hierarchical path-finding*, Journal of Game Development. +- Formicola, V. and Giannecchini, M. (1999), *Evolutionary trends of stature in Upper Paleolithic and Mesolithic Europe*, Journal of Human Evolution. +- Ruff, C. (ed.) (2018), *Skeletal Variation and Adaptation in Europeans: Upper Paleolithic to the Twentieth Century*: stature and body mass estimates. +- Gurven, M. et al. (2006), on strength and physical capacity among Tsimane forager-horticulturalists; Apicella, C. (2014), *Upper-body strength predicts hunting reputation and reproductive success in Hadza hunter-gatherers*. +- van der Linden, D., te Nijenhuis, J. and Bakker, A. (2010), *The General Factor of Personality: a meta-analysis of Big Five intercorrelations*, Journal of Research in Personality. +- Asendorpf, J. and Wilpers, S. (1998), *Personality effects on social relationships*; Ben-Ner, A., Kong, F. and Putterman, L. (2004), *Share and share alike? Gender-pairing, personality, and cognitive ability as determinants of giving*. +- Lee, R. (1979), *The !Kung San*; Marlowe, F. (2010), *The Hadza*: forager loads and daily work. +- Magnitudes for walking, slopes, loads, foods, fish, wood, shelter and tools remain in [CALIBRATION.md](CALIBRATION.md), which gains the body, strength and trait magnitudes above. Terrain, water and mesh references remain those of Life 10 to 13, in the changelog and lab notes. From dbd4eb39489ffc47234cd036f1637a029a4275ad Mon Sep 17 00:00:00 2001 From: NeoLorenzo Date: Mon, 9 Nov 2026 00:28:38 +0000 Subject: [PATCH 2/2] Life 19: generations, every person an agent from birth [LIFE19-Generations-078] Ages and growing bodies, nursing, carrying, children's range and work, provisioning and family store targets, pairing, kin, conception, birth, and deaths of illness, accident and age from the !Kung Siler fit (b1 0.913, Gurven and Kaplan 2007, Table 2). The checker rebuilds newborns and bodies through each interval and replays feeds and births. Observer: Life 19 labels, carried figures, family panel rows, People charts, partner and parent links. New fingerprints for all 22 runs; docs/LIFE19_SPEC.md replaces the Life 18 specification. --- CHANGELOG.md | 13 + LAB_NOTES.md | 20 + README.md | 6 +- docs/ARCHITECTURE.md | 7 +- docs/CALIBRATION.md | 41 +- docs/LIFE18_SPEC.md | 720 ------------------------- docs/LIFE19_SPEC.md | 46 +- docs/VALIDATION.md | 8 +- life.html | 4 +- src/valley/config.ts | 116 ++++ src/valley/engine.ts | 132 ++--- src/valley/fingerprintRuns.ts | 88 +-- src/valley/forager.ts | 67 ++- src/valley/generations.test.ts | 484 +++++++++++++++++ src/valley/growth.ts | 58 ++ src/valley/huts.ts | 34 +- src/valley/invariants.ts | 239 +++++++- src/valley/kin.ts | 121 +++++ src/valley/layout.ts | 40 +- src/valley/lifecycle.ts | 432 +++++++++++++++ src/valley/nature.test.ts | 14 +- src/valley/nature.ts | 82 ++- src/valley/nursing.ts | 79 +++ src/valley/perception.ts | 2 +- src/valley/replay.ts | 61 ++- src/valley/ruleFixtures.ts | 9 +- src/valley/skills.test.ts | 8 +- src/valley/skills.ts | 25 +- src/valley/social.ts | 27 +- src/valley/stores.ts | 46 +- src/valley/summary.ts | 2 +- src/valley/tasks.ts | 6 +- src/valley/ties.ts | 142 ++++- src/valley/trade.ts | 2 +- src/valley/types.ts | 172 +++++- src/valley/wake.ts | 183 ++++++- src/valley/world.ts | 23 +- src/valleyView/PeopleCharts.tsx | 80 +++ src/valleyView/RunSettingsScreen.tsx | 16 +- src/valleyView/TieGraph.tsx | 32 +- src/valleyView/ValleyApp.tsx | 169 +++++- src/valleyView/life.css | 15 + src/valleyView/valleyScene.ts | 38 +- src/valleyView/valleyViewModel.test.ts | 26 + src/valleyView/valleyViewModel.ts | 158 +++++- src/valleyView/viewCopy.test.ts | 8 +- src/valleyView/viewCopy.ts | 10 +- 47 files changed, 3035 insertions(+), 1076 deletions(-) delete mode 100644 docs/LIFE18_SPEC.md create mode 100644 src/valley/generations.test.ts create mode 100644 src/valley/growth.ts create mode 100644 src/valley/kin.ts create mode 100644 src/valley/lifecycle.ts create mode 100644 src/valley/nursing.ts create mode 100644 src/valleyView/PeopleCharts.tsx 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/LIFE18_SPEC.md deleted file mode 100644 index 7af535f..0000000 --- a/docs/LIFE18_SPEC.md +++ /dev/null @@ -1,720 +0,0 @@ -# [LIFE18-Seasons-076] - -**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. - -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. - -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 - -- **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. -- **Seasons.** Bilberries ripen from mid-July to the end of August and hazelnuts fall from September to mid-October, as in northern Europe. Outside those weeks the thickets grow nothing. Fish can be caught all year. The rest of the year, about nine months, nothing new can be gathered from the land. -- **Animals and rot take what people leave.** Ripe berries and fallen nuts are lost day by day: half of what lies on a thicket is gone within two weeks. A thicket nobody visits in its season gives nobody anything. -- **Good years and bad years.** Each year's crop of berries and of nuts is drawn for the whole valley: in a poor year hazel gives less than a third of its usual crop, in a good year half as much again. People learn which kind of year it is only by seeing the thickets. -- **Stores.** Each person keeps a store of nuts at their hearth. Adults know the calendar: in the nut season, a person who is neither hungry nor short of wood gathers nuts in loads and carries them home until their store would last them to the next berry season. The conscientious plan for all of it, the careless for part. Through the lean months people eat from their stores, fish, and draw on their bodies' reserves. Nuts keep for about a year. -- **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. - -## Checked against - -| Measure | Evidence and comparison | Status | -| --- | --- | --- | -| 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. | -| Loss to animals | Rodents and birds take most fallen hazelnuts: in a seed-fate study of a related hazel in temperate forest, 99% of released nuts were eaten, with a median removal time of about 14 days (Global Ecology and Conservation, 2024). Ripe berries left on the bush drop, rot or are eaten by birds within weeks. | A unit fixture: a stock nobody gathers halves in 14 days within 1%. Recorded once on the canonical seed: the share of each year's crop gathered by people and the share lost. | -| Storage | Mesolithic people gathered and processed hazelnuts in bulk: a single pit at Staosnaig on Colonsay held hundreds of thousands of burnt shells from one year's harvest, about 6000 BC (Mithen et al. 2001); roasting pits at Duvensee and elsewhere point to nuts processed for keeping. | Recorded once on the canonical seed: each person's store at the end of each nut season against their target and conscientiousness. Stores worth weeks to months of food are expected; nobody storing would mean the rule fails. | -| The lean season | Foragers and subsistence farmers lose weight in their lean season, commonly a few per cent of body weight, and regain it at harvest (Jenike 2001). | Recorded once on the canonical seed over three years: the median and range of energy reserves by day of the year; deaths by cause, day of the year and the year's crop. Reserves falling through late winter and spring and recovering at the berry season are expected; deaths, if any, in the lean season and after poor years. | -| What the valley carries | Temperate foragers lived at about 0.05 to 0.5 people a square kilometre (Binford 2001; Kelly 2013), on game as well as plants. This valley has no game yet and unusually dense hazel, so it is not expected to match; how many it carries is recorded, not tuned. | Recorded once on the canonical seed: the living at the end of each of three years. | -| Power law of practice | Across skills, time per task falls as a power of practice: each extra hour adds less than the one before (Newell and Rosenbloom 1981). | A unit test: skill rises with experience, each further block of hours adding less; skill is half way between floor and ceiling at the half-experience. | -| Adult foraging returns | Forager return rates keep rising slowly into the 30s and later, long after strength peaks, because skill takes decades (Kaplan et al. 2000; Koster et al. 2020). | Magnitudes, measured once on the canonical seed: each founder's foraging skill at day 0 and day 365 (a year of 90 days counts as a full year, below), as a median and range. A gain of a few per cent a year for an average founder is expected; most founders still improving at the end. | -| Craft learning | Knapping takes hundreds of hours to learn well: novices given about ninety hours of expert training still failed to make good handaxes (Pargeter et al. 2019; Pargeter et al. 2020); stone adze makers in Irian Jaya trained for years (Stout 2002). Novices' flakes overshoot and fail far more often than a mentor's (Eren et al. 2011). Earlier craft experience helped novices most (Khreisheh 2013). | Unit fixtures: an average-talent novice reaches a technique's half-way skill after `craftHalfHours` (300) of its own experience; a novice's attempts fail more often than an expert's. Recorded once on the canonical seed: attempts and failures by technique and proficiency. Most novice attempts at a new technique are expected to fail. | -| Skill decay | Skills unused fade over months and years, motor skills more slowly than knowledge (Arthur et al. 1998). | A unit test: experience with no work halves in `experienceHalfYears` (10) years within 1%. | -| Talent | Practice explains a minority of the differences in skill between people; the rest is in large part how fast they learn (Macnamara et al. 2014). | Magnitudes: the spread of founders' starting skills is similar to the 75% to 125% of born skill it replaces; recorded once on the canonical seed. | -| Ground and flaked axes | A flaked axe is knapped in under an hour; a ground axe needs about 60 hours of grinding and lasts many times longer (calibration, Making an axe). | Magnitudes; the tranchet axe's numbers are an estimate between the two. | -| Invention | Openness is the strongest and most consistent Big Five predictor of creativity and creative achievement; conscientiousness is mixed, higher among creative scientists and lower among artists (Feist 1998). New techniques are rare: most people use what they learnt. | Recorded once on the canonical seed: every idea, by invention or from an axe, with the person's openness and conscientiousness. A few ideas a year, nearly all from the most open people, are expected. | -| Practice | Conscientiousness predicts sustained effort and performance more than any other trait (Zell and Lesick 2022); conscientious people spend more time working and studying (Rohrer and Lucas 2018). | Recorded once on the canonical seed: hours practised per person against conscientiousness. | -| Specialisation | Among mobile foragers specialisation is modest: most adults do most tasks, and a few are known for a craft; full-time specialists appear in larger, settled societies (Marlowe 2010). | Recorded once on the canonical seed at day 365: how many people made the axes, and the spread of craft experience. A few people making most axes is expected; rigid specialists within a season would mean the learning rules are too strong. | -| Circles of ties | People's ties come in layers of about 5, 15, 50 and 150, each about three times the last, set by how often they meet: the closest few at least weekly, about 15 at least monthly (Zhou et al. 2005; Hill and Dunbar 2003; Sutcliffe et al. 2012). Among the Hadza, ties follow who shares a camp (Apicella et al. 2012). | Magnitudes, measured once on the canonical seed over days 30 to 89: for each person, how many others they spent time with on at least one day in seven, and on at least one day in thirty, as a median and range. With forty people only the 5 and 15 layers can show; layers of about that size, with a ratio near three, are expected. A flat result (everyone in a group equally close) is examined in the lab notes, not tuned away. | -| Reciprocity | Among foragers, what one household gives another correlates with what it receives back, moderately: dyadic correlations of roughly 0.2 to 0.6 across studies (Gurven 2004; Allen-Arave et al. 2008). Most food moves by being asked for (Peterson 1993). | Magnitudes, measured once on the canonical seed over days 30 to 89: the correlation, across pairs, between the food given one way and the other; the share of gifts that went to someone in the giver's group; and refusals against gifts. A positive, moderate correlation is expected. | -| Fading | Ties not kept up weaken over months: emotional closeness to friends falls measurably over a year and a half with less contact (Roberts and Dunbar 2011). | A unit test: a tie with no time together halves in 180 days within 1%. | -| Route choice | People rarely take the shortest path. Most commuters keep to habitual routes longer than the shortest one (Zhu and Levinson 2015); pedestrians choose by familiarity and simple rules such as "head roughly the right way" more than by distance (Golledge 1995; Hölscher et al. 2011). | Magnitudes, measured once on the canonical seed: how much longer walks on a remembered way are than the shortest path over the walker's known ground at that minute, as a median and the largest. A median within about 10% is expected; a large excess is examined in the lab notes, not tuned away. | -| Reuse | Habit: most trips go between a few familiar places along familiar routes (Golledge 1999). | Recorded once on the canonical seed: the share of walks by how they were found (a remembered way, a joined way, a coarse plan, a full plan), day by day. Most walks to places are expected to use a way after the first days. | -| New routes | People head towards the goal by the direction that points most nearly at it (Hochmair and Frank 2000), prefer a long straight first stretch (Bailenson et al. 2000), and take routes longer than the shortest (Zhu and Levinson 2015). Planning by regions before footing gives routes close to the shortest when regions are small against the trip (Botea et al. 2004). | Recorded once on the canonical seed from update 071: the share of new walks straight and steered, and how much longer each kind is than the shortest path over the walker's known ground at that minute, as a median and the largest. A median excess within about 15% is expected. | -| Adult height | Mesolithic Europe, from skeletons: men about 165 cm and women about 154 cm, each with a spread of about 6 cm (Formicola and Giannecchini 1999; Ruff 2018). The forty founders' means lie within 3 cm of these, and the sexes do not overlap much more than real ones. | Magnitudes; checked once on the canonical seed, and by a unit test over 10,000 draws. | -| Adult body mass | Mesolithic Europe, estimated from skeletons: men about 62 kg, women about 52 kg (Ruff 2018). | As above. | -| Strength | Grip strength, the standard field measure, among forager-horticulturalists (Tsimane, Hadza, Agta): men about 38 kg, women about 24 kg, with women's strength about 60% of men's (Gurven et al. 2006; Apicella 2014). | As above. | -| Body correlations | Within each sex, height with weight about 0.55, height with grip about 0.35, weight with grip about 0.40. | A unit test over 10,000 draws, each within 0.05. | -| 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). | - -## Design decisions - -### Seasons, harvests and stores (new) - -| Decision | Reason | -| --- | --- | -| **The land's food is day-anchored.** A thicket's yearly crop and a lake's yearly fish growth are stated per 365 days; in a year of `daysPerYear` days the land grows `daysPerYear / 365` of it. The windows in which food ripens stay year-anchored, as fractions of the year. Rule 9 of the design rules is amended to say so. | Eating is day-anchored, so the food that feeds it must be too, or a short year multiplies the land: at 90 days a year the valley fed four times what it would in life. With food grown by the day, a short year has short seasons, short lean months and small crops, in proportion, and a year's balance of food against mouths is the same at any setting. This is the one declared compression applied consistently, not a new one. | -| Wood, deadfall and tree regrowth stay year-anchored in this step. | The valley's woodland, 300 stands of 15 m on 16 km², is a small fraction of the forest that covered Mesolithic northern Europe. Anchoring wood by the day without also giving the valley its real woodland would make fuel short for a reason that is not real (realism rule 5). Wood and woodland are a question for a later step. | -| **Berries ripen from 330‰ to 450‰ of the year and hazelnuts fall from 450‰ to 580‰**, counted from the spring equinox; at 365 days, from about 19 July to 31 August and from 31 August to 20 October. Each window is at least one day. Fish are caught all year. | Bilberry and hazel seasons in northern Europe. Nothing else grows in this valley yet, so the windows are the year. | -| **Founders arrive at 330‰ of the year**, the first day of the berry season. The run's minute 0 is that day; the calendar counts from the spring equinox. | Strangers dropped in spring would have no food on the land for about four months, more than their bodies hold: everyone would die before the first berry, which says nothing about the valley. Arriving at the start of the season gives them one harvest to prepare. | -| A berry thicket yields `berryThicketKcalPerYear` 5,400 kcal (9 kg) a normal year, 200 kg a hectare of its 452 m² footprint. A hazel thicket keeps 150,000 kcal (60 kg in shells), renamed `hazelThicketKcalPerYear`. | 200 kg a hectare is a good wild bilberry patch, between forest averages of 4 to 65 and an exceptional field's 630; a thicket is a patch worth walking to, so it sits towards the top. The old 54,000 kcal was ten times this. Hazel's 477 kg a hectare was already calibrated against wild woodland and is kept. | -| **Each year's crop is drawn for the whole valley**, once for berries and once for hazel, at the start of each calendar year and at the founders' arrival for year 0: a poor year with chance `poorYearPerMille` (250), a good year with `goodYearPerMille` (250), else normal. Berries give 500‰, 1,000‰ or 1,400‰ of a normal crop; hazel 300‰, 1,000‰ or 1,600‰. | Nut crops swing widely and in step over whole regions, and hazel bears heavy and light years. A per-thicket draw would add noise with no mechanism behind it. Three classes are the simplest form that gives famine years; the means are close to a normal year, so poor years are not offset by a rule. The sizes are judgement within the observed swing. | -| A year's crop at a place is `floor(kcalPerYear · daysPerYear · factor / (365 · 1,000))`, delivered over the window's days by the exact daily share, added at midnight and capped at the place's capacity. Capacity is the good-year crop, at least 1 kcal. | The same exact sharing as before, now over the window. Capacity bounds a stock without binding in practice, since losses keep a thicket below a full crop. Picking still slows as a thicket empties against its capacity, as since Life 11. | -| **Losses:** at midnight, before the day's crop, a berry or hazel place loses `floor(stock · lossPerMille / 1,000)`: `berryLossPerMille` and `nutLossPerMille`, 48 each, so half of what lies there is gone in 14 days. Losses are recorded per day in the world's ledger as eaten by animals or rotted. | A related hazel's fallen nuts were removed with a median of about 14 days; berries rot or are taken within weeks. Without losses a crop would wait on the thicket for the whole year and seasons would only delay food, not limit it. Day-anchored, like spoilage. | -| Nuts keep `nutShelfLifeHours` 8,760, a year, in a store or carried. Berries (48 hours) and fish (24) are unchanged and are never stored. | Dry hazelnuts in their shells keep for about a year, and Mesolithic people roasted them, which keeps them longer. Half a year, as before, would spoil a store before the next harvest at a full-length year. Drying berries and smoking fish are recipes for a later step. | -| **Everyone knows the calendar.** A person knows the windows of each food, as an adult forager knows when bilberries ripen, but not this year's crop. | Rule 1: what a person could plausibly know. Founders are adults with fifteen years of foraging behind them. The year's crop is learnt only by seeing thickets. | -| **Expected stock follows the calendar.** A person expects a seasonal place to hold what they last saw if they saw it since the start of its most recent window, grown since by a normal crop's daily shares while the window is open; else, while its window is open, the openness share of what a normal crop has grown so far; else nothing. | Someone who saw a thicket full in August does not walk to it in February. Before this step the remembered stock was trusted all year, which seasons would make foolish. The openness share for an unseen place is unchanged. | -| **Each person has one store, at their hearth.** It holds food lots with their minutes, spoiling as carried lots do. Arriving home, a person first eats as before, then puts every carried nut lot into the store. Only the owner takes from it. A store outlives its owner's death and spoils there untouched. | A pit or cache at camp, as foragers who store keep them. Personal stores keep the rule local and the books simple. Taking from someone else's store is theft, and sharing a store is property or group decision: both wait for later steps. | -| **A store target, planned by the conscientious:** `floor(storeKcalPerDay · weightKg · daysToBerries · f_C / (referenceBodyKg · 1,000))`, where `daysToBerries` is the number of days from today to the start of the next berry window and `f_C` the person's conscientiousness factor (Life 14's "plans ahead", 500 to 1,750 per mille). A person has a **store need** when their store holds less than the target and they expect some nuts at a remembered hazel place. | The target is the food that would carry the person from now to the next fresh food. Conscientiousness's job is already planning ahead, for wood and for when to stop food work; this is the same job applied to the winter. A person at the low end plans for half the lean season and leans on their body, fish and others for the rest. | -| **Filling the store.** A person with a store need, neither hungry nor short of wood, gathers nuts at the best expected hazel place, keeps gathering until the nuts they carry weigh their load capacity, the stock runs out, or they must turn for home, then carries the load home. Store need ranks with food and wood need, ahead of company, axes, practice and leisure. | Gathering for later is work, like gathering wood, and is carried in loads the same way. The load capacity from Life 14 applies: about 30 kg of nuts in shells, about 75,000 kcal. Putting company and craft below storing is what people with a winter ahead do; the hungry still eat first. | -| **Eating from the store.** The store is a food source at the person's hearth, scored like any other, with the walk home and `storeKcalPerHour` 6,000, the rate at which stored nuts are cracked and eaten. Taking is a task at the hearth that ends when the reserve is full or the store empty. | Cracking a stored nut takes time, as gathering includes cracking. A store at home competes with fresh food by the same reckoning as everything else, so a hungry person near a ripe thicket eats there and one far from any food goes home. Rationing is left as a question. | -| Asking and giving still move only carried food and wood, and food to pay for an axe or wood is gathered, never taken from a store. | Giving or paying from a store is sharing a store, which waits with property and group decisions. (Implementation showed the rule was needed: a person picking food to buy an axe chose their own store, took a minute's nuts into the hand and put them straight back at the next wake-up, thousands of times a day.) | - -### Skills and techniques (Life 17, unchanged) - -| Decision | Reason | -| --- | --- | -| Each person holds **experience** for foraging, for wood and for each technique they know, in integer seconds of work with an integer remainder. The 30-day practice log, born skills and the `craftPractice` switch are removed. | Skill built over a working life needs a memory longer than a month. One quantity per skill, in the unit work is already counted in, keeps the books simple and checkable. The switch only recreated Life 9's fixed craft. | -| Skill follows from experience by `skill = floor + (ceiling − floor) · E / (E + H)`, with floor 50%, ceiling 150% and a half-experience `H` per skill, rounded down. | The power law of practice: fast gains early, slow gains late (Newell and Rosenbloom 1981). This saturating curve has that shape in integer arithmetic, with no logarithms, and keeps Life 9's floor and ceiling. A person at the half-experience works at the base rate. | -| Rates are the base rate times skill: foraging for berries, nuts and fish; wood for gathering. A technique's skill, its **proficiency**, sets its making time and the axe's quality as craft did. | Each rate keeps its Life 13 meaning at 100%. | -| Experience is **year-anchored**: each second worked adds `365 / daysPerYear` seconds of experience, scaled by talent. | The roadmap lists skill mastery as year-anchored: becoming an expert takes years of a life, and a short year compresses it as it compresses growth and seasons. Work rates stay day-anchored: an hour's picking still takes an hour. | -| Experience fades at midnight by the share that halves it in `experienceHalfYears` (10) years: `fadePerMillion = round(693,147 / (experienceHalfYears · daysPerYear))`. | Skills unused decay over years (Arthur et al. 1998). Year-anchored like the gain. Fading lets an old skill go and bounds experience; because skill saturates, a long working life loses little. The first-order rate `ln 2 / days` is within half a per cent of the exact share even at the shortest year, and needs no powers. | -| **Talent** is a normal score per person for foraging, wood and craft, in thousandths of a spread, clamped to three spreads. It scales the experience each second gives: `learn = clamp(1,000 + 250 · z / 1,000, 250, 1,750)` per mille. | Talent as speed of learning (Macnamara et al. 2014). One spread more learns a quarter faster; the slowest learn a quarter as fast as average, the fastest three quarters faster. The strength is judgement, listed for later. | -| Founders arrive with experience behind them: `founderForageHours` (16,425, fifteen years at three hours a day), `founderWoodHours` (5,475, fifteen years at an hour a day) and `founderCraftHours` (150) in each technique they know, each times their talent. Every founder knows the flaked axe; a founder knows the tranchet axe with `founderTranchetPerMille` (250) and the ground axe with `founderGroundPerMille` (100). | Founders are adults who learnt at their own talent. Their spread of starting skills then comes from talent, not from a separate draw, and is like the 75% to 125% it replaces. The half-experience equals about an average founder's, so the average founder works at the base rate, as before. Knowing the flaked axe is common to every Mesolithic adult; the other two are not. | -| Three **techniques**, held as data: flaked (needs nothing, 1 hour, 10 logs at quality 100), tranchet (needs flaked, 2 hours, 30 logs) and ground (needs flaked, 50 hours, 200 logs). All take one stone and `axeWood` of wood. | The calibration document's flaked and ground axes. The tranchet axe, the Mesolithic way of re-edging a flaked axe by a sideways blow, sits between them; its numbers are an estimate. A branching tree rather than a ladder: both better axes start from flaking. | -| A technique's proficiency uses its own experience plus `transferPerMille` (300) of the experience in every other technique: `P = skill(E_t + 300 · (G − E_t) / 1,000, craftHalfHours)`, where `G` is the sum of a person's technique experience, their **general craft**. | Craft experience transfers: novices with other craft experience learnt knapping better (Khreisheh 2013), but the specific skill still has to be learnt. General craft is derived, not stored, so it cannot disagree with the techniques. | -| `craftHalfHours` 300: an average novice reaches the base rate in a technique after 300 hours of their own experience. `forageHalfHours` 16,000 and `woodHalfHours` 5,000 are near the average founder's experience. | Knapping skill takes hundreds of hours (Pargeter et al. 2020; Stout 2002). The foraging and wood half-points keep average founders at the base rates and leave adults improving slowly, as forager returns do into the 30s (Kaplan et al. 2000). | -| A person holds, per technique, whether they have its **idea** and whether they **know** it. Everyone has the idea of and knows the flaked axe. An idea lets them try; knowing means they have once made one that worked. | Knowing that a thing can be made, being able to make it, and being good at it are three different things. The person, not the engine, finds out what can be made. | -| **Every axe is an attempt.** At its start the attempt is drawn to succeed with chance `success(P) = 1,000 · d² / (d² + attemptHalfPercent²)` per mille, `d = P − skillFloorPercent`, `attemptHalfPercent` 15; a failed one breaks at a point drawn uniformly through its work. A break loses the stone and the work done; the wood, not yet hafted, is kept. Every second worked, on a success or a failure, adds experience. | Novices fail often and experts rarely (Eren et al. 2011; Pargeter et al. 2019). At proficiency 63, a novice who flakes well trying a tranchet axe, about two in five attempts work; at 83, a founder's flaked axe, five in six; at 120, twenty-four in twenty-five. The square makes success climb quickly once someone is past the beginner's stage. The strength is judgement. | -| **Inventing.** For each technique they have no idea of, whose `needs` they know, a person draws at the end of every stint of axe work: the idea comes with chance `seconds · inventPerMillionPerHour · (365 / daysPerYear) · opennessInvent / (3,600 · 1,000)` per million, from `invent::`. | Ideas come to people who work the material, and build on what they can already do (the adjacent possible): nobody thinks of grinding an axe who has never made one. Year-anchored like experience. Openness has the job: a person a spread above average twice as often, two spreads three times, and one a spread below never (Feist 1998). Conscientiousness acts only through the hours practised. | -| **An idea from an axe.** A person who acquires an axe, by buying it, gains the idea of its technique. | The axe shows what was done to it. This is the only way ideas spread for now; teaching and watching are left for step 24. | -| **Practice.** A person at their hearth with nothing needed (priority 9) practises before a walk, up to `practiceMinutesPerDay` (60) times their conscientiousness factor each calendar day: an attempt at an axe by a technique they have the idea of but do not know, else by the technique they would choose for an axe. An unfinished practice axe waits for the next practice; a finished one is kept or sold like any axe. | Free time is spent on something, and skill is built by practice. Conscientiousness's job, planning ahead, includes working now for a skill later (Zell and Lesick 2022; Rohrer and Lucas 2018): a person a spread above average practises 1¾ hours a day, two spreads 2½, and one 1⅓ spreads below not at all. A day-anchored budget needs no draw and can be checked. | -| A person's experience in a technique starts when they first try it; proficiency comes from general craft at first. A technique once known, or an idea once had, is not forgotten while the person lives. | Knowing how and being good at it are different things. The fading experience is what an unused technique loses. | -| A person about to make an axe they need chooses the known technique with the least `1,000 · (makeSeconds + stoneSeconds) / (success · expectedLogs)`, compared exactly in integers, ties by technique order; `stoneSeconds` is 0 when they hold a spare stone besides the one the axe will use, else the straight-line estimate there and back to the nearest known outcrop with stones; `success` is the attempt's chance; `expectedLogs` is the technique's logs at their expected quality. An axe begun keeps its technique. Techniques they only have the idea of are tried in practice, not for an axe they need. | A person weighs work, and the work a failure wastes, against how long the axe will serve, from what they know. A flaked axe pays when stones are close or skill at grinding low; a ground axe when stones are far or a long working life is ahead. Nothing in the engine says which is better. | -| Axe trade values an axe by the logs it will still cut: a buyer's worth is their own making cost per log, by their own best technique, times the axe's logs left. The seller's ask is their extra energy to make one by the technique they would use. | Life 9's make-or-buy comparison, extended to axes of different lives. A ground axe sells for more than a flaked one because it serves longer. | -| Talent draws come from a new `talent` stream; the skill and craft streams are no longer drawn. Attempts and inventions draw from streams named by person and minute. | Founders' places, bodies and traits stay as Life 16's on every seed. | -### Ties, asking and giving (Life 16, unchanged) - -| Decision | Reason | -| --- | --- | -| A tie is held in each person's own memory, keyed by the other's id: familiarity, credit and grievance, all in minutes, with the minute their time together was last counted and the calendar day the person last asked the other. | The roadmap asks for relationships held in memory per pair. Each person keeps their own view (rule 1): what I think you owe me is my count, not yours. One unit for all three lets one rule compare them. | -| Familiarity is the minutes two people spent within talking distance, neither walking. It is counted when either wakes, from the later of their two task starts and the last minute counted in either person's tie, so no minute is counted twice, and added to both people's ties equally. | Nobody is stepped minute by minute, but a person who is not walking stands still for the whole of their task, so two people standing within 20 m when one wakes have stood there together since the later of their task starts. The count is exact for people standing still and needs nothing new tracked. Walking side by side does not count until groups travel together (step 20). | -| Credit is the minutes of the person's own work a gift stands for: kcal at their own berry-picking rate, wood at their own gathering rate. Giving adds to the giver's credit with the receiver; receiving takes from the receiver's credit with the giver. Positive credit means "they owe me". | Foragers keep account of sharing in effort, not in a currency (Gurven 2004). Each person can value a gift only by what it would cost them, which they know. The two views of one gift can differ, as they do in life. | -| Grievance grows by `refusalGrievanceMinutes` (60) each time a person is refused by someone who had something to spare. It is the only harm in this step. | Stinginess is the grievance foragers voice most (Peterson 1993; Woodburn 1998). Fights, injury and theft come with conflict, deferred until the valley knows scarcity, and will add to grievance then. A fixed amount per refusal is judgement, listed for later. | -| Ties fade at midnight: each of the three loses the same share a day, `tieFadePerMillion` (3,844), so that it halves in 180 days without renewal. A tie whose three values are all zero is forgotten. | Ties not kept up weaken over months (Roberts and Dunbar 2011). Day-anchored: forgetting is a matter of real time, not of the year's length. Fading credit and grievance too means old debts and old slights are let go. | -| A person holds at most `tiesRemembered` (150) ties. A new tie when full forgets the one with the least familiarity, ties by lowest id. | Dunbar's number: about 150 people a person keeps up with (Hill and Dunbar 2003). With forty founders it never binds; it bounds memory once generations arrive. | -| A person asks when hungry and carrying no food after eating, or short of one night's firewood and holding none spare. They ask, one after another, the living people within talking distance whom they know (familiarity above zero) and can see carrying food, or holding wood, closest tie first: highest familiarity less grievance, ties by id. They ask each person at most once a calendar day, and stop asking for a thing once given some of it. | Demand sharing: among foragers food is mostly given when asked for, not offered (Peterson 1993). What someone carries within 20 m is visible, so the asker acts on what they could know. Asking strangers is left out: among foragers sharing follows ties. Once a day keeps a refusal from being repeated every wake-up. | -| The person asked gives when `familiarity · trustPerMille · agreeablenessGive / 1,000,000 ≥ credit + grievance`, all from their own tie with the asker; otherwise they refuse. | Goodwill from time together must cover what the asker already owes and any grievance. A debt the giver owes the asker (negative credit) makes giving easier: reciprocity follows from the ledger, not from a rule saying "repay". `trustPerMille` (100) makes ten minutes together vouch for one minute of work: one night beside each other covers a gift of about 70 minutes' picking. Judgement, listed for later. | -| Agreeableness scales goodwill: `agreeablenessGive = clamp(1,000 + 500 · z / 1,000, 0, 2,000)`. | The roadmap gives agreeableness two parts of one job: yielding in disputes and sharing more. Agreeable people give more to others in sharing games (Ben-Ner et al. 2004). This is the trait's second rule, alongside the exchange price; both are about giving way to another. | -| A gift of food is what the giver carries beyond what they would eat to reach their own satiation, up to what the asker lacks to reach theirs, oldest lots first. A gift of wood is the giver's wood above their own stock target, up to what the asker wants. | People give what they can spare, not what they need tonight. Giving up to the asker's own satiation is the asker's own measure of need. | -| Exchange is unchanged and comes first: a person who can buy what they need asks nobody. A swap builds no credit. | A swap is paid for at the time; both sides gain and nothing is owed. Keeping exchange as it was isolates what ties add. | -| Ties, asking and giving draw nothing at random. | Who asks whom and who gives follow from memory and fixed orders; nothing is uncertain enough to need a draw. | - -### Ways and planning (Life 15, unchanged) - -| Decision | Reason | -| --- | --- | -| A way is the corridor of triangles a walk crossed, kept with its two end points, the minute it was planned and the person's knowledge revision then. The path is pulled tight afresh along the corridor at each use and timed for the walker's load. | The corridor is what a person remembers ("along the stream, through the gap"); pulling it tight is the walking. Keeping the corridor rather than a timed path keeps a way good under any load: a load changes speed, not the way. | -| Ways are kept only for walks to a place, a bank point or the person's hearth, never to a frontier. | Habits form between places used again. Exploring is by definition going somewhere new. | -| A way can be walked in either direction, and joined part-way: a walker standing in a triangle of a way with an end at the target walks the rest of it. | Home to thicket is also thicket to home. Joining from part-way is what makes a habit useful when a walk starts from elsewhere, for instance after an interrupted walk. | -| Joining is only from a triangle on the way itself, not from nearby. (Update 071 keeps this.) | Joining from nearby needs a small search to reach the way and a rule for how near. The exact rule is simpler and already covers walks resumed along a way. A join radius is a question for later. | -| When several ways could serve, the one used most recently wins, ties by lowest way number. | A deterministic, human rule: take the route you took last time. | -| A person keeps at most `waysRemembered` (64) ways. A new way to the same two end points replaces the old one; when full, the way used longest ago is forgotten, ties by lowest way number. | Bounds memory and work per person. People forget routes they stop using. | -| A remembered way is reconsidered when it is about to be used, if `wayRecheckMinutes` (one day) has passed since it was planned and the person's knowledge has grown since. Otherwise it is used as it is, even if a shorter path is now known. | Rules 2 and 10: local, not optimal, decisions, and learning through experience. People notice a shortcut eventually, not the instant it comes into sight. Once a day bounds re-planning per way. | -| A way whose triangles are not all still walkable and known to the person is dropped and planned afresh. | Nothing can block a way in this step, because the ground does not change and knowledge only grows; the rule is for floods, fences and palisades later, and costs one pass over the corridor. | -| An idle person who has nothing new to explore no longer tours the places they know. Once a day they walk out along a remembered way from home, the one used longest ago, and otherwise go home and rest. | Foragers spend much of the day resting and in company at camp (Hawkes et al. 1997; Marlowe 2010), and learn the state of patches while out foraging, not by inspecting every one daily. In Life 14 an idle person walked to every known place unchecked for a day, about 210 short walks a day each from day 13, which also made late days slow. A walk along a known way needs no planning, and refreshes the memory of the place at its far end. | -| A new plan is straight if the line to the target crosses only known walkable ground. (Update 071.) | People head for what they are going to when nothing they know of stands in the way (Hochmair and Frank 2000). One step per triangle crossed. | -| Otherwise a new plan is steered: an A\* over the person's pieces of known ground picks a chain, and the walker crosses it piece by piece, heading for the crossing into the next piece nearest the line to the target, straight where they can and by a fine A\* within the one piece where they cannot. (Update 071; from update 068 to 070 the fine A\* ran over a band of chunks around the whole chain; before, the coarse A\* ran over whole chunks.) | People plan by regions before footing and steer round obstacles as they meet them (Golledge 1999), rather than comparing every footing to the goal. A fine search within one 200 m piece is what a walker can see and judge on the spot. Searching the whole band expanded about twenty times the triangles of the path. | -| The crossing into the next piece is the edge between the two pieces whose midpoint is nearest the straight line from the walker's entry point to the target, ties by the lower triangle id on the walker's side. | The least-angle rule: of the ways onward, take the one pointing most nearly at the goal. It is local, needs no look further ahead, and is deterministic. | -| A person's piece is a largest set of their known walkable triangles in one chunk joined to each other by shared edges within that chunk; it is numbered by its lowest triangle id. Two pieces in different chunks are linked when a known walkable triangle in one shares an edge with one in the other. A triangle belongs to the chunk holding its centroid. The coarse cost is the distance between chunk centres, ties by piece number. | It uses only what the person knows (rule 1), and only ground they know to be joined, so the coarse plan never promises a crossing that is not there. Linking whole chunks failed whenever a chunk held two separate patches of known ground, which on day 13 sent a third of all new plans to a search of everything known. | -| Pieces are worked out from the person's knowledge when needed and not stored in the state; only the chunks holding newly learnt triangles are worked out again. | They follow from knowledge alone, so keeping them would add state that could disagree with it. Most chunks change rarely once known. | -| There is no search over all known ground, and no guard. (Update 071; from update 068 to 070 a `full` search was kept as a guard.) | A piece is joined-up known ground, so the search within a piece always succeeds, and a chain of pieces always yields a walk. | -| The still landscape is surveyed again only once the person stands `resurveyCm` (100 m) or more from where they last surveyed it. People, people-made places and the stock where the person stands are looked at every wake-up. | Ground, water, thickets and stands do not move; looking again over the same kilometre from the same spot learns almost nothing. 100 m is a tenth of the sight radius: what is missed at the edge of sight is learnt on the next move. | -| The route cache by exact end points, knowledge revision and load is removed. | Ways replace it. It was almost never reused, because a start a centimetre away or one newly seen triangle made a new key. | -| Travel estimates for choosing targets stay straight-line lower bounds. | A person judges how far a place is before walking; the way is what they then walk. | - -### Bodies and personality (Life 14, unchanged) - -| 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. | -| 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. | -| Strength sets the wood load: `woodLoad · (grip + referenceGrip) / (2 · referenceGrip)`. | Carrying depends on legs and back as much as hands, so women's loads are closer to men's than their grip is: an average woman carries about 26 kg, an average man about 33 kg, the weakest about 17 kg. A log stays one log for everyone: only the speed it costs differs. | -| Weight replaces the single `bodyKg`: it weighs the load against the body for walking speed, sets the thirst thresholds, and scales every kilocalorie rate. | A heavier body carries a load more easily, holds more water and burns more energy for the same work. Scaling by weight keeps strength from being free: a big strong person carries more but must eat more. | -| Five traits, each stored as a normal score in thousandths of a spread, clamped to three spreads. | Personality is measured as continuous scores with a normal spread in every population; a score in spreads lets each rule say "one spread more moves this by so much". | -| Each trait has exactly one job, attached to a decision people already make, and no trait touches another trait's decision. | Rule 13: a trait with no mechanism is cut. One job each keeps every effect traceable to one trait. Agreeableness's yielding and neuroticism's flight wait for disputes, when conflict is built, but each already has a job now, so neither is cut. | -| Every trait rule is a person's own threshold or share. No trait sets an outcome. | Rule 4: behaviour emerges from incentives. A trait shifts where a person draws a line; whether that pays is left to the world. | -| An average person behaves close to Life 13, but not exactly. | Life 13's rules had no margin before dusk and treated unseen stocks as full. The average person now keeps half an hour before dusk and expects three quarters of an unseen stock. Keeping Life 13 exactly for the average would need rules that only matter at the extremes. | -| Bodies and traits come from their own streams. | The founder stream draws exactly as before, so a person's start, body and traits on a seed are unchanged. | - -## World - -### Terrain, water and ground - -Terrain heights on the 5 m `terrainCellCm` lattice, ground classes per cell, drainage, lakes, river reaches and their levels are generated exactly as in Life 12 and 13, from the same eleven terrain streams and the same parameters, over a square `valleySizeCm` across. The world size setting sets `valleySizeCm` in whole kilometres from 1 to 10; landform counts scale with area, rounded, so that density is the same at every size. The hydrology's shoreline, where each cell's ground meets its water level, is the mesh's input. Water remains an external reservoir: drinking withdrawals are recorded and lower nothing. - -The land is held in chunks of `chunkCm` (200 m). A chunk indexes its places, its bank points, its triangles and the people currently in it. - -### The ground mesh - -Unchanged from Life 13. The mesh is built once per layout, in this order: - -1. **Shorelines.** The hydrology's shore segments are joined into polylines, each ending on itself or on the valley's edge, and simplified by Douglas–Peucker to `shoreToleranceCm`. A simplification is rejected, keeping the vertex, if the new edge would cross or touch another shore edge. A polyline closing on itself keeps at least three vertices. Every shore vertex has integer coordinates and its water level as its height. -2. **Relief vertices.** The valley is divided into squares of `meshMaxEdgeCm` (40 m). A square is split into four while it is larger than one terrain cell and, at any 5 m lattice point inside it, either of its two triangulations strays from the generated height by more than `meshHeightToleranceCm`. The corners of every resulting square are vertices, with their generated heights. Vertices inside water take the water's level as their height and keep the bed height below it as their depth. Vertices within `shoreToleranceCm` of a kept shore edge are dropped. -3. **Triangulation.** All vertices are triangulated by a constrained Delaunay triangulation with every simplified shore edge and the valley's edge as constraints, vertices sorted by `y` then `x` before insertion. Delaunator 5.1.0 and Constrainautor 4.1.0, pinned. A dry 5 m lattice point whose triangle still strays by more than `meshHeightToleranceCm` becomes a vertex and the triangulation is rebuilt, until no dry point strays. -4. **Area types.** Each triangle takes the hydrology at its centroid: `lake` or `river` with its body's id, otherwise `ground`. Each kept shore edge knows its water side from a vote of the hydrology's shore segments beside it, and the triangles on either side take that side's type. Every edge between a ground and a water triangle is a shore edge. A ground triangle takes the ground class of the terrain cell holding its centroid. -5. **Index.** Each triangle records its vertices counter-clockwise, its neighbours, area type, body, ground class, plane and chunk. A grid of 20 m buckets lists the triangles overlapping each bucket. -6. **Regions.** Walkable triangles connected through shared edges form regions, numbered by their lowest triangle id. The largest by area is the main land. - -Height at any point is the plane of the triangle holding it, rounded down. A point on a shared edge or vertex belongs to the lowest-numbered triangle holding it. Slope is the triangle's gradient. - -### Places - -A place is a thing someone can decide to go to. Each has an id, a kind, a position on walkable ground, a chunk, and for resource places one stock. Kinds: - -| Kind | Stock | Count on 4 km | -| --- | --- | --- | -| Berry thicket | kcal of berries, wood in dead stems | 800 | -| Hazel thicket | kcal of nuts | 800 | -| Tree stand | kg of deadfall wood, standing logs | 300 | -| Outcrop | stones | 100 | -| Drinking bank, fishing bank | none; the water body holds the fish | from the mesh's shore edges | -| Hearth, flag, hut site | the group's fire wood; the hut's logs | made by people | - -Places are laid out by the layout stream with Life 11's spacing, their footprints wholly on walkable triangles. A berry thicket yields `berryThicketKcalPerYear` (5,400 kcal) in a normal year and a hazel thicket `hazelThicketKcalPerYear` (150,000), each per 365 days and only in its window, below; a stand holds 300 kg of wood, 60 kg of deadfall a year and 36 logs, with 10 kg of crown wood per felled tree; an outcrop 60 stones. A berry thicket's dead stems give wood as before. Picking retains Life 11's stock-dependent slowdown: the skill-adjusted full rate is multiplied by the remembered fraction of capacity remaining, rounded down, when the task starts, fixed until the next wake-up; production is capped at the stock remaining when credited. - -Bank points come from the mesh: each shore edge between a walkable and a water triangle gives at most one bank point, set back half a metre (or `reachCm`, if less) from the edge's midpoint into the walkable side and kept by Life 11's approach rule. Its id is the edge's half-edge number. - -Every person's **store** lies at their hearth. It is not a place others can use; it is drawn by the observer. - -### Seasons, crops and losses - -The calendar counts days of the year from the spring equinox. The run's minute 0 is day `arrivalDay = floor(arrivalPerMille · daysPerYear / 1,000)` of year 0, so `dayOfYear(minute) = (day + arrivalDay) mod daysPerYear` and `yearOf(minute) = floor((day + arrivalDay) / daysPerYear)`, where `day = floor(minute / 1,440)`. A window `[startPerMille, endPerMille)` covers days `floor(start · D / 1,000)` up to but not including `max(that + 1, floor(end · D / 1,000))`: the berry window is `berrySeason` (330‰ to 450‰) and the nut window `nutSeason` (450‰ to 580‰). At 90 days a year arrival is day 29, berries ripen on days 29 to 39 and nuts fall on days 40 to 51; at 365 days, days 120 to 163 and 164 to 210; at 8 days, day 2 and day 3. - -Once a year, at the first midnight of each calendar year and at minute 0 for year 0, the world draws the year's class for berries and then for hazel from the `harvest:` stream, below. A place's crop for the year is `crop = floor(kcalPerYear · D · factor / (365 · 1,000))`, with `factor` the class's per mille for its kind. Its capacity is `max(1, floor(kcalPerYear · D · goodFactor / (365 · 1,000)))`. - -Once a day at midnight, in this order, each berry and hazel place: - -1. loses `floor(stock · lossPerMille / 1,000)` to animals and rot; -2. if the day lies in its window, at window day `i` of `w`, gains `floor(crop · (i + 1) / w) − floor(crop · i / w)`, capped at capacity. - -Stands' deadfall and logs regrow as before, year-anchored. Fish per lake and reach keep Life 11's capacity and logistic growth, applied once a day with an exact carried remainder, now at `fishGrowthPercentPerYear` per 365 days whatever the year's length; a depleted body is not reseeded. Hut weathering is day-anchored: one log every `hutLogDays`. The day's losses, crops, overflow above capacity and fish growth are recorded as world ledger totals. - -## Time - -### The clock - -The run starts at minute 0, midnight of day 0 of year 0. A day is 1,440 minutes; dawn is minute 360 and dusk minute 1,080; a year is `daysPerYear` days. Day and year are derived from the minute; nothing stores them. - -### Wake-ups - -The state holds a queue of wake-ups `(minute, phase, id)`. Phases, in order within a minute: `world` (daily regrowth, spoilage, invariants at midnight; fires at each hour), then `person`, ordered by id. `stepValley(state, toMinute)` pops and runs wake-ups until the queue's head is past `toMinute`, and is pure: it returns a new state and the events of the interval. `advanceValley(state, toMinute)` runs the same loop on the state itself, for a caller that owns it, as the worker does (update 070). Cancelling a person's wake-ups marks them; a marked entry is dropped when it reaches the front. - -A person's wake-up is scheduled by: - -- **task end**: a walk arrives, a load is full, a thicket is emptied at the current rate, an axe or hut log is finished, sleep ends at dawn, a rest ends after an hour; -- **body threshold**: when a task starts, the minute at which energy or water will cross the person's next threshold (hungry, thirsty, severely thirsty, fatal) is computed from the task's rates and scheduled if it falls before the task's end; -- **arrival in the chunk**: a walker whose route enters a chunk wakes every person in that chunk whose task is interruptible at the minute of entry; -- **address**: a meeting, an exchange offer, an axe request or a delivery wakes the addressee in the same minute, after the addresser. - -A wake-up removes the person's other pending entries; a person has at most one future task end and one future threshold in the queue. - -### Between wake-ups - -A person's record holds the task, its start minute, its route (for a walk) and the body at its start. Position at minute `m` is the point along the route at the distance walked by `m`; for other tasks it is the place. Energy and water at `m` are the start values less the person's rates for the task over `m - start`, with the start's remainders. The observer and perception read these functions; nothing stores a per-minute body. - -### Cadences - -| System | Cadence | -| --- | --- | -| 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 | -| 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 | -| Bodies | Lazily, at the person's wake-ups | -| 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. - -### 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. - -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. - -### 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: - -- **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. - -Nothing is drawn per minute. The mesh, ways, plans, ties, asking, giving, practice, losses and stores draw nothing. - -## Bodies and personality - -### Integer normal draws - -A standard normal in thousandths is `z = u1 + u2 + … + u12 − 5,994`, each `u` drawn by `randomInt(1,000)` from the stream, then clamped to −3,000…3,000. - -A correlation matrix `C` in per mille (1,000 on the diagonal) gives a lower-triangular factor `L` in per mille, computed in integers once per configuration: - -- `L[i][j] = trunc((1,000 · C[i][j] − Σ_{k:`: it succeeds if `randomInt(1,000) < success(P_t)`, with `success(P) = floor(1,000 · d² / (d² + attemptHalfPercent²))`, `d = max(0, P − skillFloorPercent)`; otherwise it breaks after `1 + randomInt(needed)` seconds of work, and the draw is stored with the axe in progress. A break ends the making: the stone is lost, the wood returned to the person, and a `broke` event records the person, the technique and the seconds worked. On finishing a success, its quality is drawn from the axe stream uniformly from `floor(P_t / 2)` to `P_t`, at least 1, and it cuts `max(1, floor(logs_t · quality / 100))` logs; a log's cut takes `logChopMinutes · 100 / quality` minutes, as in Life 9, whatever the technique. The expected quality is `max(1, floor(3 · P_t / 4))`. An axe records its technique. The first success by a technique the person did not know makes it known, and a `learnt` event records it. - -**Choosing a technique.** When a person starts an axe they need (priority 8), they take the known technique with the least `1,000 · (makeSeconds_t + stoneSeconds) / (success_t · expectedLogs_t)`, compared as the cross products in integers, ties by technique order. `stoneSeconds` is 0 if they hold a spare stone besides the one the axe will use (corrected in implementation: a person beginning an axe always holds one, so "holds a stone" would never count the walk); otherwise twice the straight-line walking estimate from their hearth to the nearest outcrop they remember holding stones. `expectedLogs_t` uses the expected quality. - -**Midnight.** For each living person, in id order, in the `world` phase after spoilage: each experience `E` first fades by `(E · fadePerMillion + remainder) / 1,000,000` rounded down, the rest carried; then gains `(seconds · 365 · learn + remainder) / (daysPerYear · 1,000)` rounded down, the rest carried, from the seconds worked that day at foraging (picking, nuts and fishing), at gathering wood, or at making by that technique, broken attempts and practice included, with the matching talent. `practicedToday` is cleared. Then skills, rates and proficiencies are set, and a `skills` event records each experience before and after, the seconds worked, and the new skills. Chopping logs and delivering them are not counted as experience, as in Life 9. - -**Inventing.** When a stint of axe work of `S` seconds ends (the making task ends, is interrupted, finishes or breaks), for each technique `s` the person has no idea of and whose `needs` they know, in technique order, they draw `randomInt(1,000,000)` from `invent::`; below `min(1,000,000, floor(S · inventPerMillionPerHour · 365 · opennessInvent / (3,600 · daysPerYear · 1,000)))` they gain the idea of `s`, and an `idea` event records the person, the technique and `invented`. `opennessInvent = clamp(1,000 + 1,000 · z / 1,000, 0, 3,000)` from openness. - -**An idea from an axe.** A person who buys an axe by a technique they have no idea of gains its idea, and an `idea` event records `from an axe` and the maker. - -**Practice.** A person at their hearth under priority 9, with no frontier in their exploring range, practises if `practicedToday` is below their budget `floor(practiceMinutesPerDay · conscientiousnessPractice / 1,000)`, `conscientiousnessPractice = clamp(1,000 + 750 · z / 1,000, 0, 3,000)` from conscientiousness. They continue a practice axe in progress; else they begin one, by the lowest-numbered technique they have the idea of and do not know, else by the technique they would choose for an axe, if they hold a stone and `axeWood`. A practice stint is a making task that ends when the budget is spent, at the latest; `practicedToday` adds its minutes. Lacking a stone, they fetch one from the nearest known outcrop with stones within their exploring range if they can be back before dusk less their margin, as for an axe; otherwise, and once the budget is spent, they take their walk or rest as under Leisure. A finished practice axe is held as their axe if they have none, else as a spare for sale; if they hold both, they take it apart, `dismantled`, and its stone and `axeWood` are back in hand for the next try. A dismantled axe counts as an attempt that worked: it gives experience, can make its technique known and can bring an idea. (Added by the owner after the first measurement, in which practice stopped once a person held an axe and a spare, as an implementation rule had it, so that people practised two to four hours a year. A member who comes to need an axe for their hut while a practice axe is in progress finishes it under priority 8, outside the budget, rather than leaving its stone and wood stranded.) - - -**Founders.** At creation each founder's experience is `founderForageHours · 3,600 · forageLearn / 1,000` for foraging, likewise for wood, and `founderCraftHours · 3,600 · craftLearn / 1,000` in each technique known; every founder knows the flaked axe, and the tranchet and ground axes by the talent stream's draws; a founder has the idea of every technique they know and of no other. Skills, rates and proficiencies are then set as at midnight. - -**Who knows what.** A person knows their own experience, skills, ideas, techniques and talents, and nobody else's. They see an axe's technique when they acquire it. - -## 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. - -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. - -## Tasks - -| Task | Ends when | Rates per hour (kcal, ml) | -| --- | --- | --- | -| Walk | Route's last segment arrives | the person's walking rates | -| Pick berries, gather nuts, fish | Carried reserve room is full, the stock at the current rate is exhausted, or the person's return before dusk is due | the person's picking rate | -| Gather nuts for the store | The nuts carried weigh the person's load capacity at `nutKcalPerKg`, the stock at the current rate is exhausted, or the person's return before dusk is due | the person's picking rate | -| Eat from the store | Carried reserve room is full or the store is empty; at the hearth only | the person's resting rate | -| Drink | Deficit is below `drinkStopMl` | the person's resting rate | -| Gather wood | The person's load is full or the stock is exhausted | the person's gathering rate | -| Cut a log | `logChopMinutes` scaled by axe quality | the person's chopping rate | -| 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 | - -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. - -## 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. -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. -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. - -| Priority | Condition | Action | -| --- | --- | --- | -| 1 | Severe thirst, day or night | Drink at a reachable bank, else walk to the nearest known accessible bank, else explore for water. No margin applies. | -| 2 | Away from home and night, or the walk home would end after dusk less the margin | Walk home by the known route; explore to recover one if there is none. | -| 3 | Night | Sleep. Ordinary thirst waits; severe thirst wakes. | -| 4 | Thirsty in daylight | Drink or seek water, leaving time to return before dusk; if no eligible bank is known, search a frontier; if too late, return home or rest. | -| 5 | Carrying a log | Take it home. | -| 6 | Not hungry and filling or carrying a wood load or a store load | Finish the person's load, or take a full load home. | -| 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. | - -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. - -## Food, wood, shelter and exchange - -As Life 13, with each person's own quantities: food in timestamped lots by kind, berries spoiling after 48 hours, nuts after `nutShelfLifeHours` (8,760) and fish after 24, in the hand or in a store; energy starting at 66,000 kcal, capped at 70,000, hungry below 64,000 and satisfied at the person's own level; wood need below one night's firewood, cleared at the person's own stock; store need below the person's own store target, under Seasons, harvests and stores; loads up to the person's capacity and logs of 35 kg; groups founded by two ungrouped people within 20 m, joined by a lone person, with a flag, a common fire burning 1 kg an hour at night, and a 23-log hut per member weathering a log every 60 days; axes attempted by technique from one stone and 1 kg of wood, a broken attempt losing its stone, cutting a log in 30 minutes at quality 100, as under Skills and techniques; rates from experience; wood-for-food swaps at the agreeableness price; axes asked at the maker's extra energy and valued by the logs they will still cut. Since Life 16, food and wood are also given when asked for, by the rules under Ties, from what is carried, never from a store. There is no money, no ownership of water, no forced or unasked sharing, no taking from another's store and no planned specialisation. - -## Defaults and configuration validation - -Run settings are unchanged: - -| Setting | Default | Range | -| --- | --- | --- | -| `seed` | 20260813 | any integer | -| `daysPerYear` | 90 | 8 to 365 | -| `worldKm` | 4 | 1 to 10 | -| `founders` | 40 | 1 to 1,000; the page allows 1 to 100 | -| `scattered` | true | | - -New and changed parameters: - -| Parameter | Default | Basis | -| --- | --- | --- | -| `arrivalPerMille` | 330 | Founders arrive about 19 July, the first day of the berry season. Year-anchored. | -| `berrySeason` | 330 to 450 per mille | Bilberries ripen from mid-July to late August in northern Europe. Year-anchored. | -| `nutSeason` | 450 to 580 per mille | Hazelnuts fall from September to mid-October. Year-anchored. | -| `berryThicketKcalPerYear` | 5,400 | 9 kg on 452 m², 200 kg a hectare: a good wild bilberry patch (calibration, Food). Per 365 days. Replaces `berryThicketRegrowthKcalPerYear` (54,000). | -| `hazelThicketKcalPerYear` | 150,000 | 60 kg in shells on 0.126 ha, 477 kg a hectare (calibration, Hazel and the lake). Per 365 days. Replaces `hazelThicketRegrowthKcalPerYear`, same value. | -| `poorYearPerMille`, `goodYearPerMille` | 250, 250 | A poor and a good year each about one year in four. Judgement. | -| `berryYearPerMille` | poor 500, normal 1,000, good 1,400 | Berry crops vary less than nut crops. Judgement. | -| `hazelYearPerMille` | poor 300, normal 1,000, good 1,600 | Hazel's heavy and light years (calibration [31]). Judgement within the observed swing. | -| `berryLossPerMille`, `nutLossPerMille` | 48, 48 | Half of what lies on a thicket is gone in 14 days (median removal of fallen hazelnuts, about 14 days). Day-anchored. | -| `nutShelfLifeHours` | 8,760 | A year: dry hazelnuts in their shells keep about that long. Was 4,380. | -| `storeKcalPerDay` | 2,500 | A day's food for the 60 kg reference body, scaled by weight. Day-anchored. | -| `storeKcalPerHour` | 6,000 | Cracking and eating stored nuts, about 2.4 kg in shells an hour, faster than gathering them. Judgement. | - -`fishGrowthPercentPerYear` (40) keeps its value, now per 365 days. Removed: `berryThicketCapacityKcal` and `hazelThicketCapacityKcal`, now derived from the good-year crop, and the two regrowth parameters above. - -Parameters added by Life 17, unchanged: - -| Parameter | Default | Basis | -| --- | --- | --- | -| `skillFloorPercent`, `skillCeilingPercent` | 50, 150 | Life 9's practice range, now the range of the experience curve. | -| `forageHalfHours` | 16,000 | About an average founder's fifteen years of foraging: the average founder picks at the base rate. | -| `woodHalfHours` | 5,000 | As above, for an hour of wood a day. | -| `craftHalfHours` | 300 | Hundreds of hours to learn knapping (Pargeter et al. 2020; Stout 2002). | -| `transferPerMille` | 300 | A third of other craft experience helps a technique (Khreisheh 2013, direction). Judgement. | -| `experienceHalfYears` | 10 | Skill decay over years (Arthur et al. 1998, magnitude). Year-anchored. | -| `talentRule` | base 1,000, effect 250, low 250, high 1,750 | One spread more talented learns a quarter faster. Judgement. | -| `founderForageHours`, `founderWoodHours`, `founderCraftHours` | 16,425, 5,475, 150 | Fifteen years at three hours and one hour a day; about a hundred axes made in a life before. | -| `founderTranchetPerMille`, `founderGroundPerMille` | 250, 100 | Some founders bring the better techniques with them. Judgement. | -| `axeTechniques` | flaked 1 h, 10 logs; tranchet 2 h, 30 logs, needs flaked; ground 50 h, 200 logs, needs flaked | Calibration, Making an axe; the tranchet axe is an estimate. | -| `attemptHalfPercent` | 15 | Half of attempts work at 15 points above the skill floor; five in six at a founder's flaked axe. Judgement. | -| `inventPerMillionPerHour` | 556 | About one idea in 1,800 hours of axe work, year-anchored, at average openness. Judgement. | -| `opennessInventRule` | base 1,000, effect 1,000, low 0, high 3,000 | One spread more open has ideas twice as often; one spread less, never (Feist 1998, direction). | -| `practiceMinutesPerDay` | 60 | An average person practises an hour a day when nothing is needed. Day-anchored. Judgement. | -| `conscientiousnessPracticeRule` | base 1,000, effect 750, low 0, high 3,000 | One spread more conscientious practises 1¾ hours (Zell and Lesick 2022, direction). | - -Parameters added by Life 16, unchanged: - -| Parameter | Default | Basis | -| --- | --- | --- | -| `tiesRemembered` | 150 | Dunbar's number (Hill and Dunbar 2003). Never binds with forty founders. | -| `trustPerMille` | 100 | Ten minutes together vouch for one minute of work. Judgement. | -| `refusalGrievanceMinutes` | 60 | A refusal weighs about as much as an hour's work given. Judgement. | -| `tieFadePerMillion` | 3,844 | A value halves in 180 days without renewal (Roberts and Dunbar 2011, magnitude). Day-anchored, unchanged by `daysPerYear`. | -| `agreeablenessGiveRule` | base 1,000, effect 500, low 0, high 2,000 | One spread more agreeable gives on half again as little familiarity; three spreads less, never. | -Parameters added by Life 15, unchanged: - -| Parameter | Default | Basis | -| --- | --- | --- | -| `waysRemembered` | 64 | Enough for every place a person uses in a season and the ways between them; a person who uses more forgets the stalest. | -| `leisureWalkDays` | 7 | A leisure walk at most once a week, set by the owner to save computation. Judgement. | -| `wayRecheckMinutes` | 1,440 | A day: a shortcut seen today is taken from tomorrow. Day-anchored, unchanged by `daysPerYear`. | -| `resurveyCm` | 10,000 | 100 m, a tenth of the sight radius. | - -Parameters added by Life 14, unchanged: - -| Parameter | Default | Basis | -| --- | --- | --- | -| `womanHeightCm`, `manHeightCm`, `heightSdCm` | 154, 165, 6 | Mesolithic European stature. | -| `womanWeightKg`, `manWeightKg`, `weightSdKg` | 52, 62, 6 | Mesolithic European body mass. | -| `womanGripKg`, `manGripKg`, `gripSdKg` | 24, 38, 6 | Forager-horticulturalist grip strength. | -| `heightWeightPerMille`, `heightGripPerMille`, `weightGripPerMille` | 550, 350, 400 | Within-sex body correlations. | -| `traitCorrelationsPerMille` | the ten values in "Checked against", in the order O–C, O–E, O–A, O–N, C–E, C–A, C–N, E–A, E–N, A–N | van der Linden et al. 2010. | -| `referenceBodyKg` | 60 | The single body of Life 13, against which energy rates are stated. | -| `referenceGripKg` | 31 | The adult mean grip, halfway between the sexes; a person of this grip carries `woodLoad`. | -| `companyRadiusCm` | 60,000 | An average person approaches someone seen up to 600 m away; one spread more extravert, 900 m. | -| `duskMarginMinutes` | 30 | An average person turns home half an hour before dusk; one spread more neurotic, 45 minutes. | -| `exploreRangeCm` | 150,000 | An average person explores idle up to 1.5 km from home; one spread more open, 2.25 km. | - -The base, effect, low and high of each trait rule are the values in the personality table, held in the configuration as `extraversionRule`, `agreeablenessRule`, `conscientiousnessRule`, `neuroticismRule`, `opennessRule` and `opennessExpectRule`, each `{ base, effect, low, high }` in per mille. - -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. - -## 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 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. -- Every wake-up's body charge equals the person's own rates for the task over its minutes, with bounded remainders; energy and water at a wake-up equal the lazy functions evaluated there. -- **Ways:** every person holds at most `waysRemembered` ways, no two with the same end points; every way's corridor is a chain of triangles each sharing an edge with the next, every one walkable and known to the person, its first and last holding its end points; numbers are below the person's next way number; last-used minutes are not in the future. Every walk recorded as a way or joined walk stays within the triangles of the way it names. No walk is recorded as `full` (update 068). The checker does not recompute the pieces, the coarse band or the recheck rule; unit fixtures cover them. -- **Leisure:** nobody sets out on two leisure walks fewer than `leisureWalkDays` calendar days apart, and `leisureMinute` is the start of the last one. -- **Ties:** every person holds at most `tiesRemembered` ties, none to themselves or to an id that never existed; familiarity and grievance are not negative; `countedMinute` is not in the future, and `askedDay` is not after today. Where two people each hold a tie to the other with the same familiarity remainder, both have the same familiarity, unless one of them forgot the tie and made it anew. At midnight every value replays from the day before: fading, plus the time together, gifts and refusals recorded that day. -- **Gifts:** the giver's goodwill covered their credit and grievance, and both credits changed by the gift's value at each person's own rate; food and wood conserve across it in the stock and body ledgers. Nobody asks the same person twice in a calendar day. Every refusal for want of goodwill adds exactly `refusalGrievanceMinutes`, and one for want of anything to spare adds none. The checker does not recompute a gift's amount from bodies and loads; unit fixtures cover the amounts. -- **Skills:** every experience and remainder is non-negative and every remainder below its divisor; every talent, `opennessInvent` and `conscientiousnessPractice` equals the one recomputed from the scores; at midnight each experience replays from the day before: fading, plus the seconds worked that day at the matching task times the gain (corrected in implementation: the checker does not recount the seconds worked from the day's task records; it checks that craft seconds by technique sum to the day's making seconds, and replays every midnight within an interval in order, since a checked interval may span many days); and every stored skill, rate and proficiency equals the one recomputed from experience. Experience outside midnight never changes. -- **Ideas and techniques:** every known technique is among the person's ideas; the flaked axe is known by everyone; a technique becomes known only at a successful attempt by it, recorded by `learnt`; an idea is gained only by a founder, by an `idea` event whose invention draw, replayed from its stream and the stint's seconds, fell below the chance, or by buying an axe of that technique. Neither is ever lost while the person lives. -- **Attempts and practice:** every axe begun records its attempt draw, which the checker replays from its stream and proficiency; a broken attempt ends at its break second, loses exactly its stone and returns its wood; an axe in progress by a technique the person does not know is a practice attempt; `practicedToday` never exceeds the person's budget and is cleared at midnight. -- **Axes:** every axe in progress or made is by a technique its maker had the idea of when it was begun; its making time is that technique's at the maker's proficiency then; its quality lies within `floor(P/2)…P` and its logs follow from technique and quality. Every exchange of an axe values it by its logs left. -- **Survey:** each observation is replayed against the rule: it is a survey exactly when the person had no survey point or stood at least `resurveyCm` from it, and the survey point changes only at a survey, to where they stood. -- No person's trip wood exceeds their load capacity. -- Every exchange's price equals the agreeableness price for its two parties, and both gained at it. -- Every person's position at every recorded minute is on walkable ground, and every route segment lies in walkable triangles the person knew when the walk started. Nobody is at two places, and the chunk index agrees with positions. -- Food, wood, logs, stones and axes conserve at every event; fish and thicket stocks replay from losses, crops and takes; water withdrawals equal recorded drinks. -- **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. -- 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. - -## 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. - -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: - 1. **Where eaten food comes from.** A pie of kcal eaten by source: berries, fresh nuts, nuts from a store, fish. A choice above it sets the period: this season, this year or the whole run. Each slice is labelled with its share. - 2. **Food eaten each day.** A stacked area of kcal eaten per day by the same four sources, in the pie's colours, with a line for the kcal people burned that day. Where the area falls below the line, the valley is living off its bodies. - 3. **Where the food is.** Lines of food on the land, in stores and in bodies (the energy reserves of the living), by day. - 4. **Energy reserves.** The median reserve of the living by day, a shaded band from the lowest to the highest, and the followed person's reserve as a dashed line; each death is a mark on the time axis, coloured by cause. - 5. **Each year's crop.** One bar per year and kind, berries and hazel: the kcal grown, split into gathered by people, lost on the land, and still standing at the year's end; for hazel, nuts that spoiled in stores are a fourth part, taken from the gathered share. - -Unchanged from Life 17: skill levels, the skill card and strip, technique rows, practice and attempts in the panel and history. Unchanged from Life 16: the followed person's tie lines and "Ties" rows, gifts and refusals in the history, and the relationship graph. Unchanged from Life 15: ways drawn as faint lines and the wording for how a walk was found. Unchanged from Life 14: figures scaled to height and weight, the body line and five trait rows, and the exchange line. - -## 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. -- `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. - -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. - -## 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. - -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. - -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. - -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. - -Final validation is `npm run agent:check`. - -## Questions for later - -- 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? -- Do people ration a store, eating fresh food first and the store only when they must, or do they empty it in autumn? The store competes with fresh food by the same score as everything else. -- Should the store target count the body's reserve, fish and a margin for a poor year? Here it is the days to the next berry season at a day's food, scaled by conscientiousness. -- Should group members share a store, or give from it when asked, and should taking from another's store be possible, as theft? Both wait for conflict and property. -- How dense should hazel be? Here thickets cover about 6% of the valley, which makes it a rich valley for Mesolithic foragers without game. -- 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. - -## 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. -## References -- 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. -- A seed-fate study of *Corylus mandshurica* in temperate forest (Global Ecology and Conservation, October 2024): 99% of released nuts eaten, median removal about 14 days. To be cited in full in the calibration document. - -- Peterson, N. (1993), *Demand sharing: reciprocity and the pressure for generosity among foragers*, American Anthropologist. -- Gurven, M. (2004), *To give and to give not: the behavioral ecology of human food transfers*, Behavioral and Brain Sciences: who shares with whom, and dyadic reciprocity. -- Allen-Arave, W., Gurven, M. and Hill, K. (2008), *Reciprocal altruism, rather than kin selection, maintains nepotistic food transfers on an Ache reservation*, Evolution and Human Behavior. -- Woodburn, J. (1998), *"Sharing is not a form of exchange": an analysis of property-sharing in immediate-return hunter-gatherer societies*, in Hann (ed.), Property Relations. -- Apicella, C., Marlowe, F., Fowler, J. and Christakis, N. (2012), *Social networks and cooperation in hunter-gatherers*, Nature. -- Hill, K. et al. (2011), *Co-residence patterns in hunter-gatherer societies show unique human social structure*, Science. -- Hill, R. and Dunbar, R. (2003), *Social network size in humans*, Human Nature. -- Zhou, W.-X., Sornette, D., Hill, R. and Dunbar, R. (2005), *Discrete hierarchical organization of social group sizes*, Proceedings of the Royal Society B. -- Sutcliffe, A., Dunbar, R., Binder, J. and Arrow, H. (2012), *Relationships and the social brain: integrating psychological and evolutionary perspectives*, British Journal of Psychology. -- Roberts, S. and Dunbar, R. (2011), *The costs of family and friends: an 18-month longitudinal study of relationship maintenance and decay*, Evolution and Human Behavior. - -- Siegel, A. and White, S. (1975), *The development of spatial representations of large-scale environments*, Advances in Child Development and Behavior: landmark, route and survey knowledge. -- Golledge, R. (1995), *Path selection and route preference in human navigation: a progress report*; Golledge, R. (ed.) (1999), *Wayfinding Behavior: Cognitive Mapping and Other Spatial Processes*. -- Hölscher, C., Tenbrink, T. and Wiener, J. (2011), *Would you follow your own route description? Cognitive strategies in urban route planning*, Cognition. -- Zhu, S. and Levinson, D. (2015), *Do people use the shortest path? An empirical test of Wardrop's first principle*, PLoS ONE. -- Hochmair, H. and Frank, A. (2000), *Influence of estimation errors on wayfinding-decisions in unfamiliar street networks: analyzing the least-angle strategy*, Spatial Cognition and Computation. -- Bailenson, J., Shum, M. and Uttal, D. (2000), *The initial segment strategy: a heuristic for route selection*, Memory and Cognition. -- Botea, A., Müller, M. and Schaeffer, J. (2004), *Near optimal hierarchical path-finding*, Journal of Game Development. -- Formicola, V. and Giannecchini, M. (1999), *Evolutionary trends of stature in Upper Paleolithic and Mesolithic Europe*, Journal of Human Evolution. -- Ruff, C. (ed.) (2018), *Skeletal Variation and Adaptation in Europeans: Upper Paleolithic to the Twentieth Century*: stature and body mass estimates. -- Gurven, M. et al. (2006), on strength and physical capacity among Tsimane forager-horticulturalists; Apicella, C. (2014), *Upper-body strength predicts hunting reputation and reproductive success in Hadza hunter-gatherers*. -- van der Linden, D., te Nijenhuis, J. and Bakker, A. (2010), *The General Factor of Personality: a meta-analysis of Big Five intercorrelations*, Journal of Research in Personality. -- Asendorpf, J. and Wilpers, S. (1998), *Personality effects on social relationships*; Ben-Ner, A., Kong, F. and Putterman, L. (2004), *Share and share alike? Gender-pairing, personality, and cognitive ability as determinants of giving*. -- Lee, R. (1979), *The !Kung San*; Marlowe, F. (2010), *The Hadza*: forager loads and daily work. -- Magnitudes for walking, slopes, loads, foods, fish, wood, shelter and tools remain in [CALIBRATION.md](CALIBRATION.md), which gains the body, strength and trait magnitudes above. Terrain, water and mesh references remain those of Life 10 to 13, in the changelog and lab notes. diff --git a/docs/LIFE19_SPEC.md b/docs/LIFE19_SPEC.md index 79dd7af..e601e58 100644 --- a/docs/LIFE19_SPEC.md +++ b/docs/LIFE19_SPEC.md @@ -1,6 +1,6 @@ -# [LIFE19-Generations-077] +# [LIFE19-Generations-078] -**Approved by the owner; to be implemented once Life 18 has merged.** 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. It was drafted on its own branch while Life 18 was finishing; once Life 18 is merged, it is checked against Life 18 as merged, and the update number is confirmed against the newest changelog entry. +**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. 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. @@ -38,7 +38,7 @@ Life 18 changed the land's food, the calendar, how people expect food at places, | 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.943, a2 0.010, a3 0.000331, b3 0.077) gives 79% surviving the first year, 66% to 5, 60% to 15, 39% to 45 and 14% to 70, and a life expectancy of 33 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. | +| 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. | @@ -89,27 +89,27 @@ Life 18 changed the land's food, the calendar, how people expect food at places, | **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. | 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. 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. | 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). | +| **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. | 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 and against the room in the carrier's load of wood or nuts. 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. | +| **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, and a pregnant woman's her pregnancy's. | Conscientiousness's job is planning ahead; a parent planning for the winter plans for the children too. | +| **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 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 `pregnancyKcalPerDay` (300) to 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. | +| **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: deaths drawn, births due, conceptions, growth. | One fixed order makes every birth and death replayable. | +| **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) @@ -294,7 +294,7 @@ 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 | -| Deaths drawn, births, conceptions, growth of bodies under 18 | Daily at midnight, `world` phase, after the day's land, spoilage, skills and ties, in that order | +| 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 | @@ -509,21 +509,23 @@ Founders are `founders` people, 40 by default, placed from their own streams wit **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 same factor over the reference body's; 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`. 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. +**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 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 mother is addressed: her body is paid to that minute, the kcal and water are moved, and her next threshold is rescheduled. A feed draws nothing. +**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 taken from the room in the carrier's loads. 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. +**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. -**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, and a pregnant woman's `pregnancyKcalPerDay`. +**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 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. +**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. @@ -615,7 +617,7 @@ Parameters added by Life 19: | `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: 230,476 at 0, 96,104 at 1, 12,478 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. | +| `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. @@ -699,7 +701,7 @@ As in Life 18, validation rejects an `arrivalPerMille` outside 0…999; a season ## 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. @@ -767,7 +769,7 @@ Unchanged from Life 17: skill levels, the skill card and strip, technique rows, ## Code layout -- New `src/valley/lifecycle.ts`: ages; the midnight lifecycle in its order (deaths drawn, births, conceptions, growth); the death table lookup; a newborn's draws and the energy taken from the mother. +- 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. @@ -839,7 +841,7 @@ The questions above from wood onwards are Life 18's and stand. The Life 17 quest 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 to be checked against the paper's table when the calibration document is written. +- 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. 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