Phase 3 of the cellular revamp build plan (ADR-0179), first part: the headless
pieces the owner will use.
- The named catalog: all 49 mutations of Cellular_mutation_plan.md as data
(stable ids and tuning keys, name, pro, con, effect, availability, increase
and decrease triggers, base weight). Applying one edits a schema-7 plan by
fixed reference points (a point is a hundredth of the founder's value), with
paired edits, spreads across a channel group, recipe shifts, photosynthesis
acquire and shed, and Adhesion; bounds, gates (carbon burned, buds made) and
the enabled switch close it. 43 mutations are open at birth, as planned.
- Triggers: per-tick activity signals and eight trigger kinds (accumulate,
absence, count in a window, event, share over a window, regular recurrence,
straight heading, sharp turns) move each mutation's affinity score within
bounds; integer state only, so replay reproduces scores.
- Offers: weight = base x a score multiplier; chances clamp(k x weight, floor,
cap) summing to the options, in parts per million (floor 0.001%, cap 70%),
found exactly by water-filling over sorted weights; a systematic draw picks
distinct mutations whose inclusion frequencies equal their chances exactly.
Tests cover the catalog's identities, the pool at birth, every kind of edit,
bounds and gates; every trigger kind; score bounds; weights; a 300-seed chance
ensemble; and an exhaustive draw over all million draws. Refreshes the DEV
session window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>