//! SP15 Phase 2B Group 1 — high-noise no-edge regime: trade freq ≤20%.
//! Anchor for: Phase 3.4 regret + Phase 3.5 confidence-aware Hold floor.

use crate::synthetic_markets::flat_market;
use crate::harness::{evaluate_policy_on_market, BehavioralResult};

#[test]
#[ignore = "Phase 2B contract — green when Phase 3.4 + 3.5 land"]
fn test_2_6_regime_silences() {
    // High-noise flat market: no edge to extract
    let bars = flat_market(10_000, /*noise_sigma*/ 5.0, 0.25, 42);
    let mut trainer = ();
    let result: BehavioralResult = evaluate_policy_on_market(&mut trainer, &bars[5_000..], 0);

    let trade_freq = result.trade_count as f32 / 5_000.0;
    assert!(trade_freq <= 0.20,
        "test 2.6 FAIL: trade freq = {:.2}, expected <= 0.20 in no-edge regime", trade_freq);
}
