chore: checkpoint remaining pre-gate worktree changes
- governance: stage v7.0 review prompts, run book, roadmap/current-status/decision updates, and sprint board state - adapters: capture DASH/trailing-drawdown/state-telemetry strategy work already present in the worktree - tools: capture dashboard console/KPI parser updates, logtriage notes, and runnersweep output Build: previously clean | Tests: previously 511 passing | Includes all open staged files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# NT8 SDK — Sprint Board
|
||||
**Last Updated:** 2026-08-16
|
||||
**Last Updated:** 2026-08-18 (v7.0 review — six new tasks staged)
|
||||
**Truth source:** compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
|
||||
|
||||
## Current gate state
|
||||
@@ -17,6 +17,59 @@
|
||||
|
||||
---
|
||||
|
||||
## 🔴 BLOCKERS — staged 2026-08-18 by the v7.0 master-document review
|
||||
|
||||
> Source: `docs/NT8_SDK_Master_Document_v7.0_Complete.docx` (+ `docs/NT8_SDK_v7.0_Visual_Pack.html`).
|
||||
> All six were found by cross-referencing source against the live NinjaTrader log directory.
|
||||
> **No source code was changed by the review** — each item below is a staged prompt awaiting execution.
|
||||
> **2026-08-19: all four proposed decisions accepted by operator (DEC-20260818-18/19/20/21, plus new DEC-20260819-01 on MNQ cutover sequencing). All six items below marked ✅ READY.**
|
||||
> **2026-08-19, later same day: 🛑 PREFLIGHT HALTED by operator before GAP-054 start.** `git status` showed uncommitted `src/` changes, NinjaTrader was running, position status was unconfirmed, and the configured account logged itself as `"gate account SimSimple ORB"`.
|
||||
> **2026-08-19, still later: 🟡 PARTIALLY CLEARED.** Operator confirmed: position flat, NinjaTrader closed, and `SimSimple ORB` is "not of consequence" — a new account with `gate3` explicitly in its name will be stood up for actual Gate Run #3 evidence. **One item still open: the uncommitted DASH-002 diff in `src/` (`NT8StrategyBase.cs`, `SimpleORBNT8.cs`) has not been committed or otherwise reconciled** — recommended before GAP-054 lands on top of it. Full detail: `docs/00-governance/current_status.md` § 2026-08-19.
|
||||
> **2026-08-21: GAP-054 Option 0 IMPLEMENTED and source-verified.** Landed on top of the still-uncommitted DASH-002 diff (unresolved from the line above). Builds/tests/deploy all passed; deployed hash matches repo. **Not yet SIM-validated, not yet committed, not yet cleared for RUNNER-001.** New low-priority follow-ups logged: GAP-056 (breakeven params now fully inert, not just runner-scoped as this board previously assumed) and GAP-057 (no test seam for NT8 managed SetStopLoss/SetTrailStop calls). See DEC-20260818-18 and DEC-20260821-01.
|
||||
|
||||
**[GAP-054] Auto-breakeven destroys the runner's trailing stop** | Stage 2 | 🟡 IMPLEMENTED, UNVALIDATED — **still blocks RUNNER-001**
|
||||
- `SetStopLoss()` on `_runnerSignalName` (`NT8StrategyBase.cs` ~803) replaces the `SetTrailStop()` issued at entry (~2188/2196). Mutually exclusive per signal name in NinjaScript.
|
||||
- Confirmed in 4/4 broker-confirmed trades: trail was 12–16 ticks in profit when breakeven fired, moved back to +1. **The runner has never trailed.**
|
||||
- Conservative floor estimate: 55 ticks (~$275 gross / ~$252 net) forgone vs $25 / $1.96 realised — ≈24% of total P&L.
|
||||
- Supersedes the "retune the breakeven trigger" framing of DEC-20260810-02 and DEC-20260815-01.
|
||||
- Prompt: `TASK_GAP054_RUNNER_TRAIL_PROMPT.md` (updated 2026-08-19: unconditional-skip default resolved, no new flag). Validate on SIM/replay only before any live gate run.
|
||||
|
||||
**[GAP-045 / GAP-046] Risk-envelope coherence guards** | Stage 0/1 | ✅ READY
|
||||
- GAP-045: `MaxStopTicks` 50 × $5 = $250 > `MaxTradeRisk` $200 on NQ. Five valid signals rejected 2026-08-18 10:10 ET at $225.00. The top 20% of the ATR stop range is unreachable.
|
||||
- GAP-046: `EnableTrailingDrawdown=True` with `AccountStartingBalance=$0.00` blocked every entry from 14:30 ET, 27 rejections. No startup assertion pairs the two.
|
||||
- GAP-050: `MaxTradeRisk` has no quantity term — worst case is $600 against a $1,000 daily limit. v6.4 §3.2 documented a `× Qty` the code has never had.
|
||||
- **Decided 2026-08-19:** collision resolved via MNQ (staged separately, DEC-20260819-01); MaxTradeRisk is per-position (total). Tier 1 check reorders to post-sizing. Implement and validate on NQ first — MNQ cutover is a later, separate step.
|
||||
- Prompt: `TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` (Part 3 rewritten 2026-08-19, now fully actionable).
|
||||
|
||||
**[GAP-047] Confluence factor weights pre-populated to 1.0 — Part 1, offline re-scoring study** | Stage 1 | ✅ READY — **highest-value task on the board**
|
||||
- `ConfluenceScorer.cs` ~108–117 / ~410–419: the calculators' designed weights (0.20/0.15/0.15/0.20/0.15) are unreachable dead code. Every `STATE:` factor reads `x1.00`.
|
||||
- Designed total weight 5.85 vs actual 10.00. Grade A reachable on factors 1–5 alone under the design; close to structurally unreachable under equal weights.
|
||||
- Live example: 0.640 (C) as logged vs 0.727 (B) under designed weights. **Leading hypothesis for GAP-034a and for the low trade rate.**
|
||||
- Part 1 is analysis only against existing `STATE:` / `SIGNAL_DETAIL:` lines — no runtime change, no risk.
|
||||
- Prompt: `TASK_GAP047_WEIGHT_RESCORE_PROMPT.md`. Part 2 (the runtime change) is staged separately after the study.
|
||||
|
||||
**[GAP-055] `MaxDailyTrades` does not survive a strategy restart** | Stage 0 | ✅ READY
|
||||
- In-memory counter only (`SimpleORBStrategy.cs` ~39). CME trading date 2026-08-17 took two trades under `MaxDailyTrades=1` across two NT8 sessions; the second session's `DayPnL=$271.96 → $545.44` proves NT8 treated them as one day.
|
||||
- Same class as the 7/28 breach that helped void Gate Run #2. **A gate run cannot currently guarantee its own cap.**
|
||||
- Prompt: `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md`.
|
||||
|
||||
**[GAP-048] Reject-reason taxonomy conflates four causes under `KillSwitch`** | Stage 0 | ✅ READY — diagnostics only, zero trading risk
|
||||
- 2026-08-17 logged `reason=KillSwitch count=647` from a real kill switch; 2026-08-18 logged `count=5` from `MaxTradeRisk`. Same label. `GradeFilter` is overloaded four ways as well.
|
||||
- `REJECT SUMMARY` aggregates on `reason`, so the counts operators and the dashboard read are ambiguous. Defeats what GAP-035 was built for.
|
||||
- Prompt: `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md`.
|
||||
|
||||
**[GAP-049] Telemetry `STATE:` score is direction-incorrect and presented as the trade grade** | Stage 1 | ✅ READY
|
||||
- `GapDirectionAlignmentCalculator` reads `daily.TradeDirection`, which the telemetry path deliberately does not set (DEC-20260818-06). Confirmed: a −523 gap scored "opposes trade" on a `Direction=Sell` setup.
|
||||
- The dashboard's headline Score/Grade is therefore not the trade's. Also degrades the GAP-047 study.
|
||||
- Prompt: `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md`.
|
||||
|
||||
### Also raised by the review, not yet prompted
|
||||
GAP-051 (`MicroUpgradeThreshold` fires every session) · GAP-052 (two hardcoded tick-value tables) ·
|
||||
GAP-053 (`executive_summary.md` and `roadmap.md` Sprint 3 list present ~12 completed tasks as open) ·
|
||||
plus the standing dirty working tree — 17 modified, 5 untracked, including two live strategy files.
|
||||
|
||||
---
|
||||
|
||||
## 🟢 PARALLEL — Non-Algorithm Product Work (safe during Gate Run #3)
|
||||
|
||||
**[DASH-001] Standalone Read-Only Dashboard** | Sprint 5 (pulled forward) | 🔵 ACTIVE
|
||||
@@ -29,6 +82,7 @@
|
||||
- **Extension (2026-08-16):** Add outbound notification module to the dashboard's Python server (NOT to the NinjaScript strategy) using Apprise for unified Discord/Notifiarr/ntfy/etc. delivery. Alerts on FILL, SUBMIT, BREAKEVEN, CONNECTION LOST/RESTORED, daily P&L milestones. Bind server to 127.0.0.1 only, read-only endpoints, no POST/write routes. Poll interval must be explicit/configurable: 1-2s for live session-log tail, 5-10s for trades table/config panel.
|
||||
- **Bugfix/Extension (2026-08-17):** Live server current-session selection now uses newest root-level `session_*.log` by file modification time and populates `current_session` even when notification offsets start at EOF. Dashboard adds a Bars/Days-Loaded panel from existing Historical readiness and FactorWarmup log lines.
|
||||
- **[DASH-003] Bugfix/Extension (2026-08-17):** `/api/state` live trades now reads only the current session date's `trades_*.jsonl` instead of falling back to old historical trade records; `/api/state` also returns current-session rows/diagnostics so Daily Timeline, Config Integrity, Silent Day Explorer, and Decision/Defect headline populate without manual JSON load.
|
||||
- **[DASH-004] Trading Console Alternate Dashboard Page (2026-08-17):** Add `console.html`, `console.css`, and `console.js` as a second read-only dashboard page. It uses only real `/api/state` fields, links back to the triage board, and avoids fabricated trade P&L, multi-instrument, or multi-timeframe telemetry.
|
||||
|
||||
**[DASH-002] Continuous Confluence & Regime Telemetry** | Weekend window 2026-08-16 | 🔵 ACTIVE
|
||||
- Scope: `src\` source change — adds `EnableStateTelemetry` parameter emitting periodic factor/regime state to session log (currently only logged at signal time). Additive observability only; existing SIGNAL/SUBMIT/FILL/PNL_UPDATE lines must remain byte-for-byte unaffected.
|
||||
|
||||
Reference in New Issue
Block a user