7.4 KiB
TASK: GAP-034 — Pre-Cross-Check Prep, Then Operator Diagnostic Session
Staged: 2026-08-16 (supersedes TASK_GAP035_GAP034_PROMPT.md — GAP-035 already deployed)
Sprint: Weekend batch 2026-08-15 to 08-17 (strategy DISARMED) — HIGHEST PRIORITY
─────────────────────────────────────────────────────────────────
Critical framing — read this first
The working tree is clean, the Gate 3 freeze baseline exists (freeze_20260816_170304), and
GAP-035 (rejection-reason FileLog routing) is already committed (4242742) and deployed via
deploy-to-nt8.bat. Do not redo GAP-035 — the prior prompt assumed it was still open; it
isn't. What's left to close GAP-034 splits into two kinds of work, and only the first kind can
run from here:
- Kilocode-actionable now: triage two current-day session logs already sitting in the log directory, update governance docs to match reality, and hand the operator an exact, unambiguous set of steps.
- Requires a human at the physical NT8 machine: opening NinjaTrader, the manual compile
check, arming the strategy, and running the live cross-check session. Kilocode cannot do
this — the last preflight run correctly failed with
0 NinjaTrader processes runningbecause nothing can open the NT8 GUI from a script. Don't attempt to work around this; produce the exact checklist and stop.
Part 1 — Kilocode-actionable
-
Triage the two current-day session logs. The re-arm preflight run failed with "two current-day session logs already exist" in the NT8 log directory. Run
python tools/logtriage/logtriage.py(or point it at the log directory directly) against today's date and identify exactly what these two logs are — timestamps, account, whether they show any SIGNAL/FILL activity or are empty/test artifacts. Do not assume; report what you actually find.- If they are pre-deploy test/dev artifacts (no real gate-relevant activity): move them
(don't delete —
git-style archival, e.g. into a datedarchive/subfolder under the log directory or wherever the existing archival convention in this repo puts prior sessions) so the operator's preflight run for Monday starts against a clean log directory. State exactly what you moved and where. - If either log shows real signal/fill activity or anything that looks like it belongs to today's freeze/deploy work, do NOT archive it — flag it back instead. This could be relevant evidence and archiving it silently would be exactly the kind of "record went stale" mistake this project has already made once (Sec 5.11 of the master document).
- If they are pre-deploy test/dev artifacts (no real gate-relevant activity): move them
(don't delete —
-
Confirm the exact FileLog line format GAP-035 now emits. Read the diff in
4242742for the rejection-reasonFileLogcalls inNT8StrategyBase.cs/SimpleORBStrategy.cs. Write one paragraph intocurrent_status.md's GAP-034 section stating the exact line prefix/format the operator should grep for during the cross-check session (e.g. what a grade-rejection line vs. an ORB-not-established line vs. aMaxDailyTradeslatch line actually look like on disk now). The operator should not have to guess what a "rejection reason" line looks like when comparing Output window text to the file. -
Update governance to match reality:
SPRINT_BOARD.md: update the Gate Run #3 row — working tree clean, freeze baseline captured (freeze_20260816_170304),DEC-GATE3-CONFIG.mdregenerated and stilldraftpending GAP-034.active_work.md: move GAP-035 from "Active" to "Deployed 2026-08-16, pending live cross-check" — it is not fully closed until the operator's session confirms Output and file agree (DEC-20260814-01's actual closure condition). Do not mark it fully done yet.- Log the log-directory triage/archival action in
common_failures.mdor as a shortdecisions.mdentry only if it required a judgment call (e.g. you had to decide whether a log looked like real activity vs. test noise) — routine archival of confirmed test artifacts doesn't need its own decision entry.
Part 2 — Operator handoff (Mo, at the NT8 machine — write this out verbatim as the task's final output so it can be handed off directly)
Produce this as a numbered checklist in your final report, filled in with any specifics from Part 1 (e.g. the actual FileLog line format, confirmation the log directory is now clean):
- Open NinjaTrader 8 on the gate machine.
- Let it recompile on startup (the deploy step deleted
NinjaTrader.Custom.dll/.pdbto force this) — confirm the NinjaScript compile output shows zero errors before proceeding. - Re-run preflight in non-freeze mode:
All 6 checks must now pass — including the two that failed today (process count, now that NT8 is open; current-day logs, now that Part 1 has cleared the directory).
powershell -ExecutionPolicy Bypass -File .\tools\preflight\preflight.ps1 ` -ExpectAccount "SimSimple ORB" ` -ExpectInstrument "NQ SEP26" - Arm
SimSimple ORBper the RB-4.1 parameters, with the NT8 Output window open and visible for the entire session — this is the cross-check, not optional. - Let one full trading session run without interference.
- After the session, compare what the Output window showed against the session's file log using the line format confirmed in Part 1, Step 2. They must agree — that is the cross-check DEC-20260814-01 requires.
- Two outcomes:
- A rejection reason is now visible on a would-be signal that didn't fire — this is
very likely GAP-034's root cause. Note the exact reason string and which of the four
candidates in
current_status.mdit confirms or rules out. - The session traded normally / nothing to compare — report that plainly; the cross-check simply needs to run again on the next quiet day. Do not treat a normal trading day as inconclusive-therefore-closed.
- A rejection reason is now visible on a would-be signal that didn't fire — this is
very likely GAP-034's root cause. Note the exact reason string and which of the four
candidates in
- Report the outcome back so
current_status.md/decisions.md/active_work.mdcan be updated and RB-4.1 can proceed toward the actual Gate Run #3 start, or GAP-034 can be narrowed further.
Explicit non-goals
- Do not attempt to script around the missing NT8 process — there is no headless path to opening NinjaTrader, compiling NinjaScript, or arming a live strategy. Produce the checklist and stop; this is exactly the boundary between Kilocode's automation and the human operator's role (Sec 23.3 of the master document).
- Do not mark GAP-034 or GAP-035 fully closed in governance docs until the operator's session actually confirms the cross-check — a deployed fix with an unconfirmed cross-check is not the same as a closed gap.
Validation
- Report exactly what the two current-day logs were and what was done with them.
current_status.mdGAP-034 section states the exact FileLog rejection-reason format.SPRINT_BOARD.mdandactive_work.mdreflect today's real state (freeze captured, GAP-035 deployed-pending-crosscheck).- The Part 2 operator checklist is included verbatim, filled in, ready to execute with no further clarification needed.
Governance
- No new
decisions.mdentry required unless the log triage forces a judgment call. active_work.md/current_status.mdget a follow-up update once the operator reports the cross-check outcome — that update is a separate, later step, not part of this task.