diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f5d777..e993992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,24 @@ All notable changes to Econ-Engine are documented here. The changelog records wh - Leaves follow the season: bilberry, hazel and birch blend from spring green through autumn yellow and brown to bare winter crowns; about half the trees are drawn as birches and half as evergreen pines, by a hash of the tree's number. The grass dulls in late autumn and winter. Colours change through shared shader uniforms, recoloured at most every tenth of a day. - Observer only: the simulation's day still runs from `dawnHour` to `duskHour` all year, and trajectories and fingerprints are unchanged. New `seasonLook.ts` with unit tests; the fixed-day `daylightAt` and `sunAt` in `display.ts` are removed. +## [LIFE18-Seasons-076] - (2026-11-03) + +- Life 18, seasons and stores. The calendar counts days of the year from the spring equinox, and founders arrive at 330‰ of the year, the first day of the berry season. Berries ripen from 330‰ to 450‰ of the year and hazelnuts fall from 450‰ to 580‰; at 90 days a year, days 29 to 39 and 40 to 51. Fish are caught all year. +- The land's food is day-anchored: a thicket's yearly crop is stated per 365 days and scaled to the year's length, then shared exactly over its window's days at midnight. A berry thicket yields 5,400 kcal a normal year (`berryThicketKcalPerYear`), a hazel thicket 150,000 (`hazelThicketKcalPerYear`); capacity is a good year's crop. Thickets start bare. Wood stays year-anchored. +- Each calendar year draws a poor, normal or good class for berries and for hazel, valley-wide, from the `harvest:` stream (a `harvest` event): berries 500‰, 1,000‰ or 1,400‰ of normal, hazel 300‰, 1,000‰ or 1,600‰. +- At midnight, before the day's crop, berry and hazel places lose 48‰ of their stock to animals and rot (`berryLossPerMille`, `nutLossPerMille`), half in 14 days. +- Expected stock follows the calendar: a seasonal place is expected at the stock last seen if seen since its window began, grown since by a normal crop's daily shares while the window is open; else, while its window is open, the openness share of a normal crop's growth so far; else nothing. +- Each person has a store at their hearth. Nut lots carried home go into it (`stored`); only the owner eats from it (`fromStore`, at `storeKcalPerHour` 6,000, scored like any food source with the walk home); lots spoil in it as carried ones do (`storeSpoiled`). Nuts keep a year (`nutShelfLifeHours` 8,760). +- A store target, `storeKcalPerDay` 2,500 for the reference body for each day to the next berry season, scaled by weight and conscientiousness. A person neither hungry nor short of wood with a store below target gathers a full load of nuts for it at the best expected hazel place, ahead of company, axes, practice and leisure; with no hazel worth working, the lower priorities decide. +- Food to pay for an axe or for wood is gathered, never taken from a store; asking and giving still move only carried food and wood. +- The daily summary records crops, losses, overflow, gathered and eaten food by source, store totals and spoilage; the checker replays crop classes, losses, window growth and store spoiling, and rejects food in a store never put in, taken from another's store or kept past its shelf life. +- The observer is labelled Life 18. The header names the season and, from the first nut day, the year's hazel crop; thickets are drawn by stock, bare outside their windows; a hearth with a store shows a pile of nuts. The person panel has a Store row and a list of the year's crop, the followed person's stores and deaths with their season. The Over time view has Food, People, Craft and Exchange sections; Food has a pie of food eaten by source for this season, this year or the whole run, food eaten by source against energy burned, food on the land, in stores and in bodies, energy reserves with deaths marked by cause, and each year's crop and its fate. The shared charts gain pie, stacked area and stacked bar charts. +- The sun and foliage of update 077 count the year from the founders' arrival, as the calendar does. +- Food choice is faster, with trajectories unchanged. It first scores the store and fishing the nearest known water, a floor no choice falls below. It passes over grid cells of thickets and waters too far to beat that floor, and waters a person would turn down anyway (no better than picking, or no time to go and come home before dusk). It visits the remaining waters nearest first by a heap and stops once none left can beat the best so far. Each person's known waters are kept up to date as banks are learned, and bank searches are cached by position. Days 51 to 60 of the canonical forty take about 0.5 s a simulated day, from 3.3 s. +- Trajectories change: new fingerprints are recorded for all 22 runs. The founders' places, bodies, traits and talents are unchanged from Life 17. +- New unit fixtures for the calendar, crops, losses, year classes, expectation, the store target, storing, eating from and spoiling in the store, eating by source, giving and the checker on seasons and stores. +- `docs/LIFE18_SPEC.md` replaces the Life 17 specification; `stores.ts` is new. Design rule 9 is amended: the land's food is day-anchored. The calibration document gains a Life 18 section. + ## [LIFE16-Routes-075] - (2026-10-30) - Fixes a memory leak on long runs: the state kept every route ever walked, about 45,000 route segments a day, so the heap grew about 12 MB a day and a year's run ran out of memory, in Node and in the page's worker alike. Each step now frees the routes below the lowest one still being walked; route ids keep counting. diff --git a/LAB_NOTES.md b/LAB_NOTES.md index 28f2395..df4ce9f 100644 --- a/LAB_NOTES.md +++ b/LAB_NOTES.md @@ -16,6 +16,44 @@ The owner asked to see the seasons in the valley: the sun's path and day length **Left for later.** People still work from `dawnHour` to `duskHour` all year, so in midsummer they sleep in daylight and in midwinter they work after the drawn sunset. Making them follow the sun changes trajectories and needs its own step. +## [LIFE18-Seasons-076] - (2026-11-03) + +The owner moved seasons and stores ahead of the chief and generations, after deferring conflict until the valley knows scarcity, and approved the specification on 2026-11-03. Food on the land now ripens in a season, is lost to animals and rot within weeks, and swings from year to year; people keep a store of nuts at their hearth for the lean months. + +**The land's food is day-anchored.** Eating was already anchored to the day, food growth to the year, so at 90 days a year the valley fed four times what it would in life. Crops are now stated per 365 days and scaled to the year's length, and design rule 9 says so. Wood stays year-anchored: the valley's woodland is a small fraction of the real forest, and anchoring it by the day alone would make fuel short for a reason that is not real. + +**What implementation changed in the specification.** +- *Expectation.* The first rule expected an unseen thicket at the openness share of its capacity as soon as its window opened. On the first day of the berry season everyone expected full thickets that held one day's crop: the forty-founder fingerprint run started 3,216 walks to forage on day 1, picked almost nothing, built three times Life 17's routes and ran out of memory. A stock seen early in a window was also never expected to grow, so nobody went back to it. Now an unseen thicket is expected at the openness share of what a normal crop has grown so far, and a seen one at what was seen plus a normal crop's daily shares since. Day 1 became mostly fishing, and the heap at day 2 fell to 471 MB, against Life 17's 672. +- *Paying from a store.* 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: 7,680 one-minute tasks in two days of the lean months. Food to pay for an axe or wood is now gathered, never taken from a store, as giving already was. +- *Store need without hazel.* With no hazel place worth working, the store need does not hold a person; the lower priorities decide. +- *History.* The year's crop is kept in the person panel from the state, not from events, which are kept only three days. + +**Speed.** A profile of days 50 and 51 found food choice searching the banks of every known lake and reach on almost every wake-up: in the lean months nothing beats fishing, so no body was ruled out. Bodies are now visited nearest first, and one is skipped when even its nearest corner cannot beat the best choice so far. With that alone, days 51 to 60 of the canonical forty took 3.3 s a day on average, against 267 ms in update 074. The rest of the cost was the same food choice made far more often: in the lean months hungry people fish in short stints and wake again, some 2,300 choices a day. + +A second pass, profiled and counted, found where the time went. Each person knows about 3,000 waters through some 35,000 banks. Every choice worked out a bound for each water and sorted them, rebuilt the list of known waters whenever a bank had been learned, and ran a full bank search for about 436 waters a choice, nearly all of them then turned down for a rate no better than picking or no time to return before dusk. The fixes: +- the known waters are kept up to date as banks are learned; +- bank searches are cached by position with numeric keys; +- the store and the nearest water are scored first as a floor; +- thickets are looked at by grid cell and waters by rings of cells, each passed over when even its nearest corner cannot reach the floor; +- waters `consider` would turn down for rate or dusk are passed over before any search; +- the rest are visited by a heap in the same order as before, stopping once even the best rate at the nearest bound left fails. + +Every comparison in `consider` is strict with ties to the lower id, and everything passed over scores below the floor or would be refused anyway, so the choice is the same; all 22 fingerprints are unchanged. Days 51 to 60 now take 394 to 541 ms a day, 498 ms on average (timings vary by about a quarter with the machine's load). Food choice is now about a third of the cost; the rest is walking routes, looking around and meetings, as in update 074. That is still almost twice update 074's cost, but inside the browser's second for a day. + +**Seasons in the picture.** The sun and foliage of update 077 now count the year from the founders' arrival, as the calendar does, so the run opens in late summer. + +**Measured once, canonical forty, seed 20260813, 90-day years, 270 days (three years from arrival) in 12-hour steps.** Calendar years run from the spring equinox: year 1 is the 61 days from arrival, year 4 the 29 lean days before the fourth berry season. +- *Year classes.* Year 1 normal berries and normal hazel; year 2 good and normal; year 3 normal and poor; year 4 good and normal, not yet ripe. +- *Crops and their fate.* Berries: 1.06, 1.49 and 1.06 million kcal in years 1 to 3, of which people gathered 23%, 19% and 26% and animals and rot took 72%, 79% and 77%. Hazel: 29.6, 29.6 and 8.9 million kcal; gathered 20%, 18% and 3%, lost 72%, 82% and 114% (the poor year's losses include nuts left from the year before). No stored nuts spoiled. +- *Eaten by source.* Year 1: berries 3%, fresh nuts 48%, stored nuts 16%, fish 32% of 7.2 million kcal. Year 2: 3%, 34%, 23%, 39% of 8.2 million. Year 3, the poor hazel year: 4%, 3%, 17%, 76% of 7.3 million. Year 4's lean days: all fish. +- *Stores at the end of each nut season.* Nobody reached their target. Year 1: median store 35,092 kcal against a median target of 152,915; the least conscientious third held 28,980 against 116,044 and the most conscientious 38,325 against 196,100; 7 of 40 stores empty, the fullest 60,424. Year 2: median 44,451 against 150,931; thirds 40,243 and 48,454; 4 of 33 empty, the fullest 131,005. Year 3, poor hazel: 27 of 30 empty, the fullest 95,369. +- *Reserves.* The median reserve stayed between 64,000 and 70,000 kcal through the first two years, highest in the nut season, lowest through the lean months. After the poor hazel year it fell to about 35,000 in the lean months, about 4 kg of body fat, and was back to about 48,000 to 54,000 by the next berry season. The lowest reserve fell near zero in every lean season. +- *Deaths.* 14 by day 270, all of hunger: 6 in the lean months after year 1's harvest, 1 in year 2's berry season, 3 after year 2's harvest and 4 after the poor year 3. Days of the year: 75, 81, 2, 12, 12, 26, 31, 82, 89, 22, 67, 81, 85, 13. +- *The living.* 38 at the end of year 1, 31 at the end of year 2, 27 at the end of year 3, 26 at day 270. +- *Asks.* Gifts and refusals by calendar year and season: year 1 berries 29 and 142, nuts 45 and 115, lean 62 and 477; year 2 lean 70 and 302, berries 28 and 59, nuts 15 and 72; year 3 lean 32 and 802, berries 2 and 111, nuts 1 and 197; year 4 lean 2 and 539. Food given fell from 83,293 kcal in year 1's nut season to almost none after the poor year. + +**Findings.** Seasons bite: deaths come in the lean months, and a poor hazel year halves the median reserve and moves the valley onto fish. The weight lost in a normal year is small in the median, within the few per cent Jenike (2001) reports for foragers' lean seasons; after the poor year it is larger. Stores fall well short of their targets while most of the hazel crop is lost on the land: gathering trips, not the crop, limit storing, which is a question for the stores' rules (carrying, how long a trip lasts, eating at the thicket) rather than for the land. The conscientious store more, but not in proportion to their targets. Asking rises in the lean months while giving falls, most sharply after the poor year. + ## [LIFE16-Routes-075] - (2026-10-30) While measuring Life 17, a one-year run ran out of memory, and `main` grew at the same rate: running the canonical configuration day by day with `advanceValley` and collecting garbage every 25 days, the heap grew about 12 MB a day, to 2.4 GB by day 150. Node's default heap and the page's worker both fail before a year. diff --git a/README.md b/README.md index cc268db..b8cbfac 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 17 · 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. 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 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. 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 17](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 and how many are alive. Follow a person to see what they are doing, bars for energy, thirst and load, 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; 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 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. -Details are in the [Life 17 specification](docs/LIFE17_SPEC.md), [validation notes](docs/VALIDATION.md#life-17) and [lab notes](LAB_NOTES.md). +Details are in the [Life 18 specification](docs/LIFE18_SPEC.md), [validation notes](docs/VALIDATION.md#life-18) 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/SIMULATION_DESIGN_RULES.md b/SIMULATION_DESIGN_RULES.md index f94abdc..305652f 100644 --- a/SIMULATION_DESIGN_RULES.md +++ b/SIMULATION_DESIGN_RULES.md @@ -671,7 +671,7 @@ The Life core (`src/valley/`) simulates people with bodies in a physical world, 7. **One clock, in minutes.** Every event, record and position has a minute. There is no second time system and no second rule set; playback speed only changes how many minutes advance per frame. 8. **Nothing runs every minute.** Work happens at wake-ups, ordered by minute, then phase, then person id. A person wakes when a task ends, a body threshold arrives, something enters their perception, or someone addresses them; between wake-ups their position and body follow from their task. Each other system declares its cadence. Conservation is checked at every event that moves a quantity; the full invariant set runs once a day. -9. **Every duration is day-anchored or year-anchored.** Day-anchored durations are fixed in hours and minutes: sleep, meals, thirst, walking, a day's work. Year-anchored durations are fractions of the year: seasons, pregnancy, childhood, ageing, growth, breeding, mastery. Days per year is a run setting from 8 to 365; year-anchored durations never fall below one day; rates per year are divided by the setting. +9. **Every duration is day-anchored or year-anchored.** Day-anchored durations are fixed in hours and minutes: sleep, meals, thirst, walking, a day's work. Year-anchored durations are fractions of the year: seasons, pregnancy, childhood, ageing, growth, breeding, mastery. Days per year is a run setting from 8 to 365; year-anchored durations never fall below one day; rates per year are divided by the setting. The land's food is day-anchored: what a day of a season grows feeds a day of eating, so a thicket's crop is its kilocalories a year at 365 days scaled by days per year, and a short year has a short harvest, not a richer one. 10. **The observer owns the labels.** Group, chief, village and border are measurements the observer makes from state. None is a word in the engine. --- diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 39bf52c..6197109 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -81,19 +81,20 @@ 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 17: skills, techniques, ties, habitual routes, bodies, clock and ground mesh +## Life 18: seasons and stores, skills, techniques, ties, habitual routes, bodies, clock and ground mesh -`src/valley/` is the independent Life core described by [LIFE17_SPEC.md](LIFE17_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 [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. - **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. `world.ts` owns hourly and midnight work: regrowth, 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. -- **Places.** `places.ts` and `layout.ts` place berry and hazel thickets, wood stands and stone outcrops as aggregate stocks, indexed by place id, with their own regrowth (`logRegrowth` keeps each felled tree's schedule). The terrain, water, shore geometry and fish of Life 11 (`terrain.ts`, `water.ts`, `banks.ts`, `fish.ts`) are kept unchanged. +- **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. +- **Places.** `places.ts` and `layout.ts` place berry and hazel thickets, wood stands and stone outcrops as aggregate stocks, indexed by place id, with their own regrowth (`logRegrowth` keeps each felled tree's schedule). A thicket's food is day-anchored: its year's crop (`cropOf`, its kind's kcal a year at 365 days scaled to `daysPerYear` and by the year's class factor) is shared out over its window's days, after a midnight loss of `berryLossPerMille` or `nutLossPerMille` of what lies on it; its capacity is a good year's crop. `harvestOf` draws the year's poor, normal or good class for berries and hazel from `harvest:`, cached by year. Thickets start bare and gain their first day's share at creation. The terrain, water, shore geometry and fish of Life 11 (`terrain.ts`, `water.ts`, `banks.ts`, `fish.ts`) are kept unchanged. - **Ground mesh.** `mesh.ts` builds, once per layout, a constrained Delaunay triangulation (Delaunator and Constrainautor, pinned) over the whole valley: the hydrology's shorelines simplified to within `shoreToleranceCm`, relief vertices from a quadtree of squares from `meshMaxEdgeCm` down to one terrain cell, and refinement until every dry 5 m point is within `meshHeightToleranceCm` of the terrain. Each triangle has an area type (ground, lake or river), neighbours, a chunk and a region; the largest walkable region is the main land, where founders start. The mesh is cached per terrain and checked once by `meshViolations`. - **Knowledge and routes.** `perception.ts` records what a person sees at a wake-up: mesh triangles, places with their stock, bank points and other people. Triangle knowledge is a bitset shared between a state and its copy until its holder learns something. `routes.ts` runs A\* over known ground triangles, pulls the path straight through the corridor with the funnel algorithm, and cuts it at triangle edges into segments with their slope and walking time. Bank points sit on the ground side of each shore edge. A new route is planned the way people find their way: first the straight line, kept when every triangle it crosses is known walkable ground (`lineCorridor`, exact side tests; a line through a vertex counts as blocked); otherwise it is steered. Steering takes an A* over the person's pieces, the joined-up patches of known ground within each chunk, linked across chunk borders only where the person knows ground on both sides (`ChunkLinks`, precomputed per mesh), and then crosses each piece toward the crossing into the next whose midpoint is nearest the line on to the target: straight where the line stays in the piece, otherwise by A* confined to that piece. A chain of pieces is joined-up known ground, so a steered plan always arrives; there is no search over the whole known ground. Pieces are derived from knowledge, cached per knowledge and carried forward at each survey by dropping only the chunks where triangles were learnt. The still landscape is surveyed again only after moving `resurveyCm` (100 m) from the last survey point; stock at the person's place, people and fires are seen at every wake-up. - **Ways.** `ways.ts` keeps each person's remembered ways: immutable corridors of triangles between two ends (the hearth, a place, a known bank point), at most `waysRemembered` (64), the least recently used forgotten first. A walk to such an end takes a way that holds the walker's triangle, whole or joined part-way, in either direction; the route is pulled straight along the way's corridor at the walker's current load. A way is planned again once a day has passed and the person has seen new ground since, or at once if it crosses ground no longer known. Walk events record whether the walk used a way, joined one or planned a new one. An idle person with nothing to explore takes one leisure walk a day along the way from home used longest ago (`leisureMinute`), goes home when away, and otherwise rests. - **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. +- **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. `ruleFixtures.ts` is imported only by tests: surveyed ground and small explicit lakes isolate rules without changing production starts. @@ -104,4 +105,6 @@ The engine runs in a Web Worker, `engineWorker.ts`; `engineLink.ts` is the page' The observer, `src/valleyView/`, keeps the copies received and a continuous displayed minute (`advancePlayback` in `valleyViewModel.ts`). It draws the newest state at or before the clock, at a minute less than one minute after it, so every wake-up up to the drawn minute has run and none after it, and each person is drawn from the task actually under way: position from `positionAt`, a gesture from the task's kind, energy from `energyAt`. When the worker is behind, the clock waits within the newest state's minute, so a slow day stops the clock and not the page. Step shows the next minute once it arrives; a change of speed jumps to the newest copy. Below a day per second people walk continuously. From a day per second up, people are hidden and the valley is drawn as a map of stocks, groups and huts. Plants and ground are drawn in 500 m tiles near the camera, and the followed forager's overlays are redrawn at most every 250 ms; each place's ring is draped on the ground once, since places and their radii never move. The panels refresh ten times a second, or twice a second at map speeds, and the history charts are drawn again only when a day ends, the followed forager changes or a run starts. Thickets, stands and outcrops are drawn as decoration: a fixed number of bushes, hazels, trees or rocks per place, sharing out the place's stock in turn, so what is drawn stays in proportion to what is there. The decoration uses no simulation stream. +The header names the season and what is in season (berry season, nut season or the lean months) and, from the first nut day, the year's hazel crop; the observer names seasons and crop classes, the engine never does. A hearth whose owner's store holds food shows a heap of nuts, larger with the store; thickets are drawn by their stock, so bare outside their windows. The person panel has a "Store" row, and a list of recent harvests, the followed person's stores and deaths with their season; the view copy keeps `harvest`, `stored` and `fromStore` events. The Over time view is split into Food, People, Craft and Exchange. Food has a pie of kcal eaten by source over this season, this year or the whole run; a stacked area of kcal eaten each day by source against kcal burned; food on the land, in stores and in bodies; the median energy reserve with the lowest-to-highest band, the followed person's reserve and a mark per death coloured by cause; and each year's crop by kind, gathered, spoiled in stores, lost and standing. `src/ui/charts.tsx` gains `PieChart`, `StackedAreaChart` and `StackedBarChart`. + The person panel shows body measurements and five trait bars; figures scale with height and weight. Recent exchange lines show kcal per kilogram and which party received the larger share. The "Ties" row counts the people known and the close ones (a day's time together or more, an observer setting); the closest five are listed with time together and who owes whom, recent gifts and refusals are listed, and lines on the ground join the followed person to their five closest living ties, warmer for a tie holding a grievance. The view copy keeps gift and refusal events, and everyone's ties, resent for a person only when one of their ties changed. The history panel has three views. `SkillMap.tsx` places each forager inside a triangle with a corner per skill, pulled towards each corner by where they stand in that skill among the living, sized by overall skill. `TieGraph.tsx` sets everyone alive round a circle, ordered by group, with a line per pair who know each other, thicker for more time together and warmer for grievance. Both are drawn again each simulated hour and follow a person on a click. The charts over time are the third view. diff --git a/docs/CALIBRATION.md b/docs/CALIBRATION.md index a160df2..edafe6d 100644 --- a/docs/CALIBRATION.md +++ b/docs/CALIBRATION.md @@ -249,6 +249,28 @@ 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](LIFE16_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](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 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. + +| Parameter | Value | Basis | Status | +| --- | --- | --- | --- | +| `berrySeason` | 330‰ to 450‰ of the year from the spring equinox, about 19 July to 31 August | Bilberry ripens in July and August in northern Europe [4] | Measured | +| `nutSeason` | 450‰ to 580‰, about 31 August to 20 October | Hazelnuts fall from late August to October [31] | Measured | +| `arrivalPerMille` | 330‰, the first day of the berry season | Founders arriving in spring would starve before any food grew | Decision | +| `berryThicketKcalPerYear` | 5,400 kcal (9 kg) a normal year | 200 kg a hectare over a thicket's 452 m²; wild bilberry gives 4 to 65 kg a hectare on forest average and up to 630 in an exceptional field [4] | Measured range, judged | +| `hazelThicketKcalPerYear` | 150,000 kcal (60 kg in shells) | Kept from Life 9.7: wild woodland hazel about 400 kg a hectare [30] | Measured | +| Year classes | Poor, normal or good with chances 250‰, 500‰, 250‰; berries 500‰, 1,000‰, 1,400‰ of normal; hazel 300‰, 1,000‰, 1,600‰ | Nut crops swing widely and in step over regions; hazel bears heavy and light years [31] | Estimate | +| `berryLossPerMille`, `nutLossPerMille` | 48 a day, half gone in 14 days | Fallen hazelnuts removed by rodents with a median of about two weeks [49] | Estimate from a related species | +| `nutShelfLifeHours` | 8,760, a year | Dry hazelnuts in their shells keep about a year; Mesolithic people roasted them | Estimate | +| `storeKcalPerDay` | 2,500 for the 60 kg reference body, scaled by weight | A day's food for the reference body, as in the eating rules above | Derived | +| `storeKcalPerHour` | 6,000 | Cracking and eating stored nuts at home; faster than picking because the walking and searching are done | Estimate | + +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. diff --git a/docs/LIFE17_SPEC.md b/docs/LIFE18_SPEC.md similarity index 64% rename from docs/LIFE17_SPEC.md rename to docs/LIFE18_SPEC.md index a2d184d..7af535f 100644 --- a/docs/LIFE17_SPEC.md +++ b/docs/LIFE18_SPEC.md @@ -1,28 +1,35 @@ -# [LIFE17-Skills-074] +# [LIFE18-Seasons-076] -**Approved by the owner, 2026-10-29, and built as update 074.** The owner approved a first draft, built and then revised before merging: measured on the canonical seed, nobody learnt a technique in a year, and the owner found its learning rules unrealistic. This revision replaces watching and the competence bar with learning by attempts, invention by the person, and practice in free time; the rest is as built. This specification replaces the Life 16 specification and describes the whole simulation. It is step 17 of the [roadmap](ROADMAP.md), skills and techniques, a step the owner added on 2026-10-29 ahead of conflict, and is built under the [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) of the design rules. Life 16's update history (relationships, and the skill map and relationship graph) is recorded in the changelog and the lab notes, entries 072 and 073. +**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. 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. From this step each person also carries a working life: **experience** that builds up over years of foraging, gathering and making, and fades only slowly when unused; a **talent** for each kind of work that sets how fast they learn it; the **ideas** of axe-making techniques they can try, thought of themselves or taken from an axe they acquired; and the **techniques** they know, having once made such an axe that worked. +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 17 makes possible +## What Life 18 makes possible -- **Skill is built over a working life.** Until now a person's skill was their hours at a task over the last 30 days: someone who made axes for a year and then stopped for a month was a beginner again, and nobody could become an expert. Each person now holds **experience** for foraging, for gathering wood and for each axe technique they know, in seconds of work. Experience grows with every hour worked and fades by half in ten years unused. Skill follows from experience by the power law of practice: quickly at first, then ever more slowly (Newell and Rosenbloom 1981). -- **Talent is how fast someone learns.** Born skills from 75% to 125% are replaced by a **talent** for each of foraging, wood and craft: a normal score that scales how much experience each hour of work gives. The founders arrive as adults with years of experience behind them, gained at their own talent, so they start a little apart and pull further apart with practice. A gifted person who practises drifts towards a corner of the skill map; one who is gifted but never practises does not. -- **A general craft skill and specific techniques.** Axes are made by one of three **techniques**: a **flaked axe**, knapped in about an hour, that cuts about 10 logs; a **tranchet axe**, flaked and re-edged by a sideways blow, that lasts longer; and a **ground axe**, roughed out by flaking and ground smooth over some fifty hours, that cuts a few hundred logs. The flaked axe is the root of the tree; the other two need it. Experience in each technique counts fully towards that technique and in part towards the others, through **general craft**: a good knapper learns to grind faster than a novice, but is not an expert at once (Khreisheh 2013). -- **Techniques are learnt by trying and failing.** Every axe is an attempt: a novice's blank often breaks, losing the stone and the work so far, and an expert's rarely does. Every attempt, failed or not, adds experience in that technique, so the next attempt is a little more likely to work. A person can try a technique once they have the **idea** of it, and **knows** it once they have made one that worked. Beginners given about ninety hours of expert coaching still could not make good handaxes (Pargeter et al. 2019): learning a technique is a long run of attempts, not a moment of insight. -- **People invent.** A person may think of a technique they have never seen: while working stone, an idea for the next technique on from one they already know can come to them. It is rare, and much more likely for the open: openness is the most consistent personality predictor of creativity and creative achievement (Feist 1998). Nothing in the engine invents techniques; people come up with the idea of one the world allows. Later steps add more things to make, and the same rule lets people think of them. An idea also passes in the axe itself: someone who acquires an axe made by a technique they have not thought of gains the idea of it. -- **People practise in their free time.** With nothing needed, a person may spend part of the day at their hearth practising, before or instead of a walk. Conscientious people practise more: conscientiousness is the trait most consistently tied to sustained effort and performance (Zell and Lesick 2022) and to more time spent working and studying (Rohrer and Lucas 2018). What they practise is a technique they have the idea of but have not yet made work, else the one they use. Walks, company and rest stay; practice takes only time left over. -- **Each person chooses how to make an axe.** A person making an axe uses the known technique that costs them least work per log of the axe's expected life, counting the walk to fetch a stone. A flaked axe is quick but wears out fast and needs a stone for every ten logs; a ground axe is slow but lasts. Which one pays depends on the person's skill, how often their attempts fail and how far the stones are. -- **Why now.** The owner found, with the skill map of update 073, that skills could not show specialisation: the 30-day window let nobody build expertise, and the one axe recipe left nothing to learn. Conflict (step 18) and influence (step 19) both read skill: prestige comes from skill seen. Before either, skill has to mean something that lasts. +- **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 skills, axes and what people learn from each other. It does not change the map, how people find their way, the resources, bodies, personality, ties, asking and giving, groups or the exchange of wood for food. Foraging moves to the experience model as one skill; splitting it into finding, picking speed and judgement waits until the world gives judgement something to act on, such as plants that make people ill. +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. | @@ -45,11 +52,32 @@ This step changes skills, axes and what people learn from each other. It does no | 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. After update 072 a day past day 50 takes about 181 ms in the worker. Skills must not make it noticeably slower: measured once and recorded, days 50 to 59 in 12-hour steps against update 072's, and the year's memory. More than about 10% slower is examined before this step is merged. | +| 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 -### Skills and techniques (new) +### 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 | | --- | --- | @@ -66,7 +94,7 @@ This step changes skills, axes and what people learn from each other. It does no | 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 25. | +| **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. | @@ -77,9 +105,9 @@ This step changes skills, axes and what people learn from each other. It does no | 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 19). | +| 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 at step 18 and will add to grievance then. A fixed amount per refusal is judgement, listed for later. | +| 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. | @@ -116,15 +144,15 @@ This step changes skills, axes and what people learn from each other. It does no | 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 20. 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 20. | +| 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 step 18 (reach) and for the observer's figures. | +| 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 at step 18, but each already has a job now, so neither is cut. | +| 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. | @@ -163,13 +191,24 @@ A place is a thing someone can decide to go to. Each has an id, a kind, a positi | 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 holds up to 3,120 kcal and regrows 54,000 kcal a year; a hazel thicket 75,000 kcal and 150,000 a year; a stand 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. 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. +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. -### Stocks, fish and regrowth +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: -Once a day at midnight, each resource place receives its day's share of its yearly regrowth, `floor(a*(d+1)/D) - floor(a*d/D)` for yearly amount `a` on day `d` of a `D`-day year, capped at capacity. Felled stands regain a tree's logs after `treeRegrowthYears`. Fish per lake and reach keep Life 11's capacity and logistic growth, applied once a day with an exact carried remainder; a depleted body is not reseeded. Hut weathering is day-anchored: one log every `hutLogDays`. +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 @@ -198,7 +237,8 @@ A person's record holds the task, its start minute, its route (for a walk) and t | System | Cadence | | --- | --- | -| Resource and fish regrowth, spoilage of carried lots, hut weathering, experience and skills, ties fading | Daily at midnight, `world` phase | +| 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 | @@ -210,21 +250,22 @@ Bodies, traits and talents are drawn once, when the founders are made, and never ### 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, and every trait rule (margins in minutes, distances, shares). Year-anchored, scaled by the setting: regrowth per year, fish growth per year, tree regrowth in years, experience gained per second worked and its fading, the chance of an idea per hour of axe work, and the displayed calendar. A year-anchored duration is never shorter than one day. +`daysPerYear` is a run setting from 8 to 365, default 90. Day-anchored, unchanged by the setting: sleep, the hour of rest, picking, gathering, chopping, drinking and making rates, spoilage, firewood per night, hut weathering days, the 24-hour memory of heard terms, the one leisure walk a day, the daily practice budget, every trait rule (margins in minutes, distances, shares), 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. +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 and traits streams of Life 14, unchanged; and from this step two new names, each with its own salt: +Every draw comes from a stream derived from the seed and a name: the terrain and layout streams as in Life 11; the founder stream for starts, unchanged; `axe::` for an axe's quality; the body, traits and talent streams, unchanged; the attempt and invent streams of Life 17, 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** (new): 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::`** (new): 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::`** (new): when a stint of axe work ends, one `randomInt(1,000,000)` per technique the person could think of, in technique 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. -The skill and craft streams of Life 9 are no longer drawn. Nothing is drawn per minute. The mesh, ways, plans, ties, asking, giving and practice draw nothing. +Nothing is drawn per minute. The mesh, ways, plans, ties, asking, giving, practice, losses and stores draw nothing. ## Bodies and personality @@ -295,7 +336,7 @@ At every wake-up a person observes in two parts: - **The still landscape**, only if the person stands `resurveyCm` (100 m) or more from their last survey point, or has never surveyed: every resource place and bank point within `sightRadiusCm` (1 km) becomes known, and every triangle whose centroid lies within the sight radius becomes known. A chunk lying wholly within the sight radius marks all its triangles at once. The person's position becomes their survey point. - **What changes**, at every wake-up: hearths, flags and hut sites within the sight radius become known; the place the person stands at shows its stock; people within `talkRadiusCm` (20 m) are met, and people within sight are seen. -Founders survey at their first wake-up. Relief does not block sight. A stock not yet seen is expected at the openness share of capacity, above; a fish stock is learnt only by fishing. Triangle knowledge is a bit per triangle, shared with the previous state and copied only when the person learns a new triangle. +Founders survey at their first wake-up. Relief does not block sight. A person knows the calendar: the berry and nut windows and where today falls. A berry or hazel place is **expected** to hold the stock last seen if it was seen at or after the start of its kind's most recent window, plus a normal crop's daily shares from the day it was seen to today while the window is open, capped at capacity; else, if that window is open today at window day `i` of `w`, the openness share of `floor(normal · (i + 1) / w)`, where `normal` is a normal year's crop, capped at capacity; else nothing. (Implementation showed the first draft's rule wrong: expecting an unseen thicket at the openness share of its capacity on the first day of its window sent everyone walking to thickets that held one day's crop, and a stock seen early in the window was never expected to grow, so nobody returned to it.) Other places are expected at the stock last seen, or the openness share of capacity if never seen; a fish stock is learnt only by fishing. A person knows their own store exactly. Triangle knowledge is a bit per triangle, shared with the previous state and copied only when the person learns a new triangle. ## Ties @@ -395,9 +436,9 @@ Making an axe by `t` takes `ceil(3,600 · hours_t · 100 / P_t)` seconds of work ## People -Each person is one object: sex, height, weight, grip, the five trait scores and their derived quantities; three talents; position, task record, energy and water with their remainders, carried food lots, carried wood, carried log, stones, axe with its technique, hut, group, experience with its remainders, the ideas and techniques known, minutes practised today, the seconds worked today, skills, rates and proficiencies, and alive. Its memories are typed arrays, bitsets and maps inside it, never read by the checker as truth. +Each person is one object: sex, height, weight, grip, the five trait scores and their derived quantities; three talents; position, task record, energy and water with their remainders, carried food lots, carried wood, carried log, stones, axe with its technique, hut, group, experience with its remainders, the ideas and techniques known, minutes practised today, the seconds worked today, skills, rates and proficiencies, the **store**'s food lots, and alive. 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 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 and no ties: they are strangers. +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 @@ -405,6 +446,8 @@ Founders are `founders` people, 40 by default, placed from their own streams wit | --- | --- | --- | | 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 | @@ -412,20 +455,21 @@ Founders are `founders` people, 40 by default, placed from their own streams wit | 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 | -Water loss is `waterBaseMlPerDay/1,440` a minute plus `waterExtraMlPerKcal` per kcal above the person's resting rate, with Life 11's exact remainders. Eating happens at wake-ups, oldest lots first, up to reserve capacity. +Gathering nuts for the store produces at the person's nut rate, as gathering to eat does. Eating from the store moves `storeKcalPerHour` an hour from the store's oldest lots into the person's carried lots, which are eaten at the next wake-up. Water loss is `waterBaseMlPerDay/1,440` a minute plus `waterExtraMlPerKcal` per kcal above the person's resting rate, with Life 11's exact remainders. Eating happens at wake-ups, oldest lots first, up to reserve capacity. ## 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. Observe: survey the still landscape if the person has moved far enough, and always what changes. Meet people within talking distance: count time together, found or join a group, hear terms, exchange wood for food at the agreeableness price, ask for food or wood still needed, request or promise an axe, deliver hut logs, contribute to the group's fire. -4. 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. -5. Choose the next task by the priorities below, using only memory; a new axe chooses its technique and draws whether the attempt will work. -6. 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. +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. +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 | | --- | --- | --- | @@ -434,17 +478,17 @@ Choose the first applicable rule. "Before dusk" means before dusk less the perso | 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 | Finish the person's load, or take a full load home. | -| 7 | Neither hungry nor short of wood, 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 neither food nor wood 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 | Neither food nor wood 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 or wood needed | Choose productive gathering or an advantageous local exchange; search if no remembered source is worth working; otherwise rest with the reason recorded. | +| 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 stock last seen, or the openness share of capacity if never seen. Work must leave time to return home before dusk less the margin, except drinking under severe thirst. +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 4,380 and fish after 24; 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; 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. There is no money, no ownership of water, no forced or unasked sharing and no planned specialisation. +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 @@ -458,7 +502,26 @@ Run settings are unchanged: | `founders` | 40 | 1 to 1,000; the page allows 1 to 100 | | `scattered` | true | | -New parameters: +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 | | --- | --- | --- | @@ -478,8 +541,6 @@ New parameters: | `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). | -Removed: `skillMinPercent`, `skillMaxPercent`, `craftSkillMinPercent`, `craftSkillMaxPercent`, `practiceDays`, `practiceHalfHours`, `practiceMinPercent`, `practiceMaxPercent`, `startPracticeHoursPerDay`, `craftPractice`, `axeHours` and `axeLogs`. - Parameters added by Life 16, unchanged: | Parameter | Default | Basis | @@ -517,7 +578,7 @@ The base, effect, low and high of each trait rule are the values in the personal All other Life 14 defaults are retained. -Validation rejects 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. +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 @@ -538,84 +599,99 @@ The checker replays the events of each `stepValley` interval against the state i - 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 regrowth and takes; water withdrawals equal recorded drinks. +- 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 16; a walk's start records how it was found (`plan`: `way`, `joined`, `straight` or `steered`), whether a way was dropped and planned again (`rechecked`), and the way it used (`wayId`, −1 for a new plan). An observation records whether it was a survey. Life 16's events stay: `together` (minute, the two ids, minutes added), `gift` and `refusal`. The `practice` event is replaced by `skills` (minute, person, each experience before and after, the seconds worked, the new skills, rates and proficiencies). New events: `idea` (minute, person, technique, `invented` or `from an axe`, and the maker), `broke` (minute, person, technique, seconds worked, whether it was practice) and `learnt` (minute, person, technique, at their first successful attempt). An axe's start records its technique and whether the stint is practice; the attempt's minute, proficiency and draw are kept with the axe in progress and recorded in its `made` or `broke` event, from which the checker replays the attempt stream (corrected in implementation: not in the task start). The daily summary replaces each person's practice percentages with their skills, proficiencies, ideas and techniques known, seconds worked and minutes practised; world metrics add attempts begun, breaks and axes made by each technique. +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 17 · 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 skills, proficiencies, talents and techniques known, which change at most once a day, and keeps `idea`, `broke` and `learnt` events alongside gifts, refusals and exchanges. Everything else in the settings screen, loading card, header, group card, playback and landscape is as Life 16. +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. -Skill levels are named by the observer, never the engine, from a skill or proficiency percentage: **novice** below 75, **competent** 75 to 99, **skilled** 100 to 119, **expert** 120 to 134, **master** 135 and above (observer settings). Nothing in the simulation changes at these lines. +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. -- **Person panel.** The skill rows become "Foraging · skilled", "Wood · competent" and "Craft · competent" (general craft), each with the percentage, and "quick to learn" or "slow to learn" beside a skill whose talent is at least one spread above or below average. A "Techniques" row lists the axe techniques known with their level, "flaked (competent), ground (novice)", and any only tried: "trying tranchet, 2 of 7 attempts worked" or "has the idea of the ground axe". The task line reads "practising the tranchet axe" during practice. The axe line names its technique: "Ground axe, quality 80, 120 logs left". A "Practice" row shows today's minutes against the budget. -- **Skill map.** The craft corner is general craft. Hovering or following a person shows their name and the three levels; a person who knows the ground or tranchet axe is drawn with a ring. Scaling between the least and most skilled living person is as update 073. -- **History.** "Forager 4 thought of the ground axe"; "Forager 7 got the idea of the tranchet axe from Forager 2's axe"; "Forager 4's ground axe broke after 12 h"; "Forager 4 made their first ground axe"; and axes made name their technique. -- **Charts.** A line chart of axes made per day by technique, and one of attempts broken per day, beside the existing charts. +- **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 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. +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/skills.ts`, replacing `practice.ts`: experience, the curve, skills, rates and proficiencies; the techniques table and their needs; fading and gaining at midnight; founders' experience; ideas, inventing and attempts' success; the practice budget. -- `axes.ts`: an axe's technique and attempt draw; breaking; choosing a technique; making time, quality and life by technique; asks and worth by logs left; an idea from a bought axe. -- `layout.ts`: `drawTalents` from the new talent stream, replacing `drawSkills` and `drawCraftSkills`. -- `forager.ts`: under priority 9, practice before the leisure walk, and fetching a stone for it. -- `wake.ts`, `world.ts`, `engine.ts`: seconds worked by technique; the midnight skill update in place of the practice day; the `idea`, `broke`, `learnt`, `skills` and technique fields in events and the daily summary. -- `types.ts`, `config.ts`: the person's experience, talents, ideas, techniques and minutes practised; the new parameters and their validation; the removed parameters and the `craftPractice` switch. -- `invariants.ts`: the checks above. -- `src/valleyView/`: the view copy's skills and techniques, level names, the panel rows, the skill map's craft corner and rings, the history lines, the chart, the Life 17 label. -- `docs/ROADMAP.md`: this step inserted as step 17, conflict and the steps after it moved down by one, and making and teaching (now step 25) narrowed to what this step leaves. -- `docs/LIFE16_SPEC.md` is removed: this specification replaces it. - -Terrain, hydrology and mesh, routes and ways, perception, bodies and traits, and exchange of wood for food (`terrain.ts`, `water.ts`, `mesh.ts`, `routes.ts`, `ways.ts`, `perception.ts`, `nature.ts`, `trade.ts`) are unchanged. The MVP9 core is unchanged. +- `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 16 fingerprint suite passes before the engine is changed. Every trajectory changes once rates come from experience and axes from techniques: this step records new fingerprints for all its configurations. The founders' places, bodies and traits stay the same as Life 16's on every fingerprint seed; `life13-founders.json` is updated to hold each seed's talents in place of born skills (corrected in implementation: starting experience and techniques follow from the talents and the founders' technique draws by the founder rules, and are checked by the rule tests). Fingerprints are not updated to conceal a failed rule. +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. The curve: skill is at the floor with no experience, half way at the half-experience, below the ceiling at any experience, and each further block of hours adds less. -2. Fading: experience with no work halves in `experienceHalfYears` years within 1%, at 90 and at 365 days a year. -3. Year-anchoring: the same hours worked give four times the experience at 90 days a year as at 365, within rounding. -4. Talent: of two people working the same hours, the one a spread more talented gains a quarter more experience; founders' starting experience scales with talent. -5. Transfer: a person with ground axe experience is more proficient at the tranchet axe, on learning it, than a novice with none, and less than someone with the same experience in the tranchet axe itself. -6. Attempts: at proficiency 63 about two in five attempts work and at 120 about twenty-four in twenty-five; a broken attempt ends at its break second, loses its stone, keeps its wood and still adds its seconds to experience; the first success by an untried technique makes it known. -7. Inventing: a fixture whose draw falls below the chance gains the idea of the next technique after a stint of axe work; one who does not know what a technique needs never draws for it; a person a spread more open has twice the chance and one a spread less none. Buying an axe gives the idea of its technique. -8. Practice: an idle person at home with a stone practises up to their budget before walking, then walks; an untried idea is practised before a known technique; a more conscientious person has a larger budget, and one well below average none; a person with needs does not practise. -9. Choice: with a stone in hand and low grinding skill, a person makes a flaked axe; with stones far away and enough grinding skill, a ground axe; a higher failure rate makes a technique less attractive. -10. Worth: a buyer values a ground axe of 150 logs left above a flaked axe of 8. -11. The checker rejects a skill that does not match its experience, a midnight gain that does not match the day's work, a technique known without a successful attempt, an idea without its record or with a draw above the chance, an attempt whose recorded draw is wrong, an axe by a technique not among the maker's ideas, practice over the budget, and an axe quality outside its range. +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 16, 15 and 14 fixtures are kept, with fixtures updated only where rates or axes now change what a person does. +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: the founders' starting skills against the old born-skill range; foraging skill at day 0 and day 365; every idea, by invention or from an axe, with the person's openness and conscientiousness; attempts and breaks by technique and proficiency; minutes practised per person against conscientiousness; every technique learnt; axes made by technique and by maker, and the spread of craft experience at day 365; and days 50 to 59 in 12-hour steps as the worker runs, against update 073's 181 ms a day. In the browser: a "Techniques" row and level names in the panel, a ring on the skill map for someone who knows a better axe, "practising" in a task line, an idea, a broken attempt and a first success in the history, and the console clean. +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 -- Are a quarter faster per spread of talent, a third of transfer between techniques, half of attempts working at 15 points above the floor, an idea per 1,800 hours of axe work and an hour of practice a day the right strengths? All are judgement. -- Should a break come mostly early, in the roughing-out, rather than anywhere in fifty hours of grinding? -- Should people learn by watching or being taught (step 25), and should teaching favour close ties? -- Should talent correlate with traits, conscientiousness with practice or openness with craft? Here talents are independent of personality. -- Should foraging split into finding, handling and judgement once plants can make people ill? -- Should chopping and building count as craft or wood experience? -- Does anyone become known for axes, and does buying an axe from a skilled maker grow into specialisation? -- Do the better techniques spread through the whole valley by the axes people buy, stay with their inventors, or die with the people who knew them? -- Should flaked and ground axes cut at different speeds, not only last differently? -- Does a ground axe ever pay at these stone distances, or does the flaked axe win everywhere? +- 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 16 questions stand: the exchange rate between time together and help, the weight of a refusal, walking together, offering unasked, asking strangers, extraversion and asking, ties deciding approach, membership or trade partners, fire contributions as help, whether ties form layers, who gives most, and how grievance fades. So do 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, the default year, and personality changing with age. +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 -Foraging split into finding, picking speed and judgement; recipes beyond axes and huts, and recipes as general data (step 25); deliberate teaching and children learning (steps 20 and 25); skills tied to body or age; talent linked to personality; prestige from skill seen (step 19); fights, injury, theft, yielding and fear in disputes (step 18), so grievance still comes only from refusals; kinship and pairing (step 20); offering unasked and sharing a catch; asking strangers; ties deciding group membership, approach or exchange partners; gossip, or knowing anyone's ties or skills but one's own; trails, shared or taught ways, ways blocked by anything, and sight blocked by relief; illness; heat balance and clothing; personality change; wading, swimming and boats; seasons and weather; herds, planting and property. +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. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index ffe0ed1..7c95a75 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -1,6 +1,6 @@ # Roadmap: civilization from strangers -This is a direction document, not a specification. It records the roadmap the owner set on 2026-10-23 for the Life core, and replaces the roadmap of 2026-10-19 from step 12 on. Each step still gets its own specification, which the owner approves before it is built; a specification may change, split or merge the steps below, and this document is updated when it does. On 2026-10-29 the owner inserted skills and techniques as step 17, moving conflict and every later step down by one. The [simulation design rules](../SIMULATION_DESIGN_RULES.md) remain authoritative for how every step is built, and their [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) holds the rules below. +This is a direction document, not a specification. It records the roadmap the owner set on 2026-10-23 for the Life core, and replaces the roadmap of 2026-10-19 from step 12 on. Each step still gets its own specification, which the owner approves before it is built; a specification may change, split or merge the steps below, and this document is updated when it does. On 2026-10-29 the owner inserted skills and techniques as step 17, moving conflict and every later step down by one. On 2026-11-02 the owner took conflict out of the numbered steps until scarcity appears in the valley, moving every later step up by one (see [Deferred: conflict](#deferred-conflict)), and moved seasons and stores ahead of generations and the chief. The [simulation design rules](../SIMULATION_DESIGN_RULES.md) remain authoritative for how every step is built, and their [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) holds the rules below. ## Goal @@ -32,7 +32,7 @@ The landscape, species and climate stay those of Mesolithic northern Europe, as ## The steps -Life 11 is the starting point. Steps 0 to 9 are recorded in the [merge document](MERGE.md#the-ladder), 10 and 11 in the changelog and the lab notes, and all of them in git history. The order is social first: the chief is the first milestone because it proves the social machinery, since influence concentrating in someone without a line of code saying "leader" means bodies, personality, relationships and violence are working together. Generations follow, because kinship is a relationship the social system already holds. Surplus and property come after, because hierarchy is what will seize them; storage nobody can command is what Life 9.6 found and nobody used. Milestones are in bold. +Life 11 is the starting point. Steps 0 to 9 are recorded in the [merge document](MERGE.md#the-ladder), 10 and 11 in the changelog and the lab notes, and all of them in git history. The order was social first, but on 2026-11-02 the owner found that nothing in the valley was scarce: there was nothing to fight over, organise or lead. Scarcity now comes first. Seasons and stores make food run short in the lean months and in failed years; generations add mouths. The chief is the first milestone after them because it proves the social machinery, since influence concentrating in someone without a line of code saying "leader" means bodies, personality, relationships and skill are working together; violence joins them when conflict returns. Property comes later, because hierarchy is what will seize stores and fields. Milestones are in bold. | Step | Adds | Checked against | | --- | --- | --- | @@ -42,18 +42,23 @@ Life 11 is the starting point. Steps 0 to 9 are recorded in the [merge document] | 15. Habitual routes | Each person remembers the ways they walk between places, takes them again, joins one when standing on it, and plans afresh only for somewhere new, coarsely by region first, then in detail; a known way is reconsidered at most once a day when new ground has been seen. The still landscape is looked over again only after moving. | How people choose routes: familiar rather than shortest. The step also restores speed lost to planning every walk from scratch. | | 16. Relationships | Per pair, held in each person's memory: familiarity from time together, credit from help and food given, grievance from harm. Talking, sharing and helping from being in the same place. Slow decay. | The layered sizes of human social circles, about 5, 15 and 50; reciprocity patterns among foragers. | | 17. Skills and techniques | Experience that builds up over a working life and fades slowly, replacing the 30-day practice window; talent as how fast someone learns; a general craft skill and specific axe techniques (flaked, tranchet, ground) as the nodes of a tree, each attempt at an axe able to fail, ideas of new techniques thought of while working (more often by the open) or seen in an axe bought, and practice in free time (longer by the conscientious). Added by the owner on 2026-10-29. | The power law of practice; forager returns rising into the 30s; hundreds of hours to learn knapping; novices' failed attempts; openness and creative achievement; conscientiousness and time spent practising; modest specialisation among mobile foragers. | -| 18. Conflict | Disputes over a thicket, a bank, a hut, an axe. Fights decided by strength, health and who is nearby; injuries, yielding, fear, grudges. | Violence in forager societies: frequent disputes, rare deaths. | -| **19. Influence: the chief** | Each person's estimate of others' prestige, from skill seen and generosity received, and dominance, from fights seen won. Group decisions, where to camp and who gets the shared catch, weighted by it; following, so a camp moves as one. The observer measures concentration of say and labels a chief; the engine never does. | Forager leadership: informal, prestige-led, leaders change; a dominance route exists and is resisted. | -| 20. Generations | Pairing from relationships, pregnancy, children who must be fed and carried, growth, ageing, death. Kinship as a relationship type. | Forager fertility, birth spacing, child survival, near-zero growth. | -| 21. Seasons and stores | A yearly curve: day length, cold, fruiting seasons, good and bad years. Food that keeps (dried, smoked, nuts) and stores that spoil. The first possibility of surplus. | The seasonal diet of foragers; how often famine years come. | -| 22. Herds and hunting | Herds as units with size, range and yield, not individual animals. Group hunts where strength and cooperation count. Meat to share. | Hunting returns; who gets meat from a large kill. | -| 23. Planting | Seeds in the ground, fields, yield per day of labour. Nobody is told to farm; it happens where it beats foraging. | Early farming yields against foraging; how quickly people settle once they farm. | -| 24. Property | Claims on stores, fields and places, held in memory and respected or violated; inheritance through kinship. Inequality. | Inequality in early villages; how often early villages fail. | -| 25. Making and teaching | Recipes as data beyond axes; deliberate teaching, and children learning from those around them; learning by watching or being taught, and skills by attempts and practice (begun at step 17) widened to every recipe. | How forager children learn; how techniques spread and are lost. | -| 26. Several groups | A larger map and more founders; group identity from dense ties; between groups, exchange, marriage and raiding. | Band and village sizes; groups splitting and merging. | -| **27. Borders** | Territory a group claims and defends, palisades, war. | Settlement size distributions; how often early settlements fought. | - -The previous roadmap's individual animals, predators as agents, heat balance, illness, fire-lighting and clothing are no longer steps. Each returns only if a later step needs it to explain something: clothing may return with cold at step 20, and injuries exist from step 18. +| 18. Seasons and stores | Food the land grows at realistic yields, grown by the day rather than by the year, so a short year no longer multiplies it. Fruiting seasons, losses to animals, and good and bad years. Nuts that keep, gathered into stores at home by those who plan ahead. The first scarcity, and the first possibility of surplus. Moved ahead of the chief and generations by the owner on 2026-11-02. | Wild berry and hazel yields; seasonal weight loss among foragers; Mesolithic hazelnut storage; how often famine years come. | +| 19. Generations | Pairing from relationships, pregnancy, children who must be fed and carried, growth, ageing, death. Kinship as a relationship type. | Forager fertility, birth spacing, child survival, near-zero growth. | +| **20. Influence: the chief** | Each person's estimate of others' prestige, from skill seen and generosity received. Group decisions, where to camp and who gets the shared catch, weighted by it; following, so a camp moves as one. The observer measures concentration of say and labels a chief; the engine never does. Dominance, from fights seen won, joins prestige when conflict is built. | Forager leadership: informal, prestige-led, leaders change. | +| 21. Herds and hunting | Herds as units with size, range and yield, not individual animals. Group hunts where strength and cooperation count. Meat to share. | Hunting returns; who gets meat from a large kill. | +| 22. Planting | Seeds in the ground, fields, yield per day of labour. Nobody is told to farm; it happens where it beats foraging. | Early farming yields against foraging; how quickly people settle once they farm. | +| 23. Property | Claims on stores, fields and places, held in memory and respected or violated; inheritance through kinship. Inequality. | Inequality in early villages; how often early villages fail. | +| 24. Making and teaching | Recipes as data beyond axes; deliberate teaching, and children learning from those around them; learning by watching or being taught, and skills by attempts and practice (begun at step 17) widened to every recipe. | How forager children learn; how techniques spread and are lost. | +| 25. Several groups | A larger map and more founders; group identity from dense ties; between groups, exchange, marriage and raiding. | Band and village sizes; groups splitting and merging. | +| **26. Borders** | Territory a group claims and defends, palisades, war. | Settlement size distributions; how often early settlements fought. | + +The previous roadmap's individual animals, predators as agents, heat balance, illness, fire-lighting and clothing are no longer steps. Each returns only if a later step needs it to explain something: clothing may return with cold winters after seasons, and injuries come with conflict. + +## Deferred: conflict + +Conflict was step 18: disputes over a thicket, a bank, a hut or an axe; fights decided by strength, health and who is nearby; injuries, yielding, fear and grudges; checked against violence in forager societies, where disputes are frequent and deaths rare. The owner took it out of the numbered steps on 2026-11-02 because the valley has no scarcity to fight over: in Life 17's canonical year all forty people are alive at day 365, and people seldom carry food beyond what they eat. Built now, fights would almost never happen. + +It returns as a step when scarcity appears in the valley, most likely once seasons bring lean months and stores give people something to dispute (step 18), or once pairing gives rivals (step 19). When it does, dominance from fights seen won joins prestige in influence, a dominance route to leadership exists and is resisted, and agreeableness's yielding and neuroticism's flight get their dispute jobs. ## What we watch for diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index 23ba017..6f31414 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 17 +# Life 18 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 16 fingerprints passed before the engine changed. Life 17 re-records all 22 after the rule and checker tests pass, because skill from experience, techniques and axe prices by logs change every trajectory. The fingerprint runs check one thirty-day interval, so the checker replays every midnight skill update 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 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. `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. @@ -134,6 +134,8 @@ Life 14 adds bounded-normal moments, integer factorisation and positive-definite `ties.test.ts` checks time together counted once in both ties, not for a walker or beyond talking distance, a tie halving in 180 days and forgetting the least familiar, gift amounts and credits, asking the closest tie first and nobody twice a day, refusals with and without grievance, giving more readily when owing, agreeableness, asking nobody once an exchange has met the need, and the checker rejecting broken ties and gifts. +`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. + `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 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 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 e10dac6..9980c46 100644 --- a/life.html +++ b/life.html @@ -6,9 +6,9 @@ - Life 17 · strangers + Life 18 · strangers