plan(sp15): rewrite v2 — fix all 16 reviewer-flagged issues
Rewrite of 2026-05-06-sp15-trader-discipline-and-recovery.md from v1 (commit0178a53ab) which had 16 reviewer-flagged issues including 5 critical compile-breakers and 8 important plan-failure violations. CRITICAL fixes: - Real GATE1_OPEN_STATE_INDEX (slot 391) — was wrong GATE1_STATE_INDEX - Real PS_PEAK_EQUITY/PS_PREV_EQUITY (state_layout.cuh slots 7+9) — no invented CUMULATIVE_EQUITY_INDEX - Real sp4_histogram_p99<BLOCK_SIZE> block-tree-reduce pattern, no atomicAdd_block (was feedback_no_atomicadd violation) - Real evaluate_dqn_graphed pattern (gpu_backtest_evaluator.rs:1143) — no nonexistent evaluate_on_val_slice - Real services/ml_training_service/src/main.rs path — was wrong IMPORTANT fixes: - Fork from current main0178a53ab, not stale5417e2756- Phase 0.B has explicit case-(a)/case-(b) branches driven by 0.A diagnostic conclusion - Phase 2B uses TEMPLATE + 17-row differential table — every test fully specified, no compressed bullets - Phase 3 each teaching gets full TDD: write test → run-fail → kernel (full code) → launcher → consumer → run-pass → commit (5+ steps) - Phase 3.5 each mechanism same TDD pattern with full kernel code - Plasticity 3.5.4 specifies TWO-STEP recovery (Flat first, then cooldown) + Kaiming-He init (not Xavier — architecturally appropriate) - Phase 4.3 includes FULL eval-final-template.yaml (not 4 bullets) - 4 EGF constants replaced (not 3 — verified all four in alpha_grad_compute_kernel.cu lines 142,143,144,147) - Behavioral_suite test target ordering fixed (Cargo.toml entry lands before tests run against it) Stats: 4947 lines, ~270 [- [ ]] step checkboxes, 0 todo!() in test bodies, every kernel shown in compilable form. Self-review section maps every spec section to implementing task, verifies all cross-references against verified codebase facts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in: