chore: checkpoint contaminated Gate 2 findings

This commit is contained in:
2026-08-03 08:46:51 -04:00
parent 0c6b6b90a1
commit 56d7c7880e
21 changed files with 1593 additions and 892 deletions

View File

@@ -28,12 +28,21 @@ Record concise error fingerprints and verified fixes.
- Root cause: wrong overload or argument ordering.
- Fix: align call with exact method signature and parameter types.
6. **MaxDailyTrades overlap: second trade fires while first position still open**
5. **MaxDailyTrades overlap: second trade fires while first position still open**
- Root cause: `_tradeTaken` re-arm in `SimpleORBStrategy` is bar-driven, not position-close-driven. The strategy re-arms on the next bar after generating an intent, regardless of whether NT8 has closed the previous position.
- Risk: only relevant when `MaxDailyTrades > 1`. With default `MaxDailyTrades=1` this cannot occur.
- Mitigation (SIM): `MaxOpenPositions` and `DailyLossLimit` in NT8 adapter limit exposure.
- Fix (pre-live): wire re-arm to position-close callback in `NT8StrategyBase`. See DEC-20260429-01 in `docs/00-governance/decisions.md`.
5. **C# 6+ syntax in C# 5 project**
6. **C# 6+ syntax in C# 5 project**
- Root cause: use of `$""`, `?.`, `nameof`, expression-bodied members, etc.
- Fix: rewrite using C# 5 compatible constructs.
## New Entries
7. **Post-task build verification skipped -- build broken after task completion**
- Date: 2026-07-13
- Error: `CS0101` (duplicate `RunnerMode` enum), `CS0101` (duplicate `RunnerActivationMode` property), `CS1513` (unbalanced `#region`/`#endregion`)
- Fingerprint: `NT8StrategyBase.cs` ~line 249 (nested enum), ~line 279 (duplicate property), ~line 281 (extra `#endregion`)
- Root cause: Post-task build verification (`verify-build.bat` + `dotnet test`) was skipped after a previous task. Duplicate enum/property and unbalanced `#region`/`#endregion` compiled in IDE with Roslyn leniency but failed the strict dotnet CLI build used by NT8 SDK CI.
- Fix: Removed nested `RunnerMode` enum (keep namespace-level at line ~35), removed duplicate `RunnerActivationMode` property (keep `[NinjaScriptProperty]` version at line ~181), removed extra `#endregion` at line 281. Ran `verify-build.bat` + `dotnet test` -- 492 tests passed (10 perf + 78 integration + 404 core).
- Prevention link: Add mandatory `verify-build.bat && dotnet test --verbosity minimal` step to every task completion checklist in `docs/00-governance/decisions.md` and sprint templates.