[GAP-057]: runner trail source regression seam
- NT8StrategyBaseRunnerTrailTests.cs: assert no runner SetStopLoss after SetTrailStop and no post-entry runner stop resets - SPRINT_BOARD.md/decisions.md: record Option B source-text seam choice and verification evidence Build: clean | Tests: 558 passing; Core 469 passing | Dual-deployed: no - test-only skipped by prompt
This commit is contained in:
@@ -106,7 +106,8 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
- **Decision:** Track both, do not action either as part of GAP-054. No operator decision required to log them.
|
||||
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `TASK_GAP054_RUNNER_TRAIL_PROMPT.md`
|
||||
- **GAP-056 Implementation Note (2026-08-25):** Implemented Option A for the inert breakeven parameters. `EnableAutoBreakeven`, `BreakevenTriggerTicks`, and `BreakevenOffsetTicks` remain declared/defaulted for saved workspace and settings compatibility, but are now `[Browsable(false)]` and their `Display` descriptions state they are currently unused. `SimpleORBNT8` settings export now labels the values as `UNUSED (retained for compatibility)`. This is reversible and avoids breaking persisted templates; Option B removal was not chosen because there was no concrete need to delete the fields and no benefit worth risking workspace/settings references. Added source-level tests proving the properties are hidden/marked unused and not read by `OnBarUpdate()` or `SubmitOrderToNT8()`. Verification: focused GAP-056 tests passed 3/3; `verify-build.bat` passed with 555/555 tests (466 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 466/466. Deploy intentionally skipped by task prompt.
|
||||
- **Action Required:** GAP-056 complete. GAP-057 remains ready as the remaining follow-up from this decision.
|
||||
- **GAP-057 Implementation Note (2026-08-25):** Implemented Option B, a source-text regression seam, because extracting a real `IOrderManagementCalls` wrapper would require routing live NinjaScript `SetStopLoss`/`SetTrailStop`/entry calls through new production indirection inside `SubmitOrderToNT8`, creating unnecessary order-timing risk for a test-only task. Added `NT8StrategyBaseRunnerTrailTests`: one test proves no `SetStopLoss(_runnerSignalName...)` appears after the runner `SetTrailStop(_runnerSignalName...)` calls in `SubmitOrderToNT8`; one proves the post-entry runner monitor in `OnBarUpdate()` contains no `SetStopLoss`/`SetTrailStop` calls; one proves the source-text seam did not add an order-management wrapper and the real implementation still uses direct NinjaScript managed-order calls. No production source changed for GAP-057. Verification: focused GAP-057 tests passed 3/3; `verify-build.bat` passed with 558/558 tests (469 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 469/469. Deploy intentionally skipped by task prompt.
|
||||
- **Action Required:** GAP-056 and GAP-057 complete. GAP-054 still requires SIM/replay validation before RUNNER-001 or live gate evidence.
|
||||
|
||||
### DEC-20260819-01
|
||||
- **ID:** DEC-20260819-01
|
||||
|
||||
Reference in New Issue
Block a user