[GAP-048]: reject taxonomy split complete
- NT8StrategyBase.cs: split overloaded runtime reject reasons - SimpleORBStrategy.cs: split regime veto from grade filter - parsers.py: keep split blocking reasons visible in dashboard KPIs - SimpleORBRejectionLoggingTests.cs: cover GradeFilter, RegimeVeto, and line format - docs/00-governance: record final vocabulary and validation evidence Build: clean | Tests: 516 passing; Core 427 passing | Deploy: backup 20260823_142014
This commit is contained in:
@@ -71,7 +71,8 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
- **Decision:** Split the reject vocabulary into distinct reasons — `KillSwitch`, `PortfolioRisk`, `MaxTradeRisk`, `CircuitBreaker`, `LongTradesDisabled`, `ShortTradesDisabled`, `SizeBelowMinContracts`, `RegimeVeto`, `GradeFilter` (genuine grade rejection only), `TrailingDrawdownBreach` (real breach only) and `TrailingDrawdownNotConfigured`. Logging only: no guard condition, ordering or outcome may change, and the `REJECT:` / `REJECT SUMMARY:` line formats must remain byte-identical apart from the `reason=` token. The `HistoricalReplayCatchup` exemption inside `LogRejectRateLimited()` (DEC-20260818-08) is preserved.
|
||||
- **Consequences:** The reason vocabulary becomes a contract for `tools/dashboard/parsers.py`, `tools/logtriage/logtriage.py` and `tools/logwatch/logwatch.py`; those parsers are believed reason-agnostic and must be read to confirm it rather than assumed. Splitting reasons slightly increases `REJECT:` detail-line volume, since rate limiting is per unique reason. `OrbRangeNotEstablished` retains its three sub-states under one reason for now — they are already distinguishable in `detail` and this is lower priority.
|
||||
- **Related Files:** `src/NT8.Adapters/Strategies/NT8StrategyBase.cs`, `src/NT8.Strategies/Examples/SimpleORBStrategy.cs`, `tools/dashboard/parsers.py`, `tools/logtriage/logtriage.py`, `tools/logwatch/logwatch.py`, `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md`
|
||||
- **Action Required:** Confirmed. Execute `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md`.
|
||||
- **Implementation Note (2026-08-23):** Implemented the accepted vocabulary without changing guard conditions, ordering, outcomes, or `REJECT:` / `REJECT SUMMARY:` formats. Final mapping: actual kill switch remains `KillSwitch`; portfolio block -> `PortfolioRisk`; risk-manager/Tier 1 rejection -> `MaxTradeRisk`; circuit breaker -> `CircuitBreaker`; disabled long/short directions -> `LongTradesDisabled` / `ShortTradesDisabled`; size below minimum -> `SizeBelowMinContracts`; SimpleORB AVWAP regime veto -> `RegimeVeto`; genuine confluence grade threshold rejection remains `GradeFilter`; real trailing drawdown halt remains `TrailingDrawdownBreach`; unconfigured trailing drawdown monitor -> `TrailingDrawdownNotConfigured`; `OrbRangeNotEstablished` remains unchanged. Verified `tools/dashboard/parsers.py`, `tools/logtriage/logtriage.py`, and `tools/logwatch/logwatch.py` parse reasons generically; updated the dashboard's blocking-reason set so split blocking reasons continue feeding missed-setup approximation. Added SimpleORB tests proving genuine grade rejection remains `GradeFilter`, `RegimeVeto` records the same line format, and the line differs only by `reason=` token. Verification: `verify-build.bat` passed with 516/516 tests (427 Core, 79 Integration, 10 Performance); `dotnet test tests\NT8.Core.Tests\NT8.Core.Tests.csproj --configuration Release --no-build --verbosity minimal` passed 427/427; `python -m py_compile tools\dashboard\parsers.py tools\logtriage\logtriage.py tools\logwatch\logwatch.py` passed; `deployment\deploy-to-nt8.bat` completed with backup `20260823_142014` and noted `NinjaTrader.Custom.dll` was not present to invalidate.
|
||||
- **Action Required:** In the next live/SIM diagnostic session, confirm `REJECT SUMMARY` displays distinct reasons and the dashboard rejection panels render them without frontend changes. Manual NT8 compile remains required after deploy.
|
||||
|
||||
### DEC-20260818-19
|
||||
- **ID:** DEC-20260818-19
|
||||
|
||||
Reference in New Issue
Block a user