Repository navigation
Add the engine production roadmap and determinism gate - #208
Conversation
Audit of the 133-package workspace at a3fe3ec: completeness, benchmarks, security gaps outside PR #207, modding, CI, and a replay-hash determinism bar for every workstream. Local test run of the AI, foundation, physics, and veilweaver suites is recorded in the doc (6676 passed, 14 failed). Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Note
Copilot was unable to run its full agentic suite in this review.
Copilot review overview
3 open findings
*-latestrunner labels can change OS version / hardware / architecture over time, which… · New The tables throughout the doc start with||which GitHub-flavored Markdown typically renders as… · New Hard-coding a top-level date tends to go stale quickly, especially for a living roadmap, and you… · New
What changed in this PR
Adds a comprehensive “Engine Production Roadmap” document that defines a determinism merge gate and breaks the remaining production work into parallelizable workstreams.
Changes:
- Introduces determinism rules, canonical state encoding requirements, and a proposed cross-OS replay-hash CI gate
- Audits current engine state across crates (completeness, determinism risks, CI stability) with concrete evidence
- Defines phased workstreams (D0–D4, AI, save, net, modding, stability, perf) with acceptance criteria and conflict map
| File | Description |
|---|---|
| docs/current/ENGINE_PRODUCTION_ROADMAP.md | New roadmap describing determinism requirements, CI gating plan, current audit findings, and phased workstreams |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
||
| New workflow `.github/workflows/determinism-replay.yml`, on pull requests and on pushes to `main`. It becomes a required check. | ||
|
|
||
| **Job `hash`** (matrix: `ubuntu-latest`, `windows-latest`, `macos-latest`): |
| | Case | What it runs | Required when | | ||
| |---|---|---| | ||
| | `planner_pure` | Hand-built `WorldSnapshot` → `RuleOrchestrator::propose_plan` and `GoapOrchestrator::propose_plan`, full `PlanIntent` bytes | WS-D0 merges (this case is already pure; see `astraweave-ai/tests/a2_wired_path_determinism.rs`) | | ||
| | `perception_world` | Legacy `World` built through `spawn`, then `enemies_of` + `build_snapshot` + `propose_plan`, 100 fixed ticks | WS-D1 merges. Until then the case is reported and the compare job records the mismatch. It is not a silent skip. | | ||
| | `physics_bodies` | `PhysicsWorld::step` for a seeded fixture, body translations as `to_bits` | WS-D3 merges | | ||
| | `gameplay_rng` | harvesting + crafting through the seeded APIs only | WS-D2 merges | |
| **Status**: audit + phased workstreams. No engine code changes in the audit commit. | ||
| **HEAD audited**: `a3fe3ecd` (`main`, 2026-08-05). Workspace: 133 packages (`cargo metadata --no-deps`). | ||
| **Audience**: agents who will implement one workstream each, in parallel. | ||
| **Date**: 2026-10-14. |


Description
Audit of the whole workspace at
a3fe3ecd(133 packages) and a phased roadmap of independent workstreams. The only change isdocs/current/ENGINE_PRODUCTION_ROADMAP.md. No engine code.The Aravath greybox is treated as a proof, not the finish line. Every workstream has a determinism acceptance gate: SHA-256 of a canonical tick encoding, compared across Linux, Windows, and macOS. The proposed workflow is
.github/workflows/determinism-replay.yml(specified, not added in this PR).PR #207 (
cursor/aravath-security) already hardensaw-save, the dependency audit, and the Windows build. Those files are out of scope here.Type of change
Security Considerations
What the audit found
RuleOrchestratoris pure given a hand-built snapshot (a2_wired_path_determinism: 1 passed). The wired plugin builds that snapshot fromHashMapiteration (enemies_of/all_of_team) and returns after one companion.async-physicsand compare with a0.0001epsilon. Defaultcargo testran that file as 0 tests.rand::randomandSystemTimestill seed gameplay, weaving particles, andSolver::new.Local tests
cargo test(default features,--no-fail-fast) ofastraweave-ecs,astraweave-core,astraweave-ai,astraweave-behavior,astraweave-director,astraweave-llm,astraweave-physics, andveilweaver_slice_runtime:astraweave-ai/tests/ecs_integration_tests.rs(12 passed in that binary).test_multi_agent_100_agentsobserved 72 of 100 plans.Workstreams
Phase A (the tick as a pure function): WS-D0 replay-hash CI, WS-D1 ordered perception, WS-D2 seeded RNG and clocks, WS-D3 physics bit-stability, WS-D4 LLM outside the tick.
Phase B: WS-AI-1 one planner, WS-AI-2 wire-or-relabel dormant AI, WS-IN input, WS-SAVE replay, WS-MOD sandbox, WS-WORLD editor play.
Phase C: WS-NET ordered inputs, WS-SEC bounds, WS-ASSET cook, WS-PRESENT off the hash.
Phase D: WS-PERF after hashes are stable, WS-STAB debug CI.
Conflict with
cursor/aravath-greybox-b3deis high forastraweave-physics/src/lib.rs,astraweave-render(renderer.rs, god rays, volumetric fog and shaders),astraweave-camera, andastraweave-terrain/src/meshing.rs. Other streams stay off those files.Checklist