feat(lifecycle): replay retained offspring plans with explicit trace version
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 12m39s
Foundation / checks (client) (push) Canceled after 12m44s
Foundation / checks (checks) (push) Canceled after 12m48s
Foundation / checks (tsan) (push) Canceled after 10m18s
Foundation / checks (postgres) (push) Canceled after 12m44s

This commit is contained in:
dingo
2026-10-19 14:04:52 -04:00
parent 2c3a3c65a6
commit c0c66fa11a
15 changed files with 673 additions and 35 deletions
+3 -1
View File
@@ -17,7 +17,9 @@ evidence does not close that gap or establish the intended generational gameplay
pure biological funding step with distinct parent/offspring genomes and exact
closure. [ADR-0165](../adr/0165-retained-cellular-offspring-plans.md) adds portable
retained plans and earned selections, unchanged expressed parents and repeated
funded births. Existing same-genome behavior remains. Durable plan/trace/bundle,
funded births. [ADR-0166](../adr/0166-retained-plan-replay-traces.md) adds portable
raw trace-4 replay, action matching and exact process restart. Existing same-genome
behavior remains. Durable plan/trace/bundle,
population/migration/census admission, the in-life expression catalog, authority
handoff and NPC/UI integration are still required.
+58
View File
@@ -1,5 +1,63 @@
# Validation report
## 2026-10-19 - Portable retained-plan trace replay
[ADR-0166](../adr/0166-retained-plan-replay-traces.md) adds explicit raw trace 4
for owner format 8/rules 10. The trace-3 default and successful old canonical
bytes/biology remain unchanged. Codec and in-memory replay enforce versioned
payload shapes; both action matchers enforce owner/trace compatibility and
mutation matching uses the inherited plan. Replay now publishes its outcome
vector only after the complete candidate succeeds, including for older traces.
Decode also checks cross-tick identity/account uniqueness already required by
the encoder. No SQL or durable version admission changed.
Executed locally:
- MSVC 19.44 Release full CTest **87/87 passed, 23.95 s**, with NDEBUG.
- GCC 14.2 Release full CTest **87/87 passed, 16.98 s**, with NDEBUG.
- Clang 19.1 Debug new replay and actual process-restart tests **2/2 passed,
0.96 s**, built with clang-tidy 19 enabled. Changed implementation and tests
compiled under analysis; repository clang-format 19 and diff checks pass.
- Clang 19.1 ASan/UBSan legacy cellular owner, retained plans, new replay and
actual replay process restart **4/4 passed, 44.64 s**, without reports.
- Optional GCC persistence library and cellular session adapter rebuilt; the
session adapter contract passed **1/1, 0.14 s**. No private PostgreSQL runtime
suite was rerun; durable bundle and SQL admission are unchanged.
The new contract compares 64 directly executed ticks to encoded/decoded replay,
including an earned structural selection and real funded offspring in its first
tick, then active offspring while the parent freezes. Later selections match
standing offers whose inherited genome differs from the expressed body; decline
does not admit a genome. It covers action account/life/event/tick/operator/input
mismatches, missing actions, both owner/trace mismatch directions, malformed
counts/reserved bytes/versions, truncation, trailing bytes and stale selections.
A canonically valid trace with an incorrect second-tick living set fails after
a successful selection prefix, leaving the predecessor unchanged and the output
outcome list empty. Two ordinary allocator births reproduce through trace 4;
cross-tick reserved-identity reuse refuses during decode.
The same-tick fixture initially requested birth before enough reserve had been
acquired. It now retains the earned offer, feeds from the unchanged finite
habitat, and waits for a genuine funded birth proposal; no free resources or
biology changes were added. Initial analysis also caught a test optional access;
an explicit runtime guard fixes it. All checks above ran after those corrections.
The process test saves a predecessor with an inherited plan different from its
body, a trace selecting a later plan and the direct expected final owner. A fresh
process restores that predecessor and replays the trace, checking its derived
selection result and complete final bytes. MSVC and GCC expected checkpoints
share SHA-256
`7d6091c4460e0ebcf57e0b0557c7c97a16561c941a83389068db73651e7e758a`.
This is deterministic replay evidence, not durable publication, account authority
or NPC behavior continuity. Existing SQL bundles/results, population traces,
census and migration remain unadmitted for owner 8/rules 10. No private database,
target-host, TSan, actual-days, client/UI or M12 completion evidence is claimed.
The refreshed DEV window expires **2026-10-19 22:04:17 UTC**. Rendered deployment
policy passes: 75 objects in 74 files, 138 rendered objects in 17 overlays, zero
failures. The unchanged policy self-test matrix was not repeated. No deployment
or World0 operation occurred; unrelated untracked work was preserved.
## 2026-10-19 - Portable retained cellular offspring plans
[ADR-0165](../adr/0165-retained-cellular-offspring-plans.md) adds opt-in owner