[GOV]: sync governance to v9.0 + 2026-10-24 findings; stage GAP-077/067 prompts
This commit is contained in:
@@ -1,4 +1,29 @@
|
||||
# Active Work
|
||||
|
||||
## ▶️ 2026-10-24 — current sequence (supersedes the 2026-08-23 content below)
|
||||
|
||||
Run order of record: **`NEXT_PROMPT.md`**. Stage model from Master Document v9.0 §9: nothing in Stage 1 or 2 starts until every Stage 0 item is done and verified — evidence collected before Stage 0 describes a program that is not in the repository.
|
||||
|
||||
**Stage 0 — restore trust in the artifact**
|
||||
|
||||
| ID | Item | Prompt / action | Owner |
|
||||
|---|---|---|---|
|
||||
| P0-E | ✅ Complete 2026-10-26; GAP-064 `bf7acbb`, governance/prompt extraction `[GOV]` commit follows; 581 tests passed | `NEXT_PROMPT.md` App. A → `TASK_P0E_TREE_RECONCILE_PROMPT.md` | Kilocode |
|
||||
| P0-D | `git push origin cleanup/wrappers-pass2` (GAP-069) | operator | Operator |
|
||||
| P0-B | Whole-folder deploy verification (GAP-068) | `TASK_GAP068_DEPLOY_VERIFICATION_PROMPT.md` | Kilocode |
|
||||
| P0-A | Delete orphan `SimpleORBStrategy.cs` + sweep `bin\Custom\Strategies` (GAP-065) | operator, after preflight "before" run | Operator |
|
||||
| P0-C | `base.OnStateChange()` ordering (GAP-066) | `TASK_GAP066_SETDEFAULTS_ORDERING_PROMPT.md` | Kilocode |
|
||||
| P0-H | **Backtests blocked by live catch-up guard (GAP-077)** | `NEXT_PROMPT.md` App. B → `TASK_GAP077_BACKTEST_HISTORICAL_GUARD_PROMPT.md` | Kilocode |
|
||||
| P0-G | `EnableKillSwitch=True`, `TraceOrders=true`; confirm real-time CME data (GAP-078) | operator | Operator |
|
||||
| — | Single deploy + full recompile, then validate: backtest (GAP-077), settings export (GAP-066), one SIM RTH day (N-02) | operator | Operator |
|
||||
|
||||
**Stage 1** — P1-A clean SIM day · P1-B re-run GAP-047 rescore · P1-C GAP-062 before/after · **P1-D GAP-067** (`NEXT_PROMPT.md` App. C) · P1-E drift + effective-config tests · P1-F re-confirm GAP-030/055/048 live · P1-G fresh Gate 3 freeze.
|
||||
|
||||
**Stage 2** — GAP-054 follow-up (`TASK_GAP054_FOLLOWUP_TRAIL_VALIDATION_FAILURE_PROMPT.md`), `RunnerTrailTicks` decision, runner re-validation with `ORDER` lifecycle evidence, GAP-071 fix, then RUNNER-001.
|
||||
|
||||
---
|
||||
|
||||
# ⬇️ SUPERSEDED — 2026-08-23 content retained for history
|
||||
**Last Updated:** 2026-08-23 (items 2-5, 7 implemented and deployed to NT8; each still awaits manual NT8 compile + SIM/live validation before being closed)
|
||||
|
||||
## v7.0 review blockers — decisions accepted 2026-08-19, implementation status below
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# Current Status — NT8 SDK
|
||||
**Last Updated:** 2026-08-26 (GAP-022-FOLLOWUP implemented/deployed)
|
||||
**Last Updated:** 2026-10-24. Authoritative: Master Document v9.0 (`docs/NT8_SDK_Master_Document_v9.0_Complete.md`, 2026-09-22) plus `decisions.md` `DEC-20260922-01` and `DEC-20261024-01/02/03`. Entries dated before 2026-09-22 below are history.
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-24 — Backtests take zero trades (GAP-077); Stage 0 still not executed
|
||||
|
||||
- **Backtests have taken zero trades since 2026-08-18 — GAP-077.** Strategy Analyzer runs with `Account : Backtest`, so the live catch-up guard (`State == State.Historical && Account != null`) blocks every intent: `HistoricalReplayCatchup count=117`, zero `SUBMIT`, in `session_20261019_155354.log`. The same assumption stops `MaxDailyTrades` counting in backtests, mislabels the header `LIVE/SIM`, and hides every strategy-side reject reason in backtests. `DEC-20261024-01`; prompt in `NEXT_PROMPT.md` App. B.
|
||||
- **Stage 0 has not been executed.** HEAD still `186e1dd`; the 2026-07-13 orphan `SimpleORBStrategy.cs` is still in `bin\Custom\Strategies` (GAP-065). Any backtest or live result until P0-A lands still runs the orphan.
|
||||
- **GAP-078 (unverified):** 2026-10-05 live SIM session rejected every bar at `ageSeconds≈602` — likely 10-minute-delayed CME data. `DEC-20261024-03`.
|
||||
- Governance synced: `decisions.md` now carries `DEC-20260904-01`, `-0908-01`, `-0922-01` (previously only in the Claude Project). `DEC-20261024-02`.
|
||||
- **Next action:** `NEXT_PROMPT.md`, step 1.
|
||||
|
||||
## 2026-09-22 — GAP-065 root cause; Master Document v9.0 (summary)
|
||||
|
||||
NinjaTrader has been compiling a 2026-07-13 orphan copy of `SimpleORBStrategy.cs` in `bin\Custom\Strategies`, invisible to `deploy-to-nt8.bat`; C# binds to that source over `NT8.Strategies.dll`. Complete root cause of GAP-064; GAP-062 never live; GAP-034 reopened. New: GAP-066 (base `SetDefaults` overwrites `RunnerTrailTicks` 20→12, `MinTradeGrade` 5→4, `MaxOpenPositions` 2→3, `BarsRequiredToTrade` 50→1), GAP-067…076. Gate 3 freeze `freeze_20260816_170304` discarded. GAP-054 remains open and independent. Full detail: `DEC-20260922-01`, v9.0.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -13,6 +13,82 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
|
||||
## Decision Log
|
||||
|
||||
### DEC-20261024-01
|
||||
- **ID:** DEC-20261024-01
|
||||
- **Date:** 2026-10-24
|
||||
- **Status:** decided — GAP-077 opened and prompted (`NEXT_PROMPT.md` Appendix B → `TASK_GAP077_BACKTEST_HISTORICAL_GUARD_PROMPT.md`)
|
||||
- **Context:** Operator reported that backtests have stopped taking trades. Reviewed `session_20261019_155354.log` (Strategy Analyzer, MNQ SEP26, Jan–Oct 2026) and the deployed `bin\Custom\Strategies\NT8StrategyBase.cs`.
|
||||
- **Finding — GAP-077 (HIGH):** the header reads `Account : Backtest`. Strategy Analyzer assigns a non-null `Backtest` account. `ProcessStrategyIntent()`'s catch-up guard `if (State == State.Historical && Account != null)` (`DEC-20260818-08`) therefore treats every backtest bar as live catch-up replay. Result: `REJECT SUMMARY: reason=HistoricalReplayCatchup count=117` — 117 intents generated, 117 blocked, zero `SUBMIT`/`FILL`. Every Strategy Analyzer run since 2026-08-18 has taken zero trades. `DEC-20260818-08`'s premise ("`Account == null` during genuine `State.Historical` backtests") is **corrected** by this entry; its Action Required backtest check was never run. `NT8StrategyBaseHistoricalGuardTests` asserts the defective literal and so enshrines the bug.
|
||||
- **Same false assumption elsewhere:** `ShouldAllowDailyTradeCountIncrement()` returns `Account == null` in Historical → `MaxDailyTrades` never counts in a backtest (fixing only the guard would allow unlimited trades/day); daily-trade-count persistence and `TrailingDrawdownMonitor` registration key on `Account != null` and would bind an account named `Backtest`; the session header labels backtests `LIVE/SIM` (written from `DataLoaded`); `LogRejectRateLimited()` drops all non-Realtime reasons except `HistoricalReplayCatchup`, so a backtest cannot self-document; the GAP-060 snapshot heartbeat wrote 15,594 duplicate `REJECT SUMMARY` lines in one backtest.
|
||||
- **Decision:** single `IsBacktestRun()` predicate (`IsInStrategyAnalyzer || Account.Name == "Backtest"`), routed through all of the above; live/SIM behaviour unchanged. Commit-only; deploy once at the end of Stage 0, after the P0-A orphan sweep — otherwise the first working backtest would still execute the 2026-07-13 orphan strategy (GAP-065), which is **still present** in `bin\Custom\Strategies` as of 2026-10-24 (modified 2026-07-13, last accessed 2026-10-19).
|
||||
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `tests/NT8.Core.Tests/Adapters/NT8StrategyBaseHistoricalGuardTests.cs`, `session_20261019_155354.log`, `DEC-20260818-08` (corrected), GAP-076.
|
||||
- **Action Required:** run the prompt; operator validation per its final section (backtest trades > 0 and ≤1/day; live late-enable still blocked).
|
||||
|
||||
### DEC-20261024-02
|
||||
- **ID:** DEC-20261024-02
|
||||
- **Date:** 2026-10-24
|
||||
- **Status:** implemented — P0-E completed 2026-10-26; `[GAP-064]` commit `bf7acbb`; `[GOV]` commit recorded below
|
||||
- **Context:** Repo governance was stuck at 2026-08-26: this file lacked `DEC-20260904-01`, `DEC-20260908-01` and `DEC-20260922-01`; `SPRINT_BOARD.md`, `active_work.md` and `current_status.md` predated v9.0. The 2026-09-22 rewrites existed only in the Claude Project, so Kilocode's governance-first rules were reading state that contradicted every staged Stage 0 prompt. The three missing entries are restored below, verbatim. The Filesystem connector's `write_file` hung repeatedly this session while `edit_file` worked, so new prompts were embedded in `NEXT_PROMPT.md` as appendices for Kilocode to extract, and the three status documents received a 2026-10-24 header block (Master Document v9.0, already in `docs/`, carries the full v9.0 content).
|
||||
- **Verified 2026-10-24 (read-only):** HEAD still `186e1dd` on `cleanup/wrappers-pass2`; no commit since 2026-08-26. Orphan still deployed. Session logs exist for 2026-10-05 (live SIM, pre-RTH only) and 2026-10-19 (backtest) — the strategy has been run since the 2026-09-22 "stopped" record, but none of Stage 0 has been executed.
|
||||
- **Decision:** `TASK_P0E_TREE_RECONCILE_PROMPT.md` (Appendix A) commits the GAP-064 `FileLog` fix and this governance sync as separate commits before any Stage 0 code task; `NEXT_PROMPT.md` sets the full Stage 0 run order with a single deploy at the end.
|
||||
- **Implementation:** Extracted Appendices A/B/C to their task files. `verify-build.bat` passed (581 tests: 491 Core, 80 Integration, 10 Performance). GAP-064 committed as `bf7acbb`; governance and staged prompts committed separately as the following `[GOV]` commit. Final `git status --porcelain` was empty.
|
||||
- **Action Required:** follow `NEXT_PROMPT.md`.
|
||||
|
||||
### DEC-20261024-03
|
||||
- **ID:** DEC-20261024-03
|
||||
- **Date:** 2026-10-24
|
||||
- **Status:** observation — GAP-078 opened, **unverified**
|
||||
- **Context:** `session_20261005_064006.log` (live SIM, `SimSimple ORB`, NQ DEC26, 5-minute, 06:40–07:55 ET) logged 844 `WarmupIncomplete` rejections, detail `Replay burst guard ageSeconds=602 bar=2026-10-05 06:45:00`. The replay-burst guard rejects any bar older than 300 s. A steady ~600 s age on every bar is the signature of **10-minute-delayed CME market data**.
|
||||
- **Consequence if confirmed:** on a delayed feed the strategy can never pass the replay-burst guard and will never trade live, silently, with a normal-looking log.
|
||||
- **Decision:** operator confirms the data connection is real-time CME before N-02 (folded into P0-G in `NEXT_PROMPT.md`). If the feed was real-time, reopen as a guard defect. No code change staged.
|
||||
- **Related Files:** `session_20261005_064006.log`, `NT8StrategyBase.OnBarUpdate()` replay-burst guard.
|
||||
|
||||
### DEC-20260922-01
|
||||
- **ID:** DEC-20260922-01
|
||||
- **Date:** 2026-09-22
|
||||
- **Status:** decided — **GAP-064 root cause found and closed at diagnosis; GAP-065 through GAP-076 opened; Master Document v9.0 published**
|
||||
- **Context:** Mo asked for the next iteration of the Master Document, with the repo reviewed against the previous iteration and the Project's governance artifacts, all documents updated, and explicit clarity on what we were on and where we go next. Producing it required establishing repo ground truth for the first time since 2026-09-08. Two facts emerged immediately: **nothing has moved in fourteen days** (HEAD still `186e1dd`; `git status` byte-identical to its 2026-09-08 state; `TASK_GAP064_FOLLOWUP2_ONBAR_TRACE_PROMPT.md` never picked up; the verified-good GAP-064 `FileLog` fix still uncommitted), and **the live strategy has been stopped since 2026-09-08 19:07 ET** (no session log after `session_20260908_082122.log`). The 2026-09-13 and 2026-09-20 weekly reviews had both run without repo access and could not see either fact.
|
||||
- **The finding — GAP-065, and it reframes three months of work:** investigating why GAP-064 reproduced on a *fresh* session (`session_20260908_082122.log`: 0 `SIGNAL:`, 0 `OrbRangeNotEstablished`, 0 `GradeFilter`, 115 `STATE:`) eliminated the "stale long-running session" hypothesis and forced a question nobody had asked: **is the code NinjaTrader is running the code in the repository?** Requesting access to `C:\Users\billy\Documents\NinjaTrader 8\bin\Custom` answered it in four minutes. `bin\Custom\Strategies\SimpleORBStrategy.cs` is dated **2026-07-13**, 1,189 lines / 51,465 bytes, against the repo's 1,531 lines / 67,242 bytes. It contains **zero** occurrences of `RecordSignalRejection` (repo: 11), `signal_reject_reason`, `OrbRangeNotEstablished`, `RegimeVeto`, or `trend_confirm_long`.
|
||||
- **Mechanism (verified end to end):** `deploy-to-nt8.bat` copies only `NT8StrategyBase.cs` and `SimpleORBNT8.cs` into the NinjaScript Strategies folder; `SimpleORBStrategy.cs` belongs to a different project and ships inside `NT8.Strategies.dll`, so the deploy script never copies, backs up or verifies it. A hand-placed copy has sat orphaned in that folder since on or before 2026-07-13. NinjaTrader compiles every `.cs` in `bin\Custom` into `NinjaTrader.Custom.dll` (on disk, dated 2026-08-26 10:29). The orphan declares the same fully-qualified type, `NT8.Strategies.Examples.SimpleORBStrategy`; `SimpleORBNT8.cs:23` aliases it (`using SdkSimpleORB = …`) and `:202` instantiates it. **When a type resolves both to source in the current compilation and to a referenced assembly, C# binds to the source copy, silently.** The live strategy object has therefore been the 2026-07-13 implementation.
|
||||
- **Consequence:** `LogSignalRejectionFromContext()` (`NT8StrategyBase.cs:1504`) returns immediately unless `context.CustomData` holds `signal_reject_reason` (`:1509`). The running strategy never writes that key because the code that writes it does not exist in it. **Every strategy-side reject reason has been absent from the log since at least 2026-07-13** — not suppressed, never generated. This is the complete root cause of GAP-064 with no residual unknown, and it explains the exact dividing line observed: adapter-emitted reasons (`RthGuard`, `WarmupIncomplete`, `HistoricalReplayCatchup`) survive; context-carried reasons (`OrbRangeNotEstablished`, `GradeFilter`, `RegimeVeto`, `MaxDailyTrades`) vanish. It is closed by one further fact: `SIGNAL:` is written unconditionally at the top of `ProcessStrategyIntent` in realtime (`:2098–2099`), so zero `SIGNAL:` lines across a full RTH day proves `intent == null` on every bar. Corroboration that one binary spans the whole window: `ConfigHash 3c902e60…a641f67` and `CodeVersion 8.1.9.0:7a27cca8…f749` are identical in the 2026-08-31 provenance record, the 2026-09-03 trade record and the 2026-09-08 settings export.
|
||||
- **Corollary — GAP-062 was never live.** Its fix (`trend_confirm_long`/`trend_confirm_short`) lives entirely in `SimpleORBStrategy.cs` and has zero occurrences in the deployed copy. `DEC-20260826-01` recording it as "implemented and deployed by operator request" is true about the DLL and irrelevant: the type was shadowed at compile time. Three weeks of "GAP-062 SIM validation overdue" were never actionable. `DEC-20260826-01` is **corrected** by this entry. `DEC-20260825-04`'s `Trend=0.30` short-side cap therefore remains an accurate description of the live system today.
|
||||
- **Why no process caught it:** `tools/preflight/preflight.ps1` check 5 (~`510–518`) SHA-256-compares the deployed `NT8StrategyBase.cs` against the repo — and only that file, the one file that was current. `Write-DeployedSourceHashes` (~`202–222`) hashes every `.cs` in the folder into the freeze capture, including the orphan, and nothing ever compares those hashes to anything. The machinery existed and was pointed at the wrong file.
|
||||
- **Two further new defects, both live-confirmed:** (1) **GAP-066** — `SimpleORBNT8.OnStateChange()` calls `base.OnStateChange()` **last** (`:163`), so the base `SetDefaults` overwrites four values the subclass set: `RunnerTrailTicks` 20→**12**, `MinTradeGrade` 5→**4**, `MaxOpenPositions` 2→**3**, `BarsRequiredToTrade` 50→**1**, every one confirmed against `settings_Simple_ORB_NT8_20260908_082122.txt`. The strategy has been trading a 12-tick trail while its own subclass asked for 20, which means every prior analysis of runner economics — GAP-054's included — used the wrong trail distance. `deploy-to-nt8.bat` closes by telling the operator to verify `RunnerTrailTicks=20`, a check unsatisfiable from source. (2) **GAP-067** — eight properties are declared in both `NT8StrategyBase` and `SimpleORBNT8` without `new`, so the derived declarations shadow the base ones and there are two backing values per name; CS0108 has been ignored.
|
||||
- **GAP-054 is NOT explained by any of this and remains open.** Its fix lives in `NT8StrategyBase.cs`, which is current in deployment (it differs from the working tree by exactly the one uncommitted `FileLog` line). The 2026-09-01 failure is genuine and independent. It is now the project's only unexplained money-relevant defect.
|
||||
- **Decision:** Published **Master Document v9.0** (2026-09-22, 168 pages, ~42,000 words, 20 sections plus Appendices A–F), superseding v8.0 in full. Opened **GAP-065** (deployed-source divergence, CRITICAL), **GAP-066** (initialisation-order overwrite, HIGH), **GAP-067** (property shadowing, MEDIUM), **GAP-068** (deploy verification per-file and incomplete; manifest records no hashes, HIGH), **GAP-069** (44 commits unpushed, no offsite copy, HIGH), **GAP-070** (weekly cadence has no guaranteed artifact access, MEDIUM), **GAP-071** (explicit `Mode1DualLeg` with qty=1 submits two contracts, HIGH, latent), **GAP-072** (`EnableRunner` inert, LOW), **GAP-073** (`Verify-Deployment.ps1` vs `deploy-to-nt8.bat` contract mismatch, MEDIUM), **GAP-074** (`Slippage=0`, no commission/slippage model, MEDIUM), **GAP-075** (`NT8.Contracts` empty project, LOW), **GAP-076** (unknown whether Strategy Analyzer binds the orphan or the DLL, MEDIUM, unverified). **Reopened GAP-034** — same root cause class; it must not be closed as "correct Grade-A filtering" as the 2026-08-30 review proposed. **Discarded** the Gate 3 freeze `freeze_20260816_170304` rather than amending it.
|
||||
- **Consequences:** Every behavioural inference drawn from live logs since 2026-07-13 describes a program six weeks older than the repository — including the `DEC-20260825-04` grade-distribution study, the GAP-047 weight-rescore population, and both GAP-064 investigations. The *observations* stand as records of what ran; the *inferences* about repo source do not. v9.0 adds a new authority rule, now rank-4-equivalent: **the deployed artifact outranks the repository.** Source is evidence of intent, not evidence of behaviour.
|
||||
- **Also resolved:** live `MaxTradeRisk` is **$250.00** (2026-09-08 export), not the $200 the register had feared since 2026-08-26. Benign; that open item is closed.
|
||||
- **Also corrected:** `SPRINT_BOARD.md`'s gate table claimed a clean working tree; it is dirty and has been continuously since 2026-09-08. v7.0/v8.0's "five tools"/"nine tools" in `tools/` is nine directories but **seven** tools — `market-data/` and `replay/` hold only `.gitkeep`.
|
||||
- **Amended `DEC-20260816-01`:** a weekly review that cannot reach the repository must say so in its first line and must **not** produce a gate/no-gate determination, having no basis for one. Four consecutive reviews did exactly that.
|
||||
- **Next actions (v9.0 §10.1, in order):** N-01 delete the orphan, sweep the folder, delete `NinjaTrader.Custom.dll`, restart, recompile, re-add the strategy. N-02 run one SIM day and confirm `REJECT: reason=OrbRangeNotEstablished` appears — that single observation closes GAP-064 and GAP-034 and validates the whole diagnosis. N-03 `git push` (44 commits exist on one laptop). N-04 commit the GAP-064 `FileLog` fix. N-05/N-06 stage the P0-C and P0-B task prompts. N-07 `EnableKillSwitch=True`, `TraceOrders=true`. N-08 decide the weekly-review access fix.
|
||||
- **Related Files:** `docs/NT8_SDK_Master_Document_v9.0_Complete.docx`, `C:\Users\billy\Documents\NinjaTrader 8\bin\Custom\Strategies\SimpleORBStrategy.cs` (the orphan), `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `deployment/deploy-to-nt8.bat`, `tools/preflight/preflight.ps1`, `session_20260908_082122.log`, `settings_Simple_ORB_NT8_20260908_082122.txt`, `SPRINT_BOARD.md`, `DEC-20260826-01` (corrected), `DEC-20260904-01`/`DEC-20260908-01` (superseded), `DEC-20260816-01` (amended).
|
||||
- **Action Required:** N-01 and N-02 before any further diagnostic work of any kind. No log evidence collected before the deployment is corrected is evidence about the running system.
|
||||
|
||||
### DEC-20260908-01
|
||||
- **ID:** DEC-20260908-01
|
||||
- **Date:** 2026-09-08
|
||||
- **Status:** verification complete — GAP-064's defensive fix confirmed correct; **core root cause still NOT identified, GAP-064 stays open** *(superseded 2026-09-22 by `DEC-20260922-01`, which identified the root cause)*
|
||||
- **Context:** Kilocode reported "the safe GAP-64 observability slice" complete: a one-line `FileLog` addition to `NT8StrategyBase.OnBarUpdate()`'s catch block (`SDK ONBARUPDATE FAILED: {ExceptionType}: {message}`), a new source-text regression test (`NT8StrategyBaseOnBarUpdateVisibilityTests.cs`), three date-brittle test fixes attributed to "today maps to a CME holiday," a claim that "the 2026-09-03 trade file row belongs to the older `20260831_082650` session ID," and findings that "`SimpleORBStrategy.OnBar()` source paths all record a rejection before `return null`" and "`MaybeWriteStateTelemetry()` does not clear the real rejection context." No commit was created. Per standing practice, every claim was verified against the actual diff, source and log evidence rather than the summary.
|
||||
- **Verified correct, independently:** (1) the `FileLog` fix — `git diff` confirms exactly the one-line insertion claimed, correctly placed; (2) the new regression test — legitimate, non-tautological, in the established GAP-057 source-text pattern; (3) "today maps to a CME holiday" — confirmed: 2026-09-07 is Labor Day 2026 per `CmeHolidayCalendar.cs`'s own first-Monday-of-September rule, and file mtimes show the edits were made at 2026-09-08 ~03:43 UTC = 2026-09-07 ~23:43 ET, so `DateTime.Today` genuinely resolved to Labor Day when the tests ran; (4) the trade/session-ID claim — confirmed via `session_id=98ab6eed4e0a497e993c5120658c6a0a` matching `provenance_Simple_ORB_NT8_20260831_082650.json`, the old session that ran 2026-08-31 08:26:48 → 2026-09-03 14:31:42 ET. The session under investigation started 9 seconds later — a clean sequential restart, not overlapping instances.
|
||||
- **New finding from this verification pass:** `session_20260903_143151.log` actually runs through `SESSION END 2026-09-07 20:36:36 ET` — five days, not just through 09-04 as originally framed. The anomaly window is now precisely bounded: between `REJECT SUMMARY: reason=RthGuard count=197` at **2026-09-04 10:00:00 ET** and the next RthGuard increment at **16:15:00 ET** — the entire RTH day — the log contains **75 `STATE:` lines** and **zero `REJECT:`/`SIGNAL:` lines of any kind**. Not one swallowed exception; total silence across 75 consecutive evaluations.
|
||||
- **Assessment:** Kilocode's "Findings" restated two things already true before the task and two accurate forensic side-notes, but none explained why the day produced zero rejects. The `FileLog` line is genuine and valuable forward-looking instrumentation, not a diagnosis.
|
||||
- **Decision:** GAP-064 remains open. Recommend committing the two verified-good deliverables now. Staged `TASK_GAP064_FOLLOWUP2_ONBAR_TRACE_PROMPT.md` with the exact reproducible window.
|
||||
- **Also confirmed:** no commit exists on the device, consistent with "no commit was created." Given the task said "Deploy: COMMIT ONLY," this is a minor process deviation.
|
||||
- **Related Files:** `TASK_GAP064_SILENT_SIGNAL_PIPELINE_PROMPT.md`, `TASK_GAP064_FOLLOWUP2_ONBAR_TRACE_PROMPT.md`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `session_20260903_143151.log`.
|
||||
- **Action Required:** *(Superseded — see `DEC-20260922-01`. The follow-up task was never picked up; the root cause was found on 2026-09-22 by reading the deployed NinjaScript folder, which no prior investigation had done.)*
|
||||
|
||||
### DEC-20260904-01
|
||||
- **ID:** DEC-20260904-01
|
||||
- **Date:** 2026-09-04
|
||||
- **Status:** decided — GAP-064 prompted *(root cause identified 2026-09-22, `DEC-20260922-01`)*
|
||||
- **Context:** Operator reported "no trades today" and shared a dashboard "Missed B+ Setups" panel showing several Grade A/B setups between 09:55-10:15 ET labeled "Blocked by RthGuard." The actual `REJECT SUMMARY: reason=RthGuard` counter in `session_20260903_143151.log` froze at 197 right around 09:30 ET and never moved again — RthGuard was not genuinely blocking anything by 09:55. That dashboard label is a known, previously-documented approximation limitation (`DEC-20260818-15`, revisited in `DEC-20260826-06`): the panel infers the blocking reason from whichever `REJECT:` reason last appeared, not what is active at the moment shown.
|
||||
- **The deeper finding:** across the entire session there are **zero `SIGNAL:` lines and zero `REJECT:`/`REJECT SUMMARY:` occurrences of `OrbRangeNotEstablished`, `GradeFilter`, `MaxDailyTrades` or `RegimeVeto`** — reasons that should dominate any normal trading day. The only reject reasons that ever appear froze at fixed counts simultaneously around RTH open. Meanwhile `STATE:`/`STATE_DETAIL:`/`STATE_CONTEXT:` telemetry looks completely normal throughout, so the session log and dashboard both look like an ordinary quiet day rather than a broken one.
|
||||
- **Why this is invisible — same pattern as GAP-063:** `NT8StrategyBase.OnBarUpdate()`'s real-evaluation chain is wrapped in one try/catch whose catch block only calls `_logger.LogError`, `Print` and `Log` — none of which write to `FileLog`. Source review also confirmed `LogSignalRejectionFromContext(context)` only logs when `context.CustomData["signal_reject_reason"]` is present, and that key is set entirely by `SimpleORBStrategy.RecordSignalRejection(context, …)`.
|
||||
- **Decision:** Staged `TASK_GAP064_SILENT_SIGNAL_PIPELINE_PROMPT.md`, diagnostic-first (Stage 2, commit-only, no deploy, and explicitly do not restart the live strategy).
|
||||
- **Consequences:** Very likely the actual reason for "no trades" reports — not setup quality, not RthGuard. Tracked as its own item, not a sub-item of GAP-054, since the two symptoms are evidenced independently.
|
||||
- **Related Files:** `TASK_GAP064_SILENT_SIGNAL_PIPELINE_PROMPT.md`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `session_20260903_143151.log`, `DEC-20260818-15`, `DEC-20260826-06`.
|
||||
- **Action Required:** *(Superseded by `DEC-20260922-01`.)*
|
||||
|
||||
### DEC-20260826-07
|
||||
- **ID:** DEC-20260826-07
|
||||
- **Date:** 2026-08-26
|
||||
|
||||
Reference in New Issue
Block a user