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,5 +1,5 @@
# Active Work
**Last Updated:** 2026-08-14
**Last Updated:** 2026-08-16
## GAP-035 — Rejection-reason file logging (HIGHEST PRIORITY)
**Owner:** Kilocode
@@ -35,7 +35,7 @@ Deferred items requiring recompile are unblocked.
## RB-4.1 — Gate Run #3 Configuration Freeze
**Owner:** Human operator
**State:** BLOCKED on GAP-034. Gate 2 was contaminated; the Gate 3 clock has not started.
**State:** Freeze capture completed (`docs/gate-runs/gate3/baseline.json`), but Gate Run #3 start remains BLOCKED on GAP-034 plus manual NinjaScript compile/re-arm evidence. Gate 2 was contaminated; the Gate 3 clock has not started.
1. Start NinjaTrader and run the NinjaScript compile check for all three Gate 3 remediations deployed on 2026-08-03.
2. Verify session-start logging lists each series' `DaysToLoad` and loaded count, both factor warm-up results, and no SimSimple kill-switch warning.

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.

View File

@@ -12,33 +12,31 @@ allowance. See `docs/02-runbooks/weekly_roadmap_cadence.md` and `DEC-20260816-01
---
## CURRENT BLOCKERS — two, independent
1. **Dirty working tree.** Two Gate 3 freeze attempts today (`freeze_20260816_003543`,
`freeze_20260816_003653`) both failed on `git status --porcelain` not clean. See
`TASK_GATE3_CLEANUP_PROMPT.md`.
2. **GAP-034** — Gate Run #3 cannot start. Three sessions (08-03, 08-04, 08-13) produced
## CURRENT BLOCKER
1. **GAP-034** — Gate Run #3 cannot start. Three sessions (08-03, 08-04, 08-13) produced
zero trades on days with clear NQ breakouts, root cause unidentified. See
`current_status.md` and `TASK_GAP035_GAP034_PROMPT.md`.
Nothing below Sprint 3 should be started until both blockers clear and Gate Run #3 has
banked 20 broker-confirmed trades under a single frozen account.
Resolved 2026-08-16: the dirty working tree blocker was cleared and
`docs/gate-runs/gate3/baseline.json` was produced by `freeze_20260816_170304`.
Nothing below Sprint 3 should be started until GAP-034 is closed and Gate Run #3 has banked
20 broker-confirmed trades under a single frozen account.
---
## Weekend batch 2026-08-15 to 08-17 (strategy DISARMED)
Runtime: GAP-035 (rejection logging, in progress), GAP-036 (`risk_mode`, in progress),
GAP-037 (`MaxDailyTrades` tests — new test file on disk, uncommitted), GAP-038 (`ConfigHash`
includes `BarsPeriod` — new source + test file on disk, uncommitted), GAP-039 (realtime-only
daily count, in progress). DASH-002 (`EnableStateTelemetry`) also targets this window —
prompt staged same day (`TASK_DASH-002_PROMPT.md`).
Runtime: GAP-035 (rejection logging), GAP-036 (`risk_mode`), GAP-037 (`MaxDailyTrades` tests),
GAP-038 (`ConfigHash` includes `BarsPeriod`), and GAP-039 (realtime-only daily count) are
committed. DASH-002 (`EnableStateTelemetry`) remains prompt-staged; no implementation has
landed.
Non-runtime (built, safe at any time): DASH-001 (dashboard), TOOL-001 (log triage),
TOOL-002 (config drift detector), TOOL-003 (pre-flight checklist, including Gate 3
freeze/verify). RUNNER-001 (runner-parameter sweep tool) is also built; execution against
real exports is still required before `DEC-GATE3-CONFIG` (DEC-20260815-01).
**Re-arm requirement:** all of the above must be committed, tested, and the strategy
re-armed clean before Monday market open. This is the subject of
`TASK_GATE3_CLEANUP_PROMPT.md`.
**Re-arm requirement:** the committed runtime changes must be manually NinjaScript-compiled,
deployed clean, and re-armed before Monday market open.
---
@@ -106,8 +104,7 @@ Gate criteria for Sprint 3 → Sprint 4:
✓ GAP-034 root cause identified and fixed
✓ Working tree clean and Gate 3 freeze captured (`baseline.json` exists)
✓ RUNNER-001 sweep executed and its result recorded in `DEC-GATE3-CONFIG.md`
✓ 500+ tests still passing (current: 500 confirmed pre-weekend-batch — 412 Core, 78
Integration, 10 Performance; re-verify after the weekend batch commits land)
✓ 500+ tests still passing (current: 511 confirmed — 422 Core, 79 Integration, 10 Performance)
✓ NT8 NinjaScript compiles clean
✓ SIM gate met (PF > 2.0, DD < $500) under a single frozen account