[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
|
||||
|
||||
Reference in New Issue
Block a user