[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

@@ -49,10 +49,10 @@
- **Part 2 implemented 2026-08-23 (DEC-20260823-01):** replaced the five wrong `1.0` literals with the designed values. Composite normalization already correct (dynamic `weightedScoreSum/totalWeight`) — verified, unchanged. No SIM trade required to validate; fully tested in `NT8.Core`.
- Prompt: `TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md`. Verification: `verify-build.bat` 514/514, Core Release no-build 425/425, deploy backup `20260823_135331`. Fresh gate config freeze needed before any gate evidence collected after this lands.
**[GAP-055] `MaxDailyTrades` does not survive a strategy restart** | Stage 0 | ✅ READY
**[GAP-055] `MaxDailyTrades` does not survive a strategy restart** | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
- 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`.
- Prompt: `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md`. Verification: `verify-build.bat` 521/521, Core Release no-build 432/432, deploy backup `20260823_143311`. Manual NT8 compile and SIM restart validation still required.
**[GAP-048] Reject-reason taxonomy conflates four causes under `KillSwitch`** | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
- 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.