Add cellular owner checkpoint codec
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Failing after 41s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Failing after 52s
Foundation / checks (tsan) (push) Failing after 31s
Foundation / checks (network) (push) Failing after 3m3s
Foundation / checks (client) (push) Failing after 4m26s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-10 22:37:47 -04:00
parent fdeff05ac2
commit 181b9aeec2
7 changed files with 565 additions and 72 deletions
+4 -3
View File
@@ -3,8 +3,9 @@
## Status
Accepted M11.3 engineering direction (2026-10-10). This is an additive format
contract; it does not change gameplay constants selected by ADR-0098. Profile
implementation, SQL validation and recovery fault tests remain incomplete.
contract; it does not change gameplay constants selected by ADR-0098. Snapshot
and restore implementation is in progress; SQL validation, durable tick
publication and recovery fault tests remain incomplete.
## Context
@@ -78,7 +79,7 @@ One verified object contains every biological owner affected by a tick, so the
existing fenced head publication can make the habitat transfer, life result,
corpse, heat and lineage visible together. The format is bounded and reuses
existing genome, archive and habitat validators. Each batch rewrites up to
8 MiB, and retaining corpses and lineage grows the payload; any later compaction
16 MiB, and retaining corpses and lineage grows the payload; any later compaction
requires a separate proof that historical identity and conservation remain
closed.
+8 -4
View File
@@ -76,9 +76,9 @@ implementation and resolve the contract first.
ADR-0108/0109/0110 and `schemas/cellular-lives-v1.md` define an additive profile-4
state closure with region-wide channel conservation and a realizable 16 MiB bound while preserving profile 3.
This is a contract only: codec/restore, SQL allowlisting, a cellular region owner
and crash-recovery evidence are still
required before the first hands-on cellular probe.
The in-memory cellular owner now has a bounded canonical snapshot/restore codec.
SQL allowlisting, durable tick publication, session execution and crash-recovery
evidence are still required before the first hands-on cellular probe.
## Delivery segments
@@ -157,7 +157,11 @@ scoped change before starting the next segment.
encoding, durable publication and online session execution remain open.
- 11.3d contract: ADR-0108/0109/0110 and `schemas/cellular-lives-v1.md` define a separate
profile-4 checkpoint closure for lives, habitat, corpses, heat and lineage.
No profile-4 code or durable tick publication is implemented yet.
- 11.3d-1: `CellularLives::snapshot/restore` now canonically encodes that complete
in-memory closure, verifies nested habitat and lineage, recomputes phenotype
and inventory invariants, and rejects malformed, wrong-identity, wrong-tick,
corrupt, unsupported and noncanonical state. Durable profile admission,
publication and recovery remain open.
## Exit boundary
+17
View File
@@ -6047,3 +6047,20 @@ idled without starting a compiler, so the focused target was compiled directly.
`clang-format` and `clang-tidy` are unavailable on this Windows PATH. Linux
sanitizer/CI, profile-4 codec/restore, durable publication and session wiring
remain pending.
## 2026-10-10 — M11.3d-1 cellular snapshot and restore (CI pending)
Added the bounded profile-4 owner snapshot/restore codec and its wire schema.
Restore verifies checkpoint identity and tick, outer and nested checksums,
canonical bytes, archive/live/dead closure, genome-derived phenotype/body,
habitat bounds, corpse retention and region-wide channel conservation. Tests
round-trip a populated state, continue original and restored owners tick for
tick through starvation, then restore the terminal corpse/heat/lineage state;
they also refuse identity/tick mismatch, checksum damage, unsupported versions
and an out-of-bounds position with a valid refreshed checksum.
Executed locally: warning-as-error MSVC 19.44 Debug and Release/NDEBUG direct
compile/run; Debug CTest `cellular-lives-owner` (1/1 passed); and
`git diff --check`. `clang-format` and `clang-tidy` are unavailable on the
Windows PATH. PostgreSQL profile admission, publication/recovery tests, Linux
sanitizers and CI remain pending; the codec is not yet durably playable.