Files
aevolution/docs/adr/0114-cellular-first-life-publication.md
T
dingo 140687da97
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / postgres-tools (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
Foundation / image (push) Successful in 5s
Document cellular profile-4 first-life contract
2026-10-10 23:51:34 -04:00

88 lines
4.9 KiB
Markdown

# ADR-0114: First player life in cellular profile 4
## Status
Proposed M11.3d contract; not yet accepted. No implementation or gameplay
constant is authorized by this proposal alone. It resolves the gap between the
empty profile-4 genesis and the 11.3e requirement that a player can enter the
cellular stage.
## Context
ADR-0100 requires owner-provisioned primitive genesis to start with no
organisms, and requires life, organism, genome, and event identities to come
from the durable world allocator. ADR-0108 gives cellular state its own
immutable profile and says profile-4 cloning is unsupported until identity and
source-total remapping are specified. `CellularLives::create` can wrap a
profile-3 opening in memory, but the existing owner provisioner creates only
profile-3 genesis and the cellular publisher accepts only profile-4 successors.
There is no supported transition that can turn a profile-3 life into a
profile-4 founder.
The early 11.3e probe requires a player to spawn, then perceive, steer, seek,
and feed. Directly putting a cell in profile-4 genesis would contradict the
empty-genesis rule and bypass the ordinary world-scoped identity allocator.
Copying a profile-3 checkpoint into profile 4 would violate profile immutability
and the unresolved clone remapping contract.
## Proposed decision
- Keep profile-4 genesis empty. Do not seed a founder, import profile-3 lives,
accept client-chosen identities, or infer an opening from defaults.
- Extend the existing reliable v5 new-life request to the profile-4 owner
without changing its wire encoding. The authenticated account and stable
request identity remain authoritative; the host obtains identity allocation,
control generation, finite nursery funding, and the first free provisioned
site from the existing server-side contracts.
- Add a canonical profile-4 birth record to the durable replay evidence. It
binds the predecessor checkpoint, authenticated account/request, allocated
identities, source debit, selected site, derived founder body/reserve, and
construction heat. The values are replay inputs/results, not client claims.
- Publish the birth record, account/life binding, immutable request outcome,
archive update, source debit, heat, and complete profile-4 checkpoint
atomically under the current region lease and account-control generation.
Failed funding, placement, allocation, stale control, or uncertain publication
must leave no acknowledged partial birth. Exact retries return the durable
original result; changed reuse is refused.
- Birth does not simulate elapsed time. The durable commit sequence advances;
biological tick advances only when a normal cellular tick is committed. If
the current publisher/schema cannot represent a same-tick birth commit, extend
its versioned trace and bounds rather than pretending the birth was a tick.
- Recovery replays the birth from its verified predecessor before replaying any
cellular ticks and compares the complete recovered state and action outcome.
The life remains frozen whenever its owner is disconnected, consistent with
the offline-fairness requirement.
- This contract enables the single-region 11.3e probe only. It does not claim
cross-region owner routing, resume, death/re-entry, reproduction, or completion
of M11.2. Those remain separately gated.
## Alternatives considered
- **Put a cell directly in profile-4 genesis:** rejected because genesis is
explicitly empty and this bypasses the durable allocator and birth operation.
- **Convert or clone a profile-3 checkpoint:** rejected because region profiles
are immutable and profile-4 cloning/remapping is explicitly unresolved.
- **Let the client supply IDs or a position:** rejected because identity
allocation and placement are server-owned.
- **Advance one simulation tick to record a birth:** rejected because a spawn
operation must not consume biological time or permit offline progression.
- **Add another wire layout for the same request:** not preferred; the accepted
v5 request already carries the authenticated account-scoped new-life
operation. A new layout is justified only if implementation finds a missing
semantic field that cannot be supplied by authoritative server state.
## Benefits and costs
The proposal preserves empty genesis, profile immutability, allocator ownership,
finite funding, and exact retry semantics while providing an ordinary player
entry path into the cellular owner. It requires a new canonical birth trace,
profile-4 same-tick publication semantics, server admission wiring, and
concurrent/restart tests before the 11.3e probe can run.
## Consequences
Until this proposal is accepted and implemented, `evo-world-clone` must not gain
a shortcut that creates a profile-4 founder, and the M11.3e gate is not
playable. After acceptance, the work belongs to the profile-4 owner/session
path; it must not change the headless simulation boundary or M10 probe behavior.