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,22 +1,22 @@
# Current Status — NT8 SDK
**Last Updated:** 2026-07-14
**Last Updated:** 2026-08-03
## Verified implementation state
- **Last completed task:** GAP-029 — Code-Version Provenance Stamp
- **Active task:** RB-4.1 — Gate Run #2 Configuration Freeze (human operator)
- **Last completed task:** GAP-031 — Trade Provenance Signal/Submission Wiring
- **Active task:** RB-4.1 — Gate Run #3 Configuration Freeze (human operator)
- **Next code task:** GAP-025 — Runner No-Fill Anomaly Diagnosis (branch-only during the gate)
- **Following code task:** GAP-022-FOLLOWUP — connection-state seam and the three deferred scenarios
## Build and test evidence
- `verify-build.bat` completed successfully on 2026-07-14.
- Build: **0 errors**, **6 CS1998 warnings** in existing test mock/test methods.
- Tests: **497 passed, 0 failed** — 409 Core, 78 Integration, 10 Performance.
- `verify-build.bat` is not executable under Windows `cmd.exe` because the tracked batch file uses LF-only line endings.
- Release build: **0 errors**, **9 existing CS1998 warnings**.
- Tests: **498 passed, 0 failed** — 410 Core, 78 Integration, 10 Performance.
## Gate readiness
- Provenance records have `session_id`, `trade_seq`, parameter-only `config_hash`, exact `session_tag`, and compiled `code_version` (assembly version + MVID).
- Trade provenance now reads grade, weighted score, and ORB ticks from the accepted intent metadata and records the exact runner mode resolved for submission.
- Every real-time signal writes its `TEST MODE ACTIVE` or `LIVE MODE` status to the session file log.
- GAP-022 has five real scenario assertions. Its remaining three requirements are deferred architecture work, not fabricated tests.
- **Before gate start:** deploy the cleanup source to NinjaTrader Custom\Strategies and run the NinjaTrader compile check. Then freeze the configuration and enforce the no-deploy rule.
- **Before Gate 3 start:** complete the pending NinjaTrader compile check, freeze the configuration, and enforce the no-deploy rule.
## Authoritative documents
- Master document: `docs/NT8_SDK_Master_Document_v6.1_Complete.docx`