[GAP-053]: stale docs prune complete

- executive_summary.md: replace v6 stale critical list with current status and resolved history

- roadmap.md: remove stale Sprint 3 warning/list and record verified resolved items

- decisions.md: record GAP-053 implementation and verification evidence

Build: clean | Tests: 552 passing | Dual-deployed: no - docs only
This commit is contained in:
2026-08-25 13:25:24 -04:00
parent 8b9a2e2b6a
commit 8a1c3d1649
4 changed files with 147 additions and 41 deletions

View File

@@ -24,6 +24,15 @@ Use this file to record durable project decisions that affect implementation pat
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs` (`MaybeWriteRejectSummarySnapshot`/`LogRejectRateLimited`/`ResetRejectTracking`/`WriteSessionHeader` ~1444-1517), `src/NT8.Strategies/Examples/SimpleORBStrategy.cs` (`OnBar` ~355-432, `RecordSignalRejection` ~1015-1026), `session_20260823_230519.log`
- **Implementation Note (2026-08-25):** GAP-060 implemented as logging/observability only. `NT8StrategyBase.MaybeWriteRejectSummarySnapshot()` no longer has a blanket midnight-to-10:00 AM suppression gate; suppression now delegates to an ORB-window-aware helper and `SimpleORBNT8` overrides that helper so the suppressed window is today's configured 09:30 + `OpeningRangeMinutes`. The once-after-ORB snapshot flag now resets per `barTime.Date`, allowing a new post-ORB summary every day in a continuous multi-day session. `OnBarUpdate()` now calls `MaybeWriteRejectSummarySnapshot(Time[0])` on the live bar heartbeat after the first realtime-bar guard, so 15-minute summary cadence can flush from regular processed bars and is not solely dependent on a newly logged reject. Existing `_rejectDetailsLogged` one-detail-line-per-reason rate limiting, reject reason strings, `REJECT:`/`REJECT SUMMARY:` formats, order flow, sizing, risk, and real trade decisions were unchanged. Open question resolved as possibility **(a)**: the missing `OrbRangeNotEstablished` visibility was adapter summary reporting, not a second SimpleORB rejection defect. A focused `SimpleORBStrategy.OnBar()` test proves the no-breakout RTH path records `OrbRangeNotEstablished` both while the ORB is building and after ORB close when no breakout confirms. Verification: focused GAP-060 tests passed 8/8; `verify-build.bat` passed with 543/543 tests (454 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 454/454.
- **Action Required:** Deployment remains pending. `deployment\deploy-to-nt8.bat` was attempted on 2026-08-25 but failed because NinjaTrader.exe PID 18800 locked `NT8.Core.dll`; operator instructed Kilocode to commit without deploy. After NinjaTrader is closed, rerun deployment, start NT8, manually compile NinjaScript, and in the next SIM session spanning a full trading day confirm `REJECT SUMMARY` appears throughout RTH at a reasonable cadence.
### DEC-20260825-02
- **ID:** DEC-20260825-02
- **Date:** 2026-08-25
- **Status:** implemented
- **Context:** GAP-053 was flagged by the original v7.0 review as `executive_summary.md`/`roadmap.md`'s Sprint 3 list presenting ~12 completed tasks as open. `roadmap.md` already contained its own `STALE-LIST WARNING (GAP-053, added 2026-08-18)` naming the specific stale items (TASK-06a, TASK-06b, GAP-003/004/005/006/008/009/010/019/022, plus GAP-011/GAP-040 separately), and `executive_summary.md` still listed four of the same already-completed items under "Critical Open Issues."
- **Decision:** Prune only independently verified stale items from `executive_summary.md` and `roadmap.md`. Documentation-only, zero trading-behaviour risk.
- **Implementation Note (2026-08-25):** Verified against `SPRINT_BOARD.md` historical records and decision entries before pruning: TASK-06a, TASK-06b, GAP-003, GAP-004, GAP-005, GAP-006, GAP-008, GAP-009, GAP-010, GAP-011, and GAP-019 are complete from the 2026-07-11 historical record; GAP-022 is partial with 5/8 verified on 2026-07-14 and remaining connection-state scenarios tracked as GAP-022-FOLLOWUP; GAP-040 is implemented/firing in production as of 2026-08-18. `executive_summary.md` now points at the v7.0 master reference, moves the four v6 critical issues into a resolved-since-v6 section, and lists current open items instead. `roadmap.md` no longer contains the `STALE-LIST WARNING` or the open-looking July list; it records the pruned resolved history and leaves GAP-030/GAP-007 separate. No source code or tests changed.
- **Related Files:** `docs/00-governance/executive_summary.md`, `docs/00-governance/roadmap.md`, `TASK_GAP053_STALE_DOCS_PRUNE_PROMPT.md`
- **Action Required:** None. Documentation-only; no operator validation required.
### DEC-20260823-07
- **ID:** DEC-20260823-07
- **Date:** 2026-08-23/24

View File

@@ -1,6 +1,6 @@
# Executive Summary
**Last Updated:** 2026-05-04 (Sprint 3 reboot)
**Master Reference:** `NT8_SDK_Master_Document_v6_Final.docx` — 22 sections + Appendices A–F
**Last Updated:** 2026-08-25 (GAP-053 stale-doc prune)
**Master Reference:** `NT8_SDK_Master_Document_v7.0_Complete.docx` — Sections 7, 8, 9, 10, 12; v6.4 remains reference for Appendices B, D, E, and F only.
## What This System Is
NT8-SDK is an institutional-grade algorithmic futures trading platform for NinjaTrader 8.
@@ -14,19 +14,23 @@ Flagship strategy: SimpleORBNT8 — 30-min ORB, NQ primary, 3-mode runner archit
- Connection loss detection (OnConnectionStatusUpdate) ✅
- ExecutionCircuitBreaker — fully wired in NT8StrategyBase ✅
- NT8 order execution — EnterLongManaged/EnterShortManaged with correct SetStopLoss ordering ✅
- 240+ tests passing across NT8.Core.Tests, NT8.Integration.Tests, NT8.Performance.Tests ✅
- 552 tests passing across NT8.Core.Tests, NT8.Integration.Tests, NT8.Performance.Tests ✅
## Critical Open Issues (Sprint 3 Must-Fix)
- **ARCH DEFECT:** Runner leg never fires at responsible risk settings (useRunner = Qty≥2 gate is wrong)
→ Fix: Runner Mode enum with Auto/Mode1DualLeg/Mode2RunnerOnly/Mode3ScalerOnly — TASK-06a
- **ARCH DEFECT:** Fixed 8-tick stop ignores market volatility — stop-outs before moves develop
→ Fix: ATR-based dynamic stop (EnableDynamicStop, AtrPeriod, AtrMultiplier) — TASK-06b
- **RISK GAP:** No Portfolio Heat (Tier 3.5) — aggregate open risk % not enforced — GAP-019
- **RISK GAP:** RiskPerTrade can silently exceed MaxTradeRisk — no startup assertion — GAP-003
## Current Open Issues
- **GAP-054:** Runner trailing-stop/breakeven fix is implemented but still requires SIM validation before RUNNER-001 evidence can be trusted.
- **GAP-050:** `MaxTradeRisk` quantity semantics remain open and require an operator decision before changing live risk-validation math.
- **Gate 3 freeze:** A fresh `DEC-GATE3-CONFIG` and baseline capture are required before collecting gate evidence after the recent scoring/risk/telemetry fixes.
- **Deployment hygiene:** GAP-059, GAP-060, and GAP-051 were committed without deploy because NinjaTrader was running and locking deployed assemblies.
## Resolved Since v6
- TASK-06a Runner Mode enum and 3-mode runner architecture — ✅ 2026-07-11, DEC-20260711-01.
- TASK-06b ATR-based dynamic stop — ✅ 2026-07-11, DEC-20260711-02.
- GAP-019 Portfolio Heat Tier 3.5 — ✅ 2026-07-11, DEC-20260711-03.
- GAP-003 RiskPerTrade/MaxTradeRisk startup assertion — ✅ 2026-07-11, DEC-20260711-04.
## Approved Direction
- No feature expansion until Sprint 2 SIM gate is met: PF > 2.0, MaxDD < $500, 2+ week run
- Sprint 3 is production hardening — all CRITICAL/HIGH gaps from Section 7 of master doc
- Sprint 3 is production hardening — current truth source is `SPRINT_BOARD.md` plus the decision log.
- C# 5.0 / .NET 4.8 / NT8 managed orders — no exceptions
- Dual-deploy rule: every strategy file change goes to BOTH src/ AND NT8 Custom/Strategies/
@@ -34,4 +38,4 @@ Flagship strategy: SimpleORBNT8 — 30-min ORB, NQ primary, 3-mode runner archit
1. Kilocode executes tasks from SPRINT_BOARD.md in order
2. After each task: updates SPRINT_BOARD.md, writes learnings, stages NEXT_PROMPT.md, commits
3. Claude reviews state when a sprint series completes and plans the next workset
4. Master doc (v6 Final) is the authoritative spec for all architecture and implementation details
4. Master doc v7.0 is the current architecture reference; v6.4 remains authoritative only for the appendices noted above.

View File

@@ -1,5 +1,5 @@
# Roadmap
**Last Updated:** 2026-08-18 (v7.0 master-document review; last Sunday republish 2026-08-16 — see `docs/02-runbooks/weekly_roadmap_cadence.md`, DEC-20260816-01)
**Last Updated:** 2026-08-25 (GAP-053 stale-doc prune)
**Master Reference:** NT8_SDK_Master_Document_v7.0_Complete.docx — Sections 7, 8, 9, 10, 12
(+ interactive companion `docs/NT8_SDK_v7.0_Visual_Pack.html`). v6.4 remains the reference for
Appendices B, D, E and F only.
@@ -103,34 +103,24 @@ distance, recorded in a superseding decision entry, before `DEC-GATE3-CONFIG` is
## Sprint 3 — Production Hardening (ACTIVE)
All tasks in order in SPRINT_BOARD.md. Full prompts in KILOCODE_RUNBOOK.md.
> **STALE-LIST WARNING (GAP-053, added 2026-08-18).** The lists immediately below still show
> TASK-06a, TASK-06b, GAP-003, GAP-004, GAP-005, GAP-006, GAP-008, GAP-009, GAP-010, GAP-019 and
> GAP-022 as open work. **All of these were completed on 2026-07-11 / 07-14** — see the historical
> record in `SPRINT_BOARD.md` and DEC-20260711-01..09, DEC-20260713-02. GAP-011 was completed
> 2026-07-11 and GAP-040 is implemented and firing in production as of 2026-08-18. This block has
> not been pruned since July and misleads anyone onboarding. Prune it at the next republish.
Current active production-hardening status:
- GAP-054 runner trail/breakeven fix is implemented but still requires SIM validation before RUNNER-001 evidence can be trusted.
- GAP-050 remains open because it changes live risk-validation semantics and needs an operator decision before implementation.
- GAP-056 and GAP-057 are zero-trading-behavior housekeeping/test-seam follow-ups from GAP-054.
- GAP-053 pruned this stale section on 2026-08-25.
Architecture defects (COMPLETED 2026-07-11 — retained here only until this block is pruned):
- ~~TASK-06a: Runner Mode enum + NT8StrategyBase redesign~~ ✅ 2026-07-11 (DEC-20260711-01)
- ~~TASK-06b: ATR-based dynamic stop~~ ✅ 2026-07-11 (DEC-20260711-02)
Resolved historical items pruned by GAP-053:
- TASK-06a Runner Mode enum + NT8StrategyBase redesign — ✅ 2026-07-11 (DEC-20260711-01).
- TASK-06b ATR-based dynamic stop — ✅ 2026-07-11 (DEC-20260711-02).
- GAP-019 Portfolio Heat Tier 3.5 — ✅ 2026-07-11 (DEC-20260711-03).
- GAP-003 RiskPerTrade/MaxTradeRisk startup assertion — ✅ 2026-07-11 (DEC-20260711-04).
- GAP-004 orbRangeTicks factor fix, GAP-005 GetRiskStatus live limit fix, GAP-006 position-close re-arm, GAP-008 CME holiday awareness, GAP-009 ATR trailing, GAP-010 short-side filter, and GAP-011 Gitea CI — ✅ 2026-07-11 historical record.
- GAP-022 scenario tests — 🟡 5/8 verified 2026-07-14; remaining connection-state scenarios are tracked separately as GAP-022-FOLLOWUP.
- GAP-040 startup warning for non-time bars / low DaysToLoad — implemented and firing in production as of 2026-08-18.
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
Still separate from the stale July list:
- 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**
@@ -141,8 +131,8 @@ Added 2026-08-14 (all discovered during 08-03 to 08-14 forensics):
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
- ~~GAP-040: Startup WARNING when the primary series is non-time-based or `DaysToLoad`
falls below the configured gate minimum~~ — ✅ implemented and firing in production as of 2026-08-18.
Resolved since last republish:
- ~~`EnableShortTrades` source/runtime mismatch~~ — ✅ DEC-20260814-04 (accepted 2026-08-16).