docs: record GAP-034/035/036 forensics and DEC-20260814/15 decisions
This commit is contained in:
@@ -17,6 +17,26 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 🟢 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, reads `trades_*.jsonl`, `provenance_*.json`, `settings_*.txt`, `session_*.log` from disk. No NT8 assembly references, never compiled into `NinjaTrader.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_Document` Appendix 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.
|
||||||
|
|
||||||
|
**[DASH-002] Continuous Confluence & Regime Telemetry** | Weekend window 2026-08-16 | 🔵 ACTIVE
|
||||||
|
- Scope: `src\` source change — adds `EnableStateTelemetry` parameter 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
|
## 🔵 ACTIVE — Gate 3 Preparation
|
||||||
|
|
||||||
**[RB-4.1] Gate Run #3 Configuration Freeze** | Human operator | 🔵 ACTIVE
|
**[RB-4.1] Gate Run #3 Configuration Freeze** | Human operator | 🔵 ACTIVE
|
||||||
|
|||||||
79
TASK_DASH-001_PROMPT.md
Normal file
79
TASK_DASH-001_PROMPT.md
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
# TASK: DASH-001 — Standalone Read-Only Dashboard (v1 scaffold)
|
||||||
|
# Staged: 2026-08-10
|
||||||
|
# Sprint: Parallel Product Work (safe during Gate Run #3 — does NOT touch NT8 or the strategy DLL)
|
||||||
|
# ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
## Critical framing — read this first
|
||||||
|
|
||||||
|
This is **not** a NinjaScript task. This tool never references NT8 assemblies, is never
|
||||||
|
deployed via `deployment\deploy-to-nt8.bat`, and is never compiled into
|
||||||
|
`NinjaTrader.Custom.dll`. **None of the C# 5.0 / .NET Framework 4.8 constraints that
|
||||||
|
apply elsewhere in this repo apply here.** Modern C#/.NET, or another stack entirely, is
|
||||||
|
fine — see step 2.
|
||||||
|
|
||||||
|
It reads existing on-disk artifacts only. It never writes to NT8, never connects to a
|
||||||
|
brokerage, and never submits orders. It is safe to build, run, and iterate on at any time,
|
||||||
|
including while a gate strategy is armed and trading, because it shares no process, no
|
||||||
|
DLL, and no compiled code with NT8.
|
||||||
|
|
||||||
|
## READ-FIRST (no scaffolding yet)
|
||||||
|
|
||||||
|
1. Review these real sample files to confirm the actual schema (field names/types can
|
||||||
|
drift from documentation — trust the files):
|
||||||
|
- `trades_Simple_ORB_NT8_20260730.jsonl` — note some pre-8/3 files show
|
||||||
|
`confluence_grade:"Unknown"` and `confluence_score:0.0`; the reader must handle this
|
||||||
|
as a valid historical state, not an error.
|
||||||
|
- `provenance_Simple_ORB_NT8_20260730_081321.json` — full config snapshot per session,
|
||||||
|
includes `config_hash`, `ninjascript_properties` (all NinjaScript parameters),
|
||||||
|
`test_mode_banner`, `session_tag`.
|
||||||
|
- Any `settings_Simple_ORB_NT8_*.txt` — human-readable export, useful as fallback/cross-check.
|
||||||
|
- Any `session_*.log` — note two log verbosity levels exist: some lines
|
||||||
|
(`SIGNAL`, `SUBMIT`, `FILL`, `PNL_UPDATE`, `BREAKEVEN`, `RUNNER closed`,
|
||||||
|
`CONNECTION LOST`/`RESTORED`) print regardless of `EnableVerboseLogging`; confirm
|
||||||
|
which lines are verbose-gated vs always-on by comparing a `VerboseLog:True` and a
|
||||||
|
`VerboseLog:False` session file.
|
||||||
|
- Confirm the actual `LogDirectory` path in current provenance:
|
||||||
|
`C:\Users\billy\Documents\NinjaTrader 8\log\nt8-sdk`.
|
||||||
|
2. `tools\market-data\` and `tools\replay\` are both currently empty — there's no existing
|
||||||
|
stack convention in this repo's tooling to match. Propose a stack (e.g. a small local
|
||||||
|
web server + browser UI) with a one-paragraph rationale, and **stop for approval before
|
||||||
|
scaffolding** — don't guess and build.
|
||||||
|
3. Confirm file-watching approach for "live" behavior — these are files being appended to
|
||||||
|
by a separate running process (NT8), not files under this tool's control. Plan for
|
||||||
|
safe concurrent reads (the writer may have a file open) and partial-line handling on a
|
||||||
|
JSONL file mid-write.
|
||||||
|
|
||||||
|
## v1 SCOPE (after stack approval)
|
||||||
|
|
||||||
|
Build only:
|
||||||
|
1. **Live trade state** — tail the most recent session log's `PNL_UPDATE`/`FILL`/
|
||||||
|
`RUNNER closed`/connection-event lines.
|
||||||
|
2. **Today's trades table** — parsed from today's `trades_*.jsonl`: timestamp, side, qty,
|
||||||
|
grade, score, resolved_runner_mode, session_tag. Render `"Unknown"`/`0.0` gracefully,
|
||||||
|
not as an error state.
|
||||||
|
3. **Config/provenance panel** — from the latest `provenance_*.json`: `config_hash`,
|
||||||
|
`EnableKillSwitch`, `TestMode` / `test_mode_banner`, `BarsPeriod` (or its absence,
|
||||||
|
pending the separate ConfigHash fix), `session_tag`.
|
||||||
|
4. **Raw session log tail** — scrolling, filterable, no interpretation layer.
|
||||||
|
|
||||||
|
## EXPLICIT NON-GOALS for v1
|
||||||
|
|
||||||
|
- No control layer — no pause/flatten/kill-switch/order submission of any kind. Read-only.
|
||||||
|
- No NT8 process interaction of any kind — file reads only.
|
||||||
|
- No write access to any file in `C:\dev\nt8-sdk\src\` or the NT8 deployed strategy folder.
|
||||||
|
|
||||||
|
## VALIDATION
|
||||||
|
|
||||||
|
- Confirm the tool has zero references to NT8 assemblies or NinjaScript namespaces.
|
||||||
|
- Confirm it can run fully standalone with NT8 closed, using only historical files, and
|
||||||
|
separately while NT8/the gate strategy is running, with no lock conflicts on the log
|
||||||
|
files.
|
||||||
|
- Report back the proposed stack and file layout under `tools\dashboard\` before writing
|
||||||
|
any application code.
|
||||||
|
|
||||||
|
## GOVERNANCE
|
||||||
|
|
||||||
|
- This is tracked as `[DASH-001]` in `SPRINT_BOARD.md` under "PARALLEL — Non-Algorithm
|
||||||
|
Product Work."
|
||||||
|
- No `decisions.md` entry needed for the scaffold itself; log one only if a
|
||||||
|
schema ambiguity forces a judgment call (e.g. how to represent `"Unknown"` grades).
|
||||||
59
TASK_DASH-002_PROMPT.md
Normal file
59
TASK_DASH-002_PROMPT.md
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# TASK: DASH-002 — Continuous Confluence & Regime Telemetry
|
||||||
|
# Staged: 2026-08-16 (weekend window, gate strategy confirmed DISABLED)
|
||||||
|
# Sprint: Parallel Product Work | Requires: gate strategy DISABLED for this deploy
|
||||||
|
# ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
## Framing
|
||||||
|
This IS a source change in src\ — it recompiles NinjaTrader.Custom.dll. Only
|
||||||
|
proceed because the gate strategy is confirmed disabled for this weekend
|
||||||
|
window. C# 5.0 / .NET 4.8 constraints apply (no interpolation, no
|
||||||
|
null-conditional operators, no async/await, no records).
|
||||||
|
|
||||||
|
This is additive observability only. It must not change entry/exit decision
|
||||||
|
logic, timing, thresholds, or order submission in any way. The existing
|
||||||
|
SIGNAL/SUBMIT/FILL/PNL_UPDATE lines must remain byte-for-byte unaffected.
|
||||||
|
|
||||||
|
Hard deadline context: this must be built, deployed, and verified clean
|
||||||
|
BEFORE market open Monday, with time left to re-arm calmly. If read-first
|
||||||
|
findings suggest this can't be done safely and verified in the available
|
||||||
|
window, say so explicitly rather than rushing a deploy.
|
||||||
|
|
||||||
|
## READ-FIRST
|
||||||
|
1. Locate where factor scores (Setup, Trend, Volatility, Timing,
|
||||||
|
ExecutionQuality, NarrowRange, OrbRangeVsAtr, GapDirectionAlignment,
|
||||||
|
BreakoutVolumeStrength, PriorDayCloseStrength) and regime are currently
|
||||||
|
computed, and where the existing "Factors: ..." log line is emitted
|
||||||
|
(currently only fires at signal time).
|
||||||
|
2. Confirm these values are available/computable on every bar close, not
|
||||||
|
only when a signal candidate exists.
|
||||||
|
3. Propose an emission cadence — NOT every primitive HFT Algo Bar (there are
|
||||||
|
530K+ historical bars loaded; per-bar logging on the primary series risks
|
||||||
|
excessive log volume/disk I/O on the strategy's own thread). Suggest a
|
||||||
|
wall-clock throttle (e.g. once per 1-2 seconds) or gate it to a secondary
|
||||||
|
lower-frequency series. State the tradeoff and stop for approval before
|
||||||
|
implementing.
|
||||||
|
|
||||||
|
## SCOPE
|
||||||
|
1. New log line type, e.g.:
|
||||||
|
[TIME] STATE: Regime=<value> Setup=.. Trend=.. Volatility=.. Timing=..
|
||||||
|
ExecutionQuality=.. NarrowRange=.. OrbRangeVsAtr=..
|
||||||
|
GapDirectionAlignment=.. BreakoutVolumeStrength=..
|
||||||
|
PriorDayCloseStrength=.. Score=.. Grade=..
|
||||||
|
2. Gate behind a new parameter EnableStateTelemetry (default True on SIM/
|
||||||
|
gate accounts, consistent with existing diagnostic flag conventions like
|
||||||
|
EnableChartDiagnostics/EnableVerboseLogging).
|
||||||
|
3. No change to any existing log line, threshold, or order path.
|
||||||
|
|
||||||
|
## VALIDATION
|
||||||
|
- Diff a pre-change and post-change session log's SIGNAL/SUBMIT/FILL/
|
||||||
|
PNL_UPDATE lines — must be byte-for-byte identical.
|
||||||
|
- Report an estimated log volume/disk growth over a full session at the
|
||||||
|
proposed cadence before deploying.
|
||||||
|
- Standard deploy: delete NinjaTrader.Custom.dll, full recompile, start a
|
||||||
|
verification session, confirm clean startup with the new STATE lines
|
||||||
|
present and existing lines unchanged, BEFORE re-arming for Monday.
|
||||||
|
|
||||||
|
## GOVERNANCE
|
||||||
|
- Track as [DASH-002] in SPRINT_BOARD.md.
|
||||||
|
- decisions.md entry required for the final cadence choice — this is a
|
||||||
|
judgment call with disk/performance tradeoffs and needs to be auditable.
|
||||||
96
TASK_GAP035_GAP034_PROMPT.md
Normal file
96
TASK_GAP035_GAP034_PROMPT.md
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
# TASK: GAP-035 / GAP-034 — Finish Rejection-Reason File Logging, Then Close the
|
||||||
|
# Silent Zero-Trade Defect
|
||||||
|
# Staged: 2026-08-16
|
||||||
|
# Sprint: Weekend batch 2026-08-15 to 08-17 (strategy DISARMED) — HIGHEST PRIORITY
|
||||||
|
# ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
## Critical framing — read this first
|
||||||
|
|
||||||
|
This is the true blocker in the chain: GAP-035 blocks GAP-034, GAP-034 blocks RB-4.1, RB-4.1
|
||||||
|
blocks Gate Run #3. Three sessions (08-03, 08-04, 08-13) produced zero trades on days with
|
||||||
|
clear NQ breakouts and the root cause is still unidentified. `current_status.md` has the full
|
||||||
|
proven/ruled-out analysis and the four remaining candidates — read it before writing any
|
||||||
|
code. `docs/00-governance/decisions.md` entry DEC-20260814-01 is the formal decision record
|
||||||
|
for this pair of gaps; its required action is quoted in full below. Do not re-derive the
|
||||||
|
plan — execute it.
|
||||||
|
|
||||||
|
This task depends on TASK_GATE3_CLEANUP_PROMPT.md landing first (or at least the runtime-diff
|
||||||
|
portion of it) since the current uncommitted `NT8StrategyBase.cs`/`SimpleORBNT8.cs` changes
|
||||||
|
may already contain partial GAP-035 work. Check `git log` and the working diff before
|
||||||
|
starting so you don't duplicate or conflict with what's already in flight.
|
||||||
|
|
||||||
|
## GAP-035 — finish it first
|
||||||
|
|
||||||
|
All four zero-trade candidates currently log via `_logger` only and never reach the session
|
||||||
|
file. That means a silent no-trade day cannot be diagnosed after the fact unless someone had
|
||||||
|
the NT8 Output window open live, which defeats the point of file-based provenance.
|
||||||
|
|
||||||
|
Route every signal-rejection reason through `FileLog` alongside `_logger`, for all rejection
|
||||||
|
paths, not just the four current candidates — any future rejection path should get file
|
||||||
|
logging for free. Confirm:
|
||||||
|
|
||||||
|
- Existing SIGNAL/SUBMIT/FILL/PNL_UPDATE/BREAKEVEN/RUNNER-closed/CONNECTION lines remain
|
||||||
|
byte-for-byte unaffected (this is a hard constraint carried over from DASH-002 — the
|
||||||
|
dashboard and `logtriage` both parse these lines and must not break).
|
||||||
|
- Rejection-reason lines are gated the same way as other diagnostic lines with respect to
|
||||||
|
`EnableVerboseLogging` — confirm which behavior is correct by checking how existing
|
||||||
|
SIGNAL-adjacent diagnostic lines behave today (verbose-gated vs always-on), don't assume.
|
||||||
|
- A no-trade day now "self-documents": the session file alone, with no Output window
|
||||||
|
involvement, should be enough to state a specific rejection reason for every evaluated bar
|
||||||
|
that didn't result in a signal.
|
||||||
|
|
||||||
|
## GAP-034 — then close it
|
||||||
|
|
||||||
|
Per DEC-20260814-01's required action, verbatim:
|
||||||
|
|
||||||
|
> Redeploy during the disarmed window, then run one session with the Output window open as a
|
||||||
|
> cross-check that file and Output agree.
|
||||||
|
|
||||||
|
Concretely:
|
||||||
|
|
||||||
|
1. Deploy the GAP-035 build during the current disarmed window (2026-08-15 to 08-17 — confirm
|
||||||
|
you still have time before Monday market open; if not, coordinate re-arm timing with the
|
||||||
|
operator rather than deploying into a live/armed session).
|
||||||
|
2. Run one full session with the NT8 Output window open, watching live.
|
||||||
|
3. In parallel, let the new file logging run.
|
||||||
|
4. After the session, diff what the Output window showed against what the session file
|
||||||
|
recorded. They must agree — this is the cross-check, not a formality. If they disagree,
|
||||||
|
that disagreement is itself the next diagnostic lead; report it exactly, don't paper over
|
||||||
|
it.
|
||||||
|
5. With rejection reasons now on record, evaluate against `current_status.md`'s four
|
||||||
|
remaining candidates and rule in/out based on actual logged reasons from a real session,
|
||||||
|
not further hypothesis.
|
||||||
|
6. If the session produces a genuine breakout day with a rejection reason logged, that's
|
||||||
|
very likely the root cause. If it's another silent zero-trade day, the newly-logged
|
||||||
|
rejection reasons should say why for the first time — report the exact reason string(s).
|
||||||
|
|
||||||
|
## Explicit non-goals
|
||||||
|
|
||||||
|
- No behavior changes beyond routing existing rejection paths to `FileLog`. This is an
|
||||||
|
observability task, not a signal-logic change — do not "fix" a candidate cause speculatively
|
||||||
|
while adding logging; log first, diagnose from real data second.
|
||||||
|
- Do not touch `MaxDailyTrades`, `risk_mode`, or `ConfigHash` logic here — those are
|
||||||
|
GAP-032/036/038, tracked and worked separately.
|
||||||
|
|
||||||
|
## Validation
|
||||||
|
|
||||||
|
- Full test suite still passes (500+ expected, confirm exact count).
|
||||||
|
- Manual NinjaScript compile check passes.
|
||||||
|
- Existing log line formats unchanged — diff a pre- and post-change session log side by side
|
||||||
|
and confirm only new rejection-reason lines were added, nothing else changed.
|
||||||
|
- Deployed source hash matches repo (`preflight.ps1`'s hash check should pass once the freeze
|
||||||
|
from TASK_GATE3_CLEANUP_PROMPT.md is in place).
|
||||||
|
- The live-session Output-vs-file cross-check either agrees, or the disagreement is reported
|
||||||
|
explicitly as a new finding.
|
||||||
|
|
||||||
|
## Governance
|
||||||
|
|
||||||
|
- Update `active_work.md`: move GAP-035 to done, GAP-034 from "Blocked on GAP-035" to
|
||||||
|
whatever its real post-session state is (closed, or reduced to a smaller specific
|
||||||
|
candidate).
|
||||||
|
- If the cross-check session identifies the actual root cause, add a `decisions.md` entry
|
||||||
|
documenting it and update `current_status.md`'s "proven/ruled-out" table accordingly —
|
||||||
|
this directly unblocks RB-4.1 and Gate Run #3, so document it precisely enough that the
|
||||||
|
next reader doesn't have to re-derive the reasoning.
|
||||||
|
- If GAP-034 closes, flag this back immediately — RB-4.1 (Gate Run #3 configuration freeze)
|
||||||
|
can proceed as soon as TASK_GATE3_CLEANUP_PROMPT.md's clean freeze is also in place.
|
||||||
150
TASK_GATE3_CLEANUP_PROMPT.md
Normal file
150
TASK_GATE3_CLEANUP_PROMPT.md
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
# TASK: GATE3-CLEANUP — Clean the Working Tree and Produce a Valid Gate 3 Freeze
|
||||||
|
# Staged: 2026-08-16
|
||||||
|
# Sprint: Gate 3 Preparation (RB-4.1 prerequisite) — BLOCKING
|
||||||
|
# ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
## Critical framing — read this first
|
||||||
|
|
||||||
|
Two freeze attempts today already failed for the same reason:
|
||||||
|
|
||||||
|
- `docs/gate-runs/gate3/freeze_20260816_003543/FREEZE_FAILED.txt`
|
||||||
|
- `docs/gate-runs/gate3/freeze_20260816_003653/FREEZE_FAILED.txt`
|
||||||
|
- `docs/gate-runs/gate3/verify_20260816_003653/FREEZE_FAILED.txt`
|
||||||
|
|
||||||
|
All three say the same thing: `git status --porcelain is not clean. Freeze/verify baseline
|
||||||
|
is invalid until the working tree is clean.` No `baseline.json` exists yet. Gate Run #3
|
||||||
|
cannot start, and `DEC-GATE3-CONFIG.md` (currently `Status: draft`) cannot be accepted,
|
||||||
|
until this is fixed. This is the single blocking item ahead of everything else queued for
|
||||||
|
the weekend disarmed window.
|
||||||
|
|
||||||
|
This task is governance/process work, not a new feature. Do not add scope. Your job is to
|
||||||
|
get every file below into a reviewed, correctly-committed (or correctly-ignored) state, then
|
||||||
|
produce one clean, passing `preflight.ps1 --freeze` capture.
|
||||||
|
|
||||||
|
## The dirty tree, as of the last failed attempt
|
||||||
|
|
||||||
|
```
|
||||||
|
M SPRINT_BOARD.md
|
||||||
|
M docs/00-governance/active_work.md
|
||||||
|
M docs/00-governance/common_failures.md
|
||||||
|
M docs/00-governance/current_status.md
|
||||||
|
M docs/00-governance/decisions.md
|
||||||
|
M docs/00-governance/roadmap.md
|
||||||
|
M src/NT8.Adapters/Strategies/NT8StrategyBase.cs
|
||||||
|
M src/NT8.Adapters/Strategies/SimpleORBNT8.cs
|
||||||
|
M src/NT8.Strategies/Examples/SimpleORBStrategy.cs
|
||||||
|
M tests/NT8.Core.Tests/Intelligence/OrbConfluenceFactorTests.cs
|
||||||
|
M tests/NT8.Core.Tests/Logging/TradeProvenanceSerializerTests.cs
|
||||||
|
?? .hermes/
|
||||||
|
?? src/NT8.Adapters/ConfigHashCalculator.cs
|
||||||
|
?? tests/NT8.Core.Tests/Adapters/SimpleORBNT8DefaultsTests.cs
|
||||||
|
?? tests/NT8.Core.Tests/MaxDailyTradesTests.cs
|
||||||
|
?? tests/NT8.Core.Tests/Strategies/
|
||||||
|
?? tests/NT8.Integration.Tests/ConfigHashTests.cs
|
||||||
|
?? tools/
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: `roadmap.md` and `current_status.md` will very likely show as modified again after
|
||||||
|
this task starts, because a same-day republish of both (per the standing Sunday-cadence
|
||||||
|
rule — see `docs/02-runbooks/weekly_roadmap_cadence.md` once it lands) is happening in
|
||||||
|
parallel. Coordinate with that update rather than reverting it; if you see a conflict, take
|
||||||
|
the more recent content and confirm both authors' facts are preserved.
|
||||||
|
|
||||||
|
## What to do, in order
|
||||||
|
|
||||||
|
1. **Governance doc diffs** (`SPRINT_BOARD.md`, `active_work.md`, `common_failures.md`,
|
||||||
|
`current_status.md`, `decisions.md`, `roadmap.md`): review each diff against the last
|
||||||
|
commit. These almost certainly capture real, already-decided state (GAP-034/035/036
|
||||||
|
analysis, DEC-20260814-01 through DEC-20260815-01, the DEC-20260814-04 `EnableShortTrades`
|
||||||
|
flip accepted today). Confirm nothing in the diff contradicts a decision that was later
|
||||||
|
superseded, then stage and commit as governance-only, e.g.:
|
||||||
|
`git commit -m "docs: record GAP-034/035/036 forensics and DEC-20260814/15 decisions"`
|
||||||
|
|
||||||
|
2. **Runtime source diffs** (`NT8StrategyBase.cs`, `SimpleORBNT8.cs`,
|
||||||
|
`SimpleORBStrategy.cs`): these are weekend-disarmed-window changes. For each, confirm the
|
||||||
|
diff maps to a named item — GAP-035 (rejection-reason `FileLog` routing), GAP-036
|
||||||
|
(`risk_mode` sourced from `intent.Metadata`), GAP-039 (`_dailyTradeCount` realtime-only
|
||||||
|
guard), and/or DASH-002 (`EnableStateTelemetry`, additive only, existing
|
||||||
|
SIGNAL/SUBMIT/FILL/PNL_UPDATE lines byte-for-byte unaffected). If any hunk doesn't map to
|
||||||
|
a named, decided item, stop and flag it — do not commit undocumented behavior changes to
|
||||||
|
files this close to a gate freeze.
|
||||||
|
|
||||||
|
3. **New source file** `src/NT8.Adapters/ConfigHashCalculator.cs`: this is GAP-038
|
||||||
|
(`ConfigHash` must include `BarsPeriod`). Confirm it's referenced from the strategy's
|
||||||
|
config-hash call site and that `tests/NT8.Integration.Tests/ConfigHashTests.cs` (also
|
||||||
|
untracked) actually exercises the new BarsPeriod-inclusion behavior, not just the old
|
||||||
|
hash path.
|
||||||
|
|
||||||
|
4. **New test files** (`SimpleORBNT8DefaultsTests.cs`, `MaxDailyTradesTests.cs`,
|
||||||
|
`tests/NT8.Core.Tests/Strategies/`, `ConfigHashTests.cs`): confirm each corresponds to a
|
||||||
|
named gap — `MaxDailyTradesTests.cs` should be the 4-case GAP-037 regression suite the
|
||||||
|
roadmap calls out as currently having zero coverage. Add all of them.
|
||||||
|
|
||||||
|
5. **`.hermes/`**: determine what this is before touching it. If it's local agent/tool
|
||||||
|
working state (cache, scratch, session artifacts) rather than project source, it does not
|
||||||
|
belong in the repo — add it to `.gitignore` and leave it untracked, do not commit it. If
|
||||||
|
it turns out to be something else, flag it back rather than guessing.
|
||||||
|
|
||||||
|
6. **`tools/`**: this is the full non-runtime tooling tree — `dashboard/` (DASH-001, built
|
||||||
|
and approved 2026-08-10), `logtriage/` (TOOL-001), `configdiff/` (TOOL-002),
|
||||||
|
`preflight/` (TOOL-003, including the Gate 3 freeze/verify capture logic this very task
|
||||||
|
depends on), `runnersweep/` (RUNNER-001, DEC-20260815-01), plus the currently-empty
|
||||||
|
`market-data/` and `replay/`. All of it is standalone, has no NT8 assembly references, and
|
||||||
|
was explicitly approved as safe to build/commit at any time (`SPRINT_BOARD.md`,
|
||||||
|
"PARALLEL — Non-Algorithm Product Work"). Add and commit the whole tree. Double check
|
||||||
|
`tools/dashboard/config.json` and `tools/dashboard/dashboard_state.json` are NOT present
|
||||||
|
or are gitignored if they contain a live operator's local paths/webhook URLs — only
|
||||||
|
`config.example.json` should be committed.
|
||||||
|
|
||||||
|
7. **Build and test.** Run `dotnet test NT8-SDK.sln --configuration Release --verbosity minimal`.
|
||||||
|
All tests must pass (500+ expected; confirm the new GAP-037/038 tests are included in the
|
||||||
|
count). Run the NinjaScript manual compile check per RB-4.1 step 1.
|
||||||
|
|
||||||
|
8. **Commit in logical groups**, not one giant commit — governance docs, runtime
|
||||||
|
remediations (GAP-035/036/039 + DASH-002), GAP-038 ConfigHash fix + its tests, GAP-037
|
||||||
|
regression tests, tools/ tree. Reference GAP/DASH/TOOL IDs in every commit message so
|
||||||
|
`git log` stays audit-usable.
|
||||||
|
|
||||||
|
9. **Confirm `git status --porcelain` is empty.**
|
||||||
|
|
||||||
|
10. **Re-run the freeze capture:**
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
powershell -ExecutionPolicy Bypass -File .\tools\preflight\preflight.ps1 `
|
||||||
|
-ExpectAccount "SimSimple ORB" `
|
||||||
|
-ExpectInstrument "NQ SEP26" `
|
||||||
|
--freeze
|
||||||
|
```
|
||||||
|
|
||||||
|
This must produce `docs/gate-runs/gate3/baseline.json` and move
|
||||||
|
`docs/gate-runs/gate3/DEC-GATE3-CONFIG.md` from `Status: draft` toward acceptance. If it
|
||||||
|
fails again, capture the new failure reason (it will no longer be the dirty-tree message)
|
||||||
|
and report back rather than retrying blind.
|
||||||
|
|
||||||
|
11. **Re-arm check for the weekend disarmed window.** The window
|
||||||
|
(2026-08-15 to 08-17) closes before Monday market open. After this cleanup, confirm the
|
||||||
|
strategy is deployed clean and armed per `active_work.md`'s RB-4.1 steps, and that
|
||||||
|
`preflight.ps1` (non-freeze mode) passes with `-ExpectAccount "SimSimple ORB"
|
||||||
|
-ExpectInstrument "NQ SEP26"` before Monday.
|
||||||
|
|
||||||
|
## Explicit non-goals
|
||||||
|
|
||||||
|
- No new features, no scope beyond getting the reviewed diffs committed and the tree clean.
|
||||||
|
- Do not silently drop any hunk instead of understanding it — if a diff's purpose is unclear,
|
||||||
|
flag it in your report rather than guessing and committing.
|
||||||
|
- Do not touch `DEC-GATE3-CONFIG.md`'s frozen parameter values — freezing the config is
|
||||||
|
`preflight.ps1 --freeze`'s job, not a manual edit.
|
||||||
|
|
||||||
|
## Validation
|
||||||
|
|
||||||
|
- `git status --porcelain` is empty.
|
||||||
|
- Full test suite passes (record the exact pass count in your report).
|
||||||
|
- `preflight.ps1 --freeze` succeeds and produces `baseline.json`.
|
||||||
|
- Report back: final commit list (hash + message), test pass count, and freeze result.
|
||||||
|
|
||||||
|
## Governance
|
||||||
|
|
||||||
|
- Log a `decisions.md` entry only if any hunk required a judgment call you had to make
|
||||||
|
unilaterally (e.g., resolving an unclear `.hermes/` classification). Otherwise no new
|
||||||
|
decision entry is needed — this task is process cleanup, not a new design decision.
|
||||||
|
- Update `SPRINT_BOARD.md`'s Gate Run #3 row once the freeze succeeds.
|
||||||
@@ -1,9 +1,41 @@
|
|||||||
# Active Work
|
# Active Work
|
||||||
**Last Updated:** 2026-08-03
|
**Last Updated:** 2026-08-14
|
||||||
|
|
||||||
|
## GAP-035 — Rejection-reason file logging (HIGHEST PRIORITY)
|
||||||
|
**Owner:** Kilocode
|
||||||
|
**State:** Active. Blocks GAP-034, which blocks RB-4.1, which blocks Gate Run #3.
|
||||||
|
|
||||||
|
All four zero-trade candidates log via `_logger` only and never reach the session file.
|
||||||
|
Route every signal-rejection reason through `FileLog` alongside `_logger` so a no-trade
|
||||||
|
day self-documents without requiring the NT8 Output window to have been open.
|
||||||
|
|
||||||
|
## GAP-034 — Silent zero-trade defect diagnosis
|
||||||
|
**Owner:** Kilocode (instrumentation) + operator (capture)
|
||||||
|
**State:** Blocked on GAP-035. See `current_status.md` for the proven/ruled-out analysis.
|
||||||
|
|
||||||
|
## Weekend batch 2026-08-15 to 08-17 (strategy DISARMED)
|
||||||
|
The strategy is off, so this is a disarmed window. Recompiles are permitted.
|
||||||
|
Deferred items requiring recompile are unblocked.
|
||||||
|
|
||||||
|
**Runtime / DLL:**
|
||||||
|
- GAP-035 — rejection-reason file logging
|
||||||
|
- GAP-036 — `risk_mode` sourced from `intent.Metadata` (GAP-031 defect class, missed)
|
||||||
|
- GAP-037 — `MaxDailyTrades` regression tests (4 cases; none currently exist)
|
||||||
|
- GAP-038 — `ConfigHash` must include `BarsPeriod` (deferred from prior disarmed window;
|
||||||
|
structurally different bar configurations currently produce identical hashes,
|
||||||
|
undermining gate provenance)
|
||||||
|
- GAP-039 — `_dailyTradeCount` increments only when `State == State.Realtime`, so
|
||||||
|
historical replay cannot latch the daily limit
|
||||||
|
|
||||||
|
**Non-runtime / QoL (no DLL, no NT8 assembly references, zero runtime risk):**
|
||||||
|
- DASH-001 — standalone read-only dashboard under `tools/dashboard/`
|
||||||
|
- TOOL-001 — session log triage CLI
|
||||||
|
- TOOL-002 — config drift detector across settings exports
|
||||||
|
- TOOL-003 — pre-flight gate checklist script
|
||||||
|
|
||||||
## RB-4.1 — Gate Run #3 Configuration Freeze
|
## RB-4.1 — Gate Run #3 Configuration Freeze
|
||||||
**Owner:** Human operator
|
**Owner:** Human operator
|
||||||
**State:** Active; Gate 2 was contaminated and the Gate 3 clock has not started.
|
**State:** BLOCKED on GAP-034. 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.
|
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.
|
2. Verify session-start logging lists each series' `DaysToLoad` and loaded count, both factor warm-up results, and no SimSimple kill-switch warning.
|
||||||
|
|||||||
@@ -52,6 +52,49 @@ Record concise error fingerprints and verified fixes.
|
|||||||
- **Fix:** Serialize from the accepted `StrategyIntent.Metadata` and pass the submission's `resolvedMode` into the provenance writer.
|
- **Fix:** Serialize from the accepted `StrategyIntent.Metadata` and pass the submission's `resolvedMode` into the provenance writer.
|
||||||
- **Prevention:** Logging artifacts for a submitted trade must consume the same immutable decision/submission objects used by the human-readable session log.
|
- **Prevention:** Logging artifacts for a submitted trade must consume the same immutable decision/submission objects used by the human-readable session log.
|
||||||
|
|
||||||
|
## 2026-08-14 [GAP-036] — Provenance field sourced from the wrong dictionary
|
||||||
|
- **Fingerprint:** `risk_mode` serializes as `"Unknown"` on every trade despite a real
|
||||||
|
resolved mode existing at signal time.
|
||||||
|
- **Root cause:** `GetRiskMode()` reads `_strategyConfig.Parameters["risk_mode"]`, but the
|
||||||
|
SDK writes risk mode to `candidate.Metadata["risk_mode"]`. Two different dictionaries.
|
||||||
|
The key is never present in `Parameters`, so the lookup silently falls through to the
|
||||||
|
`"Unknown"` default.
|
||||||
|
- **Fix:** Source from `intent.Metadata["risk_mode"]`, retaining `Parameters` as fallback.
|
||||||
|
- **Prevention:** A provenance field sourced from the wrong dictionary fails **silently as
|
||||||
|
a plausible default value**, not as an error. Any field that can legitimately hold a
|
||||||
|
sentinel (`"Unknown"`, `0.0`, `"None"`) must have a round-trip test asserting a real
|
||||||
|
value survives serialization. GAP-031 fixed four such fields and missed this one because
|
||||||
|
the prompt enumerated fields by name rather than auditing every consumer of the
|
||||||
|
`Parameters`/`Metadata` split.
|
||||||
|
|
||||||
|
## 2026-08-14 [GAP-034] — Rejection reasons invisible in session logs
|
||||||
|
- **Fingerprint:** Zero trades on days with clear breakouts; session log shows only
|
||||||
|
SESSION START and readiness lines, with no indication of why.
|
||||||
|
- **Root cause:** `FileLog` writes to `session_*.log`; `_logger.LogInformation` writes to
|
||||||
|
the NT8 Output window. Every signal-rejection reason (grade filter, `MaxDailyTrades`,
|
||||||
|
ORB range, RTH guard) routes through `_logger` only. If the Output window was not open,
|
||||||
|
the reason is permanently lost.
|
||||||
|
- **Diagnostic value of absence:** `ProcessStrategyIntent` **does** `FileLog` a `SIGNAL:`
|
||||||
|
line for every realtime intent. Absence of `SIGNAL:` therefore proves no intent was
|
||||||
|
produced and isolates the fault upstream of the execution pipeline. This is a usable
|
||||||
|
bisection point.
|
||||||
|
- **Fix:** Route all rejection reasons to `FileLog` alongside `_logger` (GAP-035).
|
||||||
|
- **Prevention:** Any decision that can silently suppress a trade must be durably logged
|
||||||
|
to disk. An ephemeral UI window is not an audit trail.
|
||||||
|
|
||||||
|
## 2026-08-14 — Backtest/live divergence from secondary-series warm-up
|
||||||
|
- **Fingerprint:** A day that traded live produces zero trades when backtested alone.
|
||||||
|
- **Root cause:** In Strategy Analyzer the secondary daily series loads only from the
|
||||||
|
backtest start date. `BuildDailyBarContext` returns `Count=0` below 2 daily bars, so
|
||||||
|
daily-dependent confluence factors score neutral and the composite falls under the
|
||||||
|
Grade A threshold. Separately, the regime gate requires 50 daily bars and never arms.
|
||||||
|
Neither path errors; the NR7 advisory deliberately does not block.
|
||||||
|
- **Fix (workflow, not code):** Start backtests **60+ trading days** before the target day.
|
||||||
|
Enable Tick Replay when using non-time-based bars, or bar construction will differ from
|
||||||
|
live regardless of warm-up.
|
||||||
|
- **Prevention:** A zero-trade backtest is not evidence of no signal. Verify warm-up
|
||||||
|
counts before interpreting any backtest result.
|
||||||
|
|
||||||
## 2026-08-03 [GAP-032] — Position-flat event bypassed MaxDailyTrades
|
## 2026-08-03 [GAP-032] — Position-flat event bypassed MaxDailyTrades
|
||||||
- **Root cause:** Position closure cleared `_tradeTaken`, while the daily-limit guard required both `_tradeTaken` and a count at the limit.
|
- **Root cause:** Position closure cleared `_tradeTaken`, while the daily-limit guard required both `_tradeTaken` and a count at the limit.
|
||||||
- **Fix:** Make `_dailyTradeCount >= MaxDailyTrades` authoritative and reset the count only in session rollover handling.
|
- **Fix:** Make `_dailyTradeCount >= MaxDailyTrades` authoritative and reset the count only in session rollover handling.
|
||||||
|
|||||||
@@ -1,16 +1,69 @@
|
|||||||
# Current Status — NT8 SDK
|
# Current Status — NT8 SDK
|
||||||
**Last Updated:** 2026-08-03
|
**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
|
## Verified implementation state
|
||||||
- **Last completed task:** GAP-033 — Session Historical-Readiness and Gate Safety Logging
|
- **Last completed task:** GAP-033 — Session Historical-Readiness and Gate Safety Logging
|
||||||
- **Active task:** RB-4.1 — Gate Run #3 Configuration Freeze (human operator)
|
- **Active task:** GAP-035 — Rejection-reason file logging (unblocks GAP-034); diff for this
|
||||||
- **Next code task:** GAP-025 — Runner No-Fill Anomaly Diagnosis (branch-only during the gate)
|
appears to already be in progress in the uncommitted working tree — confirm before
|
||||||
- **Following code task:** GAP-022-FOLLOWUP — connection-state seam and the three deferred scenarios
|
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
|
## Build and test evidence
|
||||||
- `verify-build.bat` is not executable under Windows `cmd.exe` because the tracked batch file uses LF-only line endings.
|
- `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**.
|
- Release build: **0 errors**, **9 existing CS1998 warnings** (last confirmed count; the
|
||||||
- Tests: **500 passed, 0 failed** — 412 Core, 78 Integration, 10 Performance.
|
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
|
## 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.
|
- Trade provenance now reads grade, weighted score, and ORB ticks from the accepted intent metadata and records the exact runner mode resolved for submission.
|
||||||
@@ -18,9 +71,92 @@
|
|||||||
- 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.
|
- 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.
|
- 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.
|
- GAP-022 has five real scenario assertions. Its remaining three requirements are deferred architecture work, not fabricated tests.
|
||||||
- **Before Gate 3 start:** complete the pending NinjaTrader compile check, freeze the configuration, and enforce the no-deploy rule.
|
- **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
|
## Authoritative documents
|
||||||
- Master document: `docs/NT8_SDK_Master_Document_v6.1_Complete.docx`
|
- 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`
|
- 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`
|
- Decision correction: `DEC-20260713-02`
|
||||||
|
|||||||
@@ -157,3 +157,83 @@ Use this file to record durable project decisions that affect implementation pat
|
|||||||
- **Consequences:** Parameter drift and code drift are distinguishable without relying on a manually maintained git SHA. The Gate Run #2 procedure must archive both `ConfigHash` and `CodeVersion`, and it forbids dual-deploys after the configuration freeze.
|
- **Consequences:** Parameter drift and code drift are distinguishable without relying on a manually maintained git SHA. The Gate Run #2 procedure must archive both `ConfigHash` and `CodeVersion`, and it forbids dual-deploys after the configuration freeze.
|
||||||
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `docs/00-governance/patterns_and_antipatterns.md`, `SPRINT_BOARD.md`, `NEXT_PROMPT.md`.
|
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `docs/00-governance/patterns_and_antipatterns.md`, `SPRINT_BOARD.md`, `NEXT_PROMPT.md`.
|
||||||
- **Action Required:** Deploy the cleanup source, compile it in NinjaTrader, then record `DEC-GATE2-CONFIG` before starting the gate.
|
- **Action Required:** Deploy the cleanup source, compile it in NinjaTrader, then record `DEC-GATE2-CONFIG` before starting the gate.
|
||||||
|
|
||||||
|
### DEC-20260810-01
|
||||||
|
- **ID:** DEC-20260810-01
|
||||||
|
- **Date:** 2026-08-10
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** Three settings exports from the same 2026-08-07 session (`settings_Simple_ORB_NT8_20260807_101520.txt`, `_101543.txt`, `_150539.txt`) show `BarsPeriod` values of "15 Minute", "5 Minute", and "13 42069" (HFT Algo Bars) respectively, yet all three carry the identical `ConfigHash` `df5ff56e6db3a332e40568849f2a2fc7a121f0d57cf228b07935278bc58c9c10`. `ComputeConfigHash()` excludes `BarsPeriod` from its input, meaning structurally different bar-type configurations are indistinguishable by hash.
|
||||||
|
- **Decision:** Add `BarsPeriod` (value + unit/type) to the `ComputeConfigHash()` input. Audit all remaining settings-export fields against current hash inputs and include any other field found in the export but absent from the hash. Hash-computation-only change; trading logic must remain byte-for-byte unaffected. Kilocode prompt issued 2026-08-10, execution pending next non-armed window.
|
||||||
|
- **Consequences:** Any gate run or provenance record predating this fix has unverified config-hash provenance and cannot be cited as proof of a frozen configuration on hash-match alone. Once fixed, hash changes are expected whenever `BarsPeriod` changes between exports in the same session.
|
||||||
|
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs` (`ComputeConfigHash()`), `docs/00-governance/decisions.md`
|
||||||
|
- **Action Required:** Deploy fix during a window when the gate strategy is disabled (never mid-armed-session). After deploy, export settings twice in one session with different `BarsPeriod` values and confirm `ConfigHash` differs.
|
||||||
|
|
||||||
|
### DEC-20260810-02
|
||||||
|
- **ID:** DEC-20260810-02
|
||||||
|
- **Date:** 2026-08-10
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** Two broker-confirmed live trades (2026-08-07, 2026-08-10) on `SimSimple ORB` reconciled to the penny against `8-7_to_8-10_executions.csv`. Both were winners; both had the runner leg stopped near breakeven — contributing +1 tick (~$5) on 8/7 and exactly $0 on 8/10 — while the scaler leg produced 100% of net P&L on both days ($227.72 and $262.72 respectively). On 8/10, breakeven triggered at +25 ticks profit, only 3 ticks before the ATR-derived 28-tick target, leaving the runner effectively no room to run before being parked at breakeven and then stopped out by 1 tick of adverse slippage.
|
||||||
|
- **Decision:** No change to runner logic (breakeven trigger placement, `RunnerTrailTicks`) for Gate Run #3. Sample size (n=2) is insufficient to hand-tune a live parameter; any redesign must go through the Optimization Protocol (backtest-validated via NT8 Strategy Analyzer) before deployment, not be patched into a live/armed run.
|
||||||
|
- **Consequences:** Gate Run #3 continues paying commission on a 3rd (runner) contract with $0–5 demonstrated contribution to date. Revisit trigger set explicitly: after 10 gate trades (half the 20-trade minimum), review runner P&L contribution as a pattern; if still flat/negative, proceed to offline backtest redesign of breakeven trigger distance and/or trail mechanism.
|
||||||
|
- **Related Files:** `docs/00-governance/decisions.md`, `NT8_SDK_Optimization_Protocol.docx`, trade records `8-7_to_8-10_executions.csv`, session logs `session_20260807_101543.log`, `session_20260810_070736.log`
|
||||||
|
- **Action Required:** No code action now. At 10th gate trade, pull runner-specific P&L across all trades to date and decide: keep, disable, or queue for Optimization Protocol redesign.
|
||||||
|
|
||||||
|
### DEC-20260815-01
|
||||||
|
- **ID:** DEC-20260815-01
|
||||||
|
- **Date:** 2026-08-15
|
||||||
|
- **Status:** accepted — supersedes DEC-20260810-02
|
||||||
|
- **Context:** DEC-20260810-02 deferred all runner-logic changes to a revisit at 10 gate trades, on the reasoning that n=2 was insufficient to tune a live parameter. That reasoning assumed a valid gate run was accumulating interpretable trades. It was not. Gate Run #2 was voided, Gate Run #3 has not started, and GAP-034 means a zero-trade day cannot currently be attributed to a strategy decision versus a defect. A revisit trigger anchored to gate-trade count therefore cannot fire. Additionally, the deferral's core concern — modifying a parameter on a live armed strategy — does not apply: the strategy is disarmed and this work is pre-gate preparation.
|
||||||
|
- **Decision:** Runner redesign is in scope now, during the disarmed pre-gate window. The mechanism is understood: the breakeven trigger at 20 ticks sits close to the scaler target at 16 ticks and the ATR-derived target (28 ticks observed 2026-08-10), leaving the runner no room to extend before being parked at breakeven. The 10-gate-trade revisit trigger from DEC-20260810-02 is withdrawn. Requirement retained from DEC-20260810-02: any new trigger distance must be backtest-validated via the Optimization Protocol, not hand-picked. Validation must use the 60-trading-day warm-up and Tick Replay requirements of DEC-20260814-03.
|
||||||
|
- **Consequences:** Runner parameters are unfrozen until the Gate Run #3 configuration freeze, at which point the swept value is locked with the rest of the config. Gate Run #3 begins with a runner leg that has a documented empirical basis rather than an inherited default.
|
||||||
|
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `NT8_SDK_Optimization_Protocol.docx`, `docs/00-governance/roadmap.md`
|
||||||
|
- **Action Required:** Execute RUNNER-001 sweep, record the selected trigger distance and its supporting statistics in a superseding entry before `DEC-GATE3-CONFIG`.
|
||||||
|
|
||||||
|
### DEC-20260814-01
|
||||||
|
- **ID:** DEC-20260814-01
|
||||||
|
- **Date:** 2026-08-14
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** Sessions on 2026-08-03, 08-04, and 08-13 produced zero trades on days with clear NQ breakouts, while 08-07 and 08-10 produced broker-confirmed trades. The defect is intermittent. `ProcessStrategyIntent` writes a `SIGNAL:` line to the session file log unconditionally for every realtime intent; no such line appears on the zero-trade days, proving no intent was produced and isolating the fault upstream of the execution pipeline. The four remaining candidate causes (grade filter, `MaxDailyTrades` latch, ORB range not established, RTH guard) all log exclusively via `_logger` to the NT8 Output window and never to disk, so no session log can distinguish them retrospectively.
|
||||||
|
- **Decision:** Treat this as GAP-034 and block Gate Run #3 until root cause is identified. Prerequisite fix is GAP-035: route every signal-rejection reason to `FileLog` alongside `_logger` so a no-trade day is self-documenting. Do not restart the gate clock on the assumption that quiet days are normal Grade-A filtering.
|
||||||
|
- **Consequences:** Gate Run #3 start date slips. All Sprint 3 completion criteria now include GAP-034 closure. Any future zero-trade day becomes diagnosable from disk without requiring the Output window to have been open at the right moment.
|
||||||
|
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `docs/00-governance/current_status.md`, `docs/00-governance/common_failures.md`
|
||||||
|
- **Action Required:** Execute GAP-035, redeploy during the disarmed window, then run one session with the Output window open as a cross-check that file and Output agree.
|
||||||
|
|
||||||
|
### DEC-20260814-02
|
||||||
|
- **ID:** DEC-20260814-02
|
||||||
|
- **Date:** 2026-08-14
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** `GetRiskMode()` reads `_strategyConfig.Parameters["risk_mode"]` while the SDK writes resolved risk mode to `candidate.Metadata["risk_mode"]`. The key is never present in `Parameters`, so every trade record serializes `risk_mode` as `"Unknown"`. This is the same defect class as GAP-031, which fixed four fields by name and did not audit the `Parameters`/`Metadata` split for other consumers.
|
||||||
|
- **Decision:** Fix as GAP-036 by sourcing from `intent.Metadata` with `Parameters` retained as fallback. Additionally require that any provenance field capable of holding a sentinel value (`"Unknown"`, `0.0`, `"None"`) carry a round-trip test asserting a real value survives serialization.
|
||||||
|
- **Consequences:** All trade records to date have unusable `risk_mode` provenance. Gate evidence citing risk mode must be regenerated after the fix.
|
||||||
|
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Core/Logging/TradeProvenanceSerializer.cs`, `tests/NT8.Core.Tests/Logging/TradeProvenanceSerializerTests.cs`
|
||||||
|
- **Action Required:** Execute GAP-036 in the 2026-08-15 to 08-17 disarmed window.
|
||||||
|
|
||||||
|
### DEC-20260814-03
|
||||||
|
- **ID:** DEC-20260814-03
|
||||||
|
- **Date:** 2026-08-14
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** A backtest of a day that traded live produces zero trades. In Strategy Analyzer the secondary daily series loads only from the backtest start date, so `BuildDailyBarContext` returns `Count=0` below 2 daily bars and daily-dependent confluence factors score neutral, pushing the composite below the Grade A threshold. The regime gate separately requires 50 daily bars (`CurrentBars[1] >= SmaPeriodLong`) and never arms on short backtests. Neither path raises an error, and the NR7 warm-up advisory deliberately does not block.
|
||||||
|
- **Decision:** This is expected behaviour, not a defect. Backtests intended to reproduce live behaviour must set the Strategy Analyzer start date at least 60 trading days before the target day. When the primary series is non-time-based (HFT Algo Bars, range, tick, volume), Tick Replay must be enabled or bar construction will differ from live regardless of warm-up.
|
||||||
|
- **Consequences:** A zero-trade backtest is not evidence that no signal existed and must not be cited as such. Prior single-day backtest results are void as comparative evidence.
|
||||||
|
- **Related Files:** `src/NT8.Strategies/Examples/SimpleORBNT8.cs`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `docs/00-governance/common_failures.md`
|
||||||
|
- **Action Required:** None in code. Fold the 60-day rule and the Tick Replay requirement into the operator runbook and the Optimization Protocol.
|
||||||
|
|
||||||
|
### DEC-20260814-04
|
||||||
|
- **ID:** DEC-20260814-04
|
||||||
|
- **Date:** 2026-08-14; accepted 2026-08-16
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** `SimpleORBNT8.SetDefaults()` sets `EnableShortTrades = false`, commented "Long-only: short trades permanently disabled pending backtest confirmation." Live runs have taken Sell entries via workspace override. Source and runtime therefore disagree, and no gate run is reproducible from a clean checkout. Separately, `StartBehavior = AdoptAccountPosition` is an undocumented change from the last recorded state.
|
||||||
|
- **Decision:** Shorts are in scope for the strategy under validation. `SimpleORBNT8.SetDefaults()` must set `EnableShortTrades = true` so a clean checkout matches live workspace usage. `StartBehavior = AdoptAccountPosition` is retained because it avoids NT8 start-up synchronization submitting or flattening during historical replay bursts before the first live bar.
|
||||||
|
- **Consequences:** Direction defaults are reproducible from source, and the StartBehavior choice is explicitly documented. Workspace overrides should not be required to reproduce short-enabled gate runs.
|
||||||
|
- **Related Files:** `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `tests/NT8.Core.Tests/Adapters/SimpleORBNT8DefaultsTests.cs`
|
||||||
|
- **Action Required:** None.
|
||||||
|
|
||||||
|
### DEC-20260816-01
|
||||||
|
- **ID:** DEC-20260816-01
|
||||||
|
- **Date:** 2026-08-16
|
||||||
|
- **Status:** accepted
|
||||||
|
- **Context:** `roadmap.md`'s `Last Updated` note carried a rolling "full republish planned 2026-08-16" annotation, and the master document's Section 23.4 heartbeat rule allowed governance docs to go up to 7 days without review on a rolling clock rather than a fixed date. In practice this let a republish drift to whenever convenient; on 2026-08-16 the working tree was also found dirty enough to fail two consecutive Gate 3 freeze/verify attempts (`freeze_20260816_003543`, `freeze_20260816_003653`), with the last substantive `roadmap.md`/`current_status.md` update two days stale relative to same-day decisions (DEC-20260814-04 accepted 2026-08-16; DEC-20260815-01 not yet reflected in either doc).
|
||||||
|
- **Decision:** Replace the rolling 7-day heartbeat allowance with a fixed weekly cadence: `roadmap.md` and `current_status.md` are reviewed and republished every Sunday, before every Monday–Friday gate week, permanently and without exception, whether or not anything material changed. Full process defined in `docs/02-runbooks/weekly_roadmap_cadence.md`. A recurring Sunday scheduled review is configured on the operator's Claude session scheduler to drive this; if repo/device access is unavailable at trigger time, the scheduled review drafts from the Claude Project's operational artifacts and flags what it could not verify against live repo state, rather than skipping the week.
|
||||||
|
- **Consequences:** Every gate week starts with governance docs that are at most a few hours stale, not up to 7 days. The master document's Section 23.4 heartbeat language is superseded by this entry and should read as a pointer to this runbook in the next master document revision (v6.4).
|
||||||
|
- **Related Files:** `docs/00-governance/roadmap.md`, `docs/00-governance/current_status.md`, `docs/02-runbooks/weekly_roadmap_cadence.md`, `docs/00-governance/decisions.md`
|
||||||
|
- **Action Required:** None in code. First scheduled Sunday review configured 2026-08-16 for 2026-08-23 onward.
|
||||||
|
|||||||
@@ -1,15 +1,59 @@
|
|||||||
# Roadmap
|
# Roadmap
|
||||||
**Last Updated:** 2026-07-14
|
**Last Updated:** 2026-08-16 (weekly Sunday republish — see `docs/02-runbooks/weekly_roadmap_cadence.md`, DEC-20260816-01)
|
||||||
**Master Reference:** NT8_SDK_Master_Document_v6_Final.docx — Sections 7, 8, 21
|
**Master Reference:** NT8_SDK_Master_Document_v6.4_Complete.docx — Sections 7, 8, 21
|
||||||
|
|
||||||
## Sequencing Rule
|
## Sequencing Rule
|
||||||
No sprint advances until its gate criteria are met. No exceptions.
|
No sprint advances until its gate criteria are met. No exceptions.
|
||||||
|
|
||||||
|
## Weekly cadence rule (new 2026-08-16)
|
||||||
|
This document and `current_status.md` are republished every Sunday, before every
|
||||||
|
Monday–Friday gate week, permanently. This replaces the prior rolling 7-day heartbeat
|
||||||
|
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
|
||||||
|
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.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 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`).
|
||||||
|
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`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Sprint 2 (Parallel — SIM Validation)
|
## Sprint 2 (Parallel — SIM Validation)
|
||||||
Gate: PF > 2.0, MaxDD < $500, 2+ weeks uninterrupted, runner confirmed in fills.
|
Gate: PF > 2.0, MaxDD < $500, 2+ weeks uninterrupted, runner confirmed in fills.
|
||||||
Status: IN PROGRESS — collecting data. TASK-06a must complete first (runner defect fix).
|
Status: **BLOCKED** — Gate Run #2 dataset voided (multiple concurrent account/instrument
|
||||||
|
combinations violated the single-frozen-account doctrine). Gate Run #3 clock not started.
|
||||||
|
|
||||||
|
**Runner leg — no longer just an observation, now active work.** DEC-20260815-01 (accepted
|
||||||
|
2026-08-15, supersedes DEC-20260810-02) puts the runner redesign in scope now, during the
|
||||||
|
disarmed pre-gate window: the breakeven trigger (20 ticks) sits close to the scaler target
|
||||||
|
(16 ticks) and the ATR-derived target (28 ticks observed 2026-08-10), leaving the runner
|
||||||
|
little room to extend before being parked at breakeven. The 10-gate-trade revisit trigger is
|
||||||
|
withdrawn. RUNNER-001 (`tools/runnersweep`) must produce a backtest-validated trigger
|
||||||
|
distance, recorded in a superseding decision entry, before `DEC-GATE3-CONFIG` is finalized.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -32,17 +76,40 @@ Signal accuracy:
|
|||||||
|
|
||||||
Infrastructure:
|
Infrastructure:
|
||||||
- GAP-008: CME holiday awareness (SessionManager static HashSet)
|
- GAP-008: CME holiday awareness (SessionManager static HashSet)
|
||||||
- GAP-011: Gitea CI pipeline (build.yml)
|
- ~~GAP-011: Gitea CI pipeline (build.yml)~~ — ✅ completed 2026-07-11 (see SPRINT_BOARD.md historical record); `.gitea/workflows/build.yml` and `ci.yml` confirmed present on disk 2026-08-10. This roadmap entry was stale.
|
||||||
- GAP-009: ATRTrailing real ATR wiring (replace proxy)
|
- GAP-009: ATRTrailing real ATR wiring (replace proxy)
|
||||||
- GAP-022: 8 scenario tests (ATR spike, FOMC, partial fill, disconnect, etc.)
|
- GAP-022: 8 scenario tests (ATR spike, FOMC, partial fill, disconnect, etc.)
|
||||||
- GAP-030: Historical ORB state hydration — safely reconstruct the current day's 09:30–10:00 ET range after a late enable without evaluating historical bars as signals; retain the realtime replay guard and add no-historical-order tests.
|
- GAP-030: Historical ORB state hydration — safely reconstruct the current day's 09:30–10:00 ET range after a late enable without evaluating historical bars as signals; retain the realtime replay guard and add no-historical-order tests.
|
||||||
- GAP-007: Walk-forward test setup documentation
|
- GAP-007: Walk-forward test setup documentation
|
||||||
|
|
||||||
|
Added 2026-08-14 (all discovered during 08-03 to 08-14 forensics):
|
||||||
|
- GAP-034: Silent zero-trade defect diagnosis — **BLOCKER**
|
||||||
|
- GAP-035: Route all signal-rejection reasons to `FileLog` — in progress, weekend batch
|
||||||
|
- GAP-036: `risk_mode` sourced from `intent.Metadata`, not `_strategyConfig.Parameters` — in progress, weekend batch
|
||||||
|
- GAP-037: `MaxDailyTrades` regression tests — the GAP-032 fix currently has zero coverage — test file on disk, uncommitted
|
||||||
|
- GAP-038: `ConfigHash` must include `BarsPeriod`; structurally different bar
|
||||||
|
configurations currently hash identically, undermining gate provenance — source + test on disk, uncommitted
|
||||||
|
- GAP-039: `_dailyTradeCount` increments only in `State.Realtime` so historical replay
|
||||||
|
cannot latch the daily limit — in progress, weekend batch
|
||||||
|
- GAP-040: Startup WARNING when the primary series is non-time-based or `DaysToLoad`
|
||||||
|
falls below the configured gate minimum — queued, not yet scheduled into a work window
|
||||||
|
|
||||||
|
Resolved since last republish:
|
||||||
|
- ~~`EnableShortTrades` source/runtime mismatch~~ — ✅ DEC-20260814-04 (accepted 2026-08-16).
|
||||||
|
`SetDefaults()` now sets `EnableShortTrades = true`; test coverage added
|
||||||
|
(`SimpleORBNT8DefaultsTests.cs`, uncommitted pending Blocker 1 cleanup).
|
||||||
|
- ~~`StartBehavior=AdoptAccountPosition` undocumented~~ — ✅ documented and retained by the
|
||||||
|
same DEC-20260814-04 entry.
|
||||||
|
|
||||||
Gate criteria for Sprint 3 → Sprint 4:
|
Gate criteria for Sprint 3 → Sprint 4:
|
||||||
✓ All CRITICAL/HIGH gaps above resolved
|
✓ All CRITICAL/HIGH gaps above resolved
|
||||||
✓ 240+ tests still passing
|
✓ 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)
|
||||||
✓ NT8 NinjaScript compiles clean
|
✓ NT8 NinjaScript compiles clean
|
||||||
✓ SIM gate met (PF > 2.0, DD < $500)
|
✓ SIM gate met (PF > 2.0, DD < $500) under a single frozen account
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -63,7 +130,10 @@ Gate criteria: 2 weeks live MNQ PF > 1.8, max loss < $100/day
|
|||||||
- FastAPI /predict endpoint on Ollama workstation
|
- FastAPI /predict endpoint on Ollama workstation
|
||||||
- MLSignalFactorCalculator as 11th IFactorCalculator
|
- MLSignalFactorCalculator as 11th IFactorCalculator
|
||||||
- Multi-strategy PortfolioManager coordinator
|
- Multi-strategy PortfolioManager coordinator
|
||||||
- Dashboard Phase 1 + 2 (read-only → real-time WebSocket)
|
- Dashboard Phase 1 + 2 (read-only → real-time WebSocket) — **note:** DASH-001 (the
|
||||||
|
standalone `tools/dashboard`) already delivers most of Phase 1's read-only scope ahead of
|
||||||
|
schedule, built under the parallel-work track rather than this sprint. Phase 2's real-time
|
||||||
|
WebSocket layer and the in-NT8 control layer (Sprint 6) remain deferred here.
|
||||||
- n8n AM briefing pipeline
|
- n8n AM briefing pipeline
|
||||||
- GAP-017: ParameterOptimizer → NT8 Strategy Analyzer
|
- GAP-017: ParameterOptimizer → NT8 Strategy Analyzer
|
||||||
|
|
||||||
|
|||||||
70
docs/02-runbooks/weekly_roadmap_cadence.md
Normal file
70
docs/02-runbooks/weekly_roadmap_cadence.md
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
# Runbook: Weekly Roadmap Cadence
|
||||||
|
**Established:** 2026-08-16 (DEC-20260816-01)
|
||||||
|
**Owner:** Mo (operator), assisted by Claude session review
|
||||||
|
|
||||||
|
## The rule
|
||||||
|
|
||||||
|
`roadmap.md` and `current_status.md` are republished every Sunday, before every Monday–Friday
|
||||||
|
gate week, with no exception. This replaces the prior rolling 7-day staleness/heartbeat
|
||||||
|
allowance (master document Section 23.4) with a fixed calendar cadence tied to the gate week
|
||||||
|
itself, not to a rolling clock that can drift.
|
||||||
|
|
||||||
|
"Republish" means both documents are reviewed against the real state of the repo — build
|
||||||
|
status, test count, open GAP items, active decisions, tooling status — and rewritten to match,
|
||||||
|
even if nothing material changed since the prior Sunday. A Sunday entry that says "unchanged
|
||||||
|
since last week, confirmed" is a valid republish. A stale `Last Updated` date is not.
|
||||||
|
|
||||||
|
This is a permanent, ongoing process, not a one-time catch-up. It continues every week for as
|
||||||
|
long as this repo is under active gate development.
|
||||||
|
|
||||||
|
## Why a fixed calendar cadence instead of a staleness threshold
|
||||||
|
|
||||||
|
The 7-day heartbeat rule allowed the review to happen at any point in a rolling week, which
|
||||||
|
let it drift to whenever was convenient and occasionally slip past a gate week boundary
|
||||||
|
entirely — `roadmap.md` was last substantively updated 2026-08-14 with a note that a "full
|
||||||
|
republish" was "planned 2026-08-16," i.e., today, and that plan only existed because this was
|
||||||
|
manually flagged, not because a rule forced it. Anchoring to Sunday, specifically, means the
|
||||||
|
review always lands immediately before a gate week starts, so any GAP/blocker/decision found
|
||||||
|
during review can still change Monday's plan before trading resumes — a mid-week staleness
|
||||||
|
trigger cannot do that.
|
||||||
|
|
||||||
|
## What the Sunday review covers
|
||||||
|
|
||||||
|
1. **Gate state** — pull current build/test status, Gate Run # state, and any blocker (e.g.
|
||||||
|
the GAP-034 zero-trade defect, or a dirty working tree blocking a freeze) into
|
||||||
|
`current_status.md`'s top section.
|
||||||
|
2. **Decision log** — confirm every `decisions.md` entry from the past week is reflected in
|
||||||
|
`roadmap.md`'s current-sprint section; supersede anything the week's work has overtaken.
|
||||||
|
3. **GAP/DASH/TOOL queue** — reconcile `SPRINT_BOARD.md` and `active_work.md` against what
|
||||||
|
actually landed in the past week's commits; move completed items, add anything newly
|
||||||
|
discovered.
|
||||||
|
4. **Gate calendar** — state plainly whether the upcoming Mon–Fri week is a live gate window,
|
||||||
|
a disarmed/maintenance window, or blocked, and what has to be true before market open
|
||||||
|
Monday.
|
||||||
|
5. **Tooling status** — note any change to `tools/dashboard`, `tools/logtriage`,
|
||||||
|
`tools/configdiff`, `tools/preflight`, or `tools/runnersweep` that affects how the week's
|
||||||
|
gate evidence will be captured.
|
||||||
|
|
||||||
|
## Process
|
||||||
|
|
||||||
|
1. A scheduled Sunday session (see below) drafts the update from whatever it can access: the
|
||||||
|
NINJASDK Claude Project's operational exports, and the repo's governance docs and recent
|
||||||
|
commits if device/repo access is available at trigger time.
|
||||||
|
2. **Known constraint:** the scheduled session runs unattended and cannot request new
|
||||||
|
device-folder access or wait on an approval dialog — device-bridge access only works while
|
||||||
|
the desktop app is open and a folder was already granted in a live session. If repo access
|
||||||
|
isn't available at trigger time, the session drafts the update from the Claude Project
|
||||||
|
artifacts alone, states plainly what it could not verify against live repo state, and asks
|
||||||
|
Mo to open the desktop app so the draft can be reconciled and committed.
|
||||||
|
3. Mo (or a follow-up interactive session) reconciles the draft against the actual repo state
|
||||||
|
and commits `roadmap.md`/`current_status.md` — directly, or via a Kilocode prompt if the
|
||||||
|
changes intersect with active runtime work.
|
||||||
|
4. If the review surfaces a new blocker or decision, it gets its own `decisions.md` entry
|
||||||
|
before the week starts, not folded silently into the roadmap text.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- `docs/00-governance/decisions.md` — DEC-20260816-01 (this rule).
|
||||||
|
- `docs/00-governance/roadmap.md` header — cites this runbook instead of restating the rule.
|
||||||
|
- Scheduled task: "NT8-SDK Weekly Roadmap Cadence" (Sunday, created 2026-08-16 via the
|
||||||
|
operator's Claude session scheduler).
|
||||||
BIN
docs/NT8_SDK_Master_Document_v6.4_Complete.docx
Normal file
BIN
docs/NT8_SDK_Master_Document_v6.4_Complete.docx
Normal file
Binary file not shown.
Reference in New Issue
Block a user