[GOV]: record GAP-067 compatibility validation
Some checks failed
CI Build & Test / Build & Test (Windows) (push) Has been cancelled
CI Build & Test / Build & Test (Linux/mono) (push) Has been cancelled

This commit is contained in:
2026-10-26 13:01:54 -04:00
parent ffadf401b1
commit 118b718f38
3 changed files with 13 additions and 2 deletions

View File

@@ -13,6 +13,17 @@ Use this file to record durable project decisions that affect implementation pat
## Decision Log
### DEC-20261026-04
- **ID:** DEC-20261026-04
- **Date:** 2026-10-26
- **Status:** implemented — GAP-067 source fix committed; NinjaTrader compile/property-grid/workspace validation pending
- **Context:** Master Document v9.0 §4.10.2 and `DEC-20260922-01` identify eight same-name `[NinjaScriptProperty]` declarations in `NT8StrategyBase` and `SimpleORBNT8`. Base consumers read the base fields while `ConfigureStrategyParameters()` read derived fields, making settings and runtime behavior diverge when an operator edits one copy.
- **Decision:** Remove the eight derived declarations and their duplicate `SetDefaults` assignments. GAP-066 (`b20b621`) ensures the base `SetDefaults` runs first. All base default values, attributes, consumers and strategy-config parameter names remain unchanged; derived reads now use the inherited properties.
- **Verification:** Commit `ffadf401b1c9a2f7530123c8f1a5ace4d0b2c8af`. `verify-build.bat` passed 593/593 (503 Core, 80 Integration, 10 Performance), zero warnings/errors; no-build Core run passed 503/503. Added source-text checks that the eight names are absent in `SimpleORBNT8`, declared exactly once in the base, and that no public property name overlaps between the classes.
- **Compiler enforcement:** `NT8.Adapters.csproj` explicitly removes `Strategies\**\*.cs` from MSBuild `Compile` items and includes them as `None`; therefore adding `<WarningsAsErrors>CS0108</WarningsAsErrors>` there would not cover NinjaScript sources. The source-text regression tests are the enforcement path for these files.
- **Workspace compatibility:** Official [NinjaScriptPropertyAttribute](https://docs.ninjatrader.com/ninjascriptpropertyattribute) docs describe constructor/grid/Strategy Analyzer parameters and mention workspace persistence; official [XmlIgnoreAttribute](https://docs.ninjatrader.com/ninjascript/xmlignoreattribute) docs say public properties participate in workspace/template XML serialization by default. Neither page documents how an existing saved value for a shadowed derived property binds after that declaration is removed. Compatibility is therefore **uncertain**, not guaranteed; operator validation after recompile is required (load an existing workspace/template, confirm all eight values, change `EnableCMEHolidayGuard`, and verify settings export reflects it).
- **Related Files:** `src/NT8.Adapters/Strategies/SimpleORBNT8.cs`, `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `tests/NT8.Core.Tests/Adapters/NT8StrategyBaseShadowedPropertyTests.cs`, `src/NT8.Adapters/NT8.Adapters.csproj`, `SPRINT_BOARD.md`, `DEC-20260922-01`, Master Document v9.0 §4.10.2.
### DEC-20261026-03
- **ID:** DEC-20261026-03
- **Date:** 2026-10-26