//! Each magnitude bucket > 5% of trade events.
use crate::synthetic_markets::drift_market;
use crate::harness::{evaluate_policy_on_market, BehavioralResult};

#[test]
#[ignore = "Phase 2B contract — green when Phase 3.5 entropy-aware Hold + magnitude lands"]
fn test_2_14_magnitude_uses_all_buckets() {
    let bars = drift_market(20_000, 0.5, 0.5, 0.25, 42);
    let mut trainer = ();
    let result: BehavioralResult = evaluate_policy_on_market(&mut trainer, &bars[5_000..], 0);
    for key in ["long_quarter", "long_half", "long_full"] {
        let pct = result.action_dist.get(key).copied().unwrap_or(0.0);
        assert!(pct >= 0.05, "test 2.14 FAIL: mag bucket {} only {:.2}%", key, pct * 100.0);
    }
}
