docs: capture Gate 3 freeze baseline

This commit is contained in:
2026-08-16 17:05:27 -04:00
parent de10754129
commit 229919ad29
20 changed files with 768 additions and 90 deletions

View File

@@ -1,19 +1,15 @@
# Current Status — NT8 SDK
**Last Updated:** 2026-08-16 (weekly Sunday republish — see `docs/02-runbooks/weekly_roadmap_cadence.md`)
## BLOCKER 1 — Working tree not clean: two Gate 3 freeze attempts failed today
`preflight.ps1 --freeze` was run twice today (`freeze_20260816_003543`,
`freeze_20260816_003653`, plus a `verify_20260816_003653` attempt) and failed both times on
the same check: `git status --porcelain is not clean. Freeze/verify baseline is invalid until
the working tree is clean.` No `baseline.json` exists yet and `DEC-GATE3-CONFIG.md` remains
`Status: draft`. The dirty tree carries a mix of reviewed-but-uncommitted governance updates,
the weekend runtime remediations (GAP-035/036/039, DASH-002 groundwork), the GAP-038
`ConfigHash`/`BarsPeriod` fix and its tests, the GAP-037 `MaxDailyTrades` regression tests, and
the full `tools/` tree (DASH-001, TOOL-001/002/003, RUNNER-001). See
`TASK_GATE3_CLEANUP_PROMPT.md` for the full file-by-file cleanup instructions. **This blocks
RB-4.1 independently of GAP-034 below** — both must clear before Gate Run #3 can start.
## RESOLVED 2026-08-16 — Dirty working tree blocked Gate 3 freeze
Earlier freeze attempts today (`freeze_20260816_003543`, `freeze_20260816_003653`, plus
`verify_20260816_003653`) failed because `git status --porcelain` was not clean. The reviewed
governance, runtime remediation, GAP-037/038 tests, and standalone `tools/` tree were committed
in logical groups. `preflight.ps1 --freeze` then succeeded and produced
`docs/gate-runs/gate3/baseline.json` from `freeze_20260816_170304`. `DEC-GATE3-CONFIG.md`
remains `Status: draft` because GAP-034 is still open, not because the freeze capture failed.
## BLOCKER 2 — GAP-034: Silent zero-trade defect (UNDIAGNOSED)
## BLOCKER 1 — GAP-034: Silent zero-trade defect (UNDIAGNOSED)
Sessions on 2026-08-03, 08-04, and 08-13 produced **zero trades on days with clear NQ
breakouts**. Root cause is NOT identified. Gate Run #3 cannot start until it is.
@@ -49,21 +45,15 @@ Output window open as a cross-check that file and Output agree. Full instruction
`TASK_GAP035_GAP034_PROMPT.md`.
## Verified implementation state
- **Last completed task:** GAP-033 — Session Historical-Readiness and Gate Safety Logging
- **Active task:** GAP-035 — Rejection-reason file logging (unblocks GAP-034); diff for this
appears to already be in progress in the uncommitted working tree — confirm before
duplicating.
- **Blocked task:** RB-4.1 — Gate Run #3 Configuration Freeze (blocked on both Blocker 1 and
GAP-034)
- **Last completed task:** Gate 3 cleanup/freeze capture — reviewed and committed the weekend remediation/tooling tree; `baseline.json` exists.
- **Active task:** GAP-034 — diagnose the silent zero-trade defect using the newly committed GAP-035 rejection file logging.
- **Blocked task:** Gate Run #3 start (blocked on GAP-034, RUNNER-001 execution/result, and manual NinjaScript compile/re-arm evidence)
- **Deferred:** GAP-025 Runner No-Fill Diagnosis; GAP-022-FOLLOWUP connection-state seam
## Build and test evidence
- `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** (last confirmed count; the
uncommitted GAP-037/038 tests are not yet reflected in a fresh run — re-verify as part of
the tree cleanup).
- Tests: **500 passed, 0 failed** — 412 Core, 78 Integration, 10 Performance (same caveat:
re-run after the cleanup commit lands the new test files).
- Release build/test command: `dotnet test NT8-SDK.sln --configuration Release --verbosity minimal` passed.
- Tests: **511 passed, 0 failed** — 422 Core, 79 Integration, 10 Performance.
## Gate readiness
- Trade provenance now reads grade, weighted score, and ORB ticks from the accepted intent metadata and records the exact runner mode resolved for submission.
@@ -76,16 +66,15 @@ Output window open as a cross-check that file and Output agree. Full instruction
ATR-derived target (28 ticks observed), leaving the runner little room to extend. The
18-combination sweep (`tools/runnersweep`) must run and produce a superseding decision entry
with the selected trigger distance **before** `DEC-GATE3-CONFIG` is finalized.
- **Before Gate 3 start:** clear the dirty working tree (Blocker 1), resolve GAP-034
(Blocker 2), execute the RUNNER-001 sweep, complete the pending NinjaTrader compile check,
freeze the configuration, and enforce the no-deploy rule.
- **Before Gate 3 start:** resolve GAP-034, execute the RUNNER-001 sweep, complete the pending
NinjaTrader compile/re-arm check, and enforce the no-deploy rule. The freeze capture exists
at `docs/gate-runs/gate3/baseline.json`.
## Resolved since last republish (2026-08-14 → 2026-08-16)
- **`EnableShortTrades` source/runtime mismatch — RESOLVED.** DEC-20260814-04 (accepted
2026-08-16): `SimpleORBNT8.SetDefaults()` now sets `EnableShortTrades = true` so a clean
checkout matches live workspace usage. Covered by
`tests/NT8.Core.Tests/Adapters/SimpleORBNT8DefaultsTests.cs` (currently uncommitted — part
of Blocker 1 cleanup).
`tests/NT8.Core.Tests/Adapters/SimpleORBNT8DefaultsTests.cs`.
- **`StartBehavior=AdoptAccountPosition` undocumented change — RESOLVED.** Same DEC-20260814-04
entry documents and retains this setting; it avoids NT8 start-up synchronization
submitting/flattening during historical replay bursts before the first live bar.
@@ -102,18 +91,14 @@ Output window open as a cross-check that file and Output agree. Full instruction
frozen-parameter requirement. Suppresses the `Print` diagnostics needed for GAP-034.
- **`EnableKillSwitch=False`** on the gate account. GAP-033 warning fired correctly; the
setting itself is still wrong.
- **`risk_mode` still serializes as `"Unknown"`.** `GetRiskMode()` reads
`_strategyConfig.Parameters["risk_mode"]`; the SDK writes to `candidate.Metadata`.
Same defect class as GAP-031, not covered by that fix. Tracked as GAP-036 — in the current
weekend batch, not yet confirmed landed (part of Blocker 1 cleanup review).
- **`MaxDailyTrades` regression test — IN PROGRESS.** `tests/NT8.Core.Tests/MaxDailyTradesTests.cs`
now exists on disk (untracked). Tracked as GAP-037; confirm it covers all 4 cases and commit
as part of Blocker 1 cleanup.
- **`ConfigHash` excludes `BarsPeriod` — IN PROGRESS.** `src/NT8.Adapters/ConfigHashCalculator.cs`
and `tests/NT8.Integration.Tests/ConfigHashTests.cs` now exist on disk (untracked). Tracked
as GAP-038 (DEC-20260810-01); confirm wiring and commit as part of Blocker 1 cleanup.
- **`_dailyTradeCount` realtime-only guard — pending.** Tracked as GAP-039, in the current
weekend batch; confirm status as part of Blocker 1 cleanup review.
- **`risk_mode` provenance — FIXED.** GAP-036 now sources `intent.Metadata["risk_mode"]` with
the previous config-parameter lookup retained as fallback.
- **`MaxDailyTrades` regression coverage — ADDED.** GAP-037 four-case suite is committed in
`tests/NT8.Core.Tests/MaxDailyTradesTests.cs`.
- **`ConfigHash` includes `BarsPeriod` — FIXED.** GAP-038 is wired through
`ConfigHashCalculator` and covered by `tests/NT8.Integration.Tests/ConfigHashTests.cs`.
- **`_dailyTradeCount` realtime-only guard — FIXED.** GAP-039 prevents historical replay from
latching the daily trade count while preserving backtest enforcement.
- **Daily bars loaded dropped 129 (08-03/04) to 87 (08-13)** with identical
`DaysToLoad=365`. Warm-up still SATISFIED, not blocking, but unexplained.
- **`DaysToLoad=3` on the primary series** in every observed session. Factor warm-up is
@@ -149,8 +134,7 @@ Bar boundaries differ, so breakout bars differ. Tick Replay must be on for compa
freeze/verify capture — this is the tool both failed freeze attempts today came from.
- **`tools/runnersweep`** (RUNNER-001) — built, not yet executed against real exports. Required
before `DEC-GATE3-CONFIG` per DEC-20260815-01.
- All five directories above are currently **untracked** (`?? tools/` in `git status`) —
part of Blocker 1.
- All five directories above are committed as standalone tooling.
## Authoritative documents
- Master document: **v6.4, republished 2026-08-16** — supersedes the v6.1 reference below.