163 lines
11 KiB
Markdown
163 lines
11 KiB
Markdown
# 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.
|
|
|
|
## BLOCKER 2 — 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.
|
|
|
|
**Proven:** `ProcessStrategyIntent` writes a `SIGNAL:` line to the session file log
|
|
unconditionally for every realtime intent (`NT8StrategyBase.cs` ~1236). No `SIGNAL:` line
|
|
appears in any of these sessions. Therefore no intent was produced — the failure is
|
|
**upstream of the execution pipeline**.
|
|
|
|
**Ruled out:** portfolio risk block, per-strategy risk rejection, sizing failure, order
|
|
submission, broker rejection, runner/scaler leg logic, connection-loss latch
|
|
(`_connectionLost` is correctly cleared on restore, `NT8StrategyBase.cs` ~870).
|
|
|
|
**The defect is INTERMITTENT, not a hard failure.** Broker-confirmed trades executed on
|
|
2026-08-07 and 2026-08-10 (DEC-20260810-02) between the zero-trade days. Any hypothesis
|
|
requiring a persistent latch is therefore weakened.
|
|
|
|
**Remaining candidates** — all four log via `_logger` only (NT8 Output window), never to
|
|
file, which is why session logs cannot distinguish them:
|
|
1. **Grade filter rejection** (composite score below `MinTradeGrade=5` / Grade A) —
|
|
RANKED FIRST. Score varies day to day, which fits an intermittent pattern exactly.
|
|
A "clear breakout" visually is not the same as a Grade A confluence score.
|
|
2. ORB range never established on the HFT Algo Bars primary series — plausible if bar
|
|
construction varies with volume/tick density between sessions.
|
|
3. `MaxDailyTrades` latch — `_dailyTradeCount` pre-incremented by historical replay.
|
|
WEAKENED: would likely persist across days once latched, yet 08-07 and 08-10 traded.
|
|
Still possible if enable time relative to the ORB window differs by day.
|
|
4. RTH window guard evaluating outside 09:30-10:00 — WEAKENED for the same reason; a
|
|
timezone fault would be constant, not intermittent.
|
|
|
|
**Next step (per DEC-20260814-01):** finish GAP-035 (route all rejection reasons to
|
|
`FileLog`), redeploy during the current disarmed window, then run one session with the
|
|
Output window open as a cross-check that file and Output agree. Full instructions in
|
|
`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)
|
|
- **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).
|
|
|
|
## 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.
|
|
- `MaxDailyTrades` now remains enforced after position-flat events and resets only when the trading session date rolls over.
|
|
- Session startup now records per-series load configuration/counts, factor warm-up readiness, and warns if the SimSimple gate account has its kill switch disabled.
|
|
- 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.
|
|
- **Runner leg is unfrozen pending RUNNER-001** (DEC-20260815-01, supersedes DEC-20260810-02):
|
|
the breakeven trigger (20 ticks) sits close to the scaler target (16 ticks) and the
|
|
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.
|
|
|
|
## 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).
|
|
- **`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.
|
|
|
|
## Open findings carried forward
|
|
- **Config drift persists.** 2026-08-11 settings export = `Sim101` / 1 Minute; 2026-08-13
|
|
session = `SimSimple ORB` / HFTAlgoBarsType. Two accounts, two bar types, concurrent.
|
|
Single-frozen-account doctrine is still being violated. `tools/configdiff` (TOOL-002) is now
|
|
built specifically to catch this going forward — run it against the last 3 exports as part
|
|
of every freeze/verify cycle.
|
|
- **No settings export exists for 2026-08-13.** The session that matters has no captured
|
|
config. Unusable as gate evidence regardless of trade outcome.
|
|
- **`EnableVerboseLogging=False`** on the 08-13 running instance, contradicting the
|
|
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.
|
|
- **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
|
|
unaffected (it reads the daily series), but this is far below the intended 180. Startup
|
|
WARNING for this case is GAP-040 (added 2026-08-14), not yet scheduled into a work window.
|
|
|
|
## Backtest/live asymmetry (documented, not a defect)
|
|
A backtest showing no trades is **not** evidence that live would not have traded.
|
|
In Strategy Analyzer the secondary daily series loads only from the backtest start date:
|
|
- `BuildDailyBarContext` returns `Count=0` when fewer than 2 daily bars exist
|
|
(`SimpleORBNT8.cs` ~313), so daily-dependent factors score neutral and the composite
|
|
falls below the Grade A threshold.
|
|
- The regime gate requires `CurrentBars[1] >= SmaPeriodLong` (50 daily bars,
|
|
`NT8StrategyBase.cs` ~1122) and never arms on short backtests.
|
|
- Neither path errors. The NR7 warm-up advisory deliberately does not block (~546-554).
|
|
|
|
**Required:** set the Strategy Analyzer start date **at least 60 trading days** before the
|
|
target day, then read only the target day's results. This is now a mandatory validity rule
|
|
enforced by `tools/runnersweep` for the RUNNER-001 sweep (DEC-20260814-03, DEC-20260815-01).
|
|
|
|
**Caveat:** on non-time-based bars (HFT Algo Bars), NT8 builds bars in backtest from
|
|
historical minute data unless Tick Replay is enabled, while live builds from real ticks.
|
|
Bar boundaries differ, so breakout bars differ. Tick Replay must be on for comparability.
|
|
|
|
## Tooling status (all standalone, zero NT8 assembly references)
|
|
- **`tools/dashboard`** (DASH-001) — built, approved 2026-08-10. Read-only, three launch
|
|
modes (direct file, static localhost, live server with Apprise notifications).
|
|
- **`tools/logtriage`** (TOOL-001) — built. Produces the JSON the dashboard and weekly
|
|
status review both consume.
|
|
- **`tools/configdiff`** (TOOL-002) — built. Config-drift matrix across settings exports;
|
|
independently catches the DEC-20260810-01 hash-vs-BarsPeriod defect class.
|
|
- **`tools/preflight`** (TOOL-003) — built. Morning go/no-go checks plus Gate 3
|
|
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.
|
|
|
|
## Authoritative documents
|
|
- Master document: **v6.4, republished 2026-08-16** — supersedes the v6.1 reference below.
|
|
Delivered by the operator's Claude session; placing the file under `docs/` and updating this
|
|
pointer is tracked alongside the Blocker 1 cleanup commit.
|
|
- Prior reference (superseded): `docs/NT8_SDK_Master_Document_v6.1_Complete.docx`
|
|
- Operator runbook: `docs/02-runbooks/NT8_SDK_Operator_Runbook_v1.0.docx`
|
|
- Weekly cadence rule: `docs/02-runbooks/weekly_roadmap_cadence.md` (DEC-20260816-01)
|
|
- Decision correction: `DEC-20260713-02`
|