# Strata Next Strata Next is a planned C++20/CUDA inference engine fork with a Rust control plane for Codex workloads. The project scope, requirements, quality gates, and milestones are defined in [PROJECT_CHARTER.md](PROJECT_CHARTER.md). The implementation order and Linux packaging target are tracked in [docs/roadmap.md](docs/roadmap.md). ## Current state The Strata source is imported at a pinned upstream commit under `engine/strata/`. A CPU-only source build and unit tests are available through `scripts/build-cpu.sh`. The Rust `strata-next` CLI serves health, readiness, and status and supervises one engine worker. It also has `doctor`, `model fetch`, `model verify`, header-only `model inspect`, tokenizer extraction, and native BPE encode/decode commands; see [model acquisition](docs/model-assets.md). A `/v1/responses` route supports a restricted inference preview when a tokenizer and engine worker are configured: live SSE text deltas with cancellation, completed streaming function calls with schema checks, stateless replay of function results in `input`, and bounded process-local `previous_response_id` continuation. Reasoning output and structured live responses remain unconnected. A synthetic Responses JSON/SSE replay fixture checks output assembly, tool arguments, and terminal events without a model. The performance benchmark harness, complete GPU deployment image, and verified GPU baseline have **not** been implemented yet. Figures in the charter are preliminary reference points, not results from this repository. ## Layout - `engine/strata/` — pinned Strata source imported as a Git subtree. - `control-plane/` — production Rust API and worker supervisor. - `benchmarks/` — reproducible performance and quality harness. - `deploy/` — OCI image and one-command deployment assets. - `docs/` — upstream provenance, decisions, and performance ledger. Models, captures, logs, build products, and benchmark artifacts belong outside the source tree or under ignored local paths. The model is expected to use an external volume in deployment. ## First milestone 1. Build and validate the CUDA engine on the RTX 5090 Linux node. 2. Capture the 1×256K baseline with the fields in `docs/performance-ledger.md`. 3. Assemble a sanitized Codex request/response replay corpus for protocol work. The current fixture is synthetic, not a captured Codex session. For the source-only build on a machine with CMake 3.24+ and a C++20 compiler, run `scripts/build-cpu.sh`. It builds the non-GPU engine utilities and runs the available CPU tests. This does not verify inference or measure performance. Run `scripts/check-local.sh` to check the Rust control plane and CPU engine build together. The first CPU configure downloads the ggml source at the commit pinned by Strata's CMake file. The Rust control plane uses the repository-pinned Rust 1.99.0 toolchain. Do not claim M0 complete until these items are verified.