49 lines
3.8 KiB
Markdown
49 lines
3.8 KiB
Markdown
# Map the authoritative runtime and dependent system branches
|
|
|
|
Task ID: M01-P2
|
|
Role: astra_planner
|
|
Status: READY
|
|
|
|
## 1. Context and baseline
|
|
Game root /home/faumaray/Projects/stoneheart_at_home, milestone/m01-authoritative-simulation at M00 904bdf8, M01-C/T in progress. User extended the goal to the full plan with commits, pushes and separate milestone/system branches. Pin 7b0fea6, Windows GCC16.
|
|
|
|
## 2. Objective and deliverables
|
|
Design the next integrated M01 implementation after the deterministic reference. Give concrete separable packages, frozen APIs, branch order and runnable acceptance for S01, S15, S16, S19 and the viewer.
|
|
|
|
## 3. Scope and non-goals
|
|
Read-only plan for M01 and prospective compatibility seam for M02. No new product discovery; the approved roadmap controls. Do not replan existing serial/replay task.
|
|
|
|
## 4. Files to inspect
|
|
Inspect PLAN.md, M01/M02, S01/S15/S16/S19 and S04/S06 contracts, world.hpp/world.cpp/world_save.cpp, app/viewer_win32.cpp, app/lan_session.hpp and _win32.cpp, CMakeLists.txt and current tests incl LAN. Check actual world mutators, UI direct writes, reload/command cache hazard and exposed stores/indices.
|
|
|
|
## 5. Write ownership and coordination
|
|
Write scope: none
|
|
Shared checkout; root owns branches/builds. Do not modify files or activate a different project.
|
|
|
|
## 6. Implementation or investigation approach
|
|
Indicate exact integration for a single-owner fixed-tick runtime publishing immutable snapshots; atomic candidate load/epoch rejection; versioned, city-scoped idempotent command results/authentication; rules manifest dependency validation/fingerprints; permanent ID and custody path. Preserve old format13/protocol11 with an explicit compatibility boundary for existing programs. Propose deliverable slices which independently add executable tested features.
|
|
|
|
## 7. Interfaces and data contracts
|
|
Name specific NEW types and responsibilities separate from observed ones. Explain host identity, dedup key, conflicts with stale packets, pending versus committed epoch, queue bounds and failed save/load. Suggest a no-duplicate-serialization path, CPU cost/50ms budget and API for existing viewer reads.
|
|
|
|
## 8. Dependencies and integration
|
|
Researcher separately investigates Void/primitives. Root authorizes scope, owns CMake integration, cross-system compatibility and push. One branch per milestone or system package fits the added user direction. New worktrees may be used for independent systems.
|
|
|
|
## 9. Edge cases security and performance
|
|
Call out deadlocks, stale load/worker results, snapshot lifetime, partially applied ticks, time spent in rendering, current hardcoded two slots and generator/script state. Keep more ambitious M09 features on M09.
|
|
|
|
## 10. Acceptance criteria
|
|
1. Source-grounded M01 package graph and first precise interfaces usable for concurrent implementation. 2. Boundaries for each acceptance criterion including existing gameplay/legacy callers. 3. Concrete, short next package to dispatch plus integration strategy.
|
|
|
|
## 11. Verification commands and evidence
|
|
Use git status --short --branch, git diff 904bdf8 --stat; rg -n 'WM_TIMER|world->step|world->apply_command|read_save|write_save|lan.poll' app engine; use scoped graph with coverage/direct checks for cited source. Existing integrated check is CMake + CTest Windows on Wine. No remote writes.
|
|
|
|
## 12. Constraints and stop conditions
|
|
Send first independent work packages early when ready. Stop if evidence requires a product decision; keep useful read-only work going. Do not spawn.
|
|
|
|
## 13. Authorization and decisions
|
|
User explicitly requested the full plan, local commits, remote pushes and occasional status. This assignment is planning only.
|
|
|
|
## 14. Return format
|
|
Return M01-P2 READY/PARTIAL, package DAG, file boundaries and frozen API, behavior/risk/test matrix, what can ship first and which assumptions need owner confirmation.
|