# AegisTrade AI — 12-Phase Development Roadmap

- [x] **PHASE 1: Architecture & Specifications**
  - Architecture, Threat Model, Database Schema, Risk Policy, AGENTS.md, Acceptance Criteria.
- [ ] **PHASE 2: Core Foundation & Backend Skeleton**
  - Pyproject.toml, configuration management, SQLite/Postgres DB models, JWT auth, structured logging, health check endpoints.
- [ ] **PHASE 3: Bybit V5 API Integration & Mock Layer**
  - REST & WebSocket adapters, historical downloader, demo connector (`api-demo.bybit.com`), mock exchange suite.
- [ ] **PHASE 4: Independent Risk Engine & Kill Switch**
  - Decimal position sizer, small-account protection, daily loss limits, persistent kill switch state.
- [ ] **PHASE 5: Feature Engineering & Signal Engine**
  - Causal indicator library, market regime classifier, EV calculator, NO-TRADE logic.
- [ ] **PHASE 6: Backtesting Engine & Performance Analytics**
  - Realistic simulation, fee/slippage modeling, Sharpe/Sortino/drawdown metrics, baseline benchmarks.
- [ ] **PHASE 7: Machine Learning & Model Registry**
  - Calibrated classifiers (Logistic & Gradient Boosted Trees), Brier score, Champion/Challenger registry.
- [ ] **PHASE 8: Paper Trading System**
  - Virtual order matching against live or simulated market ticks.
- [ ] **PHASE 9: Bybit Demo Trading Integration**
  - End-to-end execution on Bybit Demo with reconciliation and safety guardrails.
- [ ] **PHASE 10: Financial Terminal Web Dashboard**
  - React + TypeScript + Tailwind CSS terminal with charts, order panels, kill switch, backtester.
- [ ] **PHASE 11: Monitoring, Alerts & Security Hardening**
  - WebSocket heartbeat monitor, audit trail logging, secret scanning.
- [ ] **PHASE 12: Packaging, Verification & Final Delivery**
  - Full test suite execution, packaging as `aegistrade-ai.zip`, deployment guides.
