[GAP-025]: runner order lifecycle logging complete

- src/NT8.Adapters/Strategies/NT8StrategyBase.cs: add ORDER lifecycle FileLog and FILL signal name

- tests/NT8.Core.Tests/Adapters/NT8StrategyBaseOrderLifecycleTests.cs: add source-text regression coverage

- SPRINT_BOARD.md: GAP-025 prompted -> implemented/deployed

- docs/00-governance/current_status.md: record GAP-025 implementation

- docs/00-governance/decisions.md: record DEC-20260826-04

Build: clean | Tests: 572 passing | Dual-deployed: yes, backup 20260826_010153
This commit is contained in:
2026-08-26 01:03:12 -04:00
parent 34c3767fbf
commit 49bcd0b43c
5 changed files with 134 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
# NT8 SDK — Sprint Board
**Last Updated:** 2026-08-26 (GAP-025/GAP-030 prompted; GAP-062 deployed by operator request — see DEC-20260826-02)
**Last Updated:** 2026-08-26 (GAP-025 implemented/deployed; GAP-030 prompted next)
**Truth source:** compiler output, test output, deployed-file comparisons, and runtime artifacts override board claims.
## Current gate state
@@ -147,10 +147,10 @@ The dirty working tree — several modified/untracked files including live strat
## 📋 QUEUE — no deploy to the gate machine during a run
**[GAP-025] Runner/scaler order lifecycle invisible in the persistent session log** | Sprint 2.7 | 🟡 PROMPTED
**[GAP-025] Runner/scaler order lifecycle invisible in the persistent session log** | Sprint 2.7 | ✅ IMPLEMENTED — deployed 2026-08-26
- Reading `OnOrderUpdate`/`OnExecutionUpdate` (`NT8StrategyBase.cs` ~1270-1345) on 2026-08-26 found the actual gap behind the old "runner no-fill anomaly" framing: `OnOrderUpdate` never writes to `FileLog` for any order state except `Rejected` (everything else — submitted, accepted, working, cancelled — is Print-only, invisible outside NT8's live Output window), and the `FILL` line in `OnExecutionUpdate` doesn't include the order/signal name, so scaler vs. runner fills can't be told apart from the file log at all.
- Scoped diagnostic-only: adds an `ORDER {signal} State=... Filled=.../... AvgFillPrice=...` FileLog line to `OnOrderUpdate` for every transition, and adds the signal name to the existing `FILL` line. Zero change to order submission, sizing, or execution-adapter logic.
- Prompt: `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md`.
- Prompt: `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md`. Implemented as additive logging only: `OnOrderUpdate` now writes realtime `ORDER SDK_... State=... Filled=.../... AvgFillPrice=...` lines for SDK-managed order transitions, and the existing `FILL` line now includes `Signal=...` so scaler/runner fills are distinguishable. Existing circuit-breaker, execution-adapter, and portfolio-risk callbacks were left unchanged. Verification: focused Adapter tests 81/81, `verify-build.bat` 572/572. Deploy backup `20260826_010153`.
**[GAP-022-FOLLOWUP] Connection-State Test Seam** | Sprint 2.7 | ⏳ QUEUED — branch-only during Gate Run #2
- Add an injectable connection-state seam around `NT8StrategyBase`.