[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
This commit is contained in:
2026-08-23 14:35:07 -04:00
parent e36534b641
commit 6658d2d120
9 changed files with 493 additions and 8 deletions

View File

@@ -85,8 +85,8 @@ NinjaTrader needs to be reopened for a manual NinjaScript compile, then a SIM tr
**Play 7 — Risk guards, all three parts (DEC-19a/19b accepted).**
Hand `TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` to Kilocode in full — Part 3 is now written as directly actionable: implement the Tier 1 check reordering (post-sizing, `Qty`-aware) and confirm MNQ is present and correctly valued in both `GetTickValue` tables (GAP-052) as prep for the later cutover. **Do this on the current NQ configuration — do not switch the traded instrument as part of this task.** That's Play 11.
**Play 8 — MaxDailyTrades persistence (DEC-21 accepted).**
Hand `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` to Kilocode. Validate with a manual restart test spanning a simulated 18:00 ET rollover boundary — confirm the count persists across a restart within the same trading day and resets across the boundary.
**Play 8 — MaxDailyTrades persistence (DEC-21 accepted). IMPLEMENTED 2026-08-23, manual SIM restart validation pending.**
`TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` now persists `{trading_date, daily_trade_count, account, strategy_name, symbol}` to `daily_trade_count_<AccountName>_<StrategyName>.json`, rehydrates same-date count, resets and overwrites on a new trading date, and skips file I/O when `Account == null`. Automated tests cover same-date restore, new-date reset, corrupt file, backtest no-I/O, and the 2026-08-16 19:12 / 2026-08-17 11:04 same-CME-date scenario. Remaining validation: manual NT8 compile plus SIM restart test confirming the next same-day signal rejects with `REJECT: reason=MaxDailyTrades`.
**Play 9 — GAP-049 telemetry direction fix.**
No decision gate — this is dashboard/telemetry accuracy only. Hand `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md` to Kilocode any time today. Validate by re-checking the implausible -523.25 point gap value the task flags; confirm it resolves to a sane number after the fix.
@@ -115,7 +115,7 @@ This is a separate, later step — not part of today's six tasks. Once GAP-054,
- [x] GAP-048 taxonomy: implemented, tested, SPRINT_BOARD updated; manual NT8/dashboard spot-check pending
- [x] GAP-047 Part 1/2: study delivered, DEC-20260823-01 accepted, runtime designed weights implemented and tested
- [ ] GAP-054 runner trail: implemented, validated on sim/replay before any live gate run
- [ ] GAP-055 persistence: implemented, restart/rollover-boundary test passed
- [x] GAP-055 persistence: implemented and automated restart/rollover-boundary tests passed; manual SIM restart validation pending
- [ ] GAP-045/046 all three parts: implemented on NQ, including the post-sizing Tier 1 reorder and the MNQ tick-table check
- [ ] GAP-049 telemetry: implemented, -523.25 anomaly re-checked and resolved
- [ ] `git status --short` re-checked: confirm exactly the files each TASK prompt's DO list authorized, nothing else