- src/NT8.Adapters/NinjaTrader/ConnectionStateMonitor.cs: added plain testable connection-state monitor - src/NT8.Adapters/Strategies/NT8StrategyBase.cs: wired monitor and added pre-submit ConnectionLost check - tests/NT8.Core.Tests/Scenarios/ScenarioTests.cs: added disconnect scenario coverage - SPRINT_BOARD.md: GAP-022-FOLLOWUP implemented/deployed - docs/00-governance/current_status.md: updated - docs/00-governance/decisions.md: added DEC-20260826-07 Build: clean | Tests: 580 passing | Dual-deployed: yes, backup 20260826_011650
35 KiB
NT8 SDK — Sprint Board
Last Updated: 2026-08-26 (GAP-022-FOLLOWUP implemented/deployed) Truth source: compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
Current gate state
| Area | State | Evidence / required next step |
|---|---|---|
| Core source build | ✅ | dotnet test NT8-SDK.sln --configuration Release --verbosity minimal: build succeeded. |
| Automated tests | ✅ | 580 passed: 490 Core, 80 Integration, 10 Performance. |
| Provenance | ✅ | Gate 3 fix serializes grade, score, submitted runner mode, and ORB ticks from the accepted intent/submission data. |
| Scenario coverage | 🟡 | 7/8 genuine assertions; NEWS_DAY_REDUCED_SIZE remains deferred for missing calendar/sizing-policy APIs. |
| Gate Run #2 | ❌ | Contaminated; provenance defects were identified after the run. |
| Gate Run #3 | ⏳ | Working tree clean; freeze capture succeeded: docs/gate-runs/gate3/baseline.json from freeze_20260816_170304; DEC-GATE3-CONFIG.md regenerated and still draft pending GAP-034. Complete manual NinjaScript compile/re-arm before starting the clock. |
Gate deployment rule: Once RB-4.1 is recorded and Gate Run #2 begins, do not dual-deploy to the gate machine. Run GAP-025 and connection-seam work in branches only.
🔴 BLOCKERS — staged 2026-08-18 by the v7.0 master-document review
Source:
docs/NT8_SDK_Master_Document_v7.0_Complete.docx(+docs/NT8_SDK_v7.0_Visual_Pack.html). All six were found by cross-referencing source against the live NinjaTrader log directory. No source code was changed by the review — each item below is a staged prompt awaiting execution. 2026-08-19: all four proposed decisions accepted by operator (DEC-20260818-18/19/20/21, plus new DEC-20260819-01 on MNQ cutover sequencing). All six items below marked ✅ READY. 2026-08-19, later same day: 🛑 PREFLIGHT HALTED by operator before GAP-054 start.git statusshowed uncommittedsrc/changes, NinjaTrader was running, position status was unconfirmed, and the configured account logged itself as"gate account SimSimple ORB". 2026-08-19, still later: 🟡 PARTIALLY CLEARED. Operator confirmed: position flat, NinjaTrader closed, andSimSimple ORBis "not of consequence" — a new account withgate3explicitly in its name will be stood up for actual Gate Run #3 evidence. One item still open: the uncommitted DASH-002 diff insrc/(NT8StrategyBase.cs,SimpleORBNT8.cs) has not been committed or otherwise reconciled — recommended before GAP-054 lands on top of it. Full detail:docs/00-governance/current_status.md§ 2026-08-19. 2026-08-21: GAP-054 Option 0 IMPLEMENTED and source-verified. Landed on top of the still-uncommitted DASH-002 diff (unresolved from the line above). Builds/tests/deploy all passed; deployed hash matches repo. Not yet SIM-validated, not yet committed, not yet cleared for RUNNER-001. New low-priority follow-ups logged: GAP-056 (breakeven params now fully inert, not just runner-scoped as this board previously assumed) and GAP-057 (no test seam for NT8 managed SetStopLoss/SetTrailStop calls). See DEC-20260818-18 and DEC-20260821-01.
[GAP-054] Auto-breakeven destroys the runner's trailing stop | Stage 2 | 🟡 IMPLEMENTED, UNVALIDATED — still blocks RUNNER-001
SetStopLoss()on_runnerSignalName(NT8StrategyBase.cs~803) replaces theSetTrailStop()issued at entry (~2188/2196). Mutually exclusive per signal name in NinjaScript.- Confirmed in 4/4 broker-confirmed trades: trail was 12–16 ticks in profit when breakeven fired, moved back to +1. The runner has never trailed.
- Conservative floor estimate: 55 ticks (~$275 gross / ~$252 net) forgone vs $25 / $1.96 realised — ≈24% of total P&L.
- Supersedes the "retune the breakeven trigger" framing of DEC-20260810-02 and DEC-20260815-01.
- Prompt:
TASK_GAP054_RUNNER_TRAIL_PROMPT.md(updated 2026-08-19: unconditional-skip default resolved, no new flag). Validate on SIM/replay only before any live gate run.
[GAP-045 / GAP-046] Risk-envelope coherence guards | Stage 0/1 | ✅ IMPLEMENTED — deployed 2026-08-23
- GAP-045:
MaxStopTicks50 × $5 = $250 >MaxTradeRisk$200 on NQ. Five valid signals rejected 2026-08-18 10:10 ET at $225.00. The top 20% of the ATR stop range is unreachable. - GAP-046:
EnableTrailingDrawdown=TruewithAccountStartingBalance=$0.00blocked every entry from 14:30 ET, 27 rejections. No startup assertion pairs the two. - GAP-050: tracked separately below — its own entry has the corrected 2026-08-25 finding (live path already safe; fix scoped to the
IRiskManagerinterface contract, not this NQ risk-guard work). - Decided 2026-08-19: collision resolved via MNQ (staged separately, DEC-20260819-01); MaxTradeRisk is per-position (total). Tier 1 check reorders to post-sizing. Implement and validate on NQ first — MNQ cutover is a later, separate step.
- Prompt:
TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md(Part 3 rewritten 2026-08-19, now fully actionable). Verification:verify-build.bat535/535, Core Release no-build 446/446, deploy backup20260823_144817. Manual NT8 compile and NQ SIM validation still required; MNQ cutover remains separate.
[GAP-047] Confluence factor weights pre-populated to 1.0 | Stage 1 | ✅ PART 2 IMPLEMENTED — fresh freeze required
ConfluenceScorer.cs~108–117 / ~410–419: the calculators' designed weights (0.20/0.15/0.15/0.20/0.15) are unreachable dead code. EverySTATE:factor readsx1.00.- Designed total weight 5.85 vs actual 10.00. Grade A reachable on factors 1–5 alone under the design; close to structurally unreachable under equal weights.
- Live example: 0.640 (C) as logged vs 0.727 (B) under designed weights. Leading hypothesis for GAP-034a and for the low trade rate.
- Part 1 (offline study) complete 2026-08-23:
TASK_GAP047_WEIGHT_RESCORE_PROMPT.md, evidencetools/rescore/GAP-047_weight_rescore_output.md/.json, commitcbf45df. - Part 2 implemented 2026-08-23 (DEC-20260823-01): replaced the five wrong
1.0literals with the designed values. Composite normalization already correct (dynamicweightedScoreSum/totalWeight) — verified, unchanged. No SIM trade required to validate; fully tested inNT8.Core. - Prompt:
TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md. Verification:verify-build.bat514/514, Core Release no-build 425/425, deploy backup20260823_135331. Fresh gate config freeze needed before any gate evidence collected after this lands.
[GAP-055] MaxDailyTrades does not survive a strategy restart | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
- In-memory counter only (
SimpleORBStrategy.cs~39). CME trading date 2026-08-17 took two trades underMaxDailyTrades=1across two NT8 sessions; the second session'sDayPnL=$271.96 → $545.44proves NT8 treated them as one day. - Same class as the 7/28 breach that helped void Gate Run #2. A gate run cannot currently guarantee its own cap.
- Prompt:
TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md. Verification:verify-build.bat521/521, Core Release no-build 432/432, deploy backup20260823_143311. Manual NT8 compile and SIM restart validation still required.
[GAP-048] Reject-reason taxonomy conflates four causes under KillSwitch | Stage 0 | ✅ IMPLEMENTED — deployed 2026-08-23
- 2026-08-17 logged
reason=KillSwitch count=647from a real kill switch; 2026-08-18 loggedcount=5fromMaxTradeRisk. Same label.GradeFilteris overloaded four ways as well. REJECT SUMMARYaggregates onreason, so the counts operators and the dashboard read are ambiguous. Defeats what GAP-035 was built for.- Prompt:
TASK_GAP048_REJECT_TAXONOMY_PROMPT.md. Verification:verify-build.bat516/516, Core Release no-build 427/427, parser syntax checks passed, deploy backup20260823_142014. Manual NT8 compile and live/SIM dashboard spot-check still required. - GAP-058 housekeeping implemented 2026-08-23: replaced the tautological reject-line format test with production-path coverage; no production code changed.
[GAP-049] Telemetry STATE: score is direction-incorrect and presented as the trade grade | Stage 1 | ✅ IMPLEMENTED — deployed 2026-08-23
GapDirectionAlignmentCalculatorreadsdaily.TradeDirection, which the telemetry path deliberately does not set (DEC-20260818-06). Confirmed: a −523 gap scored "opposes trade" on aDirection=Sellsetup.- The dashboard's headline Score/Grade is therefore not the trade's. Also degrades the GAP-047 study.
- Prompt:
TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md. Telemetry now clonesDailyBarContext, sets clone-only direction/session-open/volume fields from the synthetic telemetry intent path, and addsorb_range_ticksmetadata forOrbRangeVsAtr. Verification: focused tests 30/30,verify-build.bat538/538, Core Release no-build 449/449, deploy backup20260823_151931. Manual NT8 compile and live/SIM STATE_DETAIL spot-check still required. P1-E finding: the cited-523.25was a telemetry data-alignment defect, not a real overnight gap; NQ SEP26 daily data showed 2026-08-17 close30096.00and 2026-08-18 open30077.00(-19.00).
[GAP-060] REJECT SUMMARY snapshot mechanism goes dark for hours, including the entire RTH day | Stage 1 | ✅ IMPLEMENTED — deploy blocked by running NT8
- Live SIM spot-check 2026-08-23/24: file log shows a ~16-hour
REJECT SUMMARYblackout (23:55:01Aug 23 night →16:00:00Aug 24 afternoon), covering the entire 09:30-16:00 ET trading day. Confirmed the 09:30-10:00 "Grade A" telemetry Mo saw is by-design (real order path correctly blocked pre-ORB-close; those are hypothetical default-long diagnostic scores, not real signals) — but the log currently cannot show why any bar was rejected for that whole span. - Root cause:
MaybeWriteRejectSummarySnapshot's blanketTimeOfDay < 10:00 AMgate suppresses the entire midnight-10am span daily (not just the ORB window);_orbRejectSummarySnapshotWrittenis a session-lifetime flag that fires once (here, accidentally, during the first night's ETH activity) and never again on a multi-day run; snapshots are only ever reject-triggered with no independent timer. - Prompt:
TASK_GAP060_REJECT_SUMMARY_VISIBILITY_PROMPT.md. Implemented as observability-only: suppression is now ORB-window/date-aware, the once-after-ORB flag resets per day, andOnBarUpdatechecks summary cadence on the live bar heartbeat instead of only inside reject logging. Open question resolved as (a):SimpleORBStrategy.OnBar()does recordOrbRangeNotEstablishedbefore and after ORB close during an RTH no-breakout path; missing visibility was adapter summary reporting, not a distinct SimpleORB defect. Verification: focused tests 8/8,verify-build.bat543/543, Core Release no-build 454/454. Deployment attempted but blocked because NinjaTrader.exe PID 18800 lockedNT8.Core.dll; commit made per operator instruction without deploy. [GAP-059] TelemetryOrbRangeVsAtralways reports "no daily bar context" | Stage 1 | ✅ IMPLEMENTED — deploy blocked by running NT8 SimpleORBNT8.OnBarUpdate()computedorbRangeTicksfrom_openingRangeHigh/_openingRangeLow, two fields declared but never assigned anywhere in the file — permanently0.0. GAP-049's telemetry fix depended on this value being nonzero and never fired as a result.- Correct live values already existed in the same file (
sdkOrb.OpeningRangeHigh/OpeningRangeLow, used correctly at theSTATE_CONTEXTand diagnostics call sites) — this was a wiring fix, not new logic. Confirmed data-source only; no order flow, sizing, or risk behavior changed. - Prompt:
TASK_GAP059_ORB_RANGE_TELEMETRY_PROMPT.md. Implemented by sourcing the adapter-built daily context's ORB range fromSdkSimpleORB.OpeningRangeHigh/OpeningRangeLowonly whenOpeningRangeReadyis true, then removing the dead adapter fields. This lets GAP-049's telemetry clone emit nonzeroorb_range_ticksand givesOrbRangeVsAtrFactorCalculatorthe context it already expected. Verification: focused tests 32/32,verify-build.bat545/545, Core Release no-build 456/456. Deployment blocked because NinjaTrader.exe PID 18800 lockedNT8.Core.dll; commit made per operator instruction without deploy. [GAP-051]MicroUpgradeThresholdadvisory re-fires every restart | Stage 1 | ✅ IMPLEMENTED — deploy skipped by operator _microUpgradeSuggestedresets tofalseinState.SetDefaults, which runs on every strategy enable — an account already aboveMicroUpgradeThresholdgetsTIER_UPGRADE_SUGGESTEDre-logged every restart, not once per lifetime. Advisory-only (Print/FileLog), never touches order flow, sizing, or risk.- Prompt:
TASK_GAP051_MICRO_UPGRADE_PERSISTENCE_PROMPT.md. Implemented Option A: once-per-account-lifetime advisory persistence in a dedicatedmicro_upgrade_suggested_<Account>.jsonfile under the configured/default log directory. Missing/corrupt files safely fall back to allowing the reminder and logging a warning;Account == null/non-realtime paths perform no file I/O. Verification: focused tests 5/5,verify-build.bat550/550, Core Release no-build 461/461. Deployment skipped per operator instruction. [GAP-052] Two hardcoded tick-value tables have already drifted out of sync | Stage 1 | ✅ IMPLEMENTED — deploy skipped by operator BasicRiskManager.GetTickValue(6 symbols) andBasicPositionSizer.GetTickValue(8 symbols) disagreed:BasicPositionSizersupported6E/6A, whileBasicRiskManagerfell through to itsdefault: 12.50. For6A, the real tick value is$10.00, creating a latent 25% risk-calculation error if traded. NQ/MNQ were unaffected and remain unchanged.- Prompt:
TASK_GAP052_TICK_VALUE_CONSOLIDATION_PROMPT.md. Implemented Option A: shared platform-neutralInstrumentTickValueTablecontaining the union of existing symbols (ES,MES,NQ,MNQ,CL,GC,6E,6A). Basic and Advanced risk/sizing helpers now delegate to the shared table, and6Arisk validation uses$10.00instead of falling through to$12.50. Verification: focused tests 26/26,verify-build.bat552/552, Core Release no-build 463/463. Deployment skipped per operator instruction.
[GAP-053] executive_summary.md/roadmap.md present ~12 completed tasks as open | Stage 1 | ✅ READY
roadmap.mdalready contains its ownSTALE-LIST WARNING (GAP-053, added 2026-08-18)naming TASK-06a, TASK-06b, GAP-003/004/005/006/008/009/010/019/022 as stale (all completed 2026-07-11/07-14), plus GAP-011/GAP-040 also resolved but left dangling.executive_summary.md(dated 2026-05-04, still references the retired v6 master doc) separately lists four of the same already-completed items as "Critical Open Issues." Documentation-only, zero trading-behaviour risk.- Prompt:
TASK_GAP053_STALE_DOCS_PRUNE_PROMPT.md.
[GAP-056] EnableAutoBreakeven/BreakevenTriggerTicks/BreakevenOffsetTicks are fully inert | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
- Found during GAP-054 verification (
DEC-20260821-01): GAP-054 removed the only code path that ever read these three parameters (the runner breakeven block that was clobbering the trailing stop). They remain declared, defaulted, and exposed in the NinjaTrader UI but do nothing — harmless, but an operator togglingEnableAutoBreakevenwould reasonably expect an effect. - Prompt:
TASK_GAP056_INERT_BREAKEVEN_PARAMS_PROMPT.md. Implemented Option A: retained the properties for saved workspace/settings compatibility, hid all three from the NT8 property grid with[Browsable(false)], and labeled the SimpleORB settings export asUNUSED. No order-flow, sizing, risk,SetStopLoss, orSetTrailStoplogic changed. Verification: focused tests 3/3,verify-build.bat555/555, Core Release no-build 466/466. Deploy intentionally skipped by task prompt.
[GAP-057] No test seam for NinjaScript's SetStopLoss/SetTrailStop managed-order calls | Stage 1 | ✅ IMPLEMENTED — test-only, deploy skipped by prompt
- Found during GAP-054 verification (
DEC-20260821-01): the regression test GAP-054's own task asked for (noSetStopLossafterSetTrailStopfor a runner signal) was never written because no test seam exists — Kilocode correctly declined to fabricate coverage rather than write a fake test. Same defect class as GAP-054 (silent exit-order clobbering) currently has zero regression protection. - Prompt:
TASK_GAP057_STOP_TRAIL_TEST_SEAM_PROMPT.md. Implemented Option B: source-text regression seam. Added tests proving the runner entry block never callsSetStopLoss(_runnerSignalName...)afterSetTrailStop(_runnerSignalName...), the post-entry runner monitor inOnBarUpdate()contains noSetStopLoss/SetTrailStopcalls, and no production order-management indirection was introduced. Verification: focused tests 3/3,verify-build.bat558/558, Core Release no-build 469/469. Deploy intentionally skipped by task prompt.
[GAP-050] MaxTradeRisk quantity term missing from IRiskManager contract | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
- Originally flagged as a live risk-math gap ("$600 vs $1,000 daily limit"). Investigation on 2026-08-25 found the live path is already safe:
SimpleORBNT8/NT8StrategyBaseconstructsBasicRiskManagerdirectly and reaches its quantity-aware 4-argValidateOrderoverload via a runtime type-check. The real gap is thatIRiskManageritself never declared a quantity-aware member —AdvancedRiskManager(unwired to anything live) andNT8OrderAdapter(unwired scaffolding, also validates before sizing) would silently reintroduce the 1-contract assumption if either is ever wired up. - Operator decision 2026-08-25: Option A — add the 4-arg
ValidateOrderto theIRiskManagerinterface itself, implement it onAdvancedRiskManager, remove theas BasicRiskManagertype-check workaround inNT8StrategyBase.cs, and fixNT8OrderAdapter's validate-before-size ordering. No live-behaviour change; live path stays byte-identical. - Prompt:
TASK_GAP050_ADVANCED_RISK_QTY_PROMPT.md. Implemented Option A:IRiskManagernow declares the quantity-aware 4-argValidateOrder;AdvancedRiskManagerdelegates Tier 1 through the quantity-awareBasicRiskManageroverload while retaining 3-arg one-contract behavior;NT8StrategyBaseuses the interface directly instead of anas BasicRiskManagertype-check;NT8OrderAdaptersizes first, rejects zero-size, then validates risk with the sized contract count. Verification: focused Core 10/10, focused Integration 13/13,verify-build.bat566/566, Core Release no-build 476/476. Deploy intentionally skipped by task prompt.
[GAP-061] Expose raw AVWAP/slope/trend-confirm inputs in STATE_CONTEXT telemetry | Stage 1 | ✅ IMPLEMENTED — deploy skipped by prompt
- Found during the "zero trades this week" investigation (
DEC-20260825-04): every real breakout this week and on 2026-08-18 capped at Grade B/C, driven byTrend=0.30on every best short setup. Traced to a provable-from-source asymmetry —trend_confirm(SimpleORBStrategy.cs:970) is set toavwapSlope > 0.0 ? 1.0 : 0.0, unconditionally rewarding a positive slope regardless of trade direction. For a short trade, this is mutually exclusive with the correctly-aligned (negative-slope) bonus — a short can never earn both, even with a cleanly confirmed downtrend. - Scoped observability-only: exposes
Avwap/AvwapSlope/TrendConfirmraw values inSTATE_CONTEXT(same class as GAP-059) so the remaining open question (whether early ORB-timing structurally blocks the price-vs-AVWAP bonus too) can be checked against real numbers. Does not fixtrend_confirm's asymmetry — that's a separate, not-yet-decided follow-up. - Prompt:
TASK_GAP061_AVWAP_TELEMETRY_PROMPT.md. Implemented as observability-only:STATE_CONTEXTnow includesAvwap(F2),AvwapSlope(F4), andTrendConfirm(F1) when those existingcontext.CustomDatakeys are present. Missing keys are omitted with no placeholders. No scoring,trend_confirm,STATE:,STATE_DETAIL:, risk, sizing, or order-flow logic changed. Verification: focused tests 7/7,verify-build.bat561/561, Core Release no-build 472/472. Deploy intentionally skipped by task prompt.
[GAP-062] trend_confirm is direction-blind, capping every short's Trend factor | Stage 1 | ✅ IMPLEMENTED — deployed 2026-08-26 by operator request
- Found while drafting GAP-061 (
DEC-20260825-04addendum), independently re-confirmed by Kilocode's own GAP-061 commit writeback:trend_confirm(SimpleORBStrategy.cs:970) isavwapSlope > 0.0 ? 1.0 : 0.0— unconditionally rewards a positive slope regardless of trade direction. For a short, this is mutually exclusive with the correctly-aligned (negative-slope)+0.3bonus, capping every short's Trend score at 0.30 (or 0.70 with price below AVWAP) even with a cleanly confirmed downtrend. Matches real data exactly: every best real short setup this week and on 2026-08-18 scoredTrend=0.30. WithMinTradeGrade=A, this has silently vetoed every well-formed short setup. - Unlike GAP-050/GAP-061, this is a real scoring-behaviour change, not behaviour-neutral — fixing it can newly qualify short setups that were previously capped below Grade A. Task requires symmetric before/after test proof (long-side unchanged, short-side now earns the same max score a symmetric long would) and explicit SIM before/after observation, not "none required."
- Prompt:
TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md. Implemented by publishing side-specifictrend_confirm_long/trend_confirm_shortinputs fromSimpleORBStrategy.UpdateConfluenceInputs()and havingTrendAlignmentFactorCalculatorselect the value matchingintent.Side, leaving the+0.4/+0.3/+0.3additive score structure unchanged. Tests prove a short in a confirmed downtrend now reaches the same max Trend score as a symmetric long, a short against an uptrend does not earn trend confirmation, and long confirmed-uptrend behavior remains fully confirmed. Verification: focused Intelligence tests 89/89,verify-build.bat569/569. Deployed after explicit operator request; backup20260826_005308. SIM before/after observation required because this is a scoring-behavior change.
Standing item
The dirty working tree — several modified/untracked files including live strategy files — is still unresolved; recommend operator check git status directly on the machine.
🟢 PARALLEL — Non-Algorithm Product Work (safe during Gate Run #3)
[DASH-001] Standalone Read-Only Dashboard | Sprint 5 (pulled forward) | 🔵 ACTIVE
- Scope:
tools\dashboard\— external app, readstrades_*.jsonl,provenance_*.json,settings_*.txt,session_*.logfrom disk. No NT8 assembly references, never compiled intoNinjaTrader.Custom.dll, no writes back to NT8. - v1 features: live trade state (session log tail), today's trades table (grade/score/runner-mode/session-tag), config/provenance panel (config_hash, EnableKillSwitch, TestMode, BarsPeriod), raw session log tail view.
- Explicit non-goal for v1: no control layer (pause/flatten/kill switch) — that's Sprint 6, different risk profile (writes to NT8).
- Zero-risk classification: safe to build, run, and iterate at any time, including while the gate strategy is armed. No timing-rule constraint applies.
- Approved: 2026-08-10 (Mo).
- Related:
docs/IDEAS_BACKLOG.md(n8n AM Briefing — related but separate item),NT8_SDK_Master_DocumentAppendix B (Command Center spec — source of feature inspiration for external version). - Extension (2026-08-16): Add outbound notification module to the dashboard's Python server (NOT to the NinjaScript strategy) using Apprise for unified Discord/Notifiarr/ntfy/etc. delivery. Alerts on FILL, SUBMIT, BREAKEVEN, CONNECTION LOST/RESTORED, daily P&L milestones. Bind server to 127.0.0.1 only, read-only endpoints, no POST/write routes. Poll interval must be explicit/configurable: 1-2s for live session-log tail, 5-10s for trades table/config panel.
- Bugfix/Extension (2026-08-17): Live server current-session selection now uses newest root-level
session_*.logby file modification time and populatescurrent_sessioneven when notification offsets start at EOF. Dashboard adds a Bars/Days-Loaded panel from existing Historical readiness and FactorWarmup log lines. - [DASH-003] Bugfix/Extension (2026-08-17):
/api/statelive trades now reads only the current session date'strades_*.jsonlinstead of falling back to old historical trade records;/api/statealso returns current-session rows/diagnostics so Daily Timeline, Config Integrity, Silent Day Explorer, and Decision/Defect headline populate without manual JSON load. - [DASH-004] Trading Console Alternate Dashboard Page (2026-08-17): Add
console.html,console.css, andconsole.jsas a second read-only dashboard page. It uses only real/api/statefields, links back to the triage board, and avoids fabricated trade P&L, multi-instrument, or multi-timeframe telemetry.
[DASH-002] Continuous Confluence & Regime Telemetry | Weekend window 2026-08-16 | 🔵 ACTIVE
- Scope:
src\source change — addsEnableStateTelemetryparameter emitting periodic factor/regime state to session log (currently only logged at signal time). Additive observability only; existing SIGNAL/SUBMIT/FILL/PNL_UPDATE lines must remain byte-for-byte unaffected. - Requires gate strategy DISABLED for build+deploy+recompile. Confirmed disabled for this weekend window; must be verified clean and re-armed before Monday market open.
- Emission cadence to be proposed by Kilocode (wall-clock throttle, not per-primitive-bar) and approved before implementation.
- Prompt:
TASK_DASH-002_PROMPT.md. - decisions.md entry required once cadence is finalized.
🔵 ACTIVE — Gate 3 Preparation
[RB-4.1] Gate Run #3 Configuration Freeze | Human operator | 🔵 ACTIVE
- In SimSimple ORB, set and verify:
EnableDynamicStop=TRUE,RunnerActivationMode=Auto,RegimeGate=GradePenalty,MinTradeGrade=A,MaxDailyTrades=1,TestMode=FALSE,EnableFileLogging=TRUE,EnableVerboseLogging=TRUE, andLogDirectory=C:\\Users\\billy\\Documents\\NinjaTrader 8\\log\\nt8-sdk. - Export settings, retain the parameter hash and code-version stamp, and record
DEC-GATE3-CONFIGwith the gate start date. - Freeze evidence is archived in
docs/gate-runs/gate3/baseline.json(freeze_20260816_170304). - Remaining acceptance: manual NinjaScript compile/re-arm completed, GAP-034 closed, and the no-deploy rule is in force at gate start.
📋 QUEUE — no deploy to the gate machine during a run
[GAP-025] Runner/scaler order lifecycle invisible in the persistent session log | Sprint 2.7 | ✅ IMPLEMENTED — deployed 2026-08-26
- Reading
OnOrderUpdate/OnExecutionUpdate(NT8StrategyBase.cs~1270-1345) on 2026-08-26 found the actual gap behind the old "runner no-fill anomaly" framing:OnOrderUpdatenever writes toFileLogfor any order state exceptRejected(everything else — submitted, accepted, working, cancelled — is Print-only, invisible outside NT8's live Output window), and theFILLline inOnExecutionUpdatedoesn't include the order/signal name, so scaler vs. runner fills can't be told apart from the file log at all. - Scoped diagnostic-only: adds an
ORDER {signal} State=... Filled=.../... AvgFillPrice=...FileLog line toOnOrderUpdatefor every transition, and adds the signal name to the existingFILLline. Zero change to order submission, sizing, or execution-adapter logic. - Prompt:
TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md. Implemented as additive logging only:OnOrderUpdatenow writes realtimeORDER SDK_... State=... Filled=.../... AvgFillPrice=...lines for SDK-managed order transitions, and the existingFILLline now includesSignal=...so scaler/runner fills are distinguishable. Existing circuit-breaker, execution-adapter, and portfolio-risk callbacks were left unchanged. Verification: focused Adapter tests 81/81,verify-build.bat572/572. Deploy backup20260826_010153.
[GAP-022-FOLLOWUP] Injectable connection-state seam + 2 of 3 deferred scenario tests | Sprint 2.7 | ✅ IMPLEMENTED — deployed 2026-08-26
ScenarioTests.cs's own TODO block (more precise than this board's old one-line summary) names three deferred scenarios:NEWS_DAY_REDUCED_SIZE(needs a high-impact-event calendar + sizing-policy API that doesn't exist yet — separate, larger, not-yet-designed scope, explicitly excluded from this task),MID_TRADE_DISCONNECT, andPRE_ENTRY_DISCONNECT(both need the connection-state seam).- Confirmed on 2026-08-26:
_connectionLostis a bare private field onNT8StrategyBase, set only byOnConnectionStatusUpdateand checked once early inOnBarUpdate— there is no re-check immediately before order submission (ProcessStrategyIntent/SubmitOrderToNT8), confirmingPRE_ENTRY_DISCONNECT's TODO is a real, if narrow, gap. - Implemented as Option A: extracted connection state into plain
ConnectionStateMonitor, wiredNT8StrategyBasethrough it, preserved the existing earlyOnBarUpdateConnectionLostguard, and added a secondConnectionLostcheck inProcessStrategyIntent()before risk/sizing/order submission. Added real scenario coverage forMID_TRADE_DISCONNECTandPRE_ENTRY_DISCONNECT;NEWS_DAY_REDUCED_SIZEstays deferred. - Verification: focused
ScenarioTests9/9,verify-build.bat580/580, Core Release no-build 490/490. Deploy backup20260826_011650. - Prompt:
TASK_GAP022_FOLLOWUP_CONNECTION_SEAM_PROMPT.md.
[GAP-030] Historical ORB range hydration on a late strategy enable | Sprint 2.7 | ✅ IMPLEMENTED — test-only, deployed 2026-08-26
- Traced on 2026-08-26:
SimpleORBStrategy.OnBar()'s ORB-building logic is state-blind (noState.Historical/Realtimeawareness at all inStrategyContext) and accumulates the range from whatever bars it's given;NT8StrategyBase.OnBarUpdate()doesn't currently blockState.Historicalbars from reaching it; andProcessStrategyIntent()already has an explicitState == State.Historicalguard blocking any real order from a historical-replay bar. This suggests both halves GAP-030 originally asked for may already exist by construction — but the task explicitly requires Kilocode to verify (not assume) that NT8 actually delivers same-day historical catch-up bars on a late enable before treating it as settled, and to only implement new logic if that verification finds a real gap; otherwise the task closes the missing test-coverage gap instead. - Prompt:
TASK_GAP030_ORB_HYDRATION_VERIFY_PROMPT.md. Verify-first outcome: no production hydration logic added. Source trace confirmed repo-side behavior works by construction: CoreSimpleORBStrategyis state-blind and hydrates ORB range from delivered bars,NT8StrategyBase.OnBarUpdate()does not blockState.Historicalbars before_sdkStrategy.OnBar(), andProcessStrategyIntent()blocks live-account historical orders before risk/submission viaHistoricalReplayCatchup. Added tests for full-window and partial-window delivered-bar hydration plus adapter source assertions for no executable pre-OnBarhistorical block and preserved historical order guard. Verification: focused GAP-030 tests 4/4,verify-build.bat576/576. Deploy backup20260826_010653. External NT8 docs did not prove the late-enable same-day delivery assumption; remaining validation is operator/platform observation.
[GAP-007] Walk-Forward Validation | Sprint 2.7 | ⏳ QUEUED — only after a passing Gate Run #2 ruling
✅ COMPLETED — Sprint 2.7
[GAP-031] Trade Provenance Signal/Submission Wiring | ✅ 2026-08-03
- Trade JSONL now serializes confluence grade/score and ORB ticks from the accepted intent metadata and the exact runner mode resolved for submission.
- Release build passed with zero errors; 498 tests passed; deployed source and assembly hashes match. Manual NinjaScript compile remains part of RB-4.1.
[GAP-032] Session-Scoped MaxDailyTrades Enforcement | ✅ 2026-08-03
- Position-flat updates no longer reset trade eligibility; the accepted-intent count persists until trading-date rollover.
- Same-session rejection logs
MaxDailyTrades reached; next-session first entry is covered by tests. - Release build passed; 500 tests passed; deployed source and assembly hashes match. Manual NinjaScript compile remains part of RB-4.1.
[GAP-033] Session Historical-Readiness and Gate Safety Logging | ✅ 2026-08-03
- Session startup logs
BarsRequiredToTrade, resolvedDaysToLoad, and actual loaded bars for every data series at DataLoaded and Realtime transition. - Logs explicit 7-daily-bar NarrowRange and 5-daily-bar OrbRangeVsAtr readiness, warning without blocking when insufficient.
- Warns when
EnableKillSwitch=Falseon an account containingSimSimple. - Additive logging only; Release build and all 500 tests passed; deployed hashes match. Manual NinjaScript compile remains part of RB-4.1.
[TASK-GOV-02] Governance Truth Reconciliation | ✅ 2026-07-13
- Restored the July 11 historical record, corrected documentation placement, and logged DEC-20260713-02.
[TASK-00a] Provenance Controls (reissued) | ✅ 2026-07-13
- Session provenance, trade JSONL, SHA256 parameter hashing, settings export, TestMode state, and July 11 parameter export are implemented.
[GAP-024] Session Tagging Data Layer | ✅ 2026-07-13
- Exact
RTH_ORB,ETH,HOLIDAY, andEARLY_CLOSEtags are written to provenance and trade records.
[GAP-022] Scenario Tests | 🟡 PARTIAL — 5/8 verified 2026-07-14
- Implemented with real assertions: high volatility rejection, low liquidity degradation, partial fill, daily-loss halt, and circuit-breaker open.
- Deferred honestly with source TODOs: news-day reduced sizing needs calendar/sizing-policy API; mid-trade and pre-entry disconnect scenarios need an injectable connection-state seam.
[GAP-029] Code-Version Provenance Stamp | ✅ 2026-07-14
- Session provenance, per-trade JSONL, settings exports, and SimpleORB snapshots now record the compiled assembly version plus module MVID.
- Each real-time signal also writes its TestMode/LIVE MODE state to the session file log.
📋 HISTORICAL RECORD: July 11 Sprint (Sprint 2) — COMPLETED
The following 11 tasks were completed on 2026-07-11 and are already implemented in code. They were incorrectly erased/re-queued during a prior governance rewrite; this record preserves their actual completion dates.
| Task | Sprint | Date | Status |
|---|---|---|---|
| TASK-06a Runner Mode | 2 | 2026-07-11 | ✅ |
| TASK-06b ATR Dynamic Stop | 2 | 2026-07-11 | ✅ |
| GAP-019 Portfolio Heat | 2 | 2026-07-11 | ✅ |
| GAP-003 RiskPerTrade Assert | 2 | 2026-07-11 | ✅ |
| GAP-004 orbRangeTicks Fix | 2 | 2026-07-11 | ✅ |
| GAP-005 GetRiskStatus Live | 2 | 2026-07-11 | ✅ |
| GAP-006 Position-Close Re-arm | 2 | 2026-07-11 | ✅ |
| GAP-010 Short-Side Filter | 2 | 2026-07-11 | ✅ |
| GAP-008 CME Holiday | 2 | 2026-07-11 | ✅ |
| GAP-009 ATR Trailing | 2 | 2026-07-11 | ✅ |
| GAP-011 Gitea CI | 2 | 2026-07-11 | ✅ |
📋 Sprint 3 Backlog — deferred until Gate Run #2 ruling
- TASK-06d — VWAP Mean Reversion
- GAP-013 — ContractRollHandler completion
- GAP-014 — LiquidityMonitor Level II preparation
- GAP-015 — Config JSON export/import
- MNQ-001 / MNQ-002 — MNQ preparation and parameter calibration