Training and validation use different kernels with different state layouts, making generalization impossible. Single state_layout.cuh + one assembly function + STATE_DIM as compile-time constant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>