Files
aevolution/schemas/network/session-v14-cellular-revamp.md
T
dingoandClaude Opus 5.5 15b4342934
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m23s
Foundation / postgres-tools (push) Successful in 21s
Foundation / server-image (push) Successful in 4m18s
Foundation / image (push) Successful in 4m56s
feat(cellular): show what holds growth back and each nutrient's flows
Playtest: phosphorus jumped between ~100 fg and a few pg because growth spends
it as it arrives and only pauses when another nutrient runs short. The owner
now records, per owned life and tick, which channel narrowed the growth step
(or no room) and what the tick collected, built into the body and burned;
session v14 carries them (flag bits 2-4 and a 120-byte flows block).

The client shows "Growing 62% - waiting for phosphorus" or "Fully grown",
outlines the limiting nutrient's bar in amber, and gives each bar (and the
energy figure) a tooltip with the last second's flows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:48:37 -04:00

2.6 KiB

Session v14: the cellular revamp

Authority: ADR-0179. v14 is v13 with the rules-13 revamp; every other message and rule is v13's. Older versions keep their exact layouts and never see a v14 field.

Perception. The v13 prefix is followed by a 64-byte body block:

Bytes Field
2 Members: cells in the organism (1 for a single cell; at least 1 with a life)
2 Emergence threshold in members (0 below rules 13)
1 Matter channels kept from burning this tick (bits 0-3: C, N, P, other)
1 Flags: bit 0 Emerge is open; bit 1 a mutation choice can split the cell now (single cell, grown to the region's split threshold); bits 2-4 what held this tick's growth step back (0 nothing, 1 energy, 2-5 C, N, P, other, 6 no room); bits 5-7 zero
2 Growth per thousand of full size (0-1,000)
8 Payable energy (pJ): the reserve's energy plus what its burnable matter stands in for
8 Total mass (fg): body and reserve matter
2 each The 20 heritable body traits in biology::CellularTraits order: density, upkeep efficiency, growth speed, collection (E, C, N, P, O), burn (C, N, P, O), engulf capacity, kill absorption, litter, recipe (C, N, P, O), adhesion

It is followed by a 120-byte flows block: the tick's amounts by channel (energy, C, N, P, other; u64 each) collected from food, built into the body by growth, and burned in place of energy (matter only; the energy entry is zero).

Without an owner life every field is zero.

Cellular action. Byte 37 (the v13 flags) adds bit 1 become (only with a bud: the player continues as the bud) and bit 2 emerge (only with no target). Byte 38 is the exclusion mask (0-15). The canonical 24-byte action input stores them as byte 13 bits 1-2 and byte 14 (schema 60).

Mutation choice. Byte 58 is become (0 or 1): continue as the offspring the choice splits off. A decline never becomes. The durable reservation input stores it as bit 15 of the operator field (schema 60).

Mutation offer. A rules-13 region offers named catalog mutations in the v10 candidate layout: the operator field is the catalog id, the parameter its chance of appearing in parts per million, capability, effect, maintenance and mass zero, and the cost its tuned cost. The client names it, and shows its pro and con, from the shared catalog (biology::cellular_mutation). Catalog offers go only to v14 sessions and operator offers only to v10-v13 sessions.

Life ended. Cause 3 is emerged: the organism left the region for the world, and this cellular life is complete. Earlier versions read it as unrecorded.