Files
foxhunt/crates/ml/examples/check_feature_count.rs
jgrusewski 9c3d741a08 refactor: restructure repo — crates/, bin/, testing/ layout
Move 17 library crates into crates/, CLI binary into bin/fxt,
consolidate 10 test crates into testing/, split config crate
from deployment config files.

Root directory reduced from 38+ to ~17 directories.
All Cargo.toml paths and build.rs proto refs updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:56:00 +01:00

38 lines
1.3 KiB
Rust

//! Feature Count Checker
//!
//! Simple utility to check the current feature count configuration
//! Used by rollback tests to validate feature-only rollback
use ml::features::config::FeatureConfig;
fn main() {
// Check Wave A
let wave_a = FeatureConfig::wave_a();
println!("Wave A: feature_count: {}", wave_a.feature_count());
// Check Wave B
let wave_b = FeatureConfig::wave_b();
println!("Wave B: feature_count: {}", wave_b.feature_count());
// Check Wave C
let wave_c = FeatureConfig::wave_c();
println!("Wave C: feature_count: {}", wave_c.feature_count());
// Check Wave D (this is what we test during rollback)
let wave_d = FeatureConfig::wave_d();
println!("Wave D: feature_count: {}", wave_d.feature_count());
println!("Wave D regime enabled: {}", wave_d.enable_wave_d_regime);
// Exit code based on Wave D config
if wave_d.feature_count() == 201 && !wave_d.enable_wave_d_regime {
println!("\n✅ Wave D rolled back to Wave C (201 features)");
std::process::exit(0);
} else if wave_d.feature_count() == 54 && wave_d.enable_wave_d_regime {
println!("\n✅ Wave D active (54 features)");
std::process::exit(0);
} else {
println!("\n⚠ Unexpected configuration state");
std::process::exit(1);
}
}