WAVE 100: Test Coverage Expansion (8/10 agents, 308 tests added) ├─ Agent 4: Execution error path tests (trading_service) ├─ Agent 5: ML training pipeline timeout analysis ├─ Agent 6: Audit persistence comprehensive tests ├─ Agent 7: ML pipeline coverage tests + rate limiting ├─ Agent 8: Algorithm comprehensive tests (adaptive-strategy) ├─ Agent 9: Coverage measurement analysis └─ Result: 308 new tests across 8 components WAVE 101: Compilation Error Fixes (14 errors → 0) ├─ Fixed backtesting_comprehensive.rs (6 compilation errors) │ ├─ Added `use rust_decimal::MathematicalOps;` import │ ├─ Removed 3 invalid `?` operators from void methods │ └─ Fixed 4 i64 type casting issues for ChronoDuration::days() ├─ performance_tracking_comprehensive.rs: Already fixed (38/38 tests pass) └─ algorithm_comprehensive.rs: Already fixed (38/40 tests pass) WAVE 102: Runtime Test Failure Analysis (10 failures documented) ├─ Issue #1: Benchmark comparison stub (backtesting/metrics.rs:657-669) │ └─ Always returns None, needs beta/alpha/tracking error implementation ├─ Issue #2: Daily returns calculation edge cases (3 tests affected) │ └─ Returns empty Vec for < 2 snapshots, triggers "No daily returns calculated" ├─ Issue #3: Timestamp offsets in replay tests (1 hour, 60 day differences) │ └─ Possible timezone/DST issue or Utc::now() non-determinism ├─ Issue #4: Monthly performance calculation (< 11 months generated) └─ Issue #5: Max drawdown peak-to-trough assertion TEST RESULTS: ├─ Compilation: ✅ 100% (all 3 Wave 100 test files compile) ├─ Test Pass Rate: 108/118 tests (91.5%) │ ├─ algorithm_comprehensive: 38/40 (95%) │ ├─ backtesting_comprehensive: 32/40 (80%) │ └─ performance_tracking: 38/38 (100%) └─ Coverage Impact: Estimated +5-10 points toward 95% target FILES CHANGED: ├─ New Tests: 11 files (algorithm, backtesting, performance tracking, etc.) ├─ Fixed: backtesting_comprehensive.rs (6 compilation errors resolved) ├─ Documentation: 8 new agent reports (Wave 100-101) └─ Analysis: wave102_test_failures_analysis.txt TIMELINE: ├─ Wave 100: 308 tests added (90% completion, 2 agents hit timeout) ├─ Wave 101: All compilation errors resolved (100% success) ├─ Wave 102: Root cause analysis complete (10 failures documented) └─ Next: Wave 103 to fix 10 runtime test failures (5-10 hours estimated) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
90 lines
2.7 KiB
TOML
90 lines
2.7 KiB
TOML
[package]
|
|
name = "adaptive-strategy"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
publish.workspace = true
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
description = "Adaptive trading strategy framework with ensemble ML models and regime detection"
|
|
|
|
[dependencies]
|
|
# Core dependencies (using workspace dependencies)
|
|
tokio = { workspace = true }
|
|
tracing = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
uuid = { workspace = true }
|
|
|
|
# MINIMAL numerical dependencies - HEAVY ML REMOVED
|
|
# ALL HEAVY ML DEPENDENCIES REMOVED:
|
|
# candle-core, candle-nn - REMOVED (moved to ml_training_service)
|
|
# linfa, linfa-clustering - REMOVED (moved to ml_training_service)
|
|
# smartcore - REMOVED (moved to ml_training_service)
|
|
|
|
# MINIMAL time series and statistics
|
|
chrono = { workspace = true }
|
|
# ta - REMOVED (technical analysis moved to data crate)
|
|
|
|
# Configuration (using workspace dependencies)
|
|
config = { workspace = true }
|
|
# ALL GPU DEPENDENCIES REMOVED - moved to ml_training_service
|
|
# cudarc - REMOVED
|
|
|
|
# Additional dependencies for async traits and serialization (using workspace dependencies)
|
|
async-trait = { workspace = true }
|
|
futures = { workspace = true }
|
|
rand = { workspace = true }
|
|
|
|
# Financial types
|
|
rust_decimal = { workspace = true }
|
|
num-traits = { workspace = true }
|
|
|
|
# Internal dependencies
|
|
common = { path = "../common" }
|
|
|
|
# Database - optional, only when postgres feature is enabled
|
|
sqlx = { workspace = true, optional = true }
|
|
|
|
# Remove problematic dependencies that have compilation issues
|
|
# ml.workspace = true # REMOVED - has compilation issues
|
|
# trading_engine.workspace = true # REMOVED - has compilation issues
|
|
# risk.workspace = true # REMOVED - has compilation issues
|
|
# data.workspace = true # REMOVED - has compilation issues
|
|
[features]
|
|
default = ["minimal"]
|
|
|
|
# MINIMAL FEATURES ONLY - ALL GPU/ML REMOVED
|
|
minimal = [] # Minimal adaptive strategies without heavy ML
|
|
|
|
# PostgreSQL database support for configuration loading
|
|
# Enables DatabaseConfigLoader with hot-reload via NOTIFY/LISTEN
|
|
# Includes: PgPool, PgListener, query macros, and FromRow derives
|
|
postgres = ["sqlx"]
|
|
|
|
# ALL GPU/ML FEATURES REMOVED:
|
|
# cuda, cudnn, gpu - MOVED TO ml_training_service
|
|
|
|
[dev-dependencies]
|
|
criterion = { workspace = true, features = ["html_reports", "async_tokio"] }
|
|
futures = { workspace = true }
|
|
backtesting = { path = "../backtesting" }
|
|
rust_decimal_macros = { workspace = true }
|
|
|
|
[[bench]]
|
|
name = "tlob_performance"
|
|
harness = false
|
|
|
|
[lib]
|
|
name = "adaptive_strategy"
|
|
path = "src/lib.rs"
|
|
|
|
[lints]
|
|
workspace = true |