Mechanics Audit & Architecture
Establish ground-truth rule documentation and lock irreversible architecture decisions before any code is written.
Detail · key work, gate, outputs
- docs/rule-reference.md — 1,247 lines, 48 sigils with DLL citations
- docs/MECHANICS-AUDIT.md, MECHANICS-COVERAGE-MATRIX.md, MECHANICS-VALIDATION-SUMMARY.md
- docs/TRAINING-ARCHITECTURE-DECISIONS.md (8 ADRs)
- sim/ (L0 simulator scaffold)
Phase 0.1DLL Decompilation
Full decompile of Assembly-CSharp.dll (2,098 classes) via ilspycmd. Grep passes for hardcoded exceptions, persistent state mutations, KCM-specific code paths.
Phase 0.2Mechanics Coverage Audit
Systematic audit of all 52 sigils (48 documented with DLL citations; 4 data-driven). 23 hardcoded exceptions identified and mapped to simulator rules.
Phase 0.3Architecture Decision Records
Lock irreversible decisions: simulator language (Rust), algorithm (IS-MCTS), card encoding (feature-vector only), policy structure (hierarchical), warm-start strategy, GPU provisioning.
Phase 0.4L0 Simulator
Fixed deck, scripted opponent, ~8 sigils, PyO3 bindings. Prove the Rust/PyO3 stack before full implementation.