Skip to content

Life 18: seasons and stores [LIFE18-Seasons-076] - #97

Merged
NeoLorenzo merged 5 commits into
mainfrom
life18-seasons
Nov 8, 2026
Merged

NeoLorenzo merged 5 commits into
mainfrom
life18-seasons

Conversation

@NeoLorenzo

Copy link
Copy Markdown
Owner

Life 18 brings scarcity to the valley: realistic yields grown by the day, seasons, losses, good and bad years, and personal nut stores. The full specification is docs/LIFE18_SPEC.md, approved on 2026-11-03.

Depends on #96 (sun path and seasonal foliage). This branch has #96 merged in, so merge #96 first; this PR's diff then shrinks to Life 18 alone. It also carries the roadmap change that defers conflict and makes seasons step 18. That change was committed earlier but never pushed.

Engine

  • The land's food is anchored by the day, not the year. Before, the 90-day year grew a full year's food every 90 days. Yields are realistic: a berry thicket gives 5,400 kcal a year, a hazel thicket 150,000.
  • Seasons from the founders' arrival. Berries ripen from 330‰ to 450‰ of the year and nuts from 450‰ to 580‰, counted from the spring equinox.
  • Good and poor years. Each year's crop is drawn as poor, normal or good from a harvest:<year> stream.
  • Losses on the land. Food nobody gathers halves in 14 days, to animals and rot.
  • Nut stores. Each person keeps a nut store at their hearth. The target grows with the days until berries ripen, with body weight and with conscientiousness. There are two new tasks: gathering nuts for the store and eating from it.
  • Gifts and payment. Gifts and payment for axes and wood use only carried food, never the store.
  • Expected stock. People expect what a normal crop has grown so far in its season.
  • Daily summary. It records the day's crops and losses, kcal eaten by source (berries, fresh nuts, stored nuts, fish), kcal burned, and stores. The checker replays crop classes, losses, growth inside each window, and store spoilage.

Observer

  • Labels and header. The page is labelled Life 18. The header shows the season and the year's hazel crop.
  • Valley and panel. Thickets are bare out of season, hearths with a store show a nut pile, and the person panel has a "Store" row.
  • Over time. The pane is split into Food, People, Craft and Exchange. The Food section has:
    • a pie of eaten kcal by source, for this season, this year or the whole run;
    • a stacked chart of food eaten each day against kcal burned;
    • where the food is: on the land, in stores, in bodies;
    • an energy reserve band;
    • each year's crop fate.
  • Sun and foliage. The changes from Observer: sun path and seasonal foliage [LIFE17-Sky-077] #96 count the year from the founders' arrival, as the calendar does.

Speed

In the lean months people fish in short stints and choose food about 2,300 times a day. A first version took 3.3 s per simulated day. Several changes bring days 51–60 down to about 0.5 s, against 267 ms in Life 17:

  • each person's known waters are kept up to date as banks are learned;
  • waters are indexed on a grid;
  • the nearest options set a floor, and anything that can't beat it is skipped.

The choices are the same as without these changes: all 22 fingerprints are unchanged by them.

Measured once

Canonical forty-founder run, three years:

  • Deaths. 14 of 40 died of hunger, 13 of them in the lean months.
  • Poor hazel year. The median reserve fell to about 35,000 kcal, and the diet moved onto fish.
  • Stores. Nobody reached their store target: median stores were 35,000–44,000 kcal against targets of about 150,000.
  • Crop lost. 72–82% of the hazel crop was lost on the land.

The lab notes record the full figures.

Open

  • The 2024 Corylus mandshurica seed-fate source for the 14-day loss half-life couldn't be found. docs/CALIBRATION.md marks it unverified.
  • Stores fall far short of their targets. The limit is gathering trips, not the crop, which is a question for later.
  • People's day still runs from 6:00 to 18:00 all year.

Validation

npm run agent:check passes: lint, typecheck, 632 tests and build. All 22 fingerprints were recorded again for Life 18. The browser check showed a clean console.

…life18-seasons

# Conflicts:
#	CHANGELOG.md
#	LAB_NOTES.md
#	src/valleyView/seasonLook.test.ts
#	src/valleyView/seasonLook.ts
# Conflicts:
#	CHANGELOG.md
#	LAB_NOTES.md
#	src/valleyView/seasonLook.test.ts
#	src/valleyView/seasonLook.ts
@NeoLorenzo
NeoLorenzo merged commit a81bee6 into main Nov 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant