- Docker: Delete 23 deprecated Dockerfiles, fix CI/CD to use Dockerfile.foxhunt-build - Config: Remove 36 .env files, keep 4 essential, delete config/environments/ - Docs: Archive 614 Wave D files to docs/archive/wave_d/, 95% reduction in root - Scripts: Delete 56 deprecated scripts, keep 58 production-critical (49% reduction) - Python: Organize 37 scripts into scripts/python/ subdirectories, delete ml/python/ - Build: Remove 1GB artifacts, delete old venvs, clean Python cache from git - Migrations: Delete deprecated directory (4,432 lines), remove duplicate database/migrations/ - Infrastructure: Delete deployment/ (61 files), docs/scripts/ (8 files) Total impact: ~2,500 files cleaned, 750MB+ space freed, zero production impact All deleted scripts backed up to archives. runpod/ and tests/runpod/ preserved. data_acquisition_service retained per user request.
11 KiB
ROADMAP QUICK REFERENCE - 100% Clean Codebase
Date: 2025-10-23 Total Time: 6-8 hours (critical path) Total Agents: 25 agents across 5 tracks Status: ⏳ Ready to Execute
🎯 ONE-PAGE SUMMARY
Current State → Target State
| Metric | Current | Target | Gap |
|---|---|---|---|
| Test Pass Rate | 99.22% (1,278/1,288) | 100% | 10 tests |
| Compilation Errors | 6 (common crate) | 0 | 6 errors |
| Clippy Warnings | 94 | 0-20 | 74-94 warnings |
📊 DEPENDENCY GRAPH (VISUAL)
START
│
▼
┌─────────────────────────────────────────┐
│ TRACK 1: CRITICAL BLOCKERS (2h) │ ◄── MUST COMPLETE FIRST
│ Fix 6 common crate errors │
│ Agents: FIX-01 → FIX-02 → FIX-03 → V1 │
└─────────────────────────────────────────┘
│
├─────────────────┬──────────────────┬──────────────────┐
▼ ▼ ▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│TRACK 2: QAT │ │TRACK 3: │ │TRACK 4: │ │ │
│10 test fixes│ │AUTO-FIX │ │MANUAL FIX │ │ PARALLEL │
│4 hours │ │37 warnings │ │38 warnings │ │ EXECUTION │
│ │ │1 hour │ │3 hours │ │ │
│QAT-01 to -07│ │CLIPPY-01-05│ │MANUAL-01-06│ │ │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│ │ │
└─────────────────┴──────────────────┴──────────────────┐
▼
┌─────────────────────┐
│TRACK 5: VALIDATION │
│Final test + docs │
│1 hour │
│VAL-01 → VAL-02 │
└─────────────────────┘
│
▼
✅ 100% CLEAN CODEBASE
⏱️ TIMELINE (7 HOURS TOTAL)
| Hour | Track | Activity | Agents |
|---|---|---|---|
| 0-2 | Track 1 | Critical blockers (SEQUENTIAL) | FIX-01 to V1 |
| 2-6 | Tracks 2,3,4 | Parallel fixes (SIMULTANEOUS) | 6-23 |
| 6-7 | Track 5 | Final validation (SEQUENTIAL) | VAL-01, VAL-02 |
🚦 5-TRACK BREAKDOWN
TRACK 1: Critical Blockers (P0) - 2 HOURS
Goal: Fix 6 common crate errors Blocking: YES - Must complete before Tracks 2-4 Agents: 5 (FIX-01, FIX-02, FIX-03, FIX-04, FIX-V1)
| Agent | Task | Time | Risk |
|---|---|---|---|
| FIX-01 | Technical indicators unwrap() | 30m | 🟡 Medium |
| FIX-02 | Retry module unwrap() | 45m | 🟡 Medium |
| FIX-03 | Bounded concurrency panic() | 30m | 🟢 Low |
| FIX-04 | Common test validation | 15m | 🟢 Low |
| FIX-V1 | Track 1 validation | 15m | 🟢 Low |
TRACK 2: QAT Test Fixes (P0) - 4 HOURS
Goal: Fix 10 QAT/TFT quantization tests Blocking: NO - Can parallelize with Tracks 3-4 Agents: 7 (QAT-01 to QAT-07)
Phase 2A (2h, parallel):
- QAT-01: Round-trip tolerance (10m) 🟢
- QAT-02: Observer state (1-2h) 🟡
- QAT-03: Quantized attention (2-3h) 🔴
Phase 2B (1.5h, parallel):
- QAT-04: Scale tensor rank (30m) 🟢
- QAT-05: Device mismatch (30m) 🟡
- QAT-06: Gradient checkpoint (DEFER) 🔴
Phase 2C (30m):
- QAT-07: Validation (30m) 🟢
TRACK 3: Clippy Auto-Fixes (P1) - 1 HOUR
Goal: Auto-fix 37 low-risk warnings Blocking: NO - Can parallelize with Tracks 2, 4 Agents: 5 (CLIPPY-01 to CLIPPY-05)
| Agent | Fixes | Time | Risk |
|---|---|---|---|
| CLIPPY-01 | .get(0) → .first() (3) | 5m | 🟢 Zero |
| CLIPPY-02 | unnecessary_cast (20) | 10m | 🟢 Zero |
| CLIPPY-03 | redundant_closure (19) | 10m | 🟢 Zero |
| CLIPPY-04 | useless_conversion (11) | 5m | 🟢 Zero |
| CLIPPY-05 | Validation | 30m | 🟢 Low |
Total: 37 warnings auto-fixed in 1 hour
TRACK 4: Manual Code Quality (P2) - 3 HOURS
Goal: Fix 38 medium-risk warnings Blocking: NO - Can parallelize with Tracks 2, 3 Agents: 6 (MANUAL-01 to MANUAL-06)
| Agent | Fixes | Time | Risk |
|---|---|---|---|
| MANUAL-01 | needless_borrows (10) | 45m | 🟡 Medium |
| MANUAL-02 | same_item_push (1) | 15m | 🟢 Low |
| MANUAL-03 | needless_borrow (9) | 30m | 🟢 Low |
| MANUAL-04 | Unused assignment (1) | 10m | 🟢 Low |
| MANUAL-05 | Unused doc comment (1) | 5m | 🟢 Trivial |
| MANUAL-06 | Validation | 45m | 🟡 Medium |
Total: 22 warnings fixed in 3 hours (defer 16 high-risk)
TRACK 5: Validation & Docs (P3) - 1 HOUR
Goal: Final validation and certification Blocking: YES - Must run after all tracks complete Agents: 2 (VAL-01, VAL-02)
| Agent | Task | Time | Risk |
|---|---|---|---|
| VAL-01 | Final test validation | 45m | 🟢 Low |
| VAL-02 | Documentation | 15m | 🟢 Low |
🔄 ROLLBACK PROCEDURES (3 LEVELS)
Level 1: Agent Rollback (<5 min)
git stash push -m "AGENT-XX rollback"
cargo test -p <package>
Use When: Single agent fails
Level 2: Track Rollback (<15 min)
git reset --hard <pre-track-commit>
cargo build --workspace
Use When: Entire track fails
Level 3: Full Rollback (<30 min)
git reset --hard HEAD~25 # Nuclear option
cargo build --workspace --release
Use When: Critical bug, production blocked
📊 SUCCESS METRICS
Primary (100% Required)
- ✅ 1,288/1,288 tests passing (100%)
- ✅ 0 compilation errors
- ✅ 0 critical clippy errors
Secondary (Code Quality)
- 🎯 0-20 clippy warnings (from 94)
- 🎯 37 auto-fixed (Track 3)
- 🎯 22 manual-fixed (Track 4)
- ⏳ 19 high-risk deferred (post-production)
Performance (No Regression)
- ✅ Build time <2m (currently 1m 47s)
- ✅ Feature extraction <10μs (currently 5.10μs)
- ✅ GPU memory <500MB (currently 440MB)
🚀 EXECUTION COMMANDS
Pre-Execution
# Backup and setup
git branch roadmap-backup
git checkout -b roadmap-execution
docker-compose ps # Verify services
nvidia-smi # Verify GPU
cargo clean # Clear cache
Track 1 (Sequential)
# AGENT-FIX-01: Technical indicators
cargo check -p common
cargo test -p common --lib features::technical_indicators
# AGENT-FIX-02: Retry module
cargo test -p common --lib resilience::retry
# AGENT-FIX-03: Bounded concurrency
cargo test -p common --lib resilience::bounded_concurrency
# AGENT-FIX-04: Full validation
cargo test -p common --lib
cargo check -p ml # Verify unblocked
Tracks 2, 3, 4 (Parallel - Start Together)
# Track 2: QAT fixes
cargo test -p ml --lib memory_optimization::qat
cargo test -p ml --lib tft::quantized_attention
# Track 3: Auto-fixes
cargo clippy --fix -p common --allow-dirty
cargo clippy --fix -p ml --allow-dirty
# Track 4: Manual fixes
# (Manual code edits + validation)
cargo test -p ml --lib
Track 5 (Sequential)
# AGENT-VAL-01: Final validation
cargo test --workspace --release
cargo clippy --workspace --all-targets --all-features
cargo bench --package ml
# AGENT-VAL-02: Documentation
# Update CLAUDE.md, generate certification report
📋 AGENT CHECKLIST (25 TOTAL)
✅ Track 1: Critical Blockers (5)
- AGENT-FIX-01: Technical indicators unwrap() (30m)
- AGENT-FIX-02: Retry module unwrap() (45m)
- AGENT-FIX-03: Bounded concurrency panic() (30m)
- AGENT-FIX-04: Common test validation (15m)
- AGENT-FIX-V1: Track 1 validation (15m)
✅ Track 2: QAT Test Fixes (7)
- AGENT-QAT-01: Round-trip tolerance (10m)
- AGENT-QAT-02: Observer state (1-2h)
- AGENT-QAT-03: Quantized attention (2-3h)
- AGENT-QAT-04: Scale tensor rank (30m)
- AGENT-QAT-05: Device mismatch (30m)
- AGENT-QAT-06: Gradient checkpoint (DEFER)
- AGENT-QAT-07: QAT validation (30m)
✅ Track 3: Clippy Auto-Fixes (5)
- AGENT-CLIPPY-01: .get(0) → .first() (5m)
- AGENT-CLIPPY-02: unnecessary_cast (10m)
- AGENT-CLIPPY-03: redundant_closure (10m)
- AGENT-CLIPPY-04: useless_conversion (5m)
- AGENT-CLIPPY-05: Track 3 validation (30m)
✅ Track 4: Manual Code Quality (6)
- AGENT-MANUAL-01: needless_borrows (45m)
- AGENT-MANUAL-02: same_item_push (15m)
- AGENT-MANUAL-03: needless_borrow (30m)
- AGENT-MANUAL-04: Unused assignment (10m)
- AGENT-MANUAL-05: Unused doc comment (5m)
- AGENT-MANUAL-06: Track 4 validation (45m)
✅ Track 5: Validation & Docs (2)
- AGENT-VAL-01: Final test validation (45m)
- AGENT-VAL-02: Documentation & certification (15m)
🎯 FINAL CERTIFICATION
Upon completion of all 25 agents:
- ✅ 100% Test Pass Rate: 1,288/1,288
- ✅ Zero Compilation Errors: All crates compile
- ✅ ≤20 Clippy Warnings: Only low-priority remain
- ✅ Performance Maintained: 922x average vs. targets
- ✅ GPU Memory Budget: 440MB (89% headroom)
- ✅ All Core Models Operational: 5/5 models ready
- ✅ Documentation Complete: All agents documented
- ✅ Rollback Procedures Validated: 3 levels tested
Post-Certification Actions
- ✅ Deploy to Production (READY NOW)
- ✅ Begin Paper Trading (READY NOW)
- ⏳ Model Retraining (Blocked by QAT P0 fixes)
- 📊 Production Validation (1-2 weeks)
📚 KEY DOCUMENTS
Planning
MASTER_FIX_ROADMAP.md- Full 25-agent roadmap (this summary's parent)ROADMAP_QUICK_REFERENCE.md- This document
Analysis
TEST_FAILURE_ROOT_CAUSE_ANALYSIS.md- 10 test failure detailsML_CLIPPY_COMPREHENSIVE_ANALYSIS.md- 94 clippy warning breakdownCLEAN_CODEBASE_CERTIFICATION.md- Current 99.22% status
System
CLAUDE.md- System architecture and statusml/docs/QAT_GUIDE.md- QAT implementation guide
QUICK REFERENCE END | 25 Agents | 6-8 Hours | 5 Tracks
Status: ⏳ READY TO EXECUTE Next Action: Execute Track 1 (AGENT-FIX-01) Expected Completion: 2025-10-23 (7-8 hours)