[GOV]: sync governance to v9.0 + 2026-10-24 findings; stage GAP-077/067 prompts
Some checks failed
CI Build & Test / Build & Test (Windows) (push) Has been cancelled
CI Build & Test / Build & Test (Linux/mono) (push) Has been cancelled

This commit is contained in:
2026-10-26 08:12:20 -04:00
parent bf7acbb94a
commit 5907e9cc54
16 changed files with 4728 additions and 22 deletions

View File

@@ -1,24 +1,33 @@
# NEXT: RB-4.1 — Gate Run #3 Configuration Freeze
# Staged: 2026-08-03
# Sprint: Gate 3 Preparation | Estimated: ~20 min operator work
# NEXT: Stage 0 run order — restore trust in the artifact, then make backtests trade again
# Staged: 2026-10-24 — DEC-20261024-01/02/03 (supersedes the 2026-08-03 RB-4.1 procedure; that freeze was discarded by DEC-20260922-01)
# ─────────────────────────────────────────────────────────────────
This is a **human operator procedure**, not a coding task. Gate 2 was contaminated. Do not change strategy source or deploy any branch work after the Gate 3 configuration freeze.
> **Kilocode, read this first.** Use `TASK_P0E_TREE_RECONCILE_PROMPT.md`, `TASK_GAP077_BACKTEST_HISTORICAL_GUARD_PROMPT.md` and `TASK_GAP067_SHADOWED_PROPERTIES_PROMPT.md` for the staged tasks.
1. Start NinjaTrader and use the NinjaScript Editor to compile all three Gate 3 remediations deployed on 2026-08-03.
2. Verify the session log reports each data series' `DaysToLoad` and loaded historical bars, `NarrowRangeFactorCalculator` and `OrbRangeVsAtrFactorCalculator` readiness, and no `EnableKillSwitch=False` warning for SimSimple.
3. In SimSimple ORB, set and triple-check:
- `EnableDynamicStop=TRUE`
- `RunnerActivationMode=Auto`
- `RegimeGate=GradePenalty`
- `MinTradeGrade=A`
- `MaxDailyTrades=1`
- `TestMode=FALSE`
- `EnableFileLogging=TRUE`
- `EnableVerboseLogging=TRUE`
- `LogDirectory=C:\\Users\\billy\\Documents\\NinjaTrader 8\\log\\nt8-sdk`
4. Export the settings file. Record both `ConfigHash` and `CodeVersion` from the export.
5. Add `DEC-GATE3-CONFIG` to `docs/00-governance/decisions.md`, including the export location, frozen values, hashes/stamp, and gate start date.
6. At gate start, apply a no-dual-deploy freeze to the gate machine. Preserve daily `provenance_*.json` and `trades_*.jsonl` artifacts and write weekly runbook heartbeats.
Run strictly in this order. Every Kilocode task below is **COMMIT ONLY** — there is exactly one
deploy, at step 8.
Acceptance: NinjaScript compilation succeeds, an auditable frozen-config record exists before Gate Run #3, and no branch work is deployed while the gate is active.
| # | Who | Task | Done when |
|---|---|---|---|
| 1 | Kilocode | Appendix A → `TASK_P0E_TREE_RECONCILE_PROMPT.md` | Prompt files extracted; two commits (`[GAP-064]`, `[GOV]`); tree clean except operator-flagged items |
| 2 | Operator | **P0-D** `git push origin cleanup/wrappers-pass2` | `git status` shows "up to date with origin" — GAP-069 closed |
| 3 | Kilocode | `TASK_GAP068_DEPLOY_VERIFICATION_PROMPT.md` (staged 2026-09-22) | Preflight whole-folder check committed |
| 4 | Operator | Run preflight **before** the sweep | It **fails** and names `SimpleORBStrategy.cs` as unexpected — the GAP-068 "before" proof. Save the output |
| 5 | Operator | **P0-A** sweep `bin\Custom\Strategies`: delete `SimpleORBStrategy.cs` (2026-07-13 orphan), `@@SimpleORBNT8Wrapper.cs`, the four `SDK*.zip`, `.DS_Store`. **Keep** `NT8StrategyBase.cs`, `SimpleORBNT8.cs`, `SimpleORBNT8Wrapper.cs`, `BaseNT8StrategyWrapper.cs` (deploy-managed), `MinimalTestStrategy.cs` (GAP-073) and your own `@@`/`@` strategies | Folder contains no SDK-owned `.cs` that deploy does not manage |
| 6 | Kilocode | `TASK_GAP066_SETDEFAULTS_ORDERING_PROMPT.md` (staged 2026-09-22) | Committed |
| 7 | Kilocode | Appendix B → `TASK_GAP077_BACKTEST_HISTORICAL_GUARD_PROMPT.md` | Committed |
| 7b | Kilocode | Appendix C → `TASK_GAP067_SHADOWED_PROPERTIES_PROMPT.md` (needs step 6) | Committed |
| 8 | Operator | `deployment\deploy-to-nt8.bat` → close NT8 → delete `NinjaTrader.Custom.dll` → start NT8 → NinjaScript compile → re-add strategy | Compile clean; preflight now **passes** (GAP-068 "after" proof) |
| 9 | Operator | **Backtest** (GAP-077 validation): MNQ, Jan–Oct 2026, ≥60-day warm-up | `Mode : BACKTEST`, trades > 0, ≤1 trade/day, real reasons in `REJECT SUMMARY` |
| 10 | Operator | Settings export (GAP-066 validation) | `Trail=20ticks`, `MinTradeGrade : 5`, `MaxOpenPositions : 2`, `BarsRequiredToTrade: 50` (or your P2-B choices) |
| 11 | Operator | **P0-G** `EnableKillSwitch=True`, `TraceOrders=true`; confirm **real-time** CME data (GAP-078) | Session header shows both; bar age < 300 s |
| 12 | Operator | **N-02** one SIM RTH day | `REJECT: reason=OrbRangeNotEstablished` appears → closes GAP-064 / GAP-034 |
After step 12: Stage 1 (P1-A…P1-G) and Stage 2 (GAP-054 follow-up) per `docs/00-governance/active_work.md`
and Master Document v9.0 §9–10.
**Do not** start Gate Run #3, run RUNNER-001, or trust any Strategy Analyzer output produced before
step 9.
---
---