From f58d4890ff4132a8666fb7964ee07fd2705f4a07 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Sat, 2 May 2026 18:20:59 +0200 Subject: [PATCH] fix(services): add validation-mod ml feature to trading + backtesting ml::validation is gated behind validation-mod, but dqn/config.rs:177 references crate::validation::RegimeMetrics unconditionally. Both services pull in dqn::config via the trainer pipeline, so they need the gate opened to compile. Cheaper than refactoring 700+ refs. Co-Authored-By: Claude Opus 4.7 (1M context) --- services/backtesting_service/Cargo.toml | 2 +- services/trading_service/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/backtesting_service/Cargo.toml b/services/backtesting_service/Cargo.toml index ff478f76d..e17516f8e 100644 --- a/services/backtesting_service/Cargo.toml +++ b/services/backtesting_service/Cargo.toml @@ -72,7 +72,7 @@ clap = { version = "4.5", features = ["derive"] } # path-form: cargo 1.89's `workspace = true` ignores `default-features = false`, # so we use the explicit path declaration to opt out of `full-stack` and drop # 8 leaf-level ml-* sub-crates that no source file in this service references. -ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda"] } +ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda", "validation-mod"] } data.workspace = true common = { workspace = true, features = ["database"] } diff --git a/services/trading_service/Cargo.toml b/services/trading_service/Cargo.toml index 4339e026f..ce61ecf3a 100644 --- a/services/trading_service/Cargo.toml +++ b/services/trading_service/Cargo.toml @@ -84,7 +84,7 @@ risk.workspace = true # 8 leaf-level ml-* sub-crates (ml-backtesting, ml-paper-trading, ml-stress-testing, # ml-explainability, ml-universe, ml-regime-detection, ml-validation, # ml-data-validation) that no source file in this service references. -ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda"] } +ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda", "validation-mod"] } data.workspace = true common = { workspace = true, features = ["database"] } config = { workspace = true, features = ["postgres"] }