Per spec §7.3 + plan v2 Phase 2B differential table. Each test documents its behavioral contract and its enabling phase. Tests are #[ignore]'d so the pre-commit-hook-gated suite does not fail; per-test #[ignore] is removed by the commit that lands its enabling phase. Group 1 trading behavior (7 tests): 2.1 flat_holds, 2.2 trend_directional, 2.3 mean_revert_reverses, 2.4 cost_sensitivity, 2.6 regime_silences, 2.7 stop_discipline, 2.18 action_latency. Group 2 state/arch grounding (10 tests): 2.8 hold_vs_flat_semantics, 2.9 eval_fold_isolation, 2.13 eval_train_consistency, 2.14 magnitude_uses_ all_buckets, 2.15 fold_transition_stability, 2.16 q_value_bounded, 2.17 gradient_flow_to_all_heads, 2.19 kelly_calibration, 2.20 state_input_ grounding, 2.21 egf_gate_opens (re-export hook for sp14_oracle_tests.rs). Group 3 (Phase 2C — 5 tests) lands paired with Phase 3.5 commits. Harness invocations use trainer = () placeholder; Phase 2B.b extends BehavioralResult/harness with per-bar actions, position-state inspection, forced-action stepping, and per-head grad-norm snapshots. Each test's ignore reason references which Phase X enabling work + harness extension makes it green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
35 lines
1.1 KiB
Rust
35 lines
1.1 KiB
Rust
//! SP15 Phase 2 behavioral test suite — runs locally on dev RTX 3050 Ti.
|
|
//! Pre-commit hook gates argo-train.sh: failing test blocks L40S deploy.
|
|
|
|
mod synthetic_markets;
|
|
mod oracle;
|
|
mod harness;
|
|
|
|
// Group 1: trading behavior (7 tests)
|
|
mod test_2_1_flat_market_holds;
|
|
mod test_2_2_trend_market_directional;
|
|
mod test_2_3_mean_revert_reverses;
|
|
mod test_2_4_cost_sensitivity;
|
|
mod test_2_6_regime_silences;
|
|
mod test_2_7_stop_discipline;
|
|
mod test_2_18_action_latency;
|
|
|
|
// Group 2: state/arch grounding (10 tests)
|
|
mod test_2_8_hold_vs_flat_semantics;
|
|
mod test_2_9_eval_fold_isolation;
|
|
mod test_2_13_eval_train_consistency;
|
|
mod test_2_14_magnitude_uses_all_buckets;
|
|
mod test_2_15_fold_transition_stability;
|
|
mod test_2_16_q_value_bounded;
|
|
mod test_2_17_gradient_flow_to_all_heads;
|
|
mod test_2_19_kelly_calibration;
|
|
mod test_2_20_state_input_grounding;
|
|
mod test_2_21_egf_gate_opens;
|
|
|
|
// Group 3 (Phase 2C) lands paired with Phase 3.5 commits:
|
|
// mod test_2_5_drawdown_de_risks;
|
|
// mod test_2_10_recovery_after_streak;
|
|
// mod test_2_11_dd_state_aware_sizing;
|
|
// mod test_2_12_cooldown_engagement;
|
|
// mod test_2_22_plasticity_cooldown_interlock;
|