# ADR-0128: Cellular offline freeze, linger and resume ## Status Accepted engineering contract for M11.7 (2026-10-14), implementing ADR-0098 decisions 4 and 5. Linger time and resume radius are **trial** values for 11.9. ## Context A cellular region simulates while any player is present (M11.3). A player who disconnects leaves an owned cell that keeps paying maintenance, and can starve or be eaten, while others keep the region ticking: offline progress, which ADR-0098 forbids. ADR-0098 decides the boundary: on logout or a detected disconnect the organism freezes at once, lingers perceivable and vulnerable for a tunable time (starting at 10 s), then is suspended out of the world; a reconnect during the linger resumes in place, and a later resume uses the same spot or the nearest valid one within a small radius, else the life stays suspended. ## Decision ### The frozen intention - `CellularStepIntent::frozen` (trace intent byte 13, bit 0) says the life does nothing this tick. It is exclusive with movement, a target, engulfment and a bud. Only owned lives may be frozen; wildlife never is. - The server sets it for every owned life whose account holds no established session, so the trace records the boundary and replay never consults sessions. Carried actions of such an account are refused before the tick is built. - The region step leaves a frozen cell exactly unchanged: no maintenance, movement, intake, growth or heat. It cannot engulf, but it can be engulfed, and it occupies space for contact and placement. ### Presence (owner format 6, rules 5) Each life has a presence and the tick its freeze began: - **Active**: ordinary. A frozen intent makes it **lingering** from that tick. - **Lingering**: frozen in place, perceivable and vulnerable. An unfrozen intent (the player is back) makes it active again in place. After 200 ticks (10 s, trial) of linger it becomes **suspended** at the end of that tick. - **Suspended**: out of the world. It keeps its inventory (counted in the region's conserved totals) but takes no part in the step, perception, replication, contact or placement, and may hold any intent value only as `frozen`. An unfrozen intent resumes it: at its own position if that is clear of every cell in the world, else at the first clear spot found by trying the eight fixed directions at one, two and three of its own extents from that position (trial radius). With none clear it stays suspended and the tick reports `resume_blocked`. - Wildlife is always active. A death decided in a tick is committed before a presence change in that tick; a dead life never resumes. A mutation choice reserved before the freeze still publishes at its tick (it was decided before the boundary); the host admits no choice for a life that is not active. ### Server loop - The region also ticks while any owned life is lingering, so a linger always completes and nobody farms safety by leaving others' region empty. - Suspended lives are skipped by replication and perception. ### Versions - Owner format 6 adds presence (u8, 7 zero bytes) and the freeze tick (u64) to each life record; rules 5 are rules 4 plus presence. Openings: `cellular-v4`. - Version bundle v6 (`{5,6,1,1,1,2,1,2,1}`), normalized like v4 and v5 by schema v38, which also admits it for format-3 birth traces. The trace format is unchanged: the flag lives in a byte SQL does not parse. ## Alternatives - **Remove a suspended life from the owner state:** rejected. A separate list would need a new trace record for resumes and a second recovery path; keeping it in the life set with a presence costs 24 trace bytes per tick per suspended life and keeps one closure. - **Let sessions drive presence directly in the owner:** rejected; replay must not depend on live sessions. ## Consequences Logging out is neither an escape nor a farm: the cell freezes, can still be eaten for 10 seconds, then leaves the world without aging. Wildlife keeps living while a region ticks. A region with only suspended players stops ticking, as before.