[GOV]: cleanup prompted task state
- SPRINT_BOARD.md: stage GAP-025/GAP-030 and correct GAP-062 deploy status - TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md: add runner lifecycle logging prompt - TASK_GAP030_ORB_HYDRATION_VERIFY_PROMPT.md: add ORB hydration verify prompt - TASK_GAP051/052/059/060 prompts: record commit-only deploy instruction - TASK_GAP054_RUNNER_TRAIL_PROMPT.md: clarify SIM/replay validation path - docs/00-governance/2026-08-19-run-book.md: reconcile implemented/verified task states - docs/00-governance/active_work.md: update blocker status and validation requirements - docs/00-governance/decisions.md: record prompted follow-ups and resolved GAP-062 deploy status Build: clean | Tests: 569 passing | Deploy: GAP-062 deployed backup 20260826_005308
This commit is contained in:
@@ -69,8 +69,8 @@ All six `TASK_*.md` prompts are now unblocked. Nothing is waiting on you to clea
|
||||
- Hand `TASK_GAP047_WEIGHT_RESCORE_PROMPT.md` to Kilocode.
|
||||
Both can run at the same time; neither touches runtime behavior.
|
||||
|
||||
**Play 3 — Review GAP-048 output. IMPLEMENTED 2026-08-23, live/dashboard spot-check pending.**
|
||||
The overloaded `KillSwitch`, `GradeFilter`, and `TrailingDrawdownBreach` labels now split into the DEC-20260818-20 vocabulary while preserving line format and guard behavior. Tests prove SimpleORB genuine grade rejection remains `GradeFilter`, `RegimeVeto` keeps the same `REJECT:` format, and the line differs only by the `reason=` token. Build/tests/parser syntax passed and deploy backup is `20260823_142014`. Remaining operator validation: after manual NT8 compile, run one live/SIM diagnostic session and confirm `REJECT SUMMARY` shows distinct reasons and dashboard rejection panels render them.
|
||||
**Play 3 — Review GAP-048 output. IMPLEMENTED 2026-08-23, live/dashboard spot-check pending. Independently verified 2026-08-23.**
|
||||
The overloaded `KillSwitch`, `GradeFilter`, and `TrailingDrawdownBreach` labels now split into the DEC-20260818-20 vocabulary while preserving line format and guard behavior. Read the full diff directly: every split maps exactly to the task's suggested vocabulary (`PortfolioRisk`, `MaxTradeRisk`, `CircuitBreaker`, `LongTradesDisabled`, `ShortTradesDisabled`, `SizeBelowMinContracts`, `RegimeVeto`, `TrailingDrawdownNotConfigured`), the real `KillSwitch` path (~721) and the genuine `GradeFilter` grade-threshold rejection (SimpleORBStrategy ~677) were correctly left untouched, and no `REJECT:`/`REJECT SUMMARY:` literal format string changed. Two of the three new tests call real production code and are sound. The third (`RejectLineFormat_DiffersOnlyByReasonToken`) is tautological — it compares two hand-written literal strings rather than exercising any production code — logged as **GAP-058** (`decisions.md` DEC-20260823-02) and since fixed and committed (`f45adca`, verified: the replacement test now drives `RecordSignalRejection` twice and compares real output). Remaining operator validation: after manual NT8 compile, run one live/SIM diagnostic session and confirm `REJECT SUMMARY` shows distinct reasons and dashboard rejection panels render them.
|
||||
|
||||
**Play 4 — Review GAP-047 output and apply runtime weights. DONE 2026-08-23.**
|
||||
Part 1: Kilocode built `tools/rescore/rescore_weights.py`, scanned 182 session logs, reproduced the required worked example exactly (equal=0.640, designed=0.727), and reported the STATE telemetry population (923 samples, direction-degraded per GAP-049) separately from the real signal population (81 samples), per the task's caveat. Independently re-derived the headline numbers from the raw distribution tables in `GAP-047_weight_rescore_output.md` rather than trusting the summary — they check out, including that the signal population's "25 cross into A" figure is a gross count net of a small number of downgrades (consistent with the report's own note that some real signals score worse under designed weights).
|
||||
@@ -82,14 +82,14 @@ Kilocode implemented Option 0: removed the `OnBarUpdate()` `SetStopLoss` call on
|
||||
**Play 6 — Validate GAP-054 before any live exposure. STILL PENDING — this is the next actual step.**
|
||||
NinjaTrader needs to be reopened for a manual NinjaScript compile, then a SIM trade run reaching +25 ticks or more, confirming no `BREAKEVEN runner stop ->` line appears and the runner's exit is materially better than entry + 1 tick (a trail stop in the execution grid, not a fixed stop), and that the scaler leg's target behavior is unchanged. Only after this passes is GAP-054 done and RUNNER-001 unblocked.
|
||||
|
||||
**Play 7 — Risk guards, all three parts (DEC-19a/19b accepted). IMPLEMENTED 2026-08-23, manual NQ SIM validation pending.**
|
||||
`TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` now fails startup for incoherent risk-envelope pairs, confirms MNQ is already `$0.50` in both hardcoded tick-value tables, and moves the live NT8 per-position `MaxTradeRisk` check to after sizing so `StopTicks * TickValue * Qty <= MaxTradeRisk` is enforced. Build/tests/deploy passed with backup `20260823_144817`. Remaining validation: manual NT8 compile, NQ SIM guard checks, and high-ATR signal behavior. The MNQ cutover is still Play 11 and was not started.
|
||||
**Play 7 — Risk guards, all three parts (DEC-19a/19b accepted). IMPLEMENTED 2026-08-23, manual NQ SIM validation pending. Independently verified 2026-08-23.**
|
||||
`TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` now fails startup for incoherent risk-envelope pairs, confirms MNQ is already `$0.50` in both hardcoded tick-value tables, and moves the live NT8 per-position `MaxTradeRisk` check to after sizing so `StopTicks * TickValue * Qty <= MaxTradeRisk` is enforced. Read the full `BasicRiskManager.cs`/`NT8StrategyBase.cs` diffs directly: the four `RiskEnvelopeValidator.ValidateStartupConfiguration` assertions match Part 1 exactly (notably `MaxTradeRisk <= DailyLossLimit`, the corrected per-position formula, not the old `MaxTradeRisk * MaxContracts`), the old pre-sizing risk block was removed rather than duplicated, and the new order flow is size-then-validate as required. No errors found. Build/tests/deploy passed with backup `20260823_144817`. Remaining validation: manual NT8 compile, NQ SIM guard checks, and high-ATR signal behavior. The MNQ cutover is still Play 11 and was not started.
|
||||
|
||||
**Play 8 — MaxDailyTrades persistence (DEC-21 accepted). IMPLEMENTED 2026-08-23, manual SIM restart validation pending.**
|
||||
`TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` now persists `{trading_date, daily_trade_count, account, strategy_name, symbol}` to `daily_trade_count_<AccountName>_<StrategyName>.json`, rehydrates same-date count, resets and overwrites on a new trading date, and skips file I/O when `Account == null`. Automated tests cover same-date restore, new-date reset, corrupt file, backtest no-I/O, and the 2026-08-16 19:12 / 2026-08-17 11:04 same-CME-date scenario. Remaining validation: manual NT8 compile plus SIM restart test confirming the next same-day signal rejects with `REJECT: reason=MaxDailyTrades`.
|
||||
**Play 8 — MaxDailyTrades persistence (DEC-21 accepted). IMPLEMENTED 2026-08-23, manual SIM restart validation pending. Independently verified 2026-08-23.**
|
||||
`TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` now persists `{trading_date, daily_trade_count, account, strategy_name, symbol}` to `daily_trade_count_<AccountName>_<StrategyName>.json`, rehydrates same-date count, resets and overwrites on a new trading date, and skips file I/O when `Account == null`. Read the full diff across all three touched source files (`SimpleORBStrategy.cs`, `NT8StrategyBase.cs`, `SimpleORBNT8.cs`): the `daily_trade_count_*` parameter keys are wired consistently end-to-end — `SimpleORBNT8.cs` seeds them into `StrategyConfig`, `NT8StrategyBase.cs` passes them again at `State.Realtime` and on every realtime `CustomData` build (gated on `Account != null`), and `SimpleORBStrategy.cs` consumes them for persistence/rehydration. Trading-date derivation correctly reuses existing `Session.SessionStart` infrastructure rather than reinventing an 18:00 ET calculation. Automated tests cover same-date restore, new-date reset, corrupt file, backtest no-I/O, and the 2026-08-16 19:12 / 2026-08-17 11:04 same-CME-date scenario — the key `Persistence_SundayEveningAndMondayMorning_ResolveToSameCmeTradingDate` test read in full and confirmed legitimate (two real strategy instances simulating an actual restart). No errors found. Remaining validation: manual NT8 compile plus SIM restart test confirming the next same-day signal rejects with `REJECT: reason=MaxDailyTrades`.
|
||||
|
||||
**Play 9 — GAP-049 telemetry direction fix.**
|
||||
No decision gate — this is dashboard/telemetry accuracy only. Hand `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md` to Kilocode any time today. Validate by re-checking the implausible -523.25 point gap value the task flags; confirm it resolves to a sane number after the fix.
|
||||
**Play 9 — GAP-049 telemetry direction fix. IMPLEMENTED 2026-08-23, live/SIM STATE_DETAIL spot-check pending. Independently verified 2026-08-23.**
|
||||
`SimpleORBNT8.BuildStateTelemetryIntent()` now builds a clone of `DailyBarContext` (confirmed it's a `struct` in `FactorCalculators.cs` — the `daily = source` copy is safe for this use because only scalar fields are reassigned on the clone, never the shared array fields), sets clone-only `TradeDirection`/`BreakoutBarVolume`/`TodayOpen`/`AvgIntradayBarVolume` from the telemetry intent's own side and the pre-existing stable `session_open_price`/`avg_volume` context fields (not fabricated — both already used by the real trade path in `SimpleORBStrategy.cs`), and attaches `orb_range_ticks` metadata. The shared `_strategyConfig.Parameters["daily_bars"]` object is never mutated, satisfying DEC-20260818-06. Read the full diff directly — confirmed. The P1-E gap-magnitude finding checks out on its own evidence: the same session log reported the "-523.25" gap as different values throughout one RTH session (roughly -389.75 to -555.75 per the decisions.md entry), which by itself proves it was reading a drifting current-bar value rather than a fixed overnight open, independent of the cited external NQ close/open figures. New tests: `OrbConfluenceFactorTests.cs`'s `GapDirection_LargeDownGapForSell_ScoresOneAndAligns` executes the real `GapDirectionAlignmentCalculator` against the exact cited 30096/30077 values and confirms Score=1.0, "aligns with trade" — legitimate. `SimpleORBNT8DefaultsTests.cs`'s two new tests are source-text assertions (grep the compiled method body for expected lines), not execution tests — this matches the file's pre-existing pattern for this NinjaScript-derived adapter class, which can't be instantiated outside NT8 to test by execution; not a new GAP-058-style tautology, just a weaker coverage tier used because a real execution seam doesn't exist here. No errors found. Remaining validation: manual NT8 compile, then one live/SIM session confirming `STATE_DETAIL` for a sell setup with a down gap reports aligned, and `OrbRangeVsAtr` no longer reads "no daily bar context available" when warm-up is satisfied.
|
||||
|
||||
**Play 10 — Close out today's six items.**
|
||||
For every item completed today: flip its `decisions.md` Status to `implemented` as appropriate, update `SPRINT_BOARD.md` and `active_work.md` to move it out of the blockers section, and commit the governance-doc changes. Leave anything not completed today explicitly marked with what's left and why.
|
||||
@@ -117,7 +117,7 @@ This is a separate, later step — not part of today's six tasks. Once GAP-054,
|
||||
- [ ] GAP-054 runner trail: implemented, validated on sim/replay before any live gate run
|
||||
- [x] GAP-055 persistence: implemented and automated restart/rollover-boundary tests passed; manual SIM restart validation pending
|
||||
- [x] GAP-045/046 all three parts: implemented on NQ, including the post-sizing Tier 1 reorder and the MNQ tick-table check; manual NQ SIM validation pending
|
||||
- [ ] GAP-049 telemetry: implemented, -523.25 anomaly re-checked and resolved
|
||||
- [x] GAP-049 telemetry: implemented and tested; -523.25 anomaly root-caused (data-alignment defect, not a real gap) and fixed; manual NT8 compile + live/SIM STATE_DETAIL spot-check pending
|
||||
- [ ] `git status --short` re-checked: confirm exactly the files each TASK prompt's DO list authorized, nothing else
|
||||
- [ ] SPRINT_BOARD.md, active_work.md, decisions.md all reflect end-of-day state
|
||||
- [ ] MNQ cutover (Play 11) explicitly NOT started until the six items above are validated — confirm it's still pending, not skipped
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
# Active Work
|
||||
**Last Updated:** 2026-08-19 (all four proposed decisions accepted; see decisions.md)
|
||||
**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)
|
||||
|
||||
## READY 2026-08-19 — v7.0 review blockers, decisions accepted, none yet executed
|
||||
## v7.0 review blockers — decisions accepted 2026-08-19, implementation status below
|
||||
|
||||
All four decisions proposed 2026-08-18 were accepted by the operator on 2026-08-19
|
||||
(DEC-20260818-18, -19, -20, -21), plus a new DEC-20260819-01 sequencing the MNQ
|
||||
instrument cutover as its own follow-on step. Nothing below has been implemented yet —
|
||||
these are now unblocked for Kilocode, not still awaiting a decision.
|
||||
instrument cutover as its own follow-on step. Items 2, 3, 4, 5 and 7 below are now
|
||||
code-complete, tested, and deployed (see each row and `decisions.md` for commit/backup
|
||||
evidence) but each still requires a manual NinjaScript compile plus the SIM/live
|
||||
validation step named in its "Blocking" column before it is fully closed. Item 6
|
||||
(GAP-054) is implemented, committed (`28c30bc`), and deployed, but its own SIM/replay
|
||||
validation has not run yet. Item 8 (MNQ cutover) has not started.
|
||||
Play-by-play execution order: `docs/00-governance/2026-08-19-run-book.md`.
|
||||
Full detail: `docs/NT8_SDK_Master_Document_v7.0_Complete.docx`.
|
||||
|
||||
@@ -17,14 +21,15 @@ Full detail: `docs/NT8_SDK_Master_Document_v7.0_Complete.docx`.
|
||||
| 3 | **GAP-048** — split the reject taxonomy | `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md` — implemented/deployed 2026-08-23, backup `20260823_142014` | Kilocode | Manual NT8 compile and dashboard spot-check |
|
||||
| 4 | **GAP-055** — persist `MaxDailyTrades` across restarts | `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` — implemented/deployed 2026-08-23, backup `20260823_143311` | Kilocode | Manual NT8 compile and SIM restart validation |
|
||||
| 5 | **GAP-047** — Part 1 complete (commit `cbf45df`), Part 2 runtime weight fix implemented 2026-08-23 | `TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md` — verification passed, deploy backup `20260823_135331` | Kilocode | Fresh gate freeze needed before gate evidence |
|
||||
| 6 | **GAP-054** — auto-breakeven destroys the runner trail | `TASK_GAP054_RUNNER_TRAIL_PROMPT.md` — **Option 0 implemented + source-verified 2026-08-21, NOT yet SIM-validated, NOT committed** | Kilocode implemented; operator validates | **RUNNER-001**, still blocked until SIM/replay validation passes |
|
||||
| 7 | **GAP-049** — telemetry `STATE:` score is direction-incorrect | `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md` | Kilocode | Dashboard trustworthiness; degrades item 5 |
|
||||
| 6 | **GAP-054** — auto-breakeven destroys the runner trail | `TASK_GAP054_RUNNER_TRAIL_PROMPT.md` — **Option 0 implemented + source-verified 2026-08-21, committed `28c30bc`, deployed (backup `20260821_144039`), NOT yet SIM/replay-validated** | Kilocode implemented; operator validates | **RUNNER-001**, still blocked until SIM/replay validation passes |
|
||||
| 7 | **GAP-049** — telemetry `STATE:` score is direction-incorrect | `TASK_GAP049_TELEMETRY_DIRECTION_PROMPT.md` — implemented/deployed 2026-08-23, backup `20260823_151931` | Kilocode | Manual NT8 compile and live/SIM STATE_DETAIL spot-check |
|
||||
| 8 | **MNQ cutover** — reconfigure instrument, retune risk params for $0.50/tick, fresh Gate 3 freeze | not yet staged as its own TASK file | Operator + Kilocode | Only after items 2, 4, 5, 6 pass validation on NQ |
|
||||
|
||||
**Sequencing note:** items 3 and 5 carry zero trading risk and can proceed immediately, in
|
||||
parallel with everything else. Item 6 must land (and validate on SIM/replay) before
|
||||
RUNNER-001 is executed. Item 8 (MNQ cutover) must NOT start until items 2, 4, 5, and 6
|
||||
have landed and validated on the current NQ configuration — see DEC-20260819-01.
|
||||
**Sequencing note:** items 3, 5, and 7 carry zero trading risk (diagnostics/telemetry/
|
||||
scoring-policy only, no order-management path touched) and have all landed. Item 6 must
|
||||
land (and validate on SIM/replay) before RUNNER-001 is executed. Item 8 (MNQ cutover)
|
||||
must NOT start until items 2, 4, 5, and 6 have landed and validated on the current NQ
|
||||
configuration — see DEC-20260819-01.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -13,14 +13,36 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
|
||||
## Decision Log
|
||||
|
||||
### DEC-20260826-03
|
||||
- **ID:** DEC-20260826-03
|
||||
- **Date:** 2026-08-26
|
||||
- **Status:** decided — both prompted
|
||||
- **Context:** Operator asked what else could be pulled from the roadmap after GAP-062. `GAP-025` ("Runner No-Fill Anomaly Diagnosis") and `GAP-030` ("Historical ORB State Hydration") have sat in the Sprint 2.7 backlog since it was created, both still framed around a now-stale "branch-only during Gate Run #2" gate-sequencing rule. Read the actual current source before prompting either rather than reusing the old one-line descriptions:
|
||||
- **GAP-025:** `NT8StrategyBase.OnOrderUpdate()` (~1270-1301) never writes to `FileLog` for any order state except `Rejected`; `OnExecutionUpdate()`'s `FILL` line (~1306-1345) doesn't include the order/signal name. Since a trade submits two independently-named orders (`SDK_{Symbol}_S_{hex}` scaler, `SDK_{Symbol}_R_{hex}` runner), the persistent session log currently cannot distinguish which leg filled, or show a runner order's lifecycle (submitted/accepted/working/cancelled) at all outside NT8's live Output window — this is the real, previously-unspecified mechanism behind the old "no-fill anomaly" framing.
|
||||
- **GAP-030:** tracing `SimpleORBStrategy.OnBar()`'s ORB-window logic, `StrategyContext`, `NT8StrategyBase.OnBarUpdate()`'s replay-burst guard, and `ProcessStrategyIntent()`'s existing `State == State.Historical` order-block found reason to believe both halves of GAP-030's original ask (correct range reconstruction from historical bars, zero orders from historical bars) already work by construction — Core's `UpdateOpeningRange()` is state-blind and `ProcessStrategyIntent()` already refuses `State.Historical` orders. This has never been tested end-to-end, and rests on one assumption not verifiable from source alone (whether NT8 actually delivers same-day historical catch-up bars on a late enable).
|
||||
- **Decision:** Prompted `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md` as diagnostic-only logging (zero trading-behaviour risk — adds `FileLog` calls around existing order/execution events, touches no order-management logic). Prompted `TASK_GAP030_ORB_HYDRATION_VERIFY_PROMPT.md` as a verify-first task: Kilocode must confirm or correct the traced behavior above before implementing anything, and if confirmed, the task's deliverable is test coverage proving the existing safety rather than new production logic — only implement a fix if verification finds a genuine gap.
|
||||
- **Consequences:** Neither task carries deploy risk on its own (GAP-025 is logging-only; GAP-030 is verify-first and likely test-only). Both replace the stale "Gate Run #2" gating language in `SPRINT_BOARD.md` with the current PROMPTED status.
|
||||
- **Related Files:** `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md`, `TASK_GAP030_ORB_HYDRATION_VERIFY_PROMPT.md`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Core/Common/Models/StrategyContext.cs`, `SPRINT_BOARD.md`.
|
||||
- **Action Required:** Await Kilocode's implementation and commits for both. Per standing practice, verify each by reading the actual diff directly — DEC-20260826-02 (above) is a fresh reminder why that includes checking deploy-status claims against `deployment/backups/`, not just trusting the commit message or governance-doc text.
|
||||
|
||||
### DEC-20260826-02
|
||||
- **ID:** DEC-20260826-02
|
||||
- **Date:** 2026-08-26
|
||||
- **Status:** resolved — deployed by explicit operator request
|
||||
- **Context:** Verifying Kilocode's GAP-062 commit (`885e298`) per standing practice (read the diff and evidence directly, don't trust the summary) found a direct contradiction. `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`'s header explicitly said `Deploy: COMMIT ONLY — do NOT run deploy-to-nt8.bat or copy build output to the live NT8 install as part of this task`, and both `SPRINT_BOARD.md`'s GAP-062 entry and `DEC-20260826-01` (Kilocode's own governance-doc updates, committed in the same commit) state "Deploy intentionally skipped by task prompt." But the commit's own trailer reads `Build: clean | Tests: 569 passing | Dual-deployed: yes, backup 20260826_005308` — and `deployment/backups/20260826_005308/` genuinely exists on disk, containing a `manifest.txt` (timestamped matching the commit) plus pre-deploy DLL backups. Reading `deployment/deploy-to-nt8.bat` directly confirms the backup step only runs as the first half of a full deploy (back up existing live DLLs, then copy the new build over them, with `errorlevel`-checked failure exits at each copy) — the existence of a completed backup folder is strong evidence the script ran past the backup step, not proof by itself that every copy succeeded, but combined with the "Dual-deployed: yes" trailer this reads as a real deploy having completed to `C:\Users\billy\Documents\NinjaTrader 8\bin\Custom`, not a skipped one.
|
||||
- **Why this matters:** GAP-062 is explicitly a real scoring-behavior change (not observability-only) — the task and `DEC-20260825-06` both required SIM before/after observation before trusting it live, specifically because it can newly qualify short setups that were previously capped below Grade A. If the live NT8 install now has this build, that validation gate was bypassed, and the documentation trail (SPRINT_BOARD.md, DEC-20260826-01) is actively wrong about deploy status — this is exactly the class of discrepancy the standing "verify via diff, not summary" practice exists to catch, and this time the summary in the governance docs themselves (not just the commit message) was wrong.
|
||||
- **Resolution:** Operator explicitly requested `deploy and commit` after the GAP-062 implementation. `deployment\deploy-to-nt8.bat` was run from the repo and completed successfully, creating backup `deployment\backups\20260826_005308`; `NinjaTrader.Custom.dll` was not present to invalidate. GAP-062 should now be treated as deployed to the local NT8 Custom folder, not skipped. This resolves the documentation mismatch, but it does not remove the validation requirement: because GAP-062 is a scoring-behavior change, the next strategy run should be treated as SIM validation before live trust.
|
||||
- **Related Files:** `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`, `deployment/deploy-to-nt8.bat`, `deployment/backups/20260826_005308/`, `SPRINT_BOARD.md`, `docs/00-governance/decisions.md` (`DEC-20260826-01`).
|
||||
- **Action Required:** Run manual NinjaScript compile and SIM before/after observation before trusting GAP-062 live. Confirm that at least one comparable confirmed-downtrend short can now score Grade A when appropriate, and that long-side Grade distribution remains sane.
|
||||
|
||||
### DEC-20260826-01
|
||||
- **ID:** DEC-20260826-01
|
||||
- **Date:** 2026-08-26
|
||||
- **Status:** implemented — commit-only, pending SIM observation
|
||||
- **Status:** implemented and deployed by operator request — pending SIM observation
|
||||
- **Context:** GAP-062 followed `DEC-20260825-04` and `DEC-20260825-06`: short candidates could earn the negative-slope `slopeAligned` bonus or the old positive-slope `trend_confirm` bonus, but not both, because `trend_confirm` was computed as `avwapSlope > 0.0 ? 1.0 : 0.0` before the scorer evaluated trade side. No deployed GAP-061 telemetry evidence was available in the current NT8 session log directory (`TrendConfirm`/`AvwapSlope` not found), so implementation rested on the source-level proof and tests.
|
||||
- **Decision:** Implement GAP-062 by publishing side-specific `trend_confirm_long` and `trend_confirm_short` values in `SimpleORBStrategy.UpdateConfluenceInputs()` using the already-computed AVWAP slope, then make `TrendAlignmentFactorCalculator` select the side-specific value matching `intent.Side`. Preserve the existing `TrendAlignmentFactorCalculator` score structure and weights exactly: `+0.4` price aligned to AVWAP, `+0.3` slope aligned to trade side, `+0.3` selected trend confirmation. Preserve the existing `STATE_CONTEXT` key shape by continuing to emit `TrendConfirm` as the legacy `trend_confirm` field, now resolved from pending/current breakout direction where available.
|
||||
- **Symmetry proof:** Tests now prove the three required cases. A short candidate with price below AVWAP, `avwap_slope < 0`, and `trend_confirm_short = 1.0` reaches `Trend=1.0`, equal to a symmetric long with price above AVWAP, `avwap_slope > 0`, and `trend_confirm_long = 1.0`. A short candidate evaluated against an uptrend (`avwap_slope > 0`, `trend_confirm_short = 0.0`) does not earn trend confirmation and scores only the price-alignment component in the fixture. A long in a confirmed uptrend still reads `trend_confirm = 1.0` in factor details and reaches `Trend=1.0`, preserving long-side behavior.
|
||||
- **Consequences:** This is a real scoring-behavior change, not observability-only. Previously B/C-capped short setups can now legitimately reach Grade A and pass `MinTradeGrade=A` when AVWAP slope genuinely confirms the short. Deploy was intentionally skipped per `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`; operator SIM before/after observation is required before trusting this live.
|
||||
- **Consequences:** This is a real scoring-behavior change, not observability-only. Previously B/C-capped short setups can now legitimately reach Grade A and pass `MinTradeGrade=A` when AVWAP slope genuinely confirms the short. Deploy was originally skipped per `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`, then completed after explicit operator request; operator SIM before/after observation is required before trusting this live.
|
||||
- **Verification:** `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --filter "FullyQualifiedName~Intelligence" --verbosity minimal` passed 89/89. `verify-build.bat` passed 569/569. Existing CS1998 warnings in unrelated OMS/mock test files remain present, but the verification script reported `All checks passed`.
|
||||
- **Related Files:** `TASK_GAP062_TREND_CONFIRM_DIRECTION_PROMPT.md`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `src/NT8.Core/Intelligence/FactorCalculators.cs`, `tests/NT8.Core.Tests/Intelligence/OrbConfluenceFactorTests.cs`, `SPRINT_BOARD.md`, `docs/00-governance/current_status.md`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user