Skip to content

Add the engine production roadmap and determinism gate - #208

Merged
lazyxeon merged 1 commit into
mainfrom
cursor/engine-roadmap
Oct 14, 2026
Merged

lazyxeon merged 1 commit into
mainfrom
cursor/engine-roadmap

Conversation

@lazyxeon

Copy link
Copy Markdown
Owner

Description

Audit of the whole workspace at a3fe3ecd (133 packages) and a phased roadmap of independent workstreams. The only change is docs/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 hardens aw-save, the dependency audit, and the Windows build. Those files are out of scope here.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues? No new dependencies.
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized?
  • Does this PR change authentication or authorization mechanisms?
  • Does this PR access sensitive data or modify how it's stored?
  • Does this PR introduce new network communication or modify existing protocols?

What the audit found

  • The ECS schedule is single-threaded and registration-ordered. RuleOrchestrator is pure given a hand-built snapshot (a2_wired_path_determinism: 1 passed). The wired plugin builds that snapshot from HashMap iteration (enemies_of / all_of_team) and returns after one companion.
  • Physics determinism tests are behind async-physics and compare with a 0.0001 epsilon. Default cargo test ran that file as 0 tests.
  • Existing CI determinism jobs do not diff hashes across operating systems. Comprehensive CI on this HEAD (run 31058778151) fails debug tests on all three OS (audio device tests; macOS caustics golden) and fails clippy.
  • LLM, memory, RAG, coordination, NPC, scripting, and net-ecs are implemented and tested, and are not on the production tick. rand::random and SystemTime still seed gameplay, weaving particles, and Solver::new.

Local tests

cargo test (default features, --no-fail-fast) of astraweave-ecs, astraweave-core, astraweave-ai, astraweave-behavior, astraweave-director, astraweave-llm, astraweave-physics, and veilweaver_slice_runtime:

  • 6676 passed, 14 failed, 41 ignored, exit 101
  • The 14 failures are astraweave-ai/tests/ecs_integration_tests.rs (12 passed in that binary). test_multi_agent_100_agents observed 72 of 100 plans.
  • This is not a full workspace run. Render, terrain, editor, and audio were not re-executed locally.

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-b3de is high for astraweave-physics/src/lib.rs, astraweave-render (renderer.rs, god rays, volumetric fog and shaders), astraweave-camera, and astraweave-terrain/src/meshing.rs. Other streams stay off those files.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally
Open in Web Open in Cursor 

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>
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e225010f-2f4d-4845-8e32-11448bfeddb0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lazyxeon
lazyxeon marked this pull request as ready for review October 14, 2026 18:39
Copilot AI balanced review requested due to automatic review settings October 14, 2026 18:39
@lazyxeon
lazyxeon merged commit d3e24e0 into main Oct 14, 2026
65 of 86 checks passed
@lazyxeon
lazyxeon deleted the cursor/engine-roadmap branch October 14, 2026 18:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T18:41:33.876983Z de5832b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

3 open findings
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`):
Comment on lines +59 to +64
| 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants