GAP-031: fix submitted trade provenance

- serialize grade, score, ORB ticks, and resolved mode from accepted submission data
- add exact-value JSONL provenance test
- prepare governance for Gate Run 3

Build: clean | Tests: 498 passing | Dual-deployed: yes
This commit is contained in:
2026-08-03 08:50:04 -04:00
parent 56d7c7880e
commit 5844b2ce0b
9 changed files with 215 additions and 78 deletions

View File

@@ -1,5 +1,5 @@
# NT8 SDK — Sprint Board
**Last Updated:** 2026-07-14
**Last Updated:** 2026-08-03
**Truth source:** compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
## Current gate state
@@ -8,20 +8,21 @@
|---|---|---|
| Core source build | ✅ | `verify-build.bat`: 0 errors; 6 existing CS1998 warnings in test mocks/tests. |
| Automated tests | ✅ | 497 passed: 409 Core, 78 Integration, 10 Performance. |
| Provenance | ✅ | Session/trade records include session, parameter hash, and compiled code-version stamp. |
| Provenance | ✅ | Gate 3 fix serializes grade, score, submitted runner mode, and ORB ticks from the accepted intent/submission data. |
| Scenario coverage | 🟡 | 5/8 genuine assertions; 3 explicitly deferred for missing seams. |
| Gate Run #2 | ⏳ | Complete RB-4.1 configuration freeze, deploy/compile the cleanup source, then start the gate. |
| Gate Run #2 | ❌ | Contaminated; provenance defects were identified after the run. |
| Gate Run #3 | ⏳ | Provenance fix deployed; complete the manual NinjaScript compile and freeze a new configuration. |
> **Gate deployment rule:** Once RB-4.1 is recorded and Gate Run #2 begins, do not dual-deploy to the gate machine. Run GAP-025 and connection-seam work in branches only.
---
## 🔵 ACTIVE — Human Gate Preparation
## 🔵 ACTIVE — Gate 3 Preparation
**[RB-4.1] Gate Run #2 Configuration Freeze** | Human operator | 🔵 ACTIVE
**[RB-4.1] Gate Run #3 Configuration Freeze** | Human operator | 🔵 ACTIVE
- In SimSimple ORB, set and verify: `EnableDynamicStop=TRUE`, `RunnerActivationMode=Auto`, `RegimeGate=GradePenalty`, `MinTradeGrade=A`, `MaxDailyTrades=1`, `TestMode=FALSE`, `EnableFileLogging=TRUE`, `EnableVerboseLogging=TRUE`, and `LogDirectory=C:\\Users\\billy\\Documents\\NinjaTrader 8\\log\\nt8-sdk`.
- Export settings, retain the parameter hash and code-version stamp, and record `DEC-GATE2-CONFIG` with the gate start date.
- Before the gate begins, dual-deploy the completed cleanup source and run the NinjaTrader compile check.
- The Gate 3 provenance fix was deployed on 2026-08-03; run the NinjaTrader compile check before freezing configuration.
- Acceptance: the frozen export/provenance evidence is archived and the no-deploy rule is in force at gate start.
---
@@ -47,6 +48,10 @@
## ✅ COMPLETED — Sprint 2.7
**[GAP-031] Trade Provenance Signal/Submission Wiring** | ✅ 2026-08-03
- Trade JSONL now serializes confluence grade/score and ORB ticks from the accepted intent metadata and the exact runner mode resolved for submission.
- Release build passed with zero errors; 498 tests passed; deployed source and assembly hashes match. Manual NinjaScript compile remains part of RB-4.1.
**[TASK-GOV-02] Governance Truth Reconciliation** | ✅ 2026-07-13
- Restored the July 11 historical record, corrected documentation placement, and logged DEC-20260713-02.