Files
foxhunt/docs/plans
jgrusewski 88318ddf8e docs(sp22): H6 Phase 3 spec — include A2 eval-side wiring (per "do eval too")
Folded A2 (eval-side α + β + aux trunk forward) into the Phase 3 spec
per user directive. Brings eval pipeline to production parity with
training-time rollout.

A2 components (6 sub-items)
───────────────────────────
A2.1 — Aux trunk weight loading at eval init (shared-source-of-truth
       with trainer, mirroring existing GEMM weight pattern).
A2.2 — Per-window `prev_aux_dir_prob` buffer at eval ([n_windows] f32,
       fill_f32(0.0) init + per-evaluate() reset).
A2.3 — Aux trunk forward at eval per-step (reuse `AuxHeadsForward`
       orchestrator if API permits; fall back to thin eval-only
       variant if too training-coupled).
A2.4 — α at eval (post-Q_dir bias launch, reuses training kernel).
A2.5 — β at eval (mirror of training producer in
       `backtest_env_kernel.cu::segment_complete`; same NULL-fallback
       semantics; reads scale_beta from training-emitted ISV slot).
A2.6 — Wire `prev_aux_dir_prob.raw_ptr()` (non-NULL) into all 3
       backtest state-gather launchers.

7-component contract migration EXTENDED
───────────────────────────────────────
Added `backtest_env_kernel.cu` to the atomic 7-component migration
list (eval-side reward stride 6 → 7 alongside training-side). All
reward-component consumers across training AND eval paths migrate
in one commit per `feedback_no_partial_refactor`.

Scope estimate updated
──────────────────────
~34–47 hr engineering (5–6 working days), up from ~21–31 hr in the
within-phase-follow-ups version. Bulk of addition is A2.1–A2.3
greenfield work — the eval pipeline had no aux infrastructure
before.

Verification gates expanded (gate 7 added)
──────────────────────────────────────────
7. **A2 eval-side aux activity check**: post-cycle-1 validation eval
   shows non-zero `r_aux_align` in eval-side WindowMetrics reward
   decomposition. If eval r_aux_align ≈ 0 while training-side > 0 →
   A2 wiring failure. gpu_backtest_validation tests should still
   pass; potential tolerance adjustment for extended metrics
   (CVaR/Omega) if β shifts numerics meaningfully; the four
   directional tests remain bit-identical because constant_action_model
   bypasses Q-network and β is no-op at test-time (sentinel-zero
   scale_β since tests don't run SP11 controller).

Out of scope (sole remaining)
─────────────────────────────
Only the aux-trunk-gradient-flow-back-through-state[121] item, which
is a property statement (preserved by H6 design's stop-grad), not a
deferral.

Refs
────
- pearl_separate_aux_trunk_when_shared_starves (A2.1 aux trunk source-
  of-truth pattern)
- pearl_no_partial_refactor (7-component migration includes eval-side
  backtest_env_kernel atomically)
- pearl_no_deferrals_for_complementary_fixes (combined plan now
  spans training + eval)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 00:08:57 +02:00
..