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

@@ -52,4 +52,8 @@ Capture recurring implementation patterns that impact compile stability.
8. **Compiled-code provenance stamp** (2026-07-14)
- Good pattern: persist the running assembly version plus `ManifestModule.ModuleVersionId` alongside the parameter-only configuration hash.
- Anti-pattern: treat an unchanged parameter hash as proof that unchanged code is running.
- Why it matters: a mid-gate recompile/redeploy can preserve settings while changing executable behavior; the module MVID makes that drift detectable in session and trade artifacts.
- Why it matters: a mid-gate recompile/redeploy can preserve settings while changing executable behavior; the module MVID makes that drift detectable in session and trade artifacts.
## 2026-08-03 [GAP-031] — Submission-sourced trade provenance
- **DO:** Serialize grade, score, ORB range, and resolved mode from the accepted intent and the exact submission decision.
- **DON'T:** Recompute trade facts later from configuration defaults or assumed quantities.