[GAP-022-FOLLOWUP]: connection-state seam complete
- src/NT8.Adapters/NinjaTrader/ConnectionStateMonitor.cs: added plain testable connection-state monitor - src/NT8.Adapters/Strategies/NT8StrategyBase.cs: wired monitor and added pre-submit ConnectionLost check - tests/NT8.Core.Tests/Scenarios/ScenarioTests.cs: added disconnect scenario coverage - SPRINT_BOARD.md: GAP-022-FOLLOWUP implemented/deployed - docs/00-governance/current_status.md: updated - docs/00-governance/decisions.md: added DEC-20260826-07 Build: clean | Tests: 580 passing | Dual-deployed: yes, backup 20260826_011650
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
# Current Status — NT8 SDK
|
||||
**Last Updated:** 2026-08-26 (GAP-030 implemented/deployed test-only)
|
||||
**Last Updated:** 2026-08-26 (GAP-022-FOLLOWUP implemented/deployed)
|
||||
|
||||
---
|
||||
|
||||
## 2026-08-26 — GAP-022-FOLLOWUP implemented; connection-state seam added
|
||||
|
||||
Implemented and deployed `TASK_GAP022_FOLLOWUP_CONNECTION_SEAM_PROMPT.md` as Option A. Added a plain `ConnectionStateMonitor` in `NT8.Adapters.NinjaTrader` to own connected/disconnected state without a NinjaScript dependency. `NT8StrategyBase.OnConnectionStatusUpdate()` now delegates state changes to it, the existing early `OnBarUpdate` `ConnectionLost` guard reads through it without changing behavior, and `ProcessStrategyIntent()` now re-checks the same monitor immediately before risk/sizing/order submission so a disconnect after signal generation but before submit is blocked atomically.
|
||||
|
||||
Added real scenario coverage for the two deferred disconnect cases: `MID_TRADE_DISCONNECT` proves a disconnect with an existing open position blocks new entries without inventing flatten-on-disconnect behavior, and `PRE_ENTRY_DISCONNECT` proves a generated signal is blocked before submit with the existing `ConnectionLost` rejection. The connected common path is also covered. `NEWS_DAY_REDUCED_SIZE` remains deferred because it still needs a high-impact-event calendar and sizing-policy API. Verification passed: focused `ScenarioTests` 9/9, `verify-build.bat` 580/580, and Core Release no-build 490/490. Deploy completed with backup `20260826_011650`; `NinjaTrader.Custom.dll` was already absent.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user