# ADR-0127: Cellular permadeath and restart ## Status Accepted engineering contract for M11.6 (2026-10-14). Implements the absolute permadeath requirement (PROJECT_VISION, ADR-0098) for cellular regions. ## Context A cellular life dies by starvation or engulfment inside a replayed tick; the owner removes it, records its death in the archive and keeps a corpse (ADR-0107, ADR-0124). Nothing durable outside the checkpoint said the life had ended. Schema v15 allowed one unrefused reservation per account (`one_reserved_life_per_account`), and `primitive_life_bindings` held one published life per account, so a player whose cell died could never start again: every new request was refused as `existing_life`. In the M11.3 probe this showed up as players making a new account after each death. ## Decision ### Death is terminal - The owner never revives a life: recovery replays committed history, and a dead identity can never appear again in a checkpoint (unique life identities, archive death records, corpse retention). - Corpses keep their records, and the archive keeps the organism's death; the dead life's descendants (ADR-0125) are unaffected. ### Ending a life durably (schema v37) - `life_reservations.ended_commit` marks a published life ended, once, by a commit of the region that holds it. A trigger refuses changing or clearing it, or setting it on an unpublished or refused reservation. - `end_cellular_lives(world, region, holder, epoch, commit, identities)` is the lease-fenced runtime call. It accepts at most 256 identities, ignores identities that were never reserved (opening founders), treats repeats as no-ops, and refuses a life of another region or a commit outside the region. - The region host records endings right after the publication in which an owned life disappeared, before the next session poll. On recovery it records every founder corpse again, so an ending lost to a crash is restored. Failures are retried on later steps and never block publication. ### Restart - "One active life per account" replaces "one life per account": the unique index becomes `one_active_life_per_account` (`rejection = 0 AND ended_commit IS NULL`), the per-account uniqueness of published bindings is dropped, and `reserve_primitive_life`, `primitive_life_owner` and the cellular birth publisher consider only active lives. - The next life is an ordinary new request: a primitive founder at a nursery site with a new identity (ADR-0100). It inherits nothing from the dead life. - While a life is active, a new request is still a permanent `existing_life` refusal for that request id. ### Old sessions - A carried action whose account has no living life, or that names a patch the life cannot perceive, is refused on its own (`not_committed`); it no longer refuses the whole tick for every player. ## Alternatives - **Bind deaths inside the publication call:** rejected for now. The SQL cannot replay the trace, so the death list would be the writer's claim either way; a separate fenced call keeps publication unchanged and is idempotent. - **Let any reservation start a new life:** rejected. Two concurrent lives for one account would break control and routing. ## Consequences Players can die and start again with the same account; history, corpses and descendants remain. The death screen and restart flow in the client are the maintainer's (client UI is deferred).