[SYS.ARCH // CLEAN-ROOM RUST WORKSPACE]
Engineered for Determinism, Memory Safety, and Non-Blocking Search.
BalouChess separates chess rules, alpha-beta search and cache-aligned tables along strict Rust crate boundaries. Today the engine is a UCI program that searches with a single thread and evaluates positions by material and piece-square tables. A neural evaluation, a browser edition and an optional advisor are planned.
Layered Crate & Dataflow Topology
- values + coreforbid(unsafe)
- tables + nnueLayout B · Material
- protocol (UCI)bins/balou
- WASI Web-Labplanned · bins/balou-weblab
- advisor + inferenceplanned · never blocks the search
- Solid outline: exists in the engine code
- Dashed outline: planned, not built yet
Strict Rust Safety Boundaries
Core board representation, move generation, value types, UCI protocol parsing, and training data formats forbid unsafe code via compiler lints. Planned SIMD kernels must match a scalar reference bit for bit before they are used.
Standalone CPU Alpha-Beta Core
Iterative deepening Principal Variation Search with aspiration windows, staged move ordering (TT move, SEE capture test, killers, damped history), quiescence checks, and a cache-aligned Layout-B transposition table with XOR tabulation tear detection.
Planned: an Advisor That Never Blocks
Planned for a later release: an optional advisor that sends hints from a GPU or NPU. The design already sets its rules: the search never waits for it, hints never change search bounds, a hint that arrives after its search has ended is discarded, and bestmove always comes from the alpha-beta search. Without an advisor the engine behaves bit for bit like a build without the advisor crate. Neither the advisor nor the browser edition exists yet.
Measured Quality Gates from the Engine Repository
264 automated Rust workspace tests
- Source
- Test report in the non-public engine repository (engine, WP 0123), line 1897 (revision 162c4c3)
- Quote (German original)
Auf der Basis 46c2d63 bestanden Formatierung, Clippy, 264 Workspace-Tests
- Measured
- 2026-12-03, engine commit 46c2d636228c16a414aba550bfb5e5bd0be0143c
- Conditions
- Intel Core i9-14900KF (Windows 11, rustc 1.97.1), cargo test --locked --workspace
- Limitation
- Counts tests, not their coverage; says nothing about playing strength.
- Confidence
- Exact: the number of tests that passed in the cargo test run.
32 perft node counts on 6 standard positions (0 deviations)
- Source
- Test report in the non-public engine repository (engine, WP 0028), line 13 (revision 162c4c3)
- Quote (German original)
32/32 Prüfungen des Standardsatzes
- Measured
- 2026-11-27, engine commit a9dc472720da908c65bb13931ca1e49854a44117
- Conditions
- Intel Core i9-14900KF, standard EPD suite at depths 1 to 5 or 6. Separately in CI (Ubuntu 24.04): 32 positions at depth 3 against Stockfish 19 and Lynx 1.11.0, 0 deviations
- Limitation
- Tests move generation only, not search, evaluation or playing strength.
- Confidence
- Exact: each node count must equal the reference value of the suite.
9,083,423 checked UCI fuzz inputs in 24 h (0 findings)
- Source
- Test report in the non-public engine repository (engine, WP 0028), line 469 (revision 162c4c3)
- Quote (German original)
Die Einträge stimmen genau mit den Ergebnisdateien überein: 9 083 409 + 14
- Measured
- 2026-11-27, engine commit db9a28062afb66392aa5f4fc195da08e39769887
- Conditions
- Intel Core Ultra 9 285K (Linux 7.0), radamsa seed 2000000, 9,083,409 generated and 14 fixed cases, limit 5 s / 256 MiB per input, 86,400 s runtime
- Limitation
- Tests whether the whole program handles randomly mutated UCI input without a crash, a panic or more than 5 s or 256 MiB per input; not whether the search is correct, and not playing strength.
- Confidence
- Complete count; the reviewer recounted the case logs from the archive.
10,000 endurance games with zero crashes or time losses
- Source
- Test report in the non-public engine repository (engine, WP 0028), line 539 (revision 162c4c3)
- Quote (German original)
10 000 Partien und die Speichermessung über 24 Stunden sind ohne Fehler bestanden.
- Measured
- 2026-11-30, engine commit a9dc472720da908c65bb13931ca1e49854a44117
- Conditions
- Intel Core Ultra 9 285K (Linux 7.0, 8 P-cores), 4 time controls (10+0.1, 30+0, 60+0.6, 40/60), 1 thread, Hash 16/64 MiB, 1,126,909 searches
- Limitation
- Self-play of one build; tests stability, not playing strength.
- Confidence
- Complete count; the reviewer's own script recounted from the raw traces without using the evaluation tools and matched the result files in every number.