Files

3.5 KiB

Review the serial reference and replay checkpoint

Task ID: M01-V1 Role: astra_reviewer Status: READY

1. Context and baseline

Game root /home/faumaray/Projects/stoneheart_at_home on milestone/m01-authoritative-simulation, parent 904bdf8. User asks that reviewed milestone/system work be committed and pushed. Initial M01 tranche only. Pre-existing untracked .serena and older task files are outside the diff.

2. Objective and deliverables

Review the actual integrated M01-C/T source and tests; give an independent defect-oriented verdict on this checkpoint before push.

3. Scope and non-goals

Audit constructor/load mode, all worker dispatch paths, exact-state comparison, normal suite/CLI callers and documentation plus boundary to future work. Work on later M01 packages is planned separately.

4. Files to inspect

Read git diff 904bdf8 and NEW tests/replay_tests.cpp, docs/agent-workflow/tasks/M01-{C,T}.md, README and M01 plan. Check world.hpp/world.cpp/world_save.cpp, CMakeLists.txt, test_main.cpp, existing core and LAN suites against the frozen contract.

5. Write ownership and coordination

Write scope: none Do not change any shared checkout files or branches. No children, push or external writes.

6. Implementation or investigation approach

Inspect actual worker lifetime, order, exception handling changes since baseline, empty/paused/one-resident cases, mode validation and save ingress. Review each new case for effective contention, warmed-cache checkpoint and positive useful progress. Check mode-specific reporting, new API compatibility and CMake discovery.

7. Interfaces and data contracts

Parallel rejects 0,1,65+ and serial admits only 1 logical lane, with zero pool threads. Preserve save13/LAN11, existing commands and parallel results. Full M01 authority/async saves belong to later packages.

8. Dependencies and integration

M01-C/T complete. Root observed an independent original-ABI Windows probe vs candidate serial/2/6/12, 365 attempts (361 ticks, 5 meals), 738386 bytes of saves and receipts identical bytewise. Five replay tests pass under Wine. Full CTest and build on integrated state in /tmp/stoneheart-milestones.xprJ2SVp/windows; logs m01-first-build.log and m01-first-ctest.log.

9. Edge cases security and performance

Check directional reference equivalence when candidates all target same work and routes retry, stable movement/jobs state and flag any newly widened lifetime risk. Native Windows/GPU remains outstanding. Do not waive failed assertions.

10. Acceptance criteria

  1. Return verdict on first M01 execution tranche. 2. Concrete severity, affected callers, reproduction for bugs and proposed fix. 3. Report untested risks and distinguish them from observed regressions.

11. Verification commands and evidence

From game root git diff 904bdf8 --stat; git diff --cached --check; source /tmp/stoneheart-verify.KoZwE4o8/env.sh for any targeted read-only testing. Review /tmp/stoneheart-milestones.xprJ2SVp/{replay-tests,m01-first-ctest}.log and actual new file. Do not start a competing build.

12. Constraints and stop conditions

Read-only. No docs or fixes, no commit/push. Return bounded findings promptly so root can integrate and continue the active goal.

13. Authorization and decisions

User authorizes implementing, committing and pushing each milestone/system. This review covers the first M01 tranche and does not declare the milestone complete.

14. Return format

Return M01-V1 READY/CHANGES_REQUIRED/INSUFFICIENT_EVIDENCE, findings by severity/location, observed checks, unrun checks and remaining milestones.