feat(biology): evolve photosynthetic producers that capture light
Foundation / checks (ecs) (push) Successful in 2m25s
Foundation / checks (deploy) (push) Successful in 5m15s
Foundation / checks (network) (push) Successful in 21m56s
Foundation / checks (client) (push) Successful in 22m54s
Foundation / checks (tsan) (push) Successful in 47m4s
Foundation / checks (postgres) (push) Successful in 1h15m49s
Foundation / checks (checks) (push) Failing after 1h30m4s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

ADR-0175 implements ADR-0136 step C with trial costs to be balanced after
playtesting. Genome schema 5 adds a photosynthesis efficiency (empty in
schemas 1-4, so earlier offers and draws are unchanged; mutation operators
29-32 are appended). Development version 5 builds the organelles as
internal membrane (p/4 of structure, upkept twice) and slows movement by
p/2 per thousand. Founder 4 and cellular rules 11 let lineages earn the
capability as an offspring plan that children express.

Owner format 9 declares the region's light. Inside each tick's detached
candidate, active unfrozen producers capture cross-section x irradiance x
efficiency (a quarter while moving), credited to the reserve and boundary
inflow together and replayed from recorded intentions. Well-lit wildlife
producers hold still. The joint owner keeps infall, water and radiation and
nests a rules-11 owner unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-19 18:06:02 -04:00
co-authored by Claude Opus 5.5
parent 51991ac7ff
commit 108f29eda5
34 changed files with 856 additions and 128 deletions
+12
View File
@@ -1,5 +1,17 @@
# Project status and next steps
## Photosynthesis producers (ADR-0136 step C) - 2026-10-19
[ADR-0175](adr/0175-photosynthesis-producers.md) adds genome schema 5's photosynthesis
capability with trial costs (organelle membrane mass and slower movement), founder 4
and cellular rules 11. A region declares light in owner format 9; each tick a still,
active producer captures cross-section x irradiance x efficiency (a quarter while
moving), booked as boundary inflow inside the same atomic tick. A founder earns the
capability as its offspring plan; its children express it and capture light. Every
earlier genome, offer, owner and environment byte keeps its meaning. Durable bundle,
session wire, client look and a DEV opening follow next. Numbers are trial values to
balance after playtesting.
## Cellular environment ownership (M12.5a-b) - 2026-10-19
The maintainer accepted one owner per patch of space for cells and their local
+64
View File
@@ -0,0 +1,64 @@
# ADR-0175: Photosynthesis producers
## Status and scope
Accepted 2026-10-19, implementing ADR-0136 step C. The maintainer authorized choosing
trial costs, to be balanced after playtesting; every number below is **tunable**. This
segment is portable biology and owner state; the session wire/client and durable/host
admission are separate segments. No default/live opening changes.
## Decision
**Capability.** Genome schema 5 adds `photosynthesis`, an efficiency per thousand
(1..1000) that requires a membrane. Schemas 1-4 carry an empty range for it, so no
earlier record, offer or draw changes. Mutation operators 29-32 (adjust up/down,
acquire, shed) are appended; earlier operator IDs are unchanged. Schema 5 keeps schema
4's percentage steps; an acquired photosynthesis starts at **100** (10 %).
**Costs (development version 5).** Version 4's rules, plus photosynthetic organelles
built as internal membrane: at efficiency p they add p/4 of the structural mass as
membrane mass (so they cost construction and are upkept twice, like membrane) and slow
movement by p/2 per thousand. Extent is unchanged. Light gives energy only; a producer
still needs C/N/P by contact to grow and bud.
**Founders and rules.** Founder 4 (schema 5, development 5) is founder 3 with that
schema: identical phenotype, body and endowment, and no photosynthesis. Cellular rules
11 are rules 10 (offspring plans) with founder 4. Under rules 10+, a selected mutation
edits the offspring plan, so photosynthesis is expressed by children (ADR-0163).
**Light is booked by the cell owner (owner format 9).** Incident light is not a stock and
has no other owner, so the region's cellular owner declares it: irradiance (pJ per square
micrometre of cross-section per tick, a rational; trial **40**), a cumulative entitlement
and the share a moving cell keeps (trial **250** per thousand), plus the energy captured
so far. An explicit no-tick format-8/rules-10 -> format-9/rules-11 upgrade declares the
light; existing lineages keep their schemas, and only founders born afterwards, and their
descendants, can evolve photosynthesis. Inside each tick's detached candidate, after the
step, every active, unfrozen photosynthetic survivor that had an intention captures
`extent^2 x irradiance x p / 1000`, a quarter of that if its intention moved, rounded down
and bounded by the remaining entitlement. Capture is credited to its reserve, the boundary
inflow and the current total together, so the tick commits or refuses as one unit. Light
nobody captures never enters the books. Capture depends only on recorded intentions and
state, so the existing raw trace replays it. A dark declaration captures nothing.
The ADR-0172 joint owner keeps infall, water and radiation and may nest a rules-11 owner;
its own environmental imports stay separate from the nested owner's captured light.
Putting light in the cell owner keeps producers on the existing live path (profile-4
publication, sessions and player actions) instead of requiring a second live trace.
**Wildlife.** Under rules 11 with declared light, a photosynthetic wildlife cell that
would capture at least its maintenance by holding still holds still (it still feeds from
what it touches); otherwise it forages as before.
Measured trial consequences (founder size, irradiance 40): at 10 % a still producer
captures 1,600 pJ/tick against 7,850 pJ/tick maintenance and moves 5 % slower; around
55 % it breaks even; at 100 % it captures 16,000 pJ/tick at half speed against
10,100 pJ/tick maintenance.
## Consequences
Plant-like lineages become possible without infinite energy: capture is bounded by
cross-section, efficiency, stillness and entitlement, and producers still compete for
matter. All earlier genome, mutation, development, cellular and environment bytes and
goldens keep their meaning. Durable admission of rules 11 (a new cellular bundle), the
session wire (capability 7 in offers, producer look) and a DEV opening remain before
playtesting.
+2
View File
@@ -1,5 +1,7 @@
# Architecture decision records
- [ADR-0175: Photosynthesis producers](0175-photosynthesis-producers.md) - genome schema 5 photosynthesis with trial organelle costs, founder 4/rules 11, light booked by the cell owner (format 9) from recorded intentions, light-aware wildlife; earlier bytes unchanged.
- [ADR-0174: Durable cellular environment profile](0174-durable-cellular-environment-profile.md) - schema 56 checkpoint profile 6 nesting population envelope 2; explicit one-way 5 -> 6 entry, fenced joint publication with owned intervals and SQL flow totals, exact replayed recovery.
- [ADR-0173: Cellular environment joint batch](0173-cellular-environment-batch.md) - portable `AEVOEBT1` wraps the unchanged population batch with per-tick recorded environmental flows; unattended recording runs the controller after each exchange and replay re-derives every flow exactly.
+1 -1
View File
@@ -66,7 +66,7 @@ or authorize production enablement.
| 12.2 | Exact cellular model and paired matrix; local samples through 256 lives; bounded four-generation rules-9 predation/twin matrix | Deployment-host tail costs including publication; larger wildlife cohorts and fuller contention coverage; useful compression remains unimplemented. |
| 12.3 | Dedicated population profile/trace/store/owning host; exact recovery and private PostgreSQL fault tests | Population-specific executable/network fault drills and target-host publication/capacity qualification. |
| 12.4 | Owned intervals; exact transfer/accounting; durable atomic pair/recovery; independent loopback TLS path loss and owner expiry/replacement/heal; local object sync/read-failure matrix | Multi-host/kernel-network, storage-host and orchestrator drills, linked-boundary contracts and integrated ownership/stock audits at scale. |
| 12.5 | ADR-0172 portable joint owner: one budget for cells and local environment, effective depth, tagged water/dissolved compartments, refused atmosphere, finite infall entitlements, radiative export; closed/source-off/open/exhaustion and raw/cohort comparisons; ADR-0173 joint batch with exact unattended replay; ADR-0174/schema 56 durable profile 6 with owned intervals and exact recovery | Producer process and coefficients (ADR-0136 step C), executable/network joint fault drills, worker/census/migration integration and escrowed cross-worker sources (12.5d), target-host qualification (12.5e). |
| 12.5 | ADR-0175 photosynthesis producers (portable rules 11/format 9); ADR-0172 portable joint owner: one budget for cells and local environment, effective depth, tagged water/dissolved compartments, refused atmosphere, finite infall entitlements, radiative export; closed/source-off/open/exhaustion and raw/cohort comparisons; ADR-0173 joint batch with exact unattended replay; ADR-0174/schema 56 durable profile 6 with owned intervals and exact recovery | Durable rules-11 bundle, producer session wire/client and DEV opening; joint fault drills (deferred by the maintainer), worker/census/migration integration and escrowed cross-worker sources (12.5d), target-host qualification (12.5e). |
| 12.6 | Retained archive, regional census/lineage queries, replayed history, scoped multi-region queries and consistent database head snapshots (12.6a-d); registered coverage/history domains follow in 12.7a-b | Cross-domain clone provenance, retained historical coverage/other viable stores, target-host query/index qualification and client permission/presentation; no account power or invented precise statistical ancestry. |
| 12.7 | Viability/unknown policy; consistent cuts, registered coverage, history domains/restore forks and verified pending handoff evidence (12.7a-c/schema 52) | Cross-domain clone provenance, other viable-store coverage and durable accepted global evidence records/freshness. Missing/stale/unsupported owners must prevent terminal extinction. |
| 12.8 | Deterministic seed/regime drivers, separate-process exact continuation and bounded unscripted generations | Reproducible integrated worlds running for actual days, real restarts/clone comparisons and retained accounting/diversity/cost audits. Accelerated tests cannot supply elapsed days. |
+36
View File
@@ -1,5 +1,41 @@
# Validation report
## 2026-10-19 - Photosynthesis producers (ADR-0175)
[ADR-0175](../adr/0175-photosynthesis-producers.md) adds genome schema 5, development 5,
founder 4, cellular rules 11 and owner format 9 with declared light.
Executed locally:
- GCC 14.2 Release full CTest **96/96** and MSVC 19.44 Release full CTest **96/96,
7.35 s**, with NDEBUG and no MSVC warnings.
- Clang 19.1 ASan/UBSan biology and cellular subset (36 tests): one failure, a
heap-use-after-free in the new producer test, which compared an iterator into a
mutation offer after the tick had replaced the state holding it. The test now decides
before the tick; the environment and photosynthesis tests then pass **3/3, 88.86 s**
with no sanitizer reports. No product code changed for it.
- clang-tidy 19 and clang-format 19 on every new and changed source and test.
- Private PostgreSQL population (35 s) and joint-environment suites still pass on the
changed biology.
Evidence: earlier genome schemas reject photosynthesis at any value and their offers
never include it (catalog grows from 28 to 32 with IDs 29-32 appended); all existing
goldens and cellular suites are unchanged. Founder 4 has founder 3's phenotype, body,
maintenance, reproduction investment and endowment exactly. Organelle mass, maintenance
and speed match the declared rule at 100, 500 and 1000 (maintenance 7,850 / 8,850 /
10,100 pJ/tick vs the founder's 7,600; still capture 1,600 / 8,000 / 16,000; moving a
quarter). A founder in a rules-11 region took the offered photosynthesis plan at tick
159; its budded child captured 387,200 pJ over 400 ticks with exact closure (captured
light equals the boundary energy inflow). Format 9 restores and continues byte-identically;
a nested joint owner keeps its infall separate from the owner's light. Twenty times the
irradiance gives exactly twenty times the capture on the same history; a dark declaration
captures nothing. In this rich fixture producers always touch food, so the light-driven
hold-still branch of the wildlife controller is not exercised by these tests.
The ADR-0175 design first placed light in the joint owner; it was moved into the cell
owner before commit so producers can use the existing live publication path. No durable
bundle, SQL schema, session wire, client, DEV opening or live upgrade changes here.
## 2026-10-19 - Durable cellular environment profile (M12.5c)
[ADR-0174](../adr/0174-durable-cellular-environment-profile.md)/schema 56 adds