From 1d4c463b5e73b54ab26e790ca162a47c9839b447 Mon Sep 17 00:00:00 2001 From: NeoLorenzo Date: Fri, 30 Oct 2026 11:13:59 +0000 Subject: [PATCH] Life 17: skills and techniques [LIFE17-Skills-074] --- CHANGELOG.md | 17 + LAB_NOTES.md | 18 + README.md | 6 +- docs/ARCHITECTURE.md | 7 +- docs/{LIFE16_SPEC.md => LIFE17_SPEC.md} | 278 ++++-- docs/ROADMAP.md | 27 +- docs/VALIDATION.md | 8 +- life.html | 4 +- src/valley/axes.ts | 326 +++++-- src/valley/config.test.ts | 56 +- src/valley/config.ts | 75 +- src/valley/engine.ts | 42 +- src/valley/fingerprintRuns.ts | 106 +-- src/valley/fingerprints.test.ts | 2 +- src/valley/fingerprintsAlike.test.ts | 2 +- src/valley/fingerprintsBand.test.ts | 2 +- src/valley/fingerprintsFlat.test.ts | 2 +- src/valley/fingerprintsForty.test.ts | 2 +- src/valley/fingerprintsSkills.test.ts | 4 +- src/valley/fingerprintsTalent.test.ts | 2 +- src/valley/fingerprintsTogether.test.ts | 2 +- src/valley/food.test.ts | 1 - src/valley/forager.ts | 49 +- src/valley/huts.test.ts | 104 ++- src/valley/invariants.ts | 74 +- src/valley/layout.ts | 58 +- src/valley/life13-founders.json | 1050 ++++++++++++++++------- src/valley/nature.test.ts | 25 +- src/valley/nature.ts | 12 +- src/valley/practice.ts | 95 -- src/valley/replay.ts | 95 +- src/valley/ruleTestFixtures.ts | 16 +- src/valley/sites.test.ts | 5 +- src/valley/skills.test.ts | 270 ++++++ src/valley/skills.ts | 374 ++++++++ src/valley/theory.test.ts | 5 +- src/valley/theory.ts | 2 +- src/valley/ties.ts | 2 +- src/valley/types.ts | 224 +++-- src/valley/wake.ts | 34 +- src/valley/world.ts | 4 +- src/valleyView/RunSettingsScreen.tsx | 2 +- src/valleyView/SkillMap.tsx | 45 +- src/valleyView/ValleyApp.tsx | 78 +- src/valleyView/display.ts | 12 +- src/valleyView/life.css | 10 + src/valleyView/valleyViewModel.ts | 134 ++- src/valleyView/viewCopy.ts | 14 +- 48 files changed, 2821 insertions(+), 961 deletions(-) rename docs/{LIFE16_SPEC.md => LIFE17_SPEC.md} (53%) delete mode 100644 src/valley/practice.ts create mode 100644 src/valley/skills.test.ts create mode 100644 src/valley/skills.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 5965dde..85a7eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ 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). +## [LIFE17-Skills-074] - (2026-10-29) + +- Life 17, skills and techniques. Each person holds experience, in seconds, for foraging, wood and each axe technique. At midnight unused experience fades by a fixed share a day, to half in ten years, and the day's work adds to it, anchored to the year so short calendars learn as fast per year. Skill follows the power law of practice: from a floor of 50% towards a ceiling of 150% that is never reached, half way after 16,000 hours of foraging, 5,000 of wood or 300 of craft. +- Born skills are replaced by talents for foraging, wood and craft, which scale how much experience each hour gives. Founders arrive as adults with years of experience at their own talents. +- Three axe techniques: flaked, known to everyone; tranchet and ground, each needing flaked. A quarter of founders arrive knowing tranchet and a tenth ground. A person holds ideas, the techniques they may try, and techniques known, those they have made one of that worked. A technique becomes an idea by being thought of after a stint of axe work, at a chance per hour of work raised by openness, or by buying an axe made by it; it becomes known when an attempt by it first works. Proficiency in a new idea starts from a share of the person's other technique experience. +- Every attempt at an axe may fail: drawn when the axe is begun, it works with a chance rising with proficiency above the floor, half at 15 points above it; otherwise it breaks at a drawn second, losing the stone and returning the wood. Every second worked counts as experience, broken or not. +- People practise in free time, after exploring and before the evening walk, for a daily budget of an hour raised by conscientiousness: an untried idea first, else their best technique, fetching a stone within exploring range. Only practice tries an idea not yet known. A finished practice axe becomes their axe, or a spare; someone already holding both takes it apart and reuses its stone and wood for the next try, and it still counts as an attempt that worked. +- A person makes a needed axe by the known technique with least work per working log, counting the chance an attempt fails and the walk for a stone when they hold no spare. Axes are priced by the logs they will cut: a buyer values one at their own making cost per log times its logs left. +- New events `skills` (replacing `practice`), `idea`, `broke`, `dismantled` and `learnt`; made axes record their technique, proficiency and attempt draw; the daily summary counts ideas, techniques known and minutes practised per person and attempts, breaks and axes made by technique. The daily axes made and sold counters, which had stayed at zero, now count. +- New settings `skillFloorPercent`, `skillCeilingPercent`, `founderForageHours`, `founderWoodHours`, `founderCraftHours`, `founderTranchetPerMille`, `founderGroundPerMille`, `forageHalfHours`, `woodHalfHours`, `craftHalfHours`, `transferPerMille`, `attemptHalfPercent`, `inventPerMillionPerHour`, `practiceMinutesPerDay`, `leisureWalkDays`, `axeTechniques`, `talentRule`, `opennessInventRule` and `conscientiousnessPracticeRule`, with validation. The practice settings, born skill ranges and the `craftPractice` switch are removed. +- Leisure walks are taken at most once a week (`leisureWalkDays`, 7), not daily, to save computation; people otherwise rest at home. +- The checker replays every attempt and invention draw and every midnight skill update, and rejects wrong skills, experience or proficiency, ideas or techniques known without a prerequisite or record, practice over the budget, an axe in progress that differs from its draw, making by a technique not among the maker's ideas and axes outside their technique's quality and life. It no longer mistakes a hungry person given a little food for one who was never hungry, an error from update 072 that the new runs exposed. +- The observer is labelled Life 17. Skill rings show level names, novice to master, and whether a person learns quickly or slowly; the person panel lists techniques known and being tried with attempts that worked, minutes practised today, and recent ideas, breaks and first successes; the skill map rings people who know a better axe; charts count axes made by technique and attempts broken each day. +- Trajectories change: new fingerprints are recorded for all 22 runs; the no-practice, craft-talent and equal-skill configurations become spread (ideas about ninety times as often), wide-talent and equal-talent. +- New unit fixtures for the skill curve, fading, year anchoring and talent, transfer, attempts and breaks, ideas thought of and bought, the practice budget and choice, failure in the choice of technique, worth by logs and the checker on skills. +- `docs/LIFE17_SPEC.md` replaces the Life 16 specification; `practice.ts` is replaced by `skills.ts`. + ## [LIFE16-PeopleCharts-073] - (2026-10-29) - The history panel has three views: Skills, Relationships and Over time. The charts over time move to their own view. diff --git a/LAB_NOTES.md b/LAB_NOTES.md index 3dc178c..1aef2fa 100644 --- a/LAB_NOTES.md +++ b/LAB_NOTES.md @@ -6,6 +6,24 @@ 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. +## [LIFE17-Skills-074] - (2026-10-29) + +The owner added step 17 to the roadmap ahead of conflict and approved its specification: skill built from experience over a working life by the power law of practice, talents as how fast one learns, and three axe techniques priced by the logs an axe will cut. A first build learnt techniques by watching or by trial after a competent axe; in a year nobody learnt one. The owner then replaced learning: every attempt can fail and still teaches, people think of techniques themselves (more often the open) or see one in an axe they buy, watching is dropped, and people practise in free time (longer the conscientious). The revised specification was approved and built. + +**What implementation changed in the specification.** A person beginning an axe always holds the stone it will use, so the stone walk counts unless they hold a spare as well. The attempt's minute, proficiency and draw are kept with the axe in progress and recorded in its `made` or `broke` event, not the task start, and the checker replays the attempt stream from them. Practice begins an axe only for someone not already holding both an axe and a spare, since a second spare has nowhere to go; a member who comes to need an axe for their hut while a practice axe is in progress finishes it under priority 8 rather than stranding its stone and wood. The checker replays every midnight in an interval in order, since the fingerprint runs check one thirty-day interval. `life13-founders.json` holds talents, not experience. The daily axes made and sold counters had never been incremented since they were added; they now count. + +**After the first measurement.** In a first year's run practice came to only 2 to 4 hours a person: practice stopped once a person held an axe and a spare, as an implementation rule had it, and in 6,664 of 8,000 sampled afternoon person-hours that was why a fed and warm person was not practising. The owner had a practice axe that works taken apart when its maker already holds both, its stone and wood reused for the next try, and leisure walks made weekly rather than daily to save computation (`leisureWalkDays`, 7). + +**Measured once, canonical forty, seed 20260813, 90-day years, 365 days in Node, with both changes.** All forty alive at day 365. +- *Skills.* Foraging 100.1% at the start and 94.8% at day 365. Craft rose from 87.0% to 122.7%; craft hours in the year ranged from 98 to 3,140, median 1,084. +- *Practice.* Budgets averaged 14, 56 and 96 minutes a day in the lowest, middle and highest third by conscientiousness, four people none; they practised 78, 330 and 558 hours in the year, close to the whole budget. +- *Attempts.* 6,786 flaked attempts (467 broken, 176 made, 5,908 taken apart), 3,984 tranchet (214, 41, 3,668) and 21 ground (6, 0, 14). Breaks came at proficiencies 59 to 140, rarer as skill rose. +- *Ideas.* Founders began with 11 tranchet and 4 ground ideas. Two people got the tranchet idea from an axe they bought on days 4 and 7; 24 ideas were thought of in the year, the first on day 8, by people across the range of openness. At the end 22 people knew the tranchet axe and 18 the ground axe. +- *Speed.* Days 51-60 took 267 ms a day, against 162 before practice was freed: the practice stints cost more than the weekly walks save. +- *Memory.* A year in one process grows the heap by about 11 MB a day after collection, 5.1 GB by day 350. Update 073 grows at the same rate (2.4 GB at day 150), so the growth predates this step; a separate branch addresses it. + +**Findings.** The rules hold under the checker in the 22 thirty-day fingerprint runs. With practice axes taken apart, people practise close to their budgets, the conscientious far more, craft skill rises within a year and both new techniques spread by people's own ideas as well as through the axe trade. Whether a stone should really come back whole after an axe is taken apart, and whether craft rising 36 points in a year is too fast, are questions for a calibration step; the day is also about 65% slower. + ## [LIFE16-PeopleCharts-073] - (2026-10-29) The owner found the line charts of little use and asked for a macro view of everyone's skills, to see who specialises in wood or axes, and for a graph of all relationships. The line charts move to their own view. diff --git a/README.md b/README.md index ec14086..cc268db 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 16 · 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. 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 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. 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 16](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, and details on food, tools, hut and group; the history panel has three views: a skill map placing everyone by the mix of their picking, wood and axe skills, 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 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. -Details are in the [Life 16 specification](docs/LIFE16_SPEC.md), [validation notes](docs/VALIDATION.md#life-16) and [lab notes](LAB_NOTES.md). +Details are in the [Life 17 specification](docs/LIFE17_SPEC.md), [validation notes](docs/VALIDATION.md#life-17) and [lab notes](LAB_NOTES.md). ## Direction The long-term aim is an institution-agnostic engine: markets, taxes, governments and other institutions should emerge from agents' decisions instead of being built in. The [vision document](docs/VISION.md) describes that direction. The [merge document](docs/MERGE.md) records the decision to merge Life Engine into this project and build a new core bottom-up, starting from a band of foragers, and the [roadmap](docs/ROADMAP.md) sets that core's goal: civilization emerging from strangers, with realism kept only where it explains a mechanism. None of them is a description of the current model. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index cb7919b..87f21c3 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -81,9 +81,9 @@ The draw sequence is therefore: one orientation draw per non-square plot, one po The 3D world draws each firm and Government across its plot: `buildingScale` stretches the building model to the plot, less a 0.1-tile inset, and raises it with the square root of the plot's area. The camera's default distance, zoom-out limit, fog and far plane scale with the grid, and Locate stays further out for bigger plots. -## Life 16: ties, habitual routes, bodies, clock and ground mesh +## Life 17: skills, techniques, ties, habitual routes, bodies, clock and ground mesh -`src/valley/` is the independent Life core described by [LIFE16_SPEC.md](LIFE16_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 [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. - **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. @@ -92,7 +92,8 @@ The 3D world draws each firm and Government across its plot: `buildingScale` str - **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. -- **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. Nobody is advanced minute by minute. Food, wood, fire, huts, axes, trade and practice (`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. +- **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. 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. - **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. diff --git a/docs/LIFE16_SPEC.md b/docs/LIFE17_SPEC.md similarity index 53% rename from docs/LIFE16_SPEC.md rename to docs/LIFE17_SPEC.md index 26777b5..a2d184d 100644 --- a/docs/LIFE16_SPEC.md +++ b/docs/LIFE17_SPEC.md @@ -1,25 +1,37 @@ -# [LIFE16-Relationships-072] +# [LIFE17-Skills-074] -**Approved by the owner, 2026-10-29; revised for update 072.** This specification replaces the Life 15 specification and describes the whole simulation. It is step 16 of the [roadmap](ROADMAP.md), relationships, and is built under the [Life section](../SIMULATION_DESIGN_RULES.md#life-realism-and-time) of the design rules. Life 15's update history (planning by pieces, the engine in a worker, lighter wake-ups and simple wayfinding) is recorded in the changelog and the lab notes, entries 066 to 071. +**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. -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 of their own and a personality of their own. They find their way as people do: they remember the ways they walk, take them again, and plan afresh only for somewhere new. From this step each person also remembers the others they know: how much time they have spent together, what has been given between them, and what they hold against them. Someone hungry or short of wood asks the people they know for some, and those who know them well enough give. +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. -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, 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. +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 16 makes possible +## What Life 17 makes possible -- **People know each other.** Until now a person remembered only the minute they last met someone and where. Each person now holds a **tie** to each person they have spent time with: **familiarity**, the minutes the two have spent close together; **credit**, the balance of what has been given between them, counted in minutes of the person's own work; and **grievance**, what they hold against the other. Ties are held in each person's own memory, at most `tiesRemembered` (150) of them, and fade slowly when nothing renews them. -- **Time together builds familiarity.** Two people who stay within talking distance (20 m) of each other, neither of them walking, become familiar by the minutes they spent there: a night beside neighbouring hearths, an afternoon picking the same thicket, an hour resting by the same fire. Passing on a walk counts for nothing. Co-residence and time spent together are what predict ties among foragers (Apicella et al. 2012; Hill et al. 2011). -- **People ask, and are given.** A person who is hungry with no food in hand, or short of a night's firewood with none to spare, asks the people within talking distance whom they know, the closest tie first, for some of what they visibly carry. This is demand sharing, the common way food moves among foragers (Peterson 1993). The person asked gives if their goodwill towards the asker, their familiarity scaled by their agreeableness, covers what the asker already owes them less anything they owe the asker, plus their grievance. They give what they can spare, up to what the asker lacks. -- **Gifts are remembered, and so are refusals.** A gift is credit in the giver's memory and a debt in the receiver's, each counted as the minutes the gift would take that person to gather themselves. A person who owes someone is more willing to give to them; a person who is owed a lot by someone is less willing. A refusal adds to the asker's grievance against the one who refused. Nothing in the engine says "reciprocate": it follows from each person's own ledger. -- **Why now.** Conflict (step 17) needs grievances and someone to hold them against; influence (step 18) needs each person's view of the others' generosity. Before either, people need to know one another. Sharing is the first thing ties decide, because food is what people already need daily, and gifts are what ties among foragers are built on (Gurven 2004). +- **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. -This step adds ties, asking and giving. It does not change the map, how people find their way, the resources, bodies, personality, groups or the priced exchange of wood for food. Exchange stays within a group; asking and giving reach anyone a person knows. +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. ## Checked against | Measure | Evidence and comparison | Status | | --- | --- | --- | +| Power law of practice | Across skills, time per task falls as a power of practice: each extra hour adds less than the one before (Newell and Rosenbloom 1981). | A unit test: skill rises with experience, each further block of hours adding less; skill is half way between floor and ceiling at the half-experience. | +| Adult foraging returns | Forager return rates keep rising slowly into the 30s and later, long after strength peaks, because skill takes decades (Kaplan et al. 2000; Koster et al. 2020). | Magnitudes, measured once on the canonical seed: each founder's foraging skill at day 0 and day 365 (a year of 90 days counts as a full year, below), as a median and range. A gain of a few per cent a year for an average founder is expected; most founders still improving at the end. | +| Craft learning | Knapping takes hundreds of hours to learn well: novices given about ninety hours of expert training still failed to make good handaxes (Pargeter et al. 2019; Pargeter et al. 2020); stone adze makers in Irian Jaya trained for years (Stout 2002). Novices' flakes overshoot and fail far more often than a mentor's (Eren et al. 2011). Earlier craft experience helped novices most (Khreisheh 2013). | Unit fixtures: an average-talent novice reaches a technique's half-way skill after `craftHalfHours` (300) of its own experience; a novice's attempts fail more often than an expert's. Recorded once on the canonical seed: attempts and failures by technique and proficiency. Most novice attempts at a new technique are expected to fail. | +| Skill decay | Skills unused fade over months and years, motor skills more slowly than knowledge (Arthur et al. 1998). | A unit test: experience with no work halves in `experienceHalfYears` (10) years within 1%. | +| Talent | Practice explains a minority of the differences in skill between people; the rest is in large part how fast they learn (Macnamara et al. 2014). | Magnitudes: the spread of founders' starting skills is similar to the 75% to 125% of born skill it replaces; recorded once on the canonical seed. | +| Ground and flaked axes | A flaked axe is knapped in under an hour; a ground axe needs about 60 hours of grinding and lasts many times longer (calibration, Making an axe). | Magnitudes; the tranchet axe's numbers are an estimate between the two. | +| Invention | Openness is the strongest and most consistent Big Five predictor of creativity and creative achievement; conscientiousness is mixed, higher among creative scientists and lower among artists (Feist 1998). New techniques are rare: most people use what they learnt. | Recorded once on the canonical seed: every idea, by invention or from an axe, with the person's openness and conscientiousness. A few ideas a year, nearly all from the most open people, are expected. | +| Practice | Conscientiousness predicts sustained effort and performance more than any other trait (Zell and Lesick 2022); conscientious people spend more time working and studying (Rohrer and Lucas 2018). | Recorded once on the canonical seed: hours practised per person against conscientiousness. | +| Specialisation | Among mobile foragers specialisation is modest: most adults do most tasks, and a few are known for a craft; full-time specialists appear in larger, settled societies (Marlowe 2010). | Recorded once on the canonical seed at day 365: how many people made the axes, and the spread of craft experience. A few people making most axes is expected; rigid specialists within a season would mean the learning rules are too strong. | | Circles of ties | People's ties come in layers of about 5, 15, 50 and 150, each about three times the last, set by how often they meet: the closest few at least weekly, about 15 at least monthly (Zhou et al. 2005; Hill and Dunbar 2003; Sutcliffe et al. 2012). Among the Hadza, ties follow who shares a camp (Apicella et al. 2012). | Magnitudes, measured once on the canonical seed over days 30 to 89: for each person, how many others they spent time with on at least one day in seven, and on at least one day in thirty, as a median and range. With forty people only the 5 and 15 layers can show; layers of about that size, with a ratio near three, are expected. A flat result (everyone in a group equally close) is examined in the lab notes, not tuned away. | | Reciprocity | Among foragers, what one household gives another correlates with what it receives back, moderately: dyadic correlations of roughly 0.2 to 0.6 across studies (Gurven 2004; Allen-Arave et al. 2008). Most food moves by being asked for (Peterson 1993). | Magnitudes, measured once on the canonical seed over days 30 to 89: the correlation, across pairs, between the food given one way and the other; the share of gifts that went to someone in the giver's group; and refusals against gifts. A positive, moderate correlation is expected. | | Fading | Ties not kept up weaken over months: emotional closeness to friends falls measurably over a year and a half with less contact (Roberts and Dunbar 2011). | A unit test: a tie with no time together halves in 180 days within 1%. | @@ -33,18 +45,41 @@ This step adds ties, asking and giving. It does not change the map, how people f | 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 071 a day past day 50 takes about 185–205 ms in the worker. Ties must not make it noticeably slower: measured once and recorded, days 50 to 59 in 12-hour steps against update 071'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. 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. | ## Design decisions -### Ties, asking and giving (new) +### Skills and techniques (new) + +| Decision | Reason | +| --- | --- | +| Each person holds **experience** for foraging, for wood and for each technique they know, in integer seconds of work with an integer remainder. The 30-day practice log, born skills and the `craftPractice` switch are removed. | Skill built over a working life needs a memory longer than a month. One quantity per skill, in the unit work is already counted in, keeps the books simple and checkable. The switch only recreated Life 9's fixed craft. | +| Skill follows from experience by `skill = floor + (ceiling − floor) · E / (E + H)`, with floor 50%, ceiling 150% and a half-experience `H` per skill, rounded down. | The power law of practice: fast gains early, slow gains late (Newell and Rosenbloom 1981). This saturating curve has that shape in integer arithmetic, with no logarithms, and keeps Life 9's floor and ceiling. A person at the half-experience works at the base rate. | +| Rates are the base rate times skill: foraging for berries, nuts and fish; wood for gathering. A technique's skill, its **proficiency**, sets its making time and the axe's quality as craft did. | Each rate keeps its Life 13 meaning at 100%. | +| Experience is **year-anchored**: each second worked adds `365 / daysPerYear` seconds of experience, scaled by talent. | The roadmap lists skill mastery as year-anchored: becoming an expert takes years of a life, and a short year compresses it as it compresses growth and seasons. Work rates stay day-anchored: an hour's picking still takes an hour. | +| Experience fades at midnight by the share that halves it in `experienceHalfYears` (10) years: `fadePerMillion = round(693,147 / (experienceHalfYears · daysPerYear))`. | Skills unused decay over years (Arthur et al. 1998). Year-anchored like the gain. Fading lets an old skill go and bounds experience; because skill saturates, a long working life loses little. The first-order rate `ln 2 / days` is within half a per cent of the exact share even at the shortest year, and needs no powers. | +| **Talent** is a normal score per person for foraging, wood and craft, in thousandths of a spread, clamped to three spreads. It scales the experience each second gives: `learn = clamp(1,000 + 250 · z / 1,000, 250, 1,750)` per mille. | Talent as speed of learning (Macnamara et al. 2014). One spread more learns a quarter faster; the slowest learn a quarter as fast as average, the fastest three quarters faster. The strength is judgement, listed for later. | +| Founders arrive with experience behind them: `founderForageHours` (16,425, fifteen years at three hours a day), `founderWoodHours` (5,475, fifteen years at an hour a day) and `founderCraftHours` (150) in each technique they know, each times their talent. Every founder knows the flaked axe; a founder knows the tranchet axe with `founderTranchetPerMille` (250) and the ground axe with `founderGroundPerMille` (100). | Founders are adults who learnt at their own talent. Their spread of starting skills then comes from talent, not from a separate draw, and is like the 75% to 125% it replaces. The half-experience equals about an average founder's, so the average founder works at the base rate, as before. Knowing the flaked axe is common to every Mesolithic adult; the other two are not. | +| Three **techniques**, held as data: flaked (needs nothing, 1 hour, 10 logs at quality 100), tranchet (needs flaked, 2 hours, 30 logs) and ground (needs flaked, 50 hours, 200 logs). All take one stone and `axeWood` of wood. | The calibration document's flaked and ground axes. The tranchet axe, the Mesolithic way of re-edging a flaked axe by a sideways blow, sits between them; its numbers are an estimate. A branching tree rather than a ladder: both better axes start from flaking. | +| A technique's proficiency uses its own experience plus `transferPerMille` (300) of the experience in every other technique: `P = skill(E_t + 300 · (G − E_t) / 1,000, craftHalfHours)`, where `G` is the sum of a person's technique experience, their **general craft**. | Craft experience transfers: novices with other craft experience learnt knapping better (Khreisheh 2013), but the specific skill still has to be learnt. General craft is derived, not stored, so it cannot disagree with the techniques. | +| `craftHalfHours` 300: an average novice reaches the base rate in a technique after 300 hours of their own experience. `forageHalfHours` 16,000 and `woodHalfHours` 5,000 are near the average founder's experience. | Knapping skill takes hundreds of hours (Pargeter et al. 2020; Stout 2002). The foraging and wood half-points keep average founders at the base rates and leave adults improving slowly, as forager returns do into the 30s (Kaplan et al. 2000). | +| A person holds, per technique, whether they have its **idea** and whether they **know** it. Everyone has the idea of and knows the flaked axe. An idea lets them try; knowing means they have once made one that worked. | Knowing that a thing can be made, being able to make it, and being good at it are three different things. The person, not the engine, finds out what can be made. | +| **Every axe is an attempt.** At its start the attempt is drawn to succeed with chance `success(P) = 1,000 · d² / (d² + attemptHalfPercent²)` per mille, `d = P − skillFloorPercent`, `attemptHalfPercent` 15; a failed one breaks at a point drawn uniformly through its work. A break loses the stone and the work done; the wood, not yet hafted, is kept. Every second worked, on a success or a failure, adds experience. | Novices fail often and experts rarely (Eren et al. 2011; Pargeter et al. 2019). At proficiency 63, a novice who flakes well trying a tranchet axe, about two in five attempts work; at 83, a founder's flaked axe, five in six; at 120, twenty-four in twenty-five. The square makes success climb quickly once someone is past the beginner's stage. The strength is judgement. | +| **Inventing.** For each technique they have no idea of, whose `needs` they know, a person draws at the end of every stint of axe work: the idea comes with chance `seconds · inventPerMillionPerHour · (365 / daysPerYear) · opennessInvent / (3,600 · 1,000)` per million, from `invent::`. | Ideas come to people who work the material, and build on what they can already do (the adjacent possible): nobody thinks of grinding an axe who has never made one. Year-anchored like experience. Openness has the job: a person a spread above average twice as often, two spreads three times, and one a spread below never (Feist 1998). Conscientiousness acts only through the hours practised. | +| **An idea from an axe.** A person who acquires an axe, by buying it, gains the idea of its technique. | The axe shows what was done to it. This is the only way ideas spread for now; teaching and watching are left for step 25. | +| **Practice.** A person at their hearth with nothing needed (priority 9) practises before a walk, up to `practiceMinutesPerDay` (60) times their conscientiousness factor each calendar day: an attempt at an axe by a technique they have the idea of but do not know, else by the technique they would choose for an axe. An unfinished practice axe waits for the next practice; a finished one is kept or sold like any axe. | Free time is spent on something, and skill is built by practice. Conscientiousness's job, planning ahead, includes working now for a skill later (Zell and Lesick 2022; Rohrer and Lucas 2018): a person a spread above average practises 1¾ hours a day, two spreads 2½, and one 1⅓ spreads below not at all. A day-anchored budget needs no draw and can be checked. | +| A person's experience in a technique starts when they first try it; proficiency comes from general craft at first. A technique once known, or an idea once had, is not forgotten while the person lives. | Knowing how and being good at it are different things. The fading experience is what an unused technique loses. | +| A person about to make an axe they need chooses the known technique with the least `1,000 · (makeSeconds + stoneSeconds) / (success · expectedLogs)`, compared exactly in integers, ties by technique order; `stoneSeconds` is 0 when they hold a spare stone besides the one the axe will use, else the straight-line estimate there and back to the nearest known outcrop with stones; `success` is the attempt's chance; `expectedLogs` is the technique's logs at their expected quality. An axe begun keeps its technique. Techniques they only have the idea of are tried in practice, not for an axe they need. | A person weighs work, and the work a failure wastes, against how long the axe will serve, from what they know. A flaked axe pays when stones are close or skill at grinding low; a ground axe when stones are far or a long working life is ahead. Nothing in the engine says which is better. | +| Axe trade values an axe by the logs it will still cut: a buyer's worth is their own making cost per log, by their own best technique, times the axe's logs left. The seller's ask is their extra energy to make one by the technique they would use. | Life 9's make-or-buy comparison, extended to axes of different lives. A ground axe sells for more than a flaked one because it serves longer. | +| Talent draws come from a new `talent` stream; the skill and craft streams are no longer drawn. Attempts and inventions draw from streams named by person and minute. | Founders' places, bodies and traits stay as Life 16's on every seed. | +### Ties, asking and giving (Life 16, unchanged) | Decision | Reason | | --- | --- | | A tie is held in each person's own memory, keyed by the other's id: familiarity, credit and grievance, all in minutes, with the minute their time together was last counted and the calendar day the person last asked the other. | The roadmap asks for relationships held in memory per pair. Each person keeps their own view (rule 1): what I think you owe me is my count, not yours. One unit for all three lets one rule compare them. | -| Familiarity is the minutes two people spent within talking distance, neither walking. It is counted when either wakes, from the later of their two task starts and the last minute counted in either person's tie, so no minute is counted twice, and added to both people's ties equally. | Nobody is stepped minute by minute, but a person who is not walking stands still for the whole of their task, so two people standing within 20 m when one wakes have stood there together since the later of their task starts. The count is exact for people standing still and needs nothing new tracked. Walking side by side does not count until groups travel together (step 18). | +| 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). | | 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 17 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 at step 18 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. | @@ -81,18 +116,18 @@ This step adds ties, asking and giving. It does not change the map, how people f | Decision | Reason | | --- | --- | -| Each founder is a woman or a man, drawn half and half. | Height, weight and strength are bimodal by sex; drawing one distribution for everyone would give a population with no real counterpart. Sex is needed again for pairing at step 19. Until then it does nothing but set which body distribution is drawn. | -| Bodies are adults and fixed for life. | Nobody grows or ages before step 19. | +| 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. | | 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 17 (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 step 18 (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 17, 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 at step 18, 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, skill and craft streams draw exactly as before, so a person's start and skills on a seed are unchanged. | +| Bodies and traits come from their own streams. | The founder stream draws exactly as before, so a person's start, body and traits on a seed are unchanged. | ## World @@ -163,27 +198,33 @@ 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, practice update, ties fading | Daily at midnight, `world` phase | +| Resource and fish regrowth, spoilage of carried lots, hut weathering, experience and skills, ties fading | Daily at midnight, `world` phase | | Time together, asking and giving | At the person's wake-ups | +| An attempt's success, inventing | When an axe is begun; when a stint of axe work ends | | Group and personal fires | Hourly at night, `world` phase | | Bodies | Lazily, at the person's wake-ups | | Conservation checks | At every event that moves food, wood, logs, stones, axes or water | | Full invariants | Daily at midnight, and at the end of every `stepValley` call in checked runs | -Bodies and traits are drawn once, when the founders are made, and never change. +Bodies, traits and talents are drawn once, when the founders are made, and never change. ### Days per year -`daysPerYear` is a run setting from 8 to 365, default 90. Day-anchored, unchanged by the setting: sleep, the hour of rest, picking, gathering, chopping, drinking and making rates, spoilage, firewood per night, hut weathering days, the 30-day practice window, the 24-hour memory of heard terms, the one leisure walk a day, 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, 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, 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. + +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. ### 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, skill and craft streams for starts and born skills, unchanged; `axe::` for an axe's quality; and two new streams, each with its own salt, drawn through every founder in id order: +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: - **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. +- **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. -Nothing is drawn per minute. The mesh, ways, plans, ties, asking and giving draw nothing; no stream is added by this step. +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. ## Bodies and personality @@ -237,15 +278,17 @@ A person's five traits are stored as scores in thousandths of a spread, −3,000 | --- | --- | --- | --- | | Extraversion | Starts interactions | An ungrouped person approaches a seen person, or a known flag, only if it lies within `companyRadiusCm · f / 1,000` in a straight line, capped at the sight radius. Meeting within talking distance is unchanged, so an introvert who is approached still meets. | 1,000, 500, 0, 2,000 | | Agreeableness | Gives way | In a wood-for-food exchange, the wood seller's share of the gain is `s = clamp(500 + 250 · (zA_buyer − zA_seller) / 1,000, 100, 900)` per mille, and the price in kcal per kg is `floor((seller.forageRate · buyer.woodRate · (1,000 − s) + buyer.forageRate · seller.woodRate · s) / (1,000 · seller.woodRate · buyer.woodRate))`. At equal agreeableness this is Life 13's midpoint. The swap still happens only if both gain at that price. The more agreeable side leaves more of the gain to the other. | as stated | -| Conscientiousness | Plans ahead | The wood a person stocks to is `max(nightWood + 1, floor(woodStockNights · nightWood · f / 1,000))`; the energy at which they stop food work is `min(reserveMaxKcal, hungryBelowKcal + floor((satiatedAtKcal − hungryBelowKcal) · f / 1,000))`. Short of wood below one night, and hungry below `hungryBelowKcal`, are unchanged. | 1,000, 250, 500, 1,750 | +| Conscientiousness | Plans ahead | The wood a person stocks to is `max(nightWood + 1, floor(woodStockNights · nightWood · f / 1,000))`; the energy at which they stop food work is `min(reserveMaxKcal, hungryBelowKcal + floor((satiatedAtKcal − hungryBelowKcal) · f / 1,000))`. Short of wood below one night, and hungry below `hungryBelowKcal`, are unchanged. From Life 17, a second rule, `conscientiousnessPractice`, sets the daily practice budget, below. | 1,000, 250, 500, 1,750 | | Neuroticism | Fear threshold | A person keeps `duskMarginMinutes · f / 1,000` minutes, at least 1, before dusk: they go home when the walk home would end later than dusk less the margin, and choose no work, check or water whose walk there and home would. Severe thirst ignores the margin, as it ignores dusk. | 1,000, 500, 0, 4,000 | -| Openness | Tries the unfamiliar | (a) When idle (priority 9), a person explores the nearest frontier only if it lies within `exploreRangeCm · f / 1,000` of their hearth in a straight line; otherwise they take a walk or rest, below. Exploring for water, food or wood they need is unchanged. (b) A known place whose stock they have never seen is expected to hold `capacity · g / 1,000`, with `g = clamp(750 + 250 · z / 1,000, 250, 1,000)`. | 1,000, 500, 250, 3,000 | +| Openness | Tries the unfamiliar | (a) When idle (priority 9), a person explores the nearest frontier only if it lies within `exploreRangeCm · f / 1,000` of their hearth in a straight line; otherwise they practise, take a walk or rest, below. Exploring for water, food or wood they need is unchanged. (b) A known place whose stock they have never seen is expected to hold `capacity · g / 1,000`, with `g = clamp(750 + 250 · z / 1,000, 250, 1,000)`. (c) From Life 17, `opennessInvent` scales the chance of an idea, under Skills and techniques. | 1,000, 500, 250, 3,000 | -From Life 16, agreeableness's job, giving way, has a second rule: it scales the goodwill with which a person gives when asked, `agreeablenessGive`, under Ties. No other rule reads a trait. The trait factors and the body-derived quantities are stored with the person, and the checker recomputes them from the scores and the configuration. +From Life 16, agreeableness's job, giving way, has a second rule: it scales the goodwill with which a person gives when asked, `agreeablenessGive`, under Ties. From Life 17, conscientiousness's job has a second rule, `conscientiousnessPractice` (base 1,000, effect 750, low 0, high 3,000), and openness's a third, `opennessInvent` (base 1,000, effect 1,000, low 0, high 3,000). No other rule reads a trait. + +The five scores are drawn as real ones spread: on the three fingerprint seeds' 120 founders each trait's spread is 0.91 to 0.98 of a standard deviation, about one person in six lies a spread or more above average on any one trait, and openness and conscientiousness correlate at 0.19 against the 0.20 of the meta-analysis. A person a spread or more above average on both is rare, a few in a hundred, and none of those 120 is. Differences between people show through the strength of each rule, not a wider draw. The trait factors and the body-derived quantities are stored with the person, and the checker recomputes them from the scores and the configuration. ## Knowledge and perception -A person remembers: places, with kind, position, the stock last seen and the minute it was seen; bank points; the triangles of the mesh it has seen; the ways it has walked, below; the point of its last survey; people it has met, with the minute; its ties, below; heard exchange terms for 24 hours; its group, flag, hearth and hut. A person knows their own body and traits, and nobody else's. +A person remembers: places, with kind, position, the stock last seen and the minute it was seen; bank points; the triangles of the mesh it has seen; the ways it has walked, below; the point of its last survey; people it has met, with the minute; its ties, below; its own experience, skills, talents, and the ideas and techniques it knows, under Skills and techniques; heard exchange terms for 24 hours; its group, flag, hearth and hut. A person knows their own body and traits, and nobody else's. At every wake-up a person observes in two parts: @@ -302,7 +345,7 @@ When a walk to a target starts, in this order: - The corridor is the stretches joined in order. It is a **steered** walk. 4. If the target is unknown or unreachable, the person walks to the nearest known frontier, or rests with `no known route`, as before. -**Leisure.** A person idle at their hearth (priority 9, no frontier in range), who has not set out on a leisure walk this calendar day, takes the remembered way with an end at their hearth that was used longest ago (ties by lowest number) whose far end can be reached and left for home before dusk, less their dusk margin, by the straight-line estimate. They walk it to its far end, `out for a walk`, and the walk's start records the minute in `leisureMinute`. Idle away from their hearth, they walk home, `going home to rest`. Idle at home otherwise, they rest. A person with no such way rests. +**Leisure.** A person idle at their hearth (priority 9, no frontier in range), who has not set out on a leisure walk in the last `leisureWalkDays` calendar days (default 7; added by the owner after the first measurement to save computation, the walk having been daily), takes the remembered way with an end at their hearth that was used longest ago (ties by lowest number) whose far end can be reached and left for home before dusk, less their dusk margin, by the straight-line estimate. They walk it to its far end, `out for a walk`, and the walk's start records the minute in `leisureMinute`. Idle away from their hearth, they walk home, `going home to rest`. Idle at home otherwise, they rest. A person with no such way rests. The fine A\* is Life 14's: costed by the distance between the midpoints of the edges crossed, ties by triangle id; from update 071 it runs within one piece only. Before a new plan, the person's known components of ground are compared as before; targets on another component go straight to step 4. A straight, steered or rechecked plan to a place, bank point or hearth is remembered as a way between the walk's start and the target, replacing any way with the same two end points; when the person holds `waysRemembered` ways, the one used longest ago is forgotten first, ties by lowest number. Using a way sets its last-used minute. Walks to a frontier are never remembered. @@ -312,11 +355,49 @@ Speed is the person's flat loaded speed, above; moderate slopes divide it by `mo Travel estimates for choosing targets use straight-line distance at the person's flat loaded speed plus `climbMinutesPerMetre`, as a lower bound. +## Skills and techniques + +A person holds `experience`, integer seconds each with an integer remainder: `forage`, `wood`, and one per technique. They hold `ideas`, the set of techniques they can try, and `known`, those they have made one of that worked, always within `ideas`; three talents, `forageLearn`, `woodLearn` and `craftLearn`, per mille; and `practicedToday`, minutes of practice this calendar day. Skills, rates and proficiencies are stored with the person and recomputed only at midnight and when an idea is gained; the checker recomputes them from experience. + +**The curve.** For experience `E` seconds and half-experience `H` hours, `skill(E, H) = skillFloorPercent + floor((skillCeilingPercent − skillFloorPercent) · E / (E + 3,600 · H))`, with floor 50 and ceiling 150. + +**Skills and rates.** + +- Foraging skill `skill(E_forage, forageHalfHours)`; `forageRate`, `nutRate` and `fishRate` are `floor(base · skill / 100)` of `berryKcalPerHour`, `nutKcalPerHour` and `fishKcalPerHour`. +- Wood skill `skill(E_wood, woodHalfHours)`; `woodRate = floor(woodPerHour · skill / 100)`. +- General craft `G`, the sum of technique experience; its skill `skill(G, craftHalfHours)` is shown, and used by nothing else. +- Proficiency in a technique `t` they have the idea of: `skill(E_t + floor(transferPerMille · (G − E_t) / 1,000), craftHalfHours)`; 0 for one they have no idea of. + +**Techniques.** + +| Technique | Needs | Hours at proficiency 100 | Logs at quality 100 | +| --- | --- | --- | --- | +| Flaked | — | 1 | 10 | +| Tranchet | Flaked | 2 | 30 | +| Ground | Flaked | 50 | 200 | + +Making an axe by `t` takes `ceil(3,600 · hours_t · 100 / P_t)` seconds of work, pausable as in Life 9, one stone and `axeWood` kg. **An attempt.** When it is begun, the attempt draws from `attempt::`: it succeeds if `randomInt(1,000) < success(P_t)`, with `success(P) = floor(1,000 · d² / (d² + attemptHalfPercent²))`, `d = max(0, P − skillFloorPercent)`; otherwise it breaks after `1 + randomInt(needed)` seconds of work, and the draw is stored with the axe in progress. A break ends the making: the stone is lost, the wood returned to the person, and a `broke` event records the person, the technique and the seconds worked. On finishing a success, its quality is drawn from the axe stream uniformly from `floor(P_t / 2)` to `P_t`, at least 1, and it cuts `max(1, floor(logs_t · quality / 100))` logs; a log's cut takes `logChopMinutes · 100 / quality` minutes, as in Life 9, whatever the technique. The expected quality is `max(1, floor(3 · P_t / 4))`. An axe records its technique. The first success by a technique the person did not know makes it known, and a `learnt` event records it. + +**Choosing a technique.** When a person starts an axe they need (priority 8), they take the known technique with the least `1,000 · (makeSeconds_t + stoneSeconds) / (success_t · expectedLogs_t)`, compared as the cross products in integers, ties by technique order. `stoneSeconds` is 0 if they hold a spare stone besides the one the axe will use (corrected in implementation: a person beginning an axe always holds one, so "holds a stone" would never count the walk); otherwise twice the straight-line walking estimate from their hearth to the nearest outcrop they remember holding stones. `expectedLogs_t` uses the expected quality. + +**Midnight.** For each living person, in id order, in the `world` phase after spoilage: each experience `E` first fades by `(E · fadePerMillion + remainder) / 1,000,000` rounded down, the rest carried; then gains `(seconds · 365 · learn + remainder) / (daysPerYear · 1,000)` rounded down, the rest carried, from the seconds worked that day at foraging (picking, nuts and fishing), at gathering wood, or at making by that technique, broken attempts and practice included, with the matching talent. `practicedToday` is cleared. Then skills, rates and proficiencies are set, and a `skills` event records each experience before and after, the seconds worked, and the new skills. Chopping logs and delivering them are not counted as experience, as in Life 9. + +**Inventing.** When a stint of axe work of `S` seconds ends (the making task ends, is interrupted, finishes or breaks), for each technique `s` the person has no idea of and whose `needs` they know, in technique order, they draw `randomInt(1,000,000)` from `invent::`; below `min(1,000,000, floor(S · inventPerMillionPerHour · 365 · opennessInvent / (3,600 · daysPerYear · 1,000)))` they gain the idea of `s`, and an `idea` event records the person, the technique and `invented`. `opennessInvent = clamp(1,000 + 1,000 · z / 1,000, 0, 3,000)` from openness. + +**An idea from an axe.** A person who buys an axe by a technique they have no idea of gains its idea, and an `idea` event records `from an axe` and the maker. + +**Practice.** A person at their hearth under priority 9, with no frontier in their exploring range, practises if `practicedToday` is below their budget `floor(practiceMinutesPerDay · conscientiousnessPractice / 1,000)`, `conscientiousnessPractice = clamp(1,000 + 750 · z / 1,000, 0, 3,000)` from conscientiousness. They continue a practice axe in progress; else they begin one, by the lowest-numbered technique they have the idea of and do not know, else by the technique they would choose for an axe, if they hold a stone and `axeWood`. A practice stint is a making task that ends when the budget is spent, at the latest; `practicedToday` adds its minutes. Lacking a stone, they fetch one from the nearest known outcrop with stones within their exploring range if they can be back before dusk less their margin, as for an axe; otherwise, and once the budget is spent, they take their walk or rest as under Leisure. A finished practice axe is held as their axe if they have none, else as a spare for sale; if they hold both, they take it apart, `dismantled`, and its stone and `axeWood` are back in hand for the next try. A dismantled axe counts as an attempt that worked: it gives experience, can make its technique known and can bring an idea. (Added by the owner after the first measurement, in which practice stopped once a person held an axe and a spare, as an implementation rule had it, so that people practised two to four hours a year. A member who comes to need an axe for their hut while a practice axe is in progress finishes it under priority 8, outside the budget, rather than leaving its stone and wood stranded.) + + +**Founders.** At creation each founder's experience is `founderForageHours · 3,600 · forageLearn / 1,000` for foraging, likewise for wood, and `founderCraftHours · 3,600 · craftLearn / 1,000` in each technique known; every founder knows the flaked axe, and the tranchet and ground axes by the talent stream's draws; a founder has the idea of every technique they know and of no other. Skills, rates and proficiencies are then set as at midnight. + +**Who knows what.** A person knows their own experience, skills, ideas, techniques and talents, and nobody else's. They see an axe's technique when they acquire it. + ## People -Each person is one object: sex, height, weight, grip, the five trait scores and their derived quantities; position, task record, energy and water with their remainders, carried food lots, carried wood, carried log, stones, axe, hut, group, born skills, practice 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, 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. Born foraging and wood skill range from 75% to 125%; born craft is 100%. 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 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. ## Tasks @@ -327,7 +408,7 @@ Founders are `founders` people, 40 by default, placed from their own streams wit | Drink | Deficit is below `drinkStopMl` | the person's resting rate | | Gather wood | The person's load is full or the stock is exhausted | the person's gathering rate | | Cut a log | `logChopMinutes` scaled by axe quality | the person's chopping rate | -| Make an axe | `axeHours` scaled by craft, pausable | the person's making rate | +| Make an axe | The technique's hours scaled by the maker's proficiency, pausable; a failed attempt ends at its break; a practice stint ends when the day's practice budget is spent | the person's making rate | | Rest | One hour, or an interruption | the person's resting rate | | Sleep | Dawn, or severe thirst | by hut and fire, as Life 11, scaled by weight | @@ -335,12 +416,12 @@ Water loss is `waterBaseMlPerDay/1,440` a minute plus `waterExtraMlPerKcal` per ## 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; record the task's events. If a fatal threshold was crossed, record the death at that minute and stop. +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. -6. Start it: if it is a walk, take a remembered way or plan one, as above, and remember a new way; schedule its end and its first body threshold; record the task start with how the walk was found. +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. ## Priorities @@ -355,15 +436,15 @@ Choose the first applicable rule. "Before dusk" means before dusk less the perso | 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, 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: once a day, walk out along a remembered way from home (below); else rest. Away from home: walk home to rest. | +| 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. | 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, 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 from one stone and 1 kg of wood, quality drawn from half to all of craft, cutting a log in 30 minutes at quality 100 and lasting 200 logs; practice over the last 30 days; wood-for-food swaps at the agreeableness price; axes asked at the maker's extra energy and bought when buying gains food energy. From this step, 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 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. ## Defaults and configuration validation @@ -379,6 +460,28 @@ Run settings are unchanged: New parameters: +| Parameter | Default | Basis | +| --- | --- | --- | +| `skillFloorPercent`, `skillCeilingPercent` | 50, 150 | Life 9's practice range, now the range of the experience curve. | +| `forageHalfHours` | 16,000 | About an average founder's fifteen years of foraging: the average founder picks at the base rate. | +| `woodHalfHours` | 5,000 | As above, for an hour of wood a day. | +| `craftHalfHours` | 300 | Hundreds of hours to learn knapping (Pargeter et al. 2020; Stout 2002). | +| `transferPerMille` | 300 | A third of other craft experience helps a technique (Khreisheh 2013, direction). Judgement. | +| `experienceHalfYears` | 10 | Skill decay over years (Arthur et al. 1998, magnitude). Year-anchored. | +| `talentRule` | base 1,000, effect 250, low 250, high 1,750 | One spread more talented learns a quarter faster. Judgement. | +| `founderForageHours`, `founderWoodHours`, `founderCraftHours` | 16,425, 5,475, 150 | Fifteen years at three hours and one hour a day; about a hundred axes made in a life before. | +| `founderTranchetPerMille`, `founderGroundPerMille` | 250, 100 | Some founders bring the better techniques with them. Judgement. | +| `axeTechniques` | flaked 1 h, 10 logs; tranchet 2 h, 30 logs, needs flaked; ground 50 h, 200 logs, needs flaked | Calibration, Making an axe; the tranchet axe is an estimate. | +| `attemptHalfPercent` | 15 | Half of attempts work at 15 points above the skill floor; five in six at a founder's flaked axe. Judgement. | +| `inventPerMillionPerHour` | 556 | About one idea in 1,800 hours of axe work, year-anchored, at average openness. Judgement. | +| `opennessInventRule` | base 1,000, effect 1,000, low 0, high 3,000 | One spread more open has ideas twice as often; one spread less, never (Feist 1998, direction). | +| `practiceMinutesPerDay` | 60 | An average person practises an hour a day when nothing is needed. Day-anchored. Judgement. | +| `conscientiousnessPracticeRule` | base 1,000, effect 750, low 0, high 3,000 | One spread more conscientious practises 1¾ hours (Zell and Lesick 2022, direction). | + +Removed: `skillMinPercent`, `skillMaxPercent`, `craftSkillMinPercent`, `craftSkillMaxPercent`, `practiceDays`, `practiceHalfHours`, `practiceMinPercent`, `practiceMaxPercent`, `startPracticeHoursPerDay`, `craftPractice`, `axeHours` and `axeLogs`. + +Parameters added by Life 16, unchanged: + | Parameter | Default | Basis | | --- | --- | --- | | `tiesRemembered` | 150 | Dunbar's number (Hill and Dunbar 2003). Never binds with forty founders. | @@ -386,12 +489,12 @@ New parameters: | `refusalGrievanceMinutes` | 60 | A refusal weighs about as much as an hour's work given. Judgement. | | `tieFadePerMillion` | 3,844 | A value halves in 180 days without renewal (Roberts and Dunbar 2011, magnitude). Day-anchored, unchanged by `daysPerYear`. | | `agreeablenessGiveRule` | base 1,000, effect 500, low 0, high 2,000 | One spread more agreeable gives on half again as little familiarity; three spreads less, never. | - Parameters added by Life 15, unchanged: | Parameter | Default | Basis | | --- | --- | --- | | `waysRemembered` | 64 | Enough for every place a person uses in a season and the ways between them; a person who uses more forgets the stalest. | +| `leisureWalkDays` | 7 | A leisure walk at most once a week, set by the owner to save computation. Judgement. | | `wayRecheckMinutes` | 1,440 | A day: a shortcut seen today is taken from tomorrow. Day-anchored, unchanged by `daysPerYear`. | | `resurveyCm` | 10,000 | 100 m, a tenth of the sight radius. | @@ -414,7 +517,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 `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 below. 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 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 @@ -424,9 +527,13 @@ The checker replays the events of each `stepValley` interval against the state i - **Bodies and traits:** every person's sex is 0 or 1; height, weight and grip lie within three spreads of their sex's mean; trait scores lie within −3,000…3,000; and the stored load capacity, rate table, thirst thresholds, company radius, exchange rule inputs, stock target, satiation level, dusk margin, exploring range and expected share equal those recomputed from the scores and the configuration. None changes during a run. - Every wake-up's body charge equals the person's own rates for the task over its minutes, with bounded remainders; energy and water at a wake-up equal the lazy functions evaluated there. - **Ways:** every person holds at most `waysRemembered` ways, no two with the same end points; every way's corridor is a chain of triangles each sharing an edge with the next, every one walkable and known to the person, its first and last holding its end points; numbers are below the person's next way number; last-used minutes are not in the future. Every walk recorded as a way or joined walk stays within the triangles of the way it names. No walk is recorded as `full` (update 068). The checker does not recompute the pieces, the coarse band or the recheck rule; unit fixtures cover them. -- **Leisure:** nobody sets out on two leisure walks in one calendar day, and `leisureMinute` is the start of the last one. +- **Leisure:** nobody sets out on two leisure walks fewer than `leisureWalkDays` calendar days apart, and `leisureMinute` is the start of the last one. - **Ties:** every person holds at most `tiesRemembered` ties, none to themselves or to an id that never existed; familiarity and grievance are not negative; `countedMinute` is not in the future, and `askedDay` is not after today. Where two people each hold a tie to the other with the same familiarity remainder, both have the same familiarity, unless one of them forgot the tie and made it anew. At midnight every value replays from the day before: fading, plus the time together, gifts and refusals recorded that day. - **Gifts:** the giver's goodwill covered their credit and grievance, and both credits changed by the gift's value at each person's own rate; food and wood conserve across it in the stock and body ledgers. Nobody asks the same person twice in a calendar day. Every refusal for want of goodwill adds exactly `refusalGrievanceMinutes`, and one for want of anything to spare adds none. The checker does not recompute a gift's amount from bodies and loads; unit fixtures cover the amounts. +- **Skills:** every experience and remainder is non-negative and every remainder below its divisor; every talent, `opennessInvent` and `conscientiousnessPractice` equals the one recomputed from the scores; at midnight each experience replays from the day before: fading, plus the seconds worked that day at the matching task times the gain (corrected in implementation: the checker does not recount the seconds worked from the day's task records; it checks that craft seconds by technique sum to the day's making seconds, and replays every midnight within an interval in order, since a checked interval may span many days); and every stored skill, rate and proficiency equals the one recomputed from experience. Experience outside midnight never changes. +- **Ideas and techniques:** every known technique is among the person's ideas; the flaked axe is known by everyone; a technique becomes known only at a successful attempt by it, recorded by `learnt`; an idea is gained only by a founder, by an `idea` event whose invention draw, replayed from its stream and the stint's seconds, fell below the chance, or by buying an axe of that technique. Neither is ever lost while the person lives. +- **Attempts and practice:** every axe begun records its attempt draw, which the checker replays from its stream and proficiency; a broken attempt ends at its break second, loses exactly its stone and returns its wood; an axe in progress by a technique the person does not know is a practice attempt; `practicedToday` never exceeds the person's budget and is cleared at midnight. +- **Axes:** every axe in progress or made is by a technique its maker had the idea of when it was begun; its making time is that technique's at the maker's proficiency then; its quality lies within `floor(P/2)…P` and its logs follow from technique and quality. Every exchange of an axe values it by its logs left. - **Survey:** each observation is replayed against the rule: it is a survey exactly when the person had no survey point or stood at least `resurveyCm` from it, and the survey point changes only at a survey, to where they stood. - No person's trip wood exceeds their load capacity. - Every exchange's price equals the agreeableness price for its two parties, and both gained at it. @@ -436,73 +543,78 @@ The checker replays the events of each `stepValley` interval against the state i - 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 14; a walk's start records how it was found (`plan`: `way`, `joined`, `straight` or `steered`; a walk to a frontier is straight or steered; from update 068 to 070 `coarse`, or `full` only from the guard), 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. New events: `together` (minute, the two ids, minutes added), `gift` (minute, giver, receiver, kind, amount, each side's credit change) and `refusal` (minute, asked, asker, kind, whether for want of goodwill or of anything to spare, grievance added). The daily summary adds, per person, the number of ties held and of people they spent time with that day, the food and wood given and received, and refusals made and met. World metrics are as Life 14. +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. ## Observer -Label the page **Life 16 · strangers**. The engine runs in a worker thread and the page draws from view copies of its states (Life 15, update 069): the view copy keeps current memory, now including ties, only for the person followed, and keeps gift and refusal events alongside exchanges and walk records. Everything else in the settings screen, loading card, header, history panel, group card, playback and landscape is as Life 15. +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. + +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. -- **Ties, when a person is followed.** A thin line is drawn on the ground from the followed person to each of their five closest living ties, closest by familiarity; a tie they hold a grievance in is drawn in a warmer colour. -- **Person panel.** Adds a "Ties" row ("Knows 12 · close 4"), where close counts the ties with at least `closeTieMinutes` (1,440, a day together; an observer setting, not an engine one), and a list of the five closest: name, time together, and the balance in words, "owes 2 h", "is owed 1 h" or "even", with "a grievance of 1 h" when there is one. Familiarity, credit and grievance are shown as the followed person holds them. -- **History.** The last five gifts and refusals the followed person gave, received, made or met: "Forager 3 gave Forager 1 900 kcal" or "2 kg of wood"; "Forager 5 refused Forager 1 food, unwilling", or "having none to spare" when that was the reason. +- **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. -Unchanged from Life 15: the followed person's ways drawn as faint lines, the "Ways" row and the wording for how the current walk was found. Unchanged from Life 14: figures scaled to height and weight, the body line and five trait rows, and the exchange line with the price and the larger 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. ## Code layout -- New `src/valley/ties.ts`: a person's ties; counting time together; choosing whom to ask; the giving rule and the gift's amount and value; refusals; fading; forgetting. -- `wake.ts`: step 3 counts time together after meeting and asks after exchange, waking the person asked as an exchange offer does. -- `world.ts`: ties fading at midnight. `engine.ts`: the daily summary's ties and companions per person (ties held, and people counted together that day), food and wood given and received, and refusals made and met. -- `types.ts`, `config.ts`: the person's ties, shared between states; the `together`, `gift` and `refusal` events; the new parameters and their validation; `agreeablenessGive` stored with the person. +- 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/`: ties carried in the followed person's view copy, gift and refusal events kept in it, the tie lines, the panel rows, the history lines, the Life 16 label. -- `docs/LIFE15_SPEC.md` is removed: this specification replaces it. +- `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 (`terrain.ts`, `water.ts`, `mesh.ts`, `routes.ts`, `ways.ts`, `perception.ts`, `nature.ts`) and exchange (`trade.ts`) are unchanged. The MVP9 core is unchanged. +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. ## Tests and implementation acceptance -The Life 15 fingerprint suite passes before the engine is changed. Every trajectory changes once gifts move food and wood: this step records new fingerprints for all its configurations. The founders, their bodies and traits stay the same as Life 15's on every fingerprint seed; `life13-founders.json` still checks starts and born skills. Fingerprints are not updated to conceal a failed rule. +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. New unit fixtures: -1. Time together: two people resting within 20 m for an hour gain 60 minutes each when one wakes; when the other wakes later in the same spot, only the minutes since are added; a walker passing within 20 m adds nothing; two people 25 m apart add nothing. -2. Fading: a tie with no time together halves in 180 days within 1%; a tie fading to zero is forgotten. -3. Gift: a hungry person carrying no food asks a familiar person carrying spare berries and is given up to their own satiation, oldest lots first; both credits change by the gift at each person's own rate. -4. Whom to ask: a stranger within 20 m is not asked; of two familiar people the one with more familiarity less grievance is asked first; nobody is asked twice in a calendar day. -5. Refusal: a familiar person whose goodwill does not cover the asker's debt refuses, and the asker's grievance grows by 60; a person with nothing to spare refuses without adding grievance. -6. Reciprocity: a person who owes the asker gives on familiarity that would not move them otherwise. -7. Agreeableness: on the same tie, a person at +1 spread gives where one at −1 refuses. -8. Exchange first: a person who can buy the wood they need in their group buys it and asks nobody. -9. Forgetting: with `tiesRemembered` ties held, a new tie forgets the least familiar. -10. The checker rejects a tie to oneself, one tie too many, unequal familiarity in a pair, a gift larger than the rule allows, a gift given without enough goodwill, a refusal adding the wrong grievance, and a second ask in one day. +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. -The Life 15 and Life 14 fixtures are kept, with fixtures updated only where a gift now changes what a person does. +The Life 16, 15 and 14 fixtures are kept, with fixtures updated only where rates or axes now change what a person does. -Measured once and recorded in the lab notes, on the canonical seed: the circles of ties and the reciprocity measures in "Checked against", over days 30 to 89; gifts and refusals by day; and days 50 to 59 in 12-hour steps as the worker runs, against update 071's, with the year's memory. In the browser: a gift line in the history, a followed person's ties drawn and listed, and the console clean. +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. Final validation is `npm run agent:check`. ## Questions for later -- Is ten minutes together for one minute of work (`trustPerMille`) the right exchange rate between time and help, and is 60 minutes the right weight of a refusal? Both are judgement. -- Should walking together count as time together once groups travel as one (step 18)? -- Should people offer unasked, for example to someone they see hungry and close, or share a large catch with everyone at the fire (step 21)? -- Should people ask strangers, at a lower chance of being given? -- Should extraversion, the trait that starts interactions, govern asking? Here everyone in need asks. -- Should ties decide whom an ungrouped person approaches or which group they join, and whom a person trades with? -- Should contributions to the group's fire count as help to those who sat by it? -- Do the circles of ties show layers, or does everyone in a group become equally close? If equal, is it because hearths are close enough for every member to be within talking distance at night? -- Do the agreeable end up giving most and the disagreeable receiving most, and does that change who survives? -- Should grievance fade more slowly than familiarity? -- Should a person tell or show a way to someone they trust (step 24)? +- 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? -The Life 15 questions about wayfinding and speed stand: joining a way from nearby, the pace of noticing shortcuts, ways by expected time, landmarks as the coarse level, dropping finished routes, the hut-building week's cost, trails, and sight blocked by ridges; and the Life 14 questions about 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 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. ## Left out -Kinship and pairing (step 19); fights, injury, theft, yielding and fear in disputes (step 17), so grievance comes only from refusals; prestige, dominance, following and leadership (step 18); offering unasked and sharing a catch; asking strangers; ties deciding group membership, approach or exchange partners; gossip, or knowing anyone's ties but one's own; trails, shared or taught ways, ways blocked by anything, and sight blocked by relief; children, growth and ageing; illness; heat balance and clothing; skills correlated with body or traits; personality change; wading, swimming and boats; seasons and weather; herds, planting, property and recipes beyond axes and huts. - +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. ## References - Peterson, N. (1993), *Demand sharing: reciprocity and the pressure for generosity among foragers*, American Anthropologist. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 2d35907..ffe0ed1 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. 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. 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 @@ -41,18 +41,19 @@ Life 11 is the starting point. Steps 0 to 9 are recorded in the [merge document] | 14. Bodies and personality | Height, weight and strength, drawn with their real correlations; strength matters for carrying and later for fights. Five traits, each with one job: extraversion starts interactions, agreeableness yields in disputes and shares more, conscientiousness finishes work and plans ahead, neuroticism sets the fear threshold, openness tries unfamiliar places and later unfamiliar recipes. A trait with no mechanism is cut. | Adult size and strength distributions; the known correlations between the five traits. | | 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. 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. | -| **18. 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. | -| 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. 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. | -| 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, skills learnt by watching and practice, knowledge that spreads along relationships and dies with people. | 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 at step 20, and injuries exist from step 17. +| 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. ## What we watch for diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md index f3bf4c3..23ba017 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 16 +# Life 17 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, no-practice, craft-talent, equal-skill 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 15 fingerprints passed before the engine changed. Life 16 re-records all 22 after the rule and checker tests pass, because gifts move food and wood and so change bodies, stocks and trajectories. 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 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. `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,4 +134,6 @@ 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. -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. +`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. diff --git a/life.html b/life.html index 17e0568..e10dac6 100644 --- a/life.html +++ b/life.html @@ -6,9 +6,9 @@ - Life 16 · strangers + Life 17 · strangers