Files
stoneheart_at_home/docs/agent-workflow/tasks/M01-R.md
T

49 lines
3.3 KiB
Markdown

# Verify library reuse for the first deterministic replay slice
Task ID: M01-R
Role: astra_researcher
Status: READY
## 1. Context and baseline
Game root /home/faumaray/Projects/stoneheart_at_home, milestone/m00-inventory at 0deacb3. Prototype integration is 083b84e. Pin is 7b0fea6095f603f9e1904f66dfdc7752f4be4792. Pre-existing untracked .serena/ and workflow records.
## 2. Objective and deliverables
Resolve what the first M01 serial-reference/per-tick replay slice can reuse from Void, with exact upstream source/tests/Windows limitations and any genuinely missing generic contract.
## 3. Scope and non-goals
Read-only Verify. Investigate deterministic executor/reference, batching, test/replay and canonical bytes for the existing prototype. No change or new issue in this assignment.
## 4. Files to inspect
Inspect CMakeLists.txt, docs/plan/void-library.md, docs/plan/milestones/M01.md, engine/include/settlement/core/worker_pool.hpp, engine/src/worker_pool.cpp, world.cpp, world_save.cpp, tests/core_tests.cpp and the exact pin in the matching Void repository.
## 5. Write ownership and coordination
Write scope: none
Shared checkout. Root owns Git, network writes and integration.
## 6. Implementation or investigation approach
Identify and verify the actual pin and current published revision read-only. Check applicable public headers, implementations and upstream tests, including inline executor behavior, Windows dependencies and state/ordering semantics. Look up matching existing upstream issues only as needed. Use configured repo interfaces or exact git objects, no unrelated repos/credentials.
## 7. Interfaces and data contracts
Preserve old save 13 and LAN 11. Separate a game-owned reference mode or test fixture using upstream primitives from a new generic capability needing an issue. Do not prescribe an incompatible executor or assume replay tokens hash full world state.
## 8. Dependencies and integration
M00-P maps game seams. Root decides M01 scope and will link or register actual upstream gaps if a local generic capability is necessary.
## 9. Edge cases security and performance
Pay attention to partial thread start, bounded queues, zero/one-worker behavior, std::future semantics and differences from inline execution; avoid claiming untested Windows behavior.
## 10. Acceptance criteria
1. Return reuse decisions at pin with public/test evidence and actual target availability. 2. Identify alternate current upstream implementation or actual issue for gaps if relevant. 3. State runnable verification and untested contracts.
## 11. Verification commands and evidence
From game root git show HEAD:CMakeLists.txt. For matching upstream use git -C <confirmed-checkout> cat-file -e 7b0fea6095f603f9e1904f66dfdc7752f4be4792^{commit}, ls-tree and show exact header/test paths. Cite paths, commits and results. Network reads only.
## 12. Constraints and stop conditions
Stop when evidence is sufficient for the first slice. Do not fetch private data into public tools, modify deps, create issues, build a replacement library or change a branch.
## 13. Authorization and decisions
User approved milestone development and requires library-first analysis. This task is strictly evidence gathering.
## 14. Return format
Return M01-R status, decision table, exact source and tests, suggested scope/replacement checks, unknowns. Do not spawn further agents.