Files
aevolution/schemas/cellular-lives-v10.md
dingoandClaude Opus 5.5 af32af36ee
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m6s
Foundation / checks (deploy) (push) Successful in 5m41s
Foundation / postgres-tools (push) Successful in 1m33s
Foundation / image (push) Successful in 4m42s
Foundation / server-image (push) Successful in 4m55s
feat(cellular): random founder spawns, tunable thrust cost, commit timing
Playtest feedback on region 10.

Rules-12 founders now start at a seeded random spot anywhere in the region (1 mm
clear of the edges, clear of other cells; seeded by world, region and the life's
identity so replay is exact). The provisioned sites remain the fallback.

Thrust energy is tunable: founder.thrust_cost_per_mille scales the metabolic
full-speed movement cost for thrust and braking (trial 250, a quarter of today's
cost). It is part of the liquid rules declared when a region opens, persisted in
the format-10 block's reserved slot (zero stands for the original 1,000), so
existing regions keep their meaning.

The server logs every cellular commit slower than 50 ms (and one in 60) with its
tick count and duration, to find what stalls the loop once a second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 06:40:12 -04:00

1.8 KiB

Cellular owner format 10: liquid region

Authority: ADR-0178. Format 10 is exactly rules 12. It is format 9 with magic AEVCLV10, an 88-byte liquid block after the light block, 20 more bytes per life and a format-3 habitat; every other record, length rule and validation is format 9's.

Offset Bytes Field
356 8 Current seed
364 4 each Current width, height (the owner's area), grid pitch, minimum and maximum count, minimum and maximum route width (um), minimum and maximum speed (um/s)
400 4 each Founder handling per 50 ms tick: thrust (Q10 um/s), reverse thrust (Q10 um/s), forward drag (ppm), lateral drag (ppm), turn (heading units, at most 32,768)
420 4 each Deposit motion: drift radius (um), maximum drift (Q10 um/s), drift decay (ppm per tick), merged cap (at most 65,535), bubble radius (um)
440 4 Thrust cost per mille of the metabolic full-speed movement cost (1..10,000); 1,000 is written as zero
444 8 each Sorted spawn sites, then lives, corpses and the rest as in format 9

Each life record appends its motion state after the offspring genome: velocity relative to the liquid x and y (signed Q10 um/s, within +/- 1 m/s), heading (u16, 65,536 per turn), reserved u16 zero, and the sub-micrometre carry x and y (u32, below 1,024,000,000).

The habitat is format 3: format 2 deposits with induced drift, carry and a merged count (see evo/biology/cellular_habitat.hpp). Restore regenerates the current field from the block and refuses one that does not generate. Currents and the field are conditions, not stock: closure is format 9's.

Format 10 arises only from the explicit no-tick format-9/rules-11 liquid upgrade, which converts the habitat to format 3 (every deposit one merged bubble) and starts lives at rest.