Imported from Project-Ellie/rust-ml (
AGENTS.md). Install upstream withnpx skills add Project-Ellie/rust-ml. Copyright stays with the author.
AGENTS.md — rust-ml
Session start: read docs/WARM-UP.md first. It is the maintained, compacted project context — what this repo is, the architecture, the vocabulary, and the current implementation status. Everything below is the short version plus the rules.
Project in one paragraph
This repo resurrects the TensorFlow
DeepGomoku as an
AlphaZero-style Gomoku agent in Rust with Burn 0.21.0. The root package
is a finished MNIST curriculum (docs/ chapters 1–8, examples/); the
gomoku/ workspace is the real project (chapters 9–15). Freestyle
Gomoku 15×15, overlines win, Swap2 opening, "alpha-epsilon" approach
(hand-woven tactics head start). System design: docs/12-gomoku-architecture.md;
engine design: docs/13-engine-design.md.
Hard rules
- Burn is pinned to
=0.21.0. Never usemain-branch or 0.22-pre APIs (they remove the backend type parameter). Docs link thev0.21.0tag — check the pinned source, not blog posts. engineis a dependency island — no Burn, no I/O, norand.cargo check -p enginemust pass with Burn nowhere in sight.- The engine tutorial is the owner's learn-by-doing material. Slices give contracts, the learner writes implementations. Coach, don't hand over solutions (reference solutions in the per-chapter companion folders are opt-in).
- Gates before any commit:
cargo test,cargo clippy --all-targets -- -D warnings,cargo fmt --all— all green. - Respect documented decisions. Chapters 12/13 contain locked decisions with reasoning (absolute colors, stride-16 + padding invariant, store-games replay buffer, phased v1 GPU scheduling, no tokio, no transposition merging in MCTS). Don't relitigate them silently; if something seems wrong, flag it explicitly.
- Full-precision recorders only for model records
(
CompactRecorderis f16 — seedocs/11-pitfalls.md).
Layout
docs/— the wiki: chapters 1–15,tutorials/,WARM-UP.mddata/— external corpora for openings and puzzles (bulk content is local-only)paper/— LaTeX monograph on the AlphaZero mathematicssrc/,examples/— MNIST curriculum (root package, done)gomoku/crates/engine— rules engine (milestone 1, done)gomoku/crates/mcts— arena tree (milestone 2, started)gomoku/crates/cli— terminal UI on either board (side quest, done)
Status snapshot
Milestone 1 (engine): COMPLETE — all 10 slices done (oracle, bitboard
Board, win detection, Zobrist, symmetry/encode, tactics, TSS prover,
Swap2, benches) + CLI side quest with Swap2 hotseat flow and TSS proof
overlay. Milestone 2 (mcts) started — the crate holds the arena tree
only; docs/tutorials/mcts-tutorial/ is its build tutorial. Details and
verification commands:
docs/WARM-UP.md.
Keep that section current as work lands.