Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to Econ-Engine are documented here. The changelog records what changed in each update. Design rationale, experiments, observations, and lessons are documented separately in [Lab Notes](LAB_NOTES.md).

## [LIFE19-Generations-078] - (2026-11-09)

- Life 19, generations. Every person is an agent from birth, with their own body ledger, memory, ties, tasks and wake-ups; nothing turns on at an age. Each person has a birth minute and an age in thousandths of a year. Founders arrive aged 18 to 35, from a new `age` stream.
- Bodies grow: height, weight and grip are the adult draws times `growthByAge`, with energy rates times `metabolismByAge`, walking times `walkByAge` and work times `workByAge`, each interpolated within the year. A body's age is its age at the last midnight, so bodies change only at midnight or at birth. Children stay within `rangeByAge` of their hearth, eat only milk under 6 months, do not walk on their own under about 3 and do not cut logs, make axes or practise until fully grown in work.
- Nursing: a child under 3, hungry or thirsty, within talking distance of their mother wakes her, and she moves up to `feedKcal` (400) and its milk water from her body to theirs (a `fed` event). Carrying: a child who cannot walk is carried by their mother, else father, else closest kin, on the carrier's walk (`carried` task); their weight slows the carrier.
- Provisioning: a parent carries home food for children at home and adds their day needs, and a pregnancy's, to the store target. Kin give more readily (`kinGoodwillMinutes`, a partner counting as 500‰) and are asked first.
- Pairing: an unpaired woman and man of 15 or more, not kin, pair when each is the other's most familiar eligible person with at least a week of minutes together (`paired`). Conception at midnight from `conceive:<day>` for a paired woman of 15 to 45 with enough reserve, not nursing a child under 2, who slept near her partner (`conceived`); birth at term at the mother's side (`born`), the newborn's reserve taken from her. A pregnancy adds 12 kcal an hour.
- Deaths of illness, accident and age at each midnight from `fate:<day>`, against a stored table of the !Kung Siler fit (Gurven and Kaplan 2007, Table 2; b1 0.913 as in the paper, not the draft's 0.943).
- The midnight lifecycle runs growth, deaths, births and conceptions in that order. A child shares a parent's hut and fire at the same hearth, and asks nobody for wood.
- The checker rebuilds newborns and every person's body at any minute of an interval, replays feeds and births in the ledgers, checks carried tasks against their carrier's walk, and rejects impossible feeds, births, conceptions and pairings, a baby on milk eating or drinking, work beyond a child's range and a body that does not match its age.
- The observer is labelled Life 19. The header counts people and those under 15; newborns get figures, and a carried child is drawn on the carrier's back. The person panel adds age, girl or boy, the adult body they grow to, partner, parents and children, pregnant, nursing and carried by; the history lists pairings, births and deaths; the People charts add people by age, births and deaths, and couples; the relationship graph shows partners and parents.
- Trajectories change: new fingerprints are recorded for all 22 runs. New `growth.ts`, `lifecycle.ts`, `kin.ts`, `nursing.ts`, `PeopleCharts.tsx` and `generations.test.ts`. `docs/LIFE19_SPEC.md` replaces the Life 18 specification; the calibration document gains a Life 19 section.

## [LIFE17-Sky-077] - (2026-11-08)

- The observer draws the year. The sun follows the solar declination for the day of the year at 52° N: about 61° high and 16½ hours of daylight at the summer solstice, 38° and 12 hours at the equinoxes, 15° and 7½ hours at the winter solstice. The run starts at the spring equinox. The day sky is paler in winter and warmer while the sun is low.
Expand Down
20 changes: 20 additions & 0 deletions LAB_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@

Every meaningful model, architecture, experimental, or design update should receive a newest-first entry. Use at most one base update number per Git commit. Refinements completed before that commit keep the same base number with a decimal suffix—for example, `003` and `003.1` belong to the same commit family. Allocate the next base number only for a later commit. Preserve the context, observed problem or research question, rationale, important implementation decisions, trade-offs, findings, and unresolved questions. Distinguish verified observations from hypotheses. If the original rationale is unknown, say so rather than inferring intent from the finished code.

## [LIFE19-Generations-078] - (2026-11-09)

The owner approved the generations specification with one rule above the rest: every person is an agent from birth. A baby is not a counter on a parent; it has its own body, wake-ups and choices, and what changes with age is only what its body can do.

**Mortality.** The specification's draft took the !Kung Siler b1 as 0.943; the paper's Table 2 gives 0.913, which is used. A unit fixture checks the stored table against the fit and survival by the daily rule over a million lives to within a percentage point.

**What implementation changed in the specification.**
- *When a body changes.* With ages read at any minute, a child's body changed in the middle of a task, and the checker could not tell which body a rate came from. A body's age is now its age at the last midnight, or at birth, and the checker rebuilds each person's body for the minute a task began (`natureHistory`), adding the people born in an interval first (`withNewborns`).
- *Lifecycle order.* Growth ran last at midnight, after people woken at that minute had used the old body. It now runs first.
- *Feeding.* Moving milk inside the child's wake-up changed the mother's ledger without her wake-up. The child now addresses the mother in the same minute and her wake-up feeds every child of hers who wants it. Hunger flags were then set twice around a feed and, with hysteresis, a restored flag made the mother decline a feed the child kept asking for, looping in one minute; flags are set once after the feed, and whether a child wants a feed reads hunger from their energy.
- *Conception beside a newborn.* A child born that midnight had not fed yet, so its mother could conceive at once. A child born in the last day now counts as nursing.
- *Shelter and fire.* A baby asleep away from its hearth counted as sheltered by a parent's hut, and a newborn with no fire of its own asked for wood. Shelter needs the person at their hearth; a child shares a parent's fire at that hearth and asks nobody for wood. The midnight warmth pass skips sleepers whose body changed at that minute, since they set their own warmth when re-addressed.
- *Smaller corrections.* Water's base scales against the person's own adult body, so adults are unchanged; pregnancy adds 12 kcal an hour (300 a day, rounded down); a carried child's weight does not cut the room in a load begun later; `conceived` is recorded only on success; children do not cut logs, make axes or practise.

*Checker found by a long run.* A checked 120-day run at 8 days a year (about 15 years, 47 births, 38 deaths) found three checker rules that disagreed with the engine and the specification, none in the engine: a child who had died still counted against the mother's conception; the replay sheltered a baby carried to their father's hut, away from their own hearth (pairs keep their own hearths); and a baby who could not reach water slept with severe thirst, which the Life 13 rule forbade. The checker now follows the specification on all three.

**Observed.** In the browser at 8 days a year, seed 20260813, the valley reached year 7 with about fifty people, ten to sixteen of them under 15, births in the history and a clean console. A checked 30-day run at 8 days a year passed. These are single observations, not measurements.

**Open.** Pairings in the person history are recent only; energy bars use the configuration's levels rather than each person's; the whole-land map draws a carried child at their own recorded position.

## [LIFE17-Sky-077] - (2026-11-08)

The owner asked to see the seasons in the valley: the sun's path and day length changing through the year, and trees turning brown in autumn and losing their leaves in winter, without temperature or snow. This is drawn by the observer alone, from the displayed minute, so no trajectory changes.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ Government is deliberately narrow and stylized: one flat cash-wealth tax, one Gi

## Life: the bottom-up core

A separate Life core runs beside the frozen MVP9 economy. **Life 18 · strangers** is the current step of the [roadmap](docs/ROADMAP.md): forty adult strangers are scattered over a generated 4 km square of Mesolithic young-moraine country, with lakes and rivers. They discover thickets, wood stands, outcrops and banks; drink, fish and gather berries, nuts and wood; meet, form groups, keep shared fires, build huts and make or exchange axes. They arrive at the start of the berry season. Berries ripen for a few weeks and hazelnuts fall after them; what is not gathered is soon taken by animals or rots, and each year's crop is poor, normal or good. Everyone knows the seasons but learns this year's crop only by seeing it. Each person keeps a store of nuts at their hearth, filled in the nut season towards a target that would last until the next berries (the conscientious plan further ahead), and eats from it through the lean months; stored nuts keep for a year. Every decision uses their own needs, observations and memories. People remember the ways they walk between home, places and water, and take them again, planning a new way only when they have none or have seen new ground since. With nothing to do, they take a walk along one of those ways or rest at home. Time spent together makes ties that fade when unused; a hungry or cold person asks those they know best, and is given food or wood when the giver can spare it and the asker does not already owe too much. Skill grows with experience over a working life and fades slowly when unused, faster for the talented; axes are made by three techniques, flaked, tranchet and ground. Every attempt at an axe may break, less often the more skilled the maker; open people sometimes think of a technique while working, or get the idea from an axe they buy, and know it once an attempt by it works. With nothing needed, people practise for a while each day, the conscientious longer, taking apart and remaking practice axes they have no room to keep; a leisure walk comes at most once a week. An axe is priced by the logs it will cut. Each person has a fixed sex, height, weight, strength and five personality traits that affect carrying, energy needs, company, exchange, preparation, caution and exploration.
A separate Life core runs beside the frozen MVP9 economy. **Life 19 · generations** is the current step of the [roadmap](docs/ROADMAP.md): forty adult strangers, aged 18 to 35, are scattered over a generated 4 km square of Mesolithic young-moraine country, with lakes and rivers. They discover thickets, wood stands, outcrops and banks; drink, fish and gather berries, nuts and wood; meet, form groups, keep shared fires, build huts and make or exchange axes. They arrive at the start of the berry season. Berries ripen for a few weeks and hazelnuts fall after them; what is not gathered is soon taken by animals or rots, and each year's crop is poor, normal or good. Everyone knows the seasons but learns this year's crop only by seeing it. Each person keeps a store of nuts at their hearth, filled in the nut season towards a target that would last until the next berries (the conscientious plan further ahead), and eats from it through the lean months; stored nuts keep for a year. Every decision uses their own needs, observations and memories. People remember the ways they walk between home, places and water, and take them again, planning a new way only when they have none or have seen new ground since. With nothing to do, they take a walk along one of those ways or rest at home. Time spent together makes ties that fade when unused; a hungry or cold person asks those they know best, and is given food or wood when the giver can spare it and the asker does not already owe too much. Skill grows with experience over a working life and fades slowly when unused, faster for the talented; axes are made by three techniques, flaked, tranchet and ground. Every attempt at an axe may break, less often the more skilled the maker; open people sometimes think of a technique while working, or get the idea from an axe they buy, and know it once an attempt by it works. With nothing needed, people practise for a while each day, the conscientious longer, taking apart and remaking practice axes they have no room to keep; a leisure walk comes at most once a week. An axe is priced by the logs it will cut. An unpaired woman and man who are not kin pair when each is the other's closest eligible companion; a paired woman may conceive, and nine months later a child is born at her side. Every person is a person from birth, with their own body, memory, ties and choices: babies feed from their mother and are carried by her or by kin, children grow, walk and work more as they age and stay near home, parents carry food home and plan their store for their children, and kin give to each other more readily. People also die of illness, accident and age, at the !Kung rates by age. Each person has a fixed sex, height, weight, strength and five personality traits that affect carrying, energy needs, company, exchange, preparation, caution and exploration.

Life 12 re-founded the core so that it can later hold thousands of people over years. Time is a minute clock, but people are not advanced every minute: each person chooses a task (walk, gather, rest, sleep) and wakes again when it ends or something they see changes. Thickets, stands and outcrops are places with one stock each, and people route over the known ground of a triangle mesh that follows every shore and slope, so they can walk any dry land, however narrow. The land is drawn from the same low-poly triangles. Evidence and estimates are distinguished in the [calibration document](docs/CALIBRATION.md).

**[▶ Open Life 18](https://neolorenzo.github.io/Econ-Engine/life.html)**. Choose the seed, days per year, world size (1 to 10 km), founders (1 to 100) and whether they start scattered, then press Start; the settings are fixed for the run, and New run starts again. Pause, step one minute or change speed; drag to pan, scroll to zoom, and use the whole-land map to move the camera. The heading shows the day, time, season and this year's hazel crop, and how many are alive; a hearth with a store shows a pile of nuts. Follow a person to see what they are doing, bars for energy, thirst and load, what their store holds and how many days it would last, body measurements, five trait bars, how they found the current walk, how many ways they know, their remembered ways drawn on the ground, how many people they know and their closest ties, drawn as lines, with recent gifts and refusals, rings for their skills with level names and how fast they learn, the axe techniques they know and are learning, recent axes made and techniques learnt, and details on food, tools, hut and group; the history panel has three views: a skill map placing everyone by the mix of their foraging, wood and craft skills, ringed when they know a better axe, a relationship graph of who knows whom and on what terms, and the charts over time, in Food, People, Craft and Exchange sections: what was eaten by source this season, this year or in the whole run, food eaten against energy burned, food on the land, in stores and in bodies, everyone's energy reserves with deaths marked by cause, and each year's crop and its fate; its ⓘ shows the run's settings and how to move around. Below a day per second people walk continuously along their route; from a day per second up, people are hidden and the valley is shown as a map of stocks, groups and huts. Fast speeds are best effort.
**[▶ Open Life 19](https://neolorenzo.github.io/Econ-Engine/life.html)**. Choose the seed, days per year, world size (1 to 10 km), founders (1 to 100) and whether they start scattered, then press Start; the settings are fixed for the run, and New run starts again. Pause, step one minute or change speed; drag to pan, scroll to zoom, and use the whole-land map to move the camera. The heading shows the day, time, season and this year's hazel crop, and how many are alive and under 15; a hearth with a store shows a pile of nuts. Follow a person to see what they are doing, bars for energy, thirst and load, what their store holds and how many days it would last, their age, body measurements and the adult body they grow to, partner, parents and children, pregnant, nursing or carried by whom, five trait bars, how they found the current walk, how many ways they know, their remembered ways drawn on the ground, how many people they know and their closest ties, drawn as lines, with recent gifts and refusals, rings for their skills with level names and how fast they learn, the axe techniques they know and are learning, recent axes made and techniques learnt, and details on food, tools, hut and group; the history panel has three views: a skill map placing everyone by the mix of their foraging, wood and craft skills, ringed when they know a better axe, a relationship graph of who knows whom and on what terms, and the charts over time, in Food, People, Craft and Exchange sections: what was eaten by source this season, this year or in the whole run, food eaten against energy burned, food on the land, in stores and in bodies, everyone's energy reserves with deaths marked by cause, each year's crop and its fate, and the people by age, births and deaths and couples; the relationship graph also shows partners and parents; its ⓘ shows the run's settings and how to move around. Below a day per second people walk continuously along their route; from a day per second up, people are hidden and the valley is shown as a map of stocks, groups and huts. Fast speeds are best effort.

Details are in the [Life 18 specification](docs/LIFE18_SPEC.md), [validation notes](docs/VALIDATION.md#life-18) and [lab notes](LAB_NOTES.md).
Details are in the [Life 19 specification](docs/LIFE19_SPEC.md), [validation notes](docs/VALIDATION.md#life-19) and [lab notes](LAB_NOTES.md).
## Direction

The long-term aim is an institution-agnostic engine: markets, taxes, governments and other institutions should emerge from agents' decisions instead of being built in. The [vision document](docs/VISION.md) describes that direction. The [merge document](docs/MERGE.md) records the decision to merge Life Engine into this project and build a new core bottom-up, starting from a band of foragers, and the [roadmap](docs/ROADMAP.md) sets that core's goal: civilization emerging from strangers, with realism kept only where it explains a mechanism. None of them is a description of the current model.
Loading
Loading