Files
nt8-sdk/docs/00-governance/roadmap.md

146 lines
7.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Roadmap
**Last Updated:** 2026-08-16 (weekly Sunday republish — see `docs/02-runbooks/weekly_roadmap_cadence.md`, DEC-20260816-01)
**Master Reference:** NT8_SDK_Master_Document_v6.4_Complete.docx — Sections 7, 8, 21
## Sequencing Rule
No sprint advances until its gate criteria are met. No exceptions.
## Weekly cadence rule (new 2026-08-16)
This document and `current_status.md` are republished every Sunday, before every
Monday–Friday gate week, permanently. This replaces the prior rolling 7-day heartbeat
allowance. See `docs/02-runbooks/weekly_roadmap_cadence.md` and `DEC-20260816-01`.
---
## CURRENT BLOCKER
1. **GAP-034** — Gate Run #3 cannot start. Three sessions (08-03, 08-04, 08-13) produced
zero trades on days with clear NQ breakouts, root cause unidentified. See
`current_status.md` and `TASK_GAP035_GAP034_PROMPT.md`.
Resolved 2026-08-16: the dirty working tree blocker was cleared and
`docs/gate-runs/gate3/baseline.json` was produced by `freeze_20260816_170304`.
Nothing below Sprint 3 should be started until GAP-034 is closed and Gate Run #3 has banked
20 broker-confirmed trades under a single frozen account.
---
## Weekend batch 2026-08-15 to 08-17 (strategy DISARMED)
Runtime: GAP-035 (rejection logging), GAP-036 (`risk_mode`), GAP-037 (`MaxDailyTrades` tests),
GAP-038 (`ConfigHash` includes `BarsPeriod`), and GAP-039 (realtime-only daily count) are
committed. DASH-002 (`EnableStateTelemetry`) remains prompt-staged; no implementation has
landed.
Non-runtime (built, safe at any time): DASH-001 (dashboard), TOOL-001 (log triage),
TOOL-002 (config drift detector), TOOL-003 (pre-flight checklist, including Gate 3
freeze/verify). RUNNER-001 (runner-parameter sweep tool) is also built; execution against
real exports is still required before `DEC-GATE3-CONFIG` (DEC-20260815-01).
**Re-arm requirement:** the committed runtime changes must be manually NinjaScript-compiled,
deployed clean, and re-armed before Monday market open.
---
## Sprint 2 (Parallel — SIM Validation)
Gate: PF > 2.0, MaxDD < $500, 2+ weeks uninterrupted, runner confirmed in fills.
Status: **BLOCKED** — Gate Run #2 dataset voided (multiple concurrent account/instrument
combinations violated the single-frozen-account doctrine). Gate Run #3 clock not started.
**Runner leg — no longer just an observation, now active work.** DEC-20260815-01 (accepted
2026-08-15, supersedes DEC-20260810-02) puts the runner redesign in scope now, during the
disarmed pre-gate window: the breakeven trigger (20 ticks) sits close to the scaler target
(16 ticks) and the ATR-derived target (28 ticks observed 2026-08-10), leaving the runner
little room to extend before being parked at breakeven. The 10-gate-trade revisit trigger is
withdrawn. RUNNER-001 (`tools/runnersweep`) must produce a backtest-validated trigger
distance, recorded in a superseding decision entry, before `DEC-GATE3-CONFIG` is finalized.
---
## 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)~~ — ✅ completed 2026-07-11 (see SPRINT_BOARD.md historical record); `.gitea/workflows/build.yml` and `ci.yml` confirmed present on disk 2026-08-10. This roadmap entry was stale.
- GAP-009: ATRTrailing real ATR wiring (replace proxy)
- GAP-022: 8 scenario tests (ATR spike, FOMC, partial fill, disconnect, etc.)
- GAP-030: Historical ORB state hydration — safely reconstruct the current day's 09:30–10:00 ET range after a late enable without evaluating historical bars as signals; retain the realtime replay guard and add no-historical-order tests.
- GAP-007: Walk-forward test setup documentation
Added 2026-08-14 (all discovered during 08-03 to 08-14 forensics):
- GAP-034: Silent zero-trade defect diagnosis — **BLOCKER**
- GAP-035: Route all signal-rejection reasons to `FileLog` — in progress, weekend batch
- GAP-036: `risk_mode` sourced from `intent.Metadata`, not `_strategyConfig.Parameters` — in progress, weekend batch
- GAP-037: `MaxDailyTrades` regression tests — the GAP-032 fix currently has zero coverage — test file on disk, uncommitted
- GAP-038: `ConfigHash` must include `BarsPeriod`; structurally different bar
configurations currently hash identically, undermining gate provenance — source + test on disk, uncommitted
- GAP-039: `_dailyTradeCount` increments only in `State.Realtime` so historical replay
cannot latch the daily limit — in progress, weekend batch
- GAP-040: Startup WARNING when the primary series is non-time-based or `DaysToLoad`
falls below the configured gate minimum — queued, not yet scheduled into a work window
Resolved since last republish:
- ~~`EnableShortTrades` source/runtime mismatch~~ — ✅ DEC-20260814-04 (accepted 2026-08-16).
`SetDefaults()` now sets `EnableShortTrades = true`; test coverage added
(`SimpleORBNT8DefaultsTests.cs`, uncommitted pending Blocker 1 cleanup).
- ~~`StartBehavior=AdoptAccountPosition` undocumented~~ — ✅ documented and retained by the
same DEC-20260814-04 entry.
Gate criteria for Sprint 3 → Sprint 4:
✓ All CRITICAL/HIGH gaps above resolved
✓ GAP-034 root cause identified and fixed
✓ Working tree clean and Gate 3 freeze captured (`baseline.json` exists)
✓ RUNNER-001 sweep executed and its result recorded in `DEC-GATE3-CONFIG.md`
✓ 500+ tests still passing (current: 511 confirmed — 422 Core, 79 Integration, 10 Performance)
✓ NT8 NinjaScript compiles clean
✓ SIM gate met (PF > 2.0, DD < $500) under a single frozen account
---
## 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) — **note:** DASH-001 (the
standalone `tools/dashboard`) already delivers most of Phase 1's read-only scope ahead of
schedule, built under the parallel-work track rather than this sprint. Phase 2's real-time
WebSocket layer and the in-NT8 control layer (Sprint 6) remain deferred here.
- 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)