# ADR-0123: Dev cellular region and life-allocator provisioning ## Status Accepted 2026-10-13 for the M11.3 cellular probe in evolution-dev, at the maintainer's direction. It changes DEV deployment and the owner provisioning tool only; no gameplay rule, protocol or runtime authority changes. ## Context The M11.3 probe (`docs/playtests/M11_3_CELLULAR_PROBE.md`) needs a cellular region in DEV. Bringing one up exposed four gaps: 1. **Region 100/1 cannot host the cellular profile.** It holds profile-3 lineage history; `evo-server --profile cellular` needs a cellular-v1 (profile-4) genesis. Resetting or rewriting region history is forbidden, and unnecessary, because regions are independent. 2. **The DEV schema was v11.** The store Jobs still pinned the 2026-10-05 postgres-tools image, so PostgreSQL refused the profile-4 genesis manifest (`cellular provision refused 5`, `PublicationError::rejected`). 3. **No life allocator existed for world 100.** `reserve_primitive_life` raises `life allocator not provisioned` (EVL04) without a `life_allocators` row. `schemas/life-reservations-v1.md` assigns that row to the owner after an audit, and nothing in Git created it. The server reported every first-life request as `unknown` and never ticked. 4. **Cellular grants are scoped and short.** Grants name their region, so region-1 bundles are refused with `wrong_scope`. The cellular bridge keeps the default 300-second grant ceiling and refuses `--m10-max-grant-lifetime`. ## Decision - **DEV serves region 100/2 with the cellular profile.** The single `evo-region` Deployment switches to region 2. Region 1's database rows and objects stay untouched and are no longer served. The base Deployment and provision Job take `REGION_PROFILE`, `REGION_LIFE_ROUTES`, `REGION_OPENING` and `REGION_OPENING_ARGS`. Their defaults keep stage on lineage with the development opening. For a single-region world, the life-route catalog is the region's own endpoint: `2=void.aeternalisgames.com:7400=void.aeternalisgames.com`. - **Trial opening (tunable, not a world rule).** The opening is: - a 10 x 10 mm arena at 293.15 K; - nursery funding for eight founders (8 x `primitive_endowment()`); - eight spawn sites; - four rich, three lean and one empty 1,000 µm patch; - a stable genesis commit `18ff2e1ab8cef4c9cd73d4cc6e322496`. It is written once, so changing it means a new region. - **DEV schema v33.** The store Jobs pin postgres-tools from Gitea run 350 (source `ae3b2b4`), the run that built the promoted DEV server image. - **The provisioner creates the life allocator.** The owner provisioning tool takes `evo-world-clone provision --life-allocator-start N`, accepted only with the primitive-v1 and cellular-v1 openings: - The run inserts `life_allocators(world, N)` once, before the genesis check, so an already provisioned region still gets the row. - A later run leaves the counter untouched and reports it; the counter only advances. - A run whose start is above an existing counter refuses with exit 4. There is still no runtime initializer or reset. - **DEV world 100 starts at 1,000,000,000,000.** The audited range required by life-reservations-v1 is satisfied by choosing a start far above every identity the DEV lineage run could have issued. That run was about 43,000 ticks, with lineage identities held in region-1 checkpoints rather than in SQL. Identities are 64-bit, so the gap is free. - **Cellular reprovisioning survives image promotions.** The genesis manifest records the build that wrote it, and every promotion changes `--build`, so the provision hook refused region 2 after the first promotion (`provision refused existing cellular region`, although the commit was unchanged). The check also could never have passed once the head moved past genesis. - At sequence 0, an existing cellular region is now matched exactly under its own recorded build, so a different commit or opening is still refused. - Past genesis, as for the lineage and primitive openings, a matching profile and frame identify it. - **The first playable run moved DEV to region 100/3.** Two findings forced it: - **Region 2's opening was energy-starved.** In this trial only a patch's energy channel feeds the reserve; matter is never converted. Founder intake is up to 1,148,000 pJ/s against 152,000 pJ/s maintenance, so the 4M and 16M pJ patches emptied in 3.5 and 14 seconds and the cell starved while feeding. - **Region 3 keeps the layout** with 200M pJ rich and 50M pJ lean patches, about 3 minutes and 45 seconds of full-rate feeding, under genesis commit `71e7a3f03c74613a6f55e72c77671f77`. Region 2 stays unserved. - **Cellular actions are admitted once per tick.** A cellular action carries one tick's movement and intake, and a tick without one is idle, so the client sends one every tick. The default probe admission (4 actions per 8-tick window) refused every other one. The cellular bridge allows two per tick of window, which leaves headroom for arrival jitter. - **A departed account's birth waits instead of fencing the region.** A second account requested a birth and disconnected. Its queued birth kept the host ticking, and the cellular publisher's `check_life_control` refused the batch with SQLSTATE EVL02. That is the same code as a lost region lease, so the host fenced itself, reacquired and failed again every 20 seconds, refusing logins (region 3, 2026-10-13 20:18 UTC). - The host now includes and ticks only births whose account holds a session. - Other births stay queued until the account returns. - Restarting the pod cleared the in-memory queue. The reservation is durable, and the client's query re-queues it. - **A refused life request no longer breaks the session.** The cellular host reports the reserved identity on a pending or refused request. `RegionSessions` forwarded it unchanged, and the codec rejects any identity or commit on a non-born outcome. The client closed with `protocol` and retried with the next grant until the account was rate-limited. The client picks a new birth request per launch, so every account that already had a cell was refused as `existing_life` and could not log in from a fresh launch. The session layer now sends the identity and commit only with `born`. - **Grants for region 3 must be minted with `--region 3 --lifetime 300` or less.** Longer probe sessions require a separate, reviewed change to the cellular grant ceiling; this ADR does not make it. ## Consequences - Any new primitive or cellular world must choose and record its allocator start in its provision Job. Stage and World0 do not use this flag until their own audited starts are decided. - DEV world 100 now mixes an unserved lineage region 1 and a cellular region 2. Returning DEV to lineage means reverting the overlay values. Region 1's history remains recoverable. - The 300-second grant ceiling caps each probe session at about five minutes, and a bundle expires five minutes after it is minted.