Freeze offline cells, linger, suspend and resume them
Foundation / checks (ecs) (push) Successful in 2m15s
Foundation / checks (deploy) (push) Successful in 3m53s
Foundation / checks (tsan) (push) Successful in 9m46s
Foundation / checks (client) (push) Failing after 13m47s
Foundation / checks (network) (push) Successful in 19m5s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 19m34s
Foundation / checks (postgres) (push) Canceled after 19m28s

M11.7 (ADR-0128): a frozen step intent, set by the server for every owned life
whose account holds no session, leaves the cell unchanged but engulfable. Owner
format 6 / rules 5 track presence: lingering for 200 ticks, then suspended out of
the world without aging; an unfrozen intent resumes it in place or at the nearest
clear spot within three extents. Bundle v6, schema v38 and the cellular-v4
opening carry it. The server refuses an offline account's carried actions, ticks
while anyone lingers, and skips suspended cells in replication and perception.

Also fixes the TSan failure of CI run 374: the rules-4 owner test read the bud
through a reference into a replaced state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-14 07:50:45 -04:00
co-authored by Claude Opus 5.5
parent e71147f7a6
commit e74bdf286b
25 changed files with 741 additions and 69 deletions
+28
View File
@@ -0,0 +1,28 @@
# M11.7: Freeze offline organisms and resume uniquely
An offline player's cell freezes at once, lingers perceivable and vulnerable for
a trial 10 s, then leaves the world without aging until the player returns. The
engineering contract is
[ADR-0128](../adr/0128-cellular-offline-freeze-and-resume.md); the game rules are
ADR-0098 decisions 4 and 5. Client presentation is the maintainer's.
## Segments
| Segment | Affected modules | Acceptance evidence |
|---|---|---|
| 11.7a: frozen intention and presence | Region step, owner format 6 / rules 5, trace flag, bundle v6, schema v38, `cellular-v4` opening | A frozen cell pays nothing and stays put; linger returns to active; 200 frozen ticks suspend without aging; a suspended cell takes no step; exact restore; a stale lingering presence is refused; resume in place or within three extents; frozen intents only in rules 5, only for owned lives, carrying nothing else |
| 11.7b: server boundary | Server tick build, bridge, host | Owned lives without a session are frozen in the trace; their carried actions are refused; the region ticks while anyone lingers; suspended cells are not replicated or perceived; no mutation choice for a non-active life |
## Required checks
- Long offline intervals, repeated disconnects, death at the freeze boundary
(engulfed while lingering), duplicate resume, and wildlife continuing.
- Linux CI PostgreSQL evidence for the v6 bundle and `cellular-v4` provisioning.
## Progress
- 2026-10-14: 11.7a and 11.7b implemented. `rules_five_owner_freezes_lingers_suspends_and_resumes`
covers freeze, linger, return, suspension without aging, restore, the stale
presence refusal, a newborn on the suspended cell's spot and the relocated
resume; the trace round-trips the flag and refuses other flag values; rules 4
refuse a frozen intent; `cellular-v4` provisions on the v6 bundle.
+22
View File
@@ -7423,3 +7423,25 @@ compares the recovered state.
Executed locally: `postgres-check.sh --full` (WSL g++-14 Release, 488 s) passes; g++-14
`-Werror -Wshadow` and clang-tidy-19 on the host, lease store, tests and server
main; clang-format 19.1.5.
## 2026-10-14 — M11.7 offline freeze, linger and resume (CI pending)
ADR-0128: the frozen step intent (trace intent byte 13, bit 0), owner format 6 /
rules 5 presence (active, lingering for 200 ticks, suspended) with resume in place
or within three extents, bundle v6, schema v38 and the `cellular-v4` opening. The
cellular server freezes owned lives whose account holds no session, refuses their
carried actions, keeps ticking while anyone lingers, and skips suspended cells in
replication and perception; the host refuses mutation choices for non-active lives.
Executed locally: `postgres-check.sh --full` (WSL g++-14 Release, 492 s) passes with
schema v38; MSVC Debug 69/69, ASan cellular/budding/mutation/lineage 10/10, network
75/75, client-network 89/89; g++-14
`-Werror -Wshadow` and clang-tidy-19 on the owner, region step, trace codec, host,
persistence, provisioner, tests and server main; clang-format 19.1.5.
## 2026-10-14 — CI run 374 TSan failure (test-only use after free)
Run 374 (e71147f) failed `checks (tsan)`: `cellular-lives-owner` read the bud
through a reference into the owner's previous state after the M11.5d controller
check advanced a tick. The test now reads the current life. ASan locally confirms
the fix; no product code was involved.