[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:
@@ -13,6 +13,17 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
|
||||
## Decision Log
|
||||
|
||||
### DEC-20260826-04
|
||||
- **ID:** DEC-20260826-04
|
||||
- **Date:** 2026-08-26
|
||||
- **Status:** implemented and deployed by operator request
|
||||
- **Context:** GAP-025 was prompted by `DEC-20260826-03` after reading current `NT8StrategyBase` order/execution handling. The persistent session log could show `SUBMIT` and `FILL`, but not order lifecycle transitions, and `FILL` omitted `execution.Order.Name`, making scaler and runner legs indistinguishable after the fact.
|
||||
- **Decision:** Add realtime-only `FileLog` output in `OnOrderUpdate()` for SDK-managed order names (`SDK_...`) using `ORDER {signal} State={state} Filled={filled}/{quantity} AvgFillPrice={averageFillPrice}`. Extend the existing `FILL` line in `OnExecutionUpdate()` with `Signal={execution.Order.Name}`. Leave order submission and callback behavior unchanged.
|
||||
- **Proof:** New source-text tests confirm the `ORDER` line is logged before the Rejected-only branch so non-rejected transitions are covered, the `FILL` line includes the signal name and remains historical-replay gated, and `_circuitBreaker.RecordOrderRejection`, `_executionAdapter.ProcessOrderUpdate`, `_executionAdapter.ProcessExecution`, and `PortfolioRiskManager.ReportFill` remain present with the expected call shapes.
|
||||
- **Verification:** `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --filter "FullyQualifiedName~Adapters" --verbosity minimal` passed 81/81. `verify-build.bat` passed 572/572. Deploy completed with backup `20260826_010153`; `NinjaTrader.Custom.dll`/`.pdb` were invalidated.
|
||||
- **Related Files:** `TASK_GAP025_RUNNER_ORDER_LIFECYCLE_LOGGING_PROMPT.md`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `tests/NT8.Core.Tests/Adapters/NT8StrategyBaseOrderLifecycleTests.cs`, `SPRINT_BOARD.md`, `docs/00-governance/current_status.md`.
|
||||
- **Action Required:** Manual NinjaScript compile after deploy. Next SIM trade with an active runner should show separate `ORDER SDK_..._S_...` and `ORDER SDK_..._R_...` lifecycle lines plus `FILL ... Signal=...` lines.
|
||||
|
||||
### DEC-20260826-03
|
||||
- **ID:** DEC-20260826-03
|
||||
- **Date:** 2026-08-26
|
||||
|
||||
Reference in New Issue
Block a user