Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs: correct engine status against main at d6b07fc
The README and the status, build, and architecture pages it advertises
still described the June 2026 snapshot. Record 139 workspace members,
thirty traces, the ten required replay cases, and the systems that
landed with nav reroute, the Aravath bridge, security caps, the decision
inspector, causality, Rhai mods, destruction, and the slice QA replay.
Label greybox, weaving, traversal, local fluids, the frame budget, and
CI as in progress. State the 11 ms GTX 1660 Ti target as unmeasured.

Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
  • Loading branch information
cursoragent and lazyxeon committed Oct 16, 2026
commit d87945e332252f3e4b03c4344c443b6a30eaf447
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

## Project Overview

AstraWeave is a **scientific proof of concept**: a production-grade AI-native game engine built **iteratively by AI with zero human-written code**. It uses a deterministic ECS architecture where AI agents are first-class citizens. The workspace contains 133 crates (~51 production + examples + tools; `cargo metadata --no-deps` package count, verified 2026-07-19 after the director-ratified removal of `unified_showcase`). Rust toolchain is pinned at 1.89.0.
AstraWeave is a **scientific proof of concept**: an AI-native game engine built **iteratively by AI with zero human-written code**. It uses a deterministic ECS architecture where AI agents are first-class citizens. The player-facing game name is Aravath. The workspace contains 139 crates (`cargo metadata --no-deps` at `d6b07fc8`, 2026-10-16; 57 names start with `astraweave-`, 59 example manifests). The July 2026 note of 133 members is older. Rust toolchain is pinned at 1.89.0. Determinism replay requires ten cross-OS cases (`planner_pure`, `perception_world`, `gameplay_rng`, `fixed64`, `combat_resolve`, `destruction`, `gameplay_qa_aravath_slice`, `nav_reroute`, `causal_bridge`, `scripted_system`). Greybox #205, weaving #252, traversal #244, local fluid sim #253, render frame budget #216, and CI #217 are in progress and are not on this commit.

### Mandate

Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Thank you for your interest in helping advance the AstraWeave AI-Native Gaming E
## Getting Started

- Ensure you are using the pinned toolchain in `rust-toolchain.toml` (Rust 1.89.0).
- Determinism changes must keep the ten required replay cases identical across Linux, Windows, and macOS. The list is in `.github/workflows/determinism-replay.yml` and the repository README.
- Local LLMs propose. The deterministic simulation validates and executes.
- Player-facing text says Aravath. Assets added to the tree are CC0 only.
- Do not document greybox #205, weaving #252, traversal #244, local fluid sim #253, render frame budget #216, or CI #217 as shipped until they are on `main`.
- Install required native dependencies for `wgpu`, `rapier`, and `ffmpeg` (refer to platform notes in `docs/masters/MASTER_ROADMAP.md`).
- Clone the repository and run `cargo fetch` to prime the workspace.

Expand Down
440 changes: 117 additions & 323 deletions README.md

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions docs/QUICKSTART.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# 🚀 Advanced GOAP - Quick Start Guide
# Advanced GOAP tutorial

Get up and running with the Advanced GOAP system in **under 10 minutes**!
This file is not the engine install guide. Clone, toolchain, and run commands are in the repository [README](../README.md) and [build quick reference](guides/BUILD_QUICK_REFERENCE.md). Rust is pinned at **1.89.0**.

`AdvancedGOAP` and `GoalDefinition` exist behind the `planner_advanced` feature on `astraweave-ai`. That feature is not what a default `hello_companion` run enables. The types below are the feature-gated API, not the tick path that `nav_reroute` uses.

---

# Advanced GOAP - tutorial body

---

Expand All @@ -18,7 +24,7 @@ Get up and running with the Advanced GOAP system in **under 10 minutes**!
## Installation

### Prerequisites
- Rust 1.70+ installed
- Rust 1.89.0 (the pin in `rust-toolchain.toml`)
- AstraWeave engine cloned

### Enable Advanced GOAP
Expand Down
21 changes: 9 additions & 12 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# AstraWeave Documentation Index

> **Research-Grade Documentation Audit**
> **Last Updated**: January 1, 2026
> **Total Documentation**: 1,078 files • 15.5 MB • ~2.03 million words • 445,965 lines
> **Current engine status lives in the repository [README](../README.md)** (checked 2026-10-16 against `d6b07fc8`).
> The file counts, word counts, and "49 core crates" figure below are a **January 1, 2026 census**. They were not re-counted for this pass. Do not quote them as the live workspace size.

---

## 📊 Executive Summary

AstraWeave maintains **one of the most extensively documented codebases** for any open-source game engine project. This documentation corpus represents a comprehensive record of AI-assisted development, architectural decisions, performance optimizations, and project evolution.
This tree keeps a large documentation corpus: architecture traces, campaign notes, and a historical journey log. The January 2026 census below is a snapshot of that corpus, not a live inventory.

### Key Metrics at a Glance

Expand All @@ -25,16 +24,14 @@ AstraWeave maintains **one of the most extensively documented codebases** for an

## 🚀 Quick Start

**[→ QUICKSTART.md](QUICKSTART.md)** - Complete setup and first steps guide
Engine setup is the repository [README](../README.md) and the [build quick reference](guides/BUILD_QUICK_REFERENCE.md). [QUICKSTART.md](QUICKSTART.md) is the feature-gated advanced GOAP tutorial, not the install guide.

```bash
# Clone and build
git clone https://github.com/your-org/AstraWeave.git
git clone https://github.com/lazyxeon/AstraWeave.git
cd AstraWeave
cargo build --release

# Run example
cargo run --example simple_scene
rustup show
cargo build --release -p astraweave-core
cargo run -p hello_companion --release
```

---
Expand Down Expand Up @@ -94,7 +91,7 @@ The archive contains **485 files** (6.7 MB) preserving the development history.
| `archive/session_reports/` | 5 | Session summaries |
| `archive/remediation/` | 7 | Bug fix and remediation docs |
| `archive/gap_analysis/` | 6 | Coverage gap analyses |
| `archive/projects/veilweaver/` | 28 | Veilweaver game project |
| `archive/projects/veilweaver/` | 28 | Historical game-project notes (directory name kept) |
| `archive/projects/console/` | 1 | Console project docs |
| `archive/AI Engine/` | 1 | AI engine overview |
| `archive/benchmark_*` | 2 | Benchmark data/dashboard |
Expand Down
16 changes: 11 additions & 5 deletions docs/architecture/ARCHITECTURE_MAP.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# AstraWeave Architecture Map

> **Generated**: 2026-05-07 | **Last reconciled**: 2026-06-29 | **Version**: 0.7.4 | **Rust**: 1.89.0
> **Generated**: 2026-05-07 | **Last reconciled**: 2026-10-16 | **Version**: 0.8.0 | **Rust**: 1.89.0
> Living document — used by all agents as the primary architectural reference.
> **0.8.0 update (2026-10-16)**: Member count corrected 130 → **139** (`cargo metadata --no-deps` at `d6b07fc8`). Trace count is **30**, generated into `CLAUDE.md`; the §0 table below is the June 2026 index and is not the full set. Landed since that index, and not folded into every row: nav reroute (#251), `aravath_runtime` bridge agent (#263), security caps (#312), `aw_decision` (#287), `astraweave-causality` (#286), Rhai mod loader (#214), `astraweave-destruction` (#243), gameplay QA replay case (#280). Greybox #205, weaving #252, traversal #244, local fluid sim #253, render frame budget #216, and CI #217 are in progress and are not shipped. The 12,700-agent line in §0 is a CPU capacity estimate, not a measured full frame. Orchestrator LLM default is still `phi3:medium` when `OLLAMA_MODEL` is unset.
> **0.7.2 update (2026-06-10)**: Engine-health-audit reconciliation — workspace member count corrected 143 → **130** (root Cargo.toml members verified identical to `cargo metadata --no-deps`); `astraweave-camera` (Unified Camera C.2, `52b9e711c`, 2026-05-18) added to §1/§2.1 and to `astraweave-render`'s dep row; examples count corrected to 59; §0 editor/render trace rows updated for Multi-Tool Sub-phase 3/4 closeouts (SP5 in flight) and Render Parity P.1–P.7 closure.
> **0.7.1 update (2026-06-10)**: Net-Trio-Remediation reconciliation — the standalone-trio HMAC-vs-XOR signature mismatch is RESOLVED (canonical HMAC-SHA256 signing enforced end-to-end, kick-by-default). Updated the net_ecs subsystem row (§0), the known-issues silent-failure row (§4.3), the documentation-hazards row (§7.2), the §8.8 network data-flow diagram, and §14 open-question 17. See `net_ecs.md` §6/§7 and `docs/audits/net_trio_signature_remediation_findings_2026-06.md`.
> **0.7.0 update**: Reconciled against the 13 per-subsystem architecture traces under `docs/architecture/`. Every traced subsystem now linked at section level. Workspace-wide structural axioms (§7.7 wrapped-component resource identity, Fix-27 dual-pipeline lesson, silent-failure policy, "wired beats tested" taxonomy) crystallised into their own section. Dormant-code taxonomy and documentation-hazard inventory consolidated from per-trace evidence. **0.6.0 update (2026-05-07)**: Full cartography audit — impostor infrastructure catalogued, astraweave-alloc added, workspace count verified at 143 members, viewport module inventory updated, Regional Archetype Variation campaign status integrated.
Expand All @@ -27,16 +28,18 @@
| AI Pipeline (8 subsystem traces) | [`ai_pipeline.md`](ai_pipeline.md) | Active foundation — engine's first-class citizen. 12,700+ agents @ 60 FPS validated. **Two GOAP implementations**, **runtime LLM default still phi3:medium despite Qwen3 doc-comments**, hardening surface (~15K LoC) shelf-stocked but not in line, Memory/Coordination/RAG subsystems dormant |
| aw_editor (Visual Editor) | [`aw_editor.md`](aw_editor.md) | Mid-campaign. 216 `.rs` files / 224,584+ LoC; god-struct `EditorApp` (123 fields); §7.7 wrapped-component trap surfaced at 4 layers; Multi-Tool Sub-phases 3 (incl. Real-Fix.A–E) and 4 COMPLETE, Sub-phase 5 in flight (5.A/5.B landed 2026-06-06; 5.C closeout + Mediator Removal + SP6 pending) |

Traces added after the June index (file map is the trace; do not treat a missing row here as "unbuilt"): `asset.md`, `camera.md`, `causality.md`, `cinematics.md`, `combat.md`, `destruction.md`, `gameplay.md`, `nav.md`, `pcg.md`, `quests.md`, `scene.md`, `scripting.md`, `security.md`, `terrain.md`, `ui.md`, `water.md`, `weaving.md`. The generated table in `CLAUDE.md` is the membership list. `aw_trace_sync --check` owns that table.

The 5-prompt trace toolkit lives at `_meta/` (`ARCHITECTURE_TRACE_TEMPLATE.md`, `TRACE_PROMPT_TEMPLATE.md`, `TRACE_VERIFICATION_PROMPT_TEMPLATE.md`, `DEEP_TRACE_INVESTIGATION_TEMPLATE.md`, `SUBSYSTEM_TRACE_EXPANSION_PROMPT_TEMPLATE.md`).

---

## 1. Workspace Overview

- **Total workspace members**: 130 (root Cargo.toml members list, verified identical to `cargo metadata --no-deps` 2026-06-10; the prior 143 figure was a stale over-count)
- **Production crates**: ~51 (core engine infrastructure, incl. `astraweave-camera` added 2026-05-18)
- **Examples**: 59
- **Tools**: 12 (`aw_editor`, `aw_asset_cli`, `astraweave-assets`, `aw_debug`, `aw_build`, `aw_texture_gen`, `aw_headless`, `ollama_probe`, `asset_signing`, `aw_release`, `aw_demo_builder`, `aw_save_cli`)
- **Total workspace members**: 139 (`cargo metadata --no-deps` at `d6b07fc8`, 2026-10-16). The 130 figure is the 2026-06-10 snapshot. The earlier 143 figure was an over-count.
- **`astraweave-*` names**: 57. The old "~51 production crates" line was a judgment bucket, not a mechanical count, and is not restated as current.
- **Examples**: 59 (manifest path under `examples/`)
- **Tools**: the June list of 12 is incomplete for this tree (`aw_doc_lint`, `aw_trace_sync`, `aw_decision`, and `xtask` are members). This pass did not republish a closed tool roster.
- **Crates/** subdirectory**: 5 (`astraweave-blend`, `astraweave-alloc`, `astraweave-persistence-player`, `astract`, `astract/astract-macro`)
- **Networking sub-crates**: 3 (`aw-net-proto`, `aw-net-server`, `aw-net-client`)
- **Persistence**: `aw-save`, `aw_save_cli`, `astraweave-persistence-ecs`, `astraweave-persistence-player` (the last is a **disjoint** player-profile crate, not part of the ECS-world-save chain — see `persistence_ecs.md` §6)
Expand Down Expand Up @@ -952,6 +955,9 @@ These are decisional questions that cross subsystem boundaries or affect the bro

## Revision History

### v0.8.0 (2026-10-16)
Documentation-steward reconciliation against `d6b07fc8`. Header, §0 pointer, and §1 counts updated for 139 members and 30 traces. Landed systems since v0.7.4 are named in the header and are not rewritten into every June status cell. In-progress pulls #205, #252, #244, #253, #216, and #217 are labeled not shipped.

### v0.7.4 (2026-06-29)
D.2.B-Prop-Final miri-count propagation (doc-truth campaign): the §"Formally Verified" tier row corrected **Miri 977 → 1,059** (current count, per `CLAIMS_REGISTRY.md` `miri-tests` VERIFIED-AT-HEAD; supersedes the stale-low 977). Single factual sync; no other content changed.

Expand Down
28 changes: 25 additions & 3 deletions docs/campaigns/doc-truth/CLAIMS_REGISTRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ Status vocabulary: **VERIFIED-AT-HEAD** (re-checked this campaign at HEAD via th

### workspace-members
- metric: Workspace member count
- value: 130
- status: VERIFIED-AT-HEAD (2026-06-13, `cargo metadata --no-deps`)
- value: 139
- status: VERIFIED-AT-HEAD (2026-10-16, `cargo metadata --no-deps` at `d6b07fc8`)
- repro: `cargo metadata --no-deps --format-version 1 | jq '.packages | length'`
- hardware: n/a
- canonical_source: `cargo metadata --no-deps`
- referenced_by: README.md:52,129,274,289; CLAUDE.md:7,130; docs/architecture/ARCHITECTURE_MAP.md:36; docs/current/CLAUDE_MD_HARDENING_PROPOSAL.md:237; docs/README.md:21,411; docs/current/IMPLEMENTATION_PLANS_INDEX.md; gh-pages/index.md:18; gh-pages/crates.md:8
- referenced_by: README.md; CLAUDE.md; docs/architecture/ARCHITECTURE_MAP.md; docs/guides/RUST_TOOLCHAIN_GUIDE.md
- note: SUPERSEDES the 2026-06-13 value `130` and the 2026-07-19 narrative `133`. Dated sentences that say "130 as of June 2026" are history, not the current value. 57 package names start with `astraweave-`. 59 manifests live under `examples/`.

### production-crates
- metric: Production-crate count (judgment bucket, not a mechanical count)
Expand Down Expand Up @@ -237,6 +238,26 @@ Status vocabulary: **VERIFIED-AT-HEAD** (re-checked this campaign at HEAD via th

---

### replay-cases
- metric: Required cross-OS determinism replay cases
- value: `planner_pure`, `perception_world`, `gameplay_rng`, `fixed64`, `combat_resolve`, `destruction`, `gameplay_qa_aravath_slice`, `nav_reroute`, `causal_bridge`, `scripted_system` (10)
- status: VERIFIED-AT-HEAD (2026-10-16, both `required` lists in `.github/workflows/determinism-replay.yml`)
- repro: read the `required` arrays in `.github/workflows/determinism-replay.yml`
- hardware: n/a (compare job is Ubuntu, Windows, macOS)
- canonical_source: `.github/workflows/determinism-replay.yml`
- referenced_by: README.md; docs/current/CI_ARCHITECTURE.md; docs/guides/BUILD_QUICK_REFERENCE.md
- note: A missing case or a SHA-256 mismatch fails `determinism-replay / compare`. This is not a claim that every byte of the engine is hashed.

### frame-budget-gtx1660
- metric: Full-frame GPU budget on a GTX 1660 Ti-class GPU
- value: TARGET under 11 ms. NOT MEASURED. The GPU timer read 0 ms. Readback fix is in progress in #216 and is not on `main`.
- status: PENDING (target only; do not cite as achieved)
- repro: not available until #216 lands a non-zero timestamp read on that GPU class
- hardware: GTX 1660 Ti-class (the target machine class; this row has no passing sample)
- canonical_source: repository README + issue #216
- referenced_by: README.md; docs/masters/MASTER_BENCHMARK_REPORT.md
- note: CPU `profiling_demo` times (system 0.965 ms / mimalloc 0.709 ms @ 1,000 entities, 2026-06-27) are a different measurement. Do not substitute them for this row.

## Retired (deleted across the corpus — no registry row, recorded here so D.1.B/D.2 never re-home them)

| Retired figure | Why | Superseded by |
Expand All @@ -259,5 +280,6 @@ Status vocabulary: **VERIFIED-AT-HEAD** (re-checked this campaign at HEAD via th
| 0.1 (D.1.A skeleton) | 2026-06-13 | Created. 11 VERIFIED-AT-HEAD count/version rows; 7 PENDING-D2 benchmark/coverage rows; Retired table seeded. PENDING-D2 rows to be filled by D.2 measurement. |
| 0.2 (D.1.B hygiene) | 2026-06-13 | Hygiene pass: `canonical_source` for agents-capacity-60fps / frame-time-1000-entities / coverage-weighted / miri-tests changed from doc-references to the bench/llvm-cov/miri **command** (doc-cites-doc break). Denominators confirmed named ("test markers", not "tests"). `referenced_by` lists are representative load-bearing sites, not exhaustive — D.1.B added registry-comment back-links across the long-tail corpus. |
| 0.3 (D.2.A.1) | 2026-06-25 | **W.1-contamination re-resolution.** Re-resolved the 4 W.1-invalidated rows (fluids-loc 80,222→24,251 src; fluids-test-markers 2,560→738; rust-loc-total ~1.16M→~1.10M raw / ~892K→~854K code; dormant-loc-inventory 108,753→52,782). Fixed 2 broken repro commands (fluids-loc `**`-glob returned 0; rust-loc-total `xargs … wc -l \| tail -1` batching). Added 4 NEW rows for the W.2–F.4 water successor: water-facade-loc, water-surface-loc, water-system (narrative), water-budget (PENDING-D2, single-machine/provisional). Dated D.2.A snapshots in the execution reports left byte-identical (per-row resolution principle). Authority: `D_RESUME_0_RECON.md`. |
| 0.6 | 2026-10-16 | **Member count and two new rows.** `workspace-members` 130 → 139 at `d6b07fc8`. Added `replay-cases` (10 required names) and `frame-budget-gtx1660` (target under 11 ms, not measured, #216). `130` is not poison: dated June sentences may still say it. |
| 0.5 (Path-B.2) | 2026-06-29 | **Coverage re-baseline — last PENDING-D2 measurement row settled.** Flipped `coverage-weighted` PENDING-D2/blocked → **VERIFIED-AT-HEAD: 57.35% line coverage** whole-workspace (369,462 lines; regions 56.41%, functions 60.46%), superseding the 29-curated-crate **59.3%** (denominator change, not a regression). Unblocked by Path-B.1 (`1eacebff4`, the 8 broken test targets fixed). Two tooling findings recorded: (1) Windows ~32 KB command-line limit blocks `cargo llvm-cov --workspace`'s report step (668 objects) — worked around via `llvm-cov report` response file on the merged profdata; (2) 36/646 test binaries fail at runtime (pre-existing assertion failures + a few stale assertions exposed-not-caused by Path-B.1's compile fix) — absorbed by `--ignore-run-fail`, a runtime-assertion-currency follow-on, coverage unaffected. Corpus 59.3% citations noted for the deferred final propagation. Registry measurement section now fully resolved (0 PENDING-D2 unfinished: coverage VERIFIED; water-budget PENDING-by-classification; mutation-kill-rate PROVENANCE-ACCEPTED). Ledger only; no source changed. Authority: `PATH_B0_RECON.md` + `D2B0_RECON.md`. |
| 0.4 (D.2.B.A) | 2026-06-27 | **Fast-tier measurement session** (hardware-stamped i5-10300H / GTX 1660 Ti Max-Q / rustc 1.89.0). Flipped 4 rows to VERIFIED-AT-HEAD: agents-capacity-60fps (12,700 confirmed, workload-dependent — ~10.3K complex / ~23.5K moderate full-loop / ~130K plan-only); frame-time-1000-entities (**CONTEST RESOLVED** — "2.70 ms" was the demo's Week-8 *target* mis-recorded as a measurement; real System 0.965 ms / mimalloc 0.709 ms; repro corrected to `profiling_demo`); validation-checks-per-sec (6.48M confirmed, 158 ns MoveTo); miri-tests (**1,059** vs stale-low 977; repro corrected to `-Zmiri-disable-isolation`). water-budget re-confirmed 0.2745 ms (stays PENDING-by-classification). coverage-weighted stays PENDING — **BLOCKED** by ≥3 pre-existing broken test targets (CODE-FINDING; Path-B fix beat ratified). mutation-kill-rate → **PROVENANCE-ACCEPTED** (100%/792, prior wave 2026-03-13; re-run cost-deferred). Docs/ledger only; no source changed. Authority: `D2B0_RECON.md`. |
Loading