Files
nt8-sdk/docs/00-governance/active_work.md
mo 6658d2d120 [GAP-055]: MaxDailyTrades persistence complete
- SimpleORBStrategy.cs: persist and rehydrate daily trade count by trading date

- NT8StrategyBase.cs: pass live account/log metadata for persistence

- SimpleORBNT8.cs: seed persistence metadata in strategy config

- MaxDailyTradesTests.cs: cover restore, reset, corrupt file, backtest no-I/O, CME date

- docs/00-governance: record validation evidence and manual SIM follow-up

Build: clean | Tests: 521 passing; Core 432 passing | Deploy: backup 20260823_143311
2026-08-23 14:35:07 -04:00

6.4 KiB

Active Work

Last Updated: 2026-08-19 (all four proposed decisions accepted; see decisions.md)

READY 2026-08-19 — v7.0 review blockers, decisions accepted, none yet executed

All four decisions proposed 2026-08-18 were accepted by the operator on 2026-08-19 (DEC-20260818-18, -19, -20, -21), plus a new DEC-20260819-01 sequencing the MNQ instrument cutover as its own follow-on step. Nothing below has been implemented yet — these are now unblocked for Kilocode, not still awaiting a decision. Play-by-play execution order: docs/00-governance/2026-08-19-run-book.md. Full detail: docs/NT8_SDK_Master_Document_v7.0_Complete.docx.

Order Item Prompt Owner Blocking
1 GAP-046 — set AccountStartingBalance or disable EnableTrailingDrawdown operator action, no code Operator Every entry, from 14:30 ET daily
2 GAP-045/046 guards — resolved: MNQ (cutover staged separately) + per-position semantics TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md (Part 3 now actionable) Kilocode, on current NQ config All high-ATR days
3 GAP-048 — split the reject taxonomy TASK_GAP048_REJECT_TAXONOMY_PROMPT.md — implemented/deployed 2026-08-23, backup 20260823_142014 Kilocode Manual NT8 compile and dashboard spot-check
4 GAP-055 — persist MaxDailyTrades across restarts TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md — implemented/deployed 2026-08-23, backup 20260823_143311 Kilocode Manual NT8 compile and SIM restart validation
5 GAP-047 — Part 1 complete (commit cbf45df), Part 2 runtime weight fix implemented 2026-08-23 TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md — verification passed, deploy backup 20260823_135331 Kilocode Fresh gate freeze needed before gate evidence
6 GAP-054 — auto-breakeven destroys the runner trail TASK_GAP054_RUNNER_TRAIL_PROMPT.md — Option 0 implemented + source-verified 2026-08-21, NOT yet SIM-validated, NOT committed Kilocode implemented; operator validates RUNNER-001, still blocked until SIM/replay validation passes
7 GAP-049 — telemetry STATE: score is direction-incorrect TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md Kilocode Dashboard trustworthiness; degrades item 5
8 MNQ cutover — reconfigure instrument, retune risk params for $0.50/tick, fresh Gate 3 freeze not yet staged as its own TASK file Operator + Kilocode Only after items 2, 4, 5, 6 pass validation on NQ

Sequencing note: items 3 and 5 carry zero trading risk and can proceed immediately, in parallel with everything else. Item 6 must land (and validate on SIM/replay) before RUNNER-001 is executed. Item 8 (MNQ cutover) must NOT start until items 2, 4, 5, and 6 have landed and validated on the current NQ configuration — see DEC-20260819-01.


GAP-035 — Rejection-reason file logging (HIGHEST PRIORITY)

Owner: Kilocode State: Deployed 2026-08-17 (deploy-to-nt8.bat, backup 20260817_180455); DEC-20260817-01/02 provenance fixes deployed in the same pass, source hashes verified against repo. NinjaTrader.Custom.dll/.pdb confirmed absent — clean recompile is queued for next NT8 launch. Not yet compiled or cross-checked live.

All four zero-trade candidates log via _logger only and never reach the session file. Route every signal-rejection reason through FileLog alongside _logger so a no-trade day self-documents without requiring the NT8 Output window to have been open.

Pre-cross-check prep completed 2026-08-16: two no-activity current-day session logs were archived to C:\Users\billy\Documents\NinjaTrader 8\log\nt8-sdk\ARCHIVE\20260816-pre-crosscheck-test-sessions\, leaving the active log root clean for the operator's next preflight run.

GAP-034 — Silent zero-trade defect diagnosis

Owner: Kilocode (instrumentation) + operator (capture) State: Pending operator diagnostic session using deployed GAP-035 file logging. See current_status.md for the proven/ruled-out analysis.

Weekend batch 2026-08-15 to 08-17 (strategy DISARMED)

The strategy is off, so this is a disarmed window. Recompiles are permitted. Deferred items requiring recompile are unblocked.

Runtime / DLL:

  • GAP-035 — rejection-reason file logging
  • GAP-036 — risk_mode sourced from intent.Metadata (GAP-031 defect class, missed)
  • GAP-037 — MaxDailyTrades regression tests (4 cases; none currently exist)
  • GAP-038 — ConfigHash must include BarsPeriod (deferred from prior disarmed window; structurally different bar configurations currently produce identical hashes, undermining gate provenance)
  • GAP-039 — _dailyTradeCount increments only when State == State.Realtime, so historical replay cannot latch the daily limit

Non-runtime / QoL (no DLL, no NT8 assembly references, zero runtime risk):

  • DASH-001 — standalone read-only dashboard under tools/dashboard/
  • TOOL-001 — session log triage CLI
  • TOOL-002 — config drift detector across settings exports
  • TOOL-003 — pre-flight gate checklist script

RB-4.1 — Gate Run #3 Configuration Freeze

Owner: Human operator State: Freeze capture completed (docs/gate-runs/gate3/baseline.json), but Gate Run #3 start remains BLOCKED on GAP-034 plus manual NinjaScript compile/re-arm evidence. Gate 2 was contaminated; the Gate 3 clock has not started.

  1. Start NinjaTrader and run the NinjaScript compile check for all three Gate 3 remediations deployed on 2026-08-03.
  2. Verify session-start logging lists each series' DaysToLoad and loaded count, both factor warm-up results, and no SimSimple kill-switch warning.
  3. In SimSimple ORB, set and triple-check:
    • EnableDynamicStop=TRUE
    • RunnerActivationMode=Auto
    • RegimeGate=GradePenalty
    • MinTradeGrade=A
    • MaxDailyTrades=1
    • TestMode=FALSE
    • EnableFileLogging=TRUE
    • EnableVerboseLogging=TRUE
    • LogDirectory=C:\\Users\\billy\\Documents\\NinjaTrader 8\\log\\nt8-sdk
  4. Export settings; preserve the parameter hash and code-version stamp.
  5. Add DEC-GATE3-CONFIG with the frozen configuration and planned start date.
  6. At Gate 3 start, enforce the no-dual-deploy rule. GAP-025 and GAP-022-FOLLOWUP remain branch-only work.

Parallel work, not a gate prerequisite

  • GAP-025 runner no-fill diagnosis blocks live promotion, not Gate Run #2.
  • GAP-022-FOLLOWUP needs an injectable connection-state seam before the three deferred scenarios can be implemented honestly.