Sprint 3: Production Hardening — 9 tasks completed
## Summary Implemented 9 production-hardening tasks across risk, execution, calendar, and governance. All changes verified: build clean (0 errors), 492 tests passing (404 core + 78 integration + 10 perf). ## Core Changes ### Risk & Portfolio (3 tasks) - **GAP-019** Portfolio Heat Tier 3.5: Added MaxHeatPct (default 3%) to AdvancedRiskConfig; ValidatePortfolioHeat() computes TotalOpenRisk + NewTradeRisk / Equity * 100; rejects when exceeded. - **GAP-003** RiskPerTrade <= MaxTradeRisk Assertion: RiskPerTrade property in RiskConfig; throws ArgumentException at ValidateOrder() if RiskPerTrade > MaxTradeRisk; 3 unit tests. - **GAP-005** GetRiskStatus() Live Config: _currentDailyLossLimit field updated from config.DailyLossLimit on each ValidateOrder(); GetRiskStatus() returns actual value; 3 unit tests. ### Execution & Position Management (3 tasks) - **TASK-06a** Runner Mode Architecture: RunnerMode enum (Auto/Mode1DualLeg/Mode2RunnerOnly/ Mode3ScalerOnly/Disabled); ResolveRunnerMode() logic; 4-mode SubmitOrderToNT8() behavior. - **TASK-06b** ATR Dynamic Stop: EnableDynamicStop, AtrPeriod, AtrMultiplier, MinStopTicks, MaxStopTicks; computes dynStop = clamp(round(ATR/TickSize * Mult), Min, Max); overrides intent.StopTicks. - **GAP-006** Position-Close Re-arm: OnPositionUpdate() sends clear_trade_taken when flat; EnableBarBasedRearm parameter gates legacy bar-driven re-arm (default false for live). ### Strategy Intelligence (2 tasks) - **GAP-004** orbRangeTicks Fix: DailyBarContext.OrbRangeTicks field; computed from actual ORB high/low / TickSize; passed to Factor 7 (ORBvsATR). - **GAP-010** Short-Side Regime Filter: EnableShortTrendFilter param; vetoes shorts when AVWAP slope > 0 (bullish); configurable, default true. ### Calendar & Trailing (2 tasks) - **GAP-008** CME Holiday Awareness: NEW CmeHolidayCalendar.cs with 9 observed holidays + Good Friday (Easter calc); EnableCMEHolidayGuard skips ORB window on holidays. - **GAP-009** ATR Trailing Real ATR: EnableATRTrailing, ATRTrailingPeriod (14), ATRTrailingMultiplier (2.0), ATRTrailingMinTicks (8), ATRTrailingMaxTicks (60); computes trailTicks from ATR(Close,Period)[0]. ## Governance - SPRINT_BOARD.md, current_status.md, decisions.md (DEC-20260711-01 through -09), NEXT_PROMPT.md updated - All 9 tasks moved ACTIVE -> COMPLETED; GAP-011 (Gitea CI) now ACTIVE ## Verification - verify-build.bat: 0 errors, 0 warnings - Tests: 492 passing (404 core + 78 integration + 10 performance) ## Files - Modified: 13 source, 3 test, 9 governance - Deleted: 28 obsolete spec/docs - Added: 1 new module (NT8.Core.Calendar), governance files - Dual-deployed to NT8 Custom\Strategies\ ## Rollback Tag: sprint3-production-hardening-complete To revert: git reset --hard sprint3-production-hardening-complete
This commit is contained in:
@@ -1,21 +1,77 @@
|
||||
# Roadmap
|
||||
|
||||
## Sprint 2 (Active): SIM Validation
|
||||
- Validate dual-leg execution behavior with log evidence.
|
||||
- Complete remaining safety/consistency fixes tied to active gap list.
|
||||
- Exit criteria: stable SIM behavior with no unresolved critical gaps.
|
||||
|
||||
## Sprint 3: Production Hardening
|
||||
- Implement CI build/test automation and operational alerting.
|
||||
- Complete lower-priority runtime consistency and observability improvements.
|
||||
- Add walk-forward and broader validation coverage beyond in-sample checks.
|
||||
|
||||
## Sprint 4: Live Capital Readiness
|
||||
- Gate on sustained SIM metrics and drawdown controls.
|
||||
- Introduce go-live runbook and operational controls for controlled capital exposure.
|
||||
|
||||
## Sprint 5: ML Extension (Deferred)
|
||||
- Add inference integration only after sufficient live/sim data and stable production operations.
|
||||
**Last Updated:** 2026-05-04
|
||||
**Master Reference:** NT8_SDK_Master_Document_v6_Final.docx — Sections 7, 8, 21
|
||||
|
||||
## Sequencing Rule
|
||||
- No feature expansion ahead of unresolved safety and validation gates.
|
||||
No sprint advances until its gate criteria are met. No exceptions.
|
||||
|
||||
---
|
||||
|
||||
## Sprint 2 (Parallel — SIM Validation)
|
||||
Gate: PF > 2.0, MaxDD < $500, 2+ weeks uninterrupted, runner confirmed in fills.
|
||||
Status: IN PROGRESS — collecting data. TASK-06a must complete first (runner defect fix).
|
||||
|
||||
---
|
||||
|
||||
## Sprint 3 — Production Hardening (ACTIVE)
|
||||
All tasks in order in SPRINT_BOARD.md. Full prompts in KILOCODE_RUNBOOK.md.
|
||||
|
||||
Architecture defects (blocks live trading):
|
||||
- TASK-06a: Runner Mode enum + NT8StrategyBase redesign
|
||||
- TASK-06b: ATR-based dynamic stop
|
||||
|
||||
Risk hardening:
|
||||
- GAP-019: Portfolio Heat Tier 3.5 (MaxHeatPct enforcement)
|
||||
- GAP-003: RiskPerTrade ≤ MaxTradeRisk assertion at startup
|
||||
- GAP-006: Position-close-driven _tradeTaken re-arm
|
||||
|
||||
Signal accuracy:
|
||||
- GAP-004: orbRangeTicks hardcoded 0.0 fix (Factor 7 always neutral)
|
||||
- GAP-005: GetRiskStatus() hardcoded limit fix
|
||||
- GAP-010: Short-side regime filter gate
|
||||
|
||||
Infrastructure:
|
||||
- GAP-008: CME holiday awareness (SessionManager static HashSet)
|
||||
- GAP-011: Gitea CI pipeline (build.yml)
|
||||
- GAP-009: ATRTrailing real ATR wiring (replace proxy)
|
||||
- GAP-022: 8 scenario tests (ATR spike, FOMC, partial fill, disconnect, etc.)
|
||||
- GAP-007: Walk-forward test setup documentation
|
||||
|
||||
Gate criteria for Sprint 3 → Sprint 4:
|
||||
✓ All CRITICAL/HIGH gaps above resolved
|
||||
✓ 240+ tests still passing
|
||||
✓ NT8 NinjaScript compiles clean
|
||||
✓ SIM gate met (PF > 2.0, DD < $500)
|
||||
|
||||
---
|
||||
|
||||
## Sprint 4 — Second Strategy + ETH + MNQ Live (deferred)
|
||||
- VWAPMeanReversion strategy (11 AM – 2 PM RTH window)
|
||||
- OvernightGapContinuation + OvernightGapReversion
|
||||
- LondonORBNT8 (3:00–3:30 AM ET)
|
||||
- GAP-013: ContractRollHandler completion
|
||||
- GAP-015: Config JSON export/import
|
||||
- GAP-014: LiquidityMonitor Level II prep
|
||||
- Go live with 1 MNQ contract (micro) after SIM gate + Sprint 3 complete
|
||||
|
||||
Gate criteria: 2 weeks live MNQ PF > 1.8, max loss < $100/day
|
||||
|
||||
---
|
||||
|
||||
## Sprint 5 — ML Integration + Dashboard (deferred)
|
||||
- FastAPI /predict endpoint on Ollama workstation
|
||||
- MLSignalFactorCalculator as 11th IFactorCalculator
|
||||
- Multi-strategy PortfolioManager coordinator
|
||||
- Dashboard Phase 1 + 2 (read-only → real-time WebSocket)
|
||||
- n8n AM briefing pipeline
|
||||
- GAP-017: ParameterOptimizer → NT8 Strategy Analyzer
|
||||
|
||||
Gate criteria: 60+ days live fills, model trained and walk-forward validated
|
||||
|
||||
---
|
||||
|
||||
## Sprint 6 — Full Dashboard + iOS (deferred)
|
||||
- Dashboard Phase 3 (control layer: pause, flatten, kill switch)
|
||||
- Dashboard Phase 4 (intelligence layer: playbook, health score, missed trades)
|
||||
- iOS companion app
|
||||
- NT8 Add-On WPF panel (Section 22 / Appendix D of master doc)
|
||||
|
||||
Reference in New Issue
Block a user