[GAP-051]: micro upgrade advisory persistence complete
- NT8StrategyBase.cs: persist MicroUpgradeThreshold advisory state per account - NT8StrategyBaseMicroUpgradeTests.cs: add source guards for persistence, corrupt files, and Account-null behavior - SPRINT_BOARD.md and decisions.md: record Option A and verification evidence Build: clean | Tests: 550 passing; Core 461 passing | Dual-deployed: no - skipped per operator instruction
This commit is contained in:
@@ -73,6 +73,9 @@
|
||||
- `SimpleORBNT8.OnBarUpdate()` computed `orbRangeTicks` from `_openingRangeHigh`/`_openingRangeLow`, two fields declared but never assigned anywhere in the file — permanently `0.0`. GAP-049's telemetry fix depended on this value being nonzero and never fired as a result.
|
||||
- Correct live values already existed in the same file (`sdkOrb.OpeningRangeHigh`/`OpeningRangeLow`, used correctly at the `STATE_CONTEXT` and diagnostics call sites) — this was a wiring fix, not new logic. Confirmed data-source only; no order flow, sizing, or risk behavior changed.
|
||||
- Prompt: `TASK_GAP059_ORB_RANGE_TELEMETRY_PROMPT.md`. Implemented by sourcing the adapter-built daily context's ORB range from `SdkSimpleORB.OpeningRangeHigh/OpeningRangeLow` only when `OpeningRangeReady` is true, then removing the dead adapter fields. This lets GAP-049's telemetry clone emit nonzero `orb_range_ticks` and gives `OrbRangeVsAtrFactorCalculator` the context it already expected. Verification: focused tests 32/32, `verify-build.bat` 545/545, Core Release no-build 456/456. Deployment blocked because NinjaTrader.exe PID 18800 locked `NT8.Core.dll`; commit made per operator instruction without deploy.
|
||||
**[GAP-051] `MicroUpgradeThreshold` advisory re-fires every restart** | Stage 1 | ✅ IMPLEMENTED — deploy skipped by operator
|
||||
- `_microUpgradeSuggested` resets to `false` in `State.SetDefaults`, which runs on every strategy enable — an account already above `MicroUpgradeThreshold` gets `TIER_UPGRADE_SUGGESTED` re-logged every restart, not once per lifetime. Advisory-only (`Print`/`FileLog`), never touches order flow, sizing, or risk.
|
||||
- Prompt: `TASK_GAP051_MICRO_UPGRADE_PERSISTENCE_PROMPT.md`. Implemented Option A: once-per-account-lifetime advisory persistence in a dedicated `micro_upgrade_suggested_<Account>.json` file under the configured/default log directory. Missing/corrupt files safely fall back to allowing the reminder and logging a warning; `Account == null`/non-realtime paths perform no file I/O. Verification: focused tests 5/5, `verify-build.bat` 550/550, Core Release no-build 461/461. Deployment skipped per operator instruction.
|
||||
### Also raised by the review, not yet prompted
|
||||
GAP-051 (`MicroUpgradeThreshold` fires every session) · GAP-052 (two hardcoded tick-value tables) ·
|
||||
GAP-053 (`executive_summary.md` and `roadmap.md` Sprint 3 list present ~12 completed tasks as open) ·
|
||||
|
||||
Reference in New Issue
Block a user