docs: record GAP-034/035/036 forensics and DEC-20260814/15 decisions

This commit is contained in:
2026-08-16 16:58:15 -04:00
parent d59be0e607
commit c4ad9696c0
12 changed files with 852 additions and 17 deletions

View File

@@ -1,15 +1,59 @@
# Roadmap
**Last Updated:** 2026-07-14
**Master Reference:** NT8_SDK_Master_Document_v6_Final.docx — Sections 7, 8, 21
**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 BLOCKERS — two, independent
1. **Dirty working tree.** Two Gate 3 freeze attempts today (`freeze_20260816_003543`,
`freeze_20260816_003653`) both failed on `git status --porcelain` not clean. See
`TASK_GATE3_CLEANUP_PROMPT.md`.
2. **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`.
Nothing below Sprint 3 should be started until both blockers clear 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, in progress), GAP-036 (`risk_mode`, in progress),
GAP-037 (`MaxDailyTrades` tests — new test file on disk, uncommitted), GAP-038 (`ConfigHash`
includes `BarsPeriod` — new source + test file on disk, uncommitted), GAP-039 (realtime-only
daily count, in progress). DASH-002 (`EnableStateTelemetry`) also targets this window —
prompt staged same day (`TASK_DASH-002_PROMPT.md`).
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:** all of the above must be committed, tested, and the strategy
re-armed clean before Monday market open. This is the subject of
`TASK_GATE3_CLEANUP_PROMPT.md`.
---
## 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).
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.
---
@@ -32,17 +76,40 @@ Signal accuracy:
Infrastructure:
- GAP-008: CME holiday awareness (SessionManager static HashSet)
- GAP-011: Gitea CI pipeline (build.yml)
- ~~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
✓ 240+ tests still passing
✓ 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: 500 confirmed pre-weekend-batch — 412 Core, 78
Integration, 10 Performance; re-verify after the weekend batch commits land)
✓ NT8 NinjaScript compiles clean
✓ SIM gate met (PF > 2.0, DD < $500)
✓ SIM gate met (PF > 2.0, DD < $500) under a single frozen account
---
@@ -63,7 +130,10 @@ Gate criteria: 2 weeks live MNQ PF > 1.8, max loss < $100/day
- FastAPI /predict endpoint on Ollama workstation
- MLSignalFactorCalculator as 11th IFactorCalculator
- Multi-strategy PortfolioManager coordinator
- Dashboard Phase 1 + 2 (read-only → real-time WebSocket)
- 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