Phase 3 of the cellular revamp build plan (ADR-0179), server half. - Every owned, active rules-13 life gathers its activity each tick from every phase (thrust and drift, brake presses, feeding and the collection limits, matter burned by channel, energy by use, contact with larger cells, engulf outcomes, growth blocked by a channel, buds made, refused or lost young, the reserve against the body) and advances its 98 triggers and 49 affinity scores. - Active play earns an offer every interval: eligible catalog mutations of the life's plan, weighted by affinity, drawn with the floored and capped chances and a seeded systematic draw (a retry draws the same offer). Wildlife, newborns and frozen cells earn nothing; a plan without schema-7 traits has no catalog. - A choice must name the life's own pending offer. It edits the offspring plan (phase 4 turns this into the split), pays the mutation's tuned cost from the reserve (matter may stand in for its energy, excluded channels excepted) and reclaims it as seeded random bubbles, merging into the farthest deposit at the deposit limit. Unaffordable choices keep the offer; declines clear it. - Offspring inherit affinity scores and lineage progress. Growth speed scales the growth step with a carried fraction. - Format 11 persists the offer tunables and each life's mutation state; the revamp tuning file gains the offer keys and optional per-mutation overrides (mutation.<key>.<field>), defaulting to the catalog with zero costs. Tests cover per-mutation overrides and refusals, the collection-limit flags, offers from active play, founder-5 plans never offered, exact restore of a pending offer, a choice editing only the plan and reclaiming its cost with closure, unaffordable choices, declines, foreign choices, and thrust moving affinity. Refreshes the DEV session window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8.2 KiB
Cellular revamp build plan
Status: approved for implementation, 2026-10-22. Builds the cellular gameplay plan and its system plans: mutation, reproduction, feeding and energy, predation and defense and body and maintenance. Decision record: ADR-0179. Continues from phases 1-2 of the region and movement plan, which shipped as rules 12.
Approach
- Build every phase, then playtest once. Each phase is committed and pushed with CI green (AGENTS.md), but nothing is deployed until the last phase. The playtest runs on a fresh DEV region opened with the new rules.
- New versions, disposable DEV worlds. Rules 13, genome schema 7, development 7,
founder 6, a new owner format, bundle and schema, and a fresh
cellular-v10opening. No upgrade from existing rules-12 regions (ADR-0177). - One revamp tuning file. Every new tunable goes in
deploy/kubernetes/region/dev/tuning/cellular-revamp.tuning, beside the rules-12cellular.tuning, with the same format and validation. - Server phases first, then one session version. Phases 1-5 build and test the server halves. The wire changes in every one of them (body values, offers, bud choices, organisms), so session v14 and the client screens for all of them are one step after phase 5, rather than a protocol revision per phase. Nothing deploys before that step anyway.
- Shared biology. Derivations stay in the headless library, so the client predictor and the server agree.
Phases
Phase 1: genome and body (rules 13 foundation) - done
Server:
- Genome schema 7: every heritable value the plans name, in points (founder 100)
unless stated:
- size, density, membrane, body recipe (per thousand, C/N/P/O), upkeep efficiency, growth speed;
- collection per channel (E/C/N/P/O), shared intake, burn efficiency per matter
channel, energy kept per bubble (
energy_conversion), light capture; - engulf capacity, kill absorption;
- bud share, litter (founder 0), Adhesion flag;
- the existing movement arrangement.
- Development 7 and founder 6: size, density and recipe set mass, footprint and surface; upkeep = essential floor + adjustable part / efficiency; membrane mass from points; no legacy photosynthesis speed penalty.
- Rules 13 owner skeleton (new owner format) and tuning keys for every body value.
Client: in the session v14 step.
Verify: founder 6 derives the same body as founder 5 where the plans say "today's value"; the essential floor holds; encode/decode and bound checks for schema 7.
Phase 2: feeding, energy and predation - server done
Server:
- Collection per channel with the shared intake limit; the membrane collection penalty.
- Energy kept per bubble; the rest to heat.
- Matter as energy: burn the largest non-excluded channel, upkeep overrides exclusions, death only when nothing can pay.
- Region spent pool with a seeded drip back as bubbles; waits at the deposit limit.
- Reserve matter in mass for handling and movement energy, not upkeep.
- Engulf check with engulf capacity and
engulf_reserve_mass_percent; kill absorption; the kill remainder split between bubbles and the spent pool. - Channel exclusions are a 4-bit step intent field, carried in the trace's byte 14.
Client (session v14 step): energy display including what matter can stand in for; channel exclusion toggles; spent-pool drips drawn like infall; hover and HUD show the phase 1 body values.
Verify: conservation per channel and energy across burning, the pool, kills and drips; no burn of excluded matter except for upkeep; replay determinism.
Phase 3: mutation offers - server done
Server:
- Catalog of the 49 mutations as data: effect, eligibility, triggers, base weight,
steps, cost and
enabled, all from the tuning file. - Per-cell affinity scores, inherited at birth; activity counters for every trigger.
- Chance allocation (
clamp(k x weight, floor, cap), summing to the option count) and a seeded systematic draw; the draw and chances are recorded so a retry never rerolls. - Offer cadence from the tuning file; one pending offer.
- Cost paid from the reserve (matter may stand in for energy) and reclaimed as seeded random bubbles, merging into the farthest bubble at the deposit limit.
Until phase 4, a chosen mutation edits the offspring plan (as rules 10-12 do); phase 4 turns the choice into the split.
Client (session v14 step): offer screen with name, pro, con, chance, cost and shortfall.
Verify: chances sum to the option count and respect floor and cap; the draw's marginal frequencies match the chances over a seed ensemble; triggers fire as specified; costs conserve.
Phase 4: reproduction
Server:
- On-demand bud with the control choice (stay or become the bud), the tunable fee and bud share; one-way control transfer (ADR-0163).
- Mutation split: write the mutation into both plans, split body and reserve by
split_share, the offspring expresses it, the player chooses the cell; refusals leave the offer pending. - Litter: guaranteed and chance extra offspring sharing one investment, limited by free spots and the region cap.
- Wildlife buds from its own plan with litter; wildlife never mutates.
Client: Bud with Stay / Become; offer options with Stay as founder / Become offspring; refusal reasons.
Verify: control transfer is one way and exactly once across retries and restarts; splits and litters conserve; a refused split spends nothing.
Phase 5: multicellular organisms and emergence
Blocked on the maintainer's confirmation of the locked-requirement question in ADR-0179 (whole-organism mutations).
Server:
- Adhesion forms the organism at once. The organism is one life with a member count, one genome, one reserve and a body that is the sum of its members.
- Internal buds add members; mutations are expressed by the whole organism; whole- organism engulfment by total mass; mass-scaled handling.
- Emergence threshold (members, mass, reserve energy) and the Emerge action; the wildlife member limit as a safeguard.
Client: organism drawn as its member cells; Emerge button at the threshold.
Verify: one reserve and one genome across members; whole engulfment conserves; the Emerge action only at the threshold.
Session v14 and the client
- Session v14: the phase 1 body values in perception; payable energy; the exclusion control; named offers with pro, con, chance, cost and Stay / Become; the bud choice; organisms and the Emerge action.
- Client screens for all of the above.
Phase 6: wildlife, instrumentation and the playtest
- Wildlife controller: matter-as-energy aware, budding with litter, engulfing with the new eligibility.
- Play summary: first-birth time, time to Adhesion, deaths by cause, energy share paid by matter, offers seen and chosen, mutations held per lineage.
- Mount
tuning/cellular-revamp.tuninginto the provision Job besidecellular.tuning(kustomizeconfigMapGenerator) in the push that promotes the new images. Revamp keys live in that separate file so images from before rules 13 never read them. - Opening
cellular-v10in a new DEV region; promote the images; full Argo sync. - Playtest.
Open items
| Item | Phase |
|---|---|
| Whole-organism mutations versus the locked "structural changes are expressed in offspring" requirement | 5 |
| What Emerge does before the 3D world exists | 5 |
Retuning bubble energy or founder energy_conversion (keep 40% vs today's 100%) |
2 |
Risks
| Risk | Mitigation |
|---|---|
| Many new genome fields exceed the 256-byte genome bound | Measure in phase 1; widen the bound in schema 7 if needed. |
| Matter-as-energy makes cells nearly unkillable by starvation | Burn rates and drip rate are tunable; instrument the matter share of energy paid. |
| 49 triggers add per-tick work | Counters are integer and per cell; measure tick time in phase 6. |
| Control transfer across retries duplicates or loses control | Durable action receipts, as for existing births. |
| One deploy at the end hides integration problems | Every phase ships its client half and runs end to end in local tests. |