[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:
@@ -69,7 +69,8 @@ All six `TASK_*.md` prompts are now unblocked. Nothing is waiting on you to clea
|
||||
- Hand `TASK_GAP047_WEIGHT_RESCORE_PROMPT.md` to Kilocode.
|
||||
Both can run at the same time; neither touches runtime behavior.
|
||||
|
||||
**Play 3 — Review GAP-048 output.** Confirm the four overloaded KillSwitch paths and four overloaded GradeFilter paths now log distinguishable reasons, that existing log-line formats are unchanged (only the reason string), and that the existing test suite still passes. Mark SPRINT_BOARD entry done.
|
||||
**Play 3 — Review GAP-048 output. IMPLEMENTED 2026-08-23, live/dashboard spot-check pending.**
|
||||
The overloaded `KillSwitch`, `GradeFilter`, and `TrailingDrawdownBreach` labels now split into the DEC-20260818-20 vocabulary while preserving line format and guard behavior. Tests prove SimpleORB genuine grade rejection remains `GradeFilter`, `RegimeVeto` keeps the same `REJECT:` format, and the line differs only by the `reason=` token. Build/tests/parser syntax passed and deploy backup is `20260823_142014`. Remaining operator validation: after manual NT8 compile, run one live/SIM diagnostic session and confirm `REJECT SUMMARY` shows distinct reasons and dashboard rejection panels render them.
|
||||
|
||||
**Play 4 — Review GAP-047 output and apply runtime weights. DONE 2026-08-23.**
|
||||
Part 1: Kilocode built `tools/rescore/rescore_weights.py`, scanned 182 session logs, reproduced the required worked example exactly (equal=0.640, designed=0.727), and reported the STATE telemetry population (923 samples, direction-degraded per GAP-049) separately from the real signal population (81 samples), per the task's caveat. Independently re-derived the headline numbers from the raw distribution tables in `GAP-047_weight_rescore_output.md` rather than trusting the summary — they check out, including that the signal population's "25 cross into A" figure is a gross count net of a small number of downgrades (consistent with the report's own note that some real signals score worse under designed weights).
|
||||
@@ -111,7 +112,7 @@ This is a separate, later step — not part of today's six tasks. Once GAP-054,
|
||||
## 4. End-of-day checklist
|
||||
|
||||
- [x] Section 1 decisions recorded — all accepted 2026-08-19
|
||||
- [ ] GAP-048 taxonomy: implemented, tested, SPRINT_BOARD updated
|
||||
- [x] GAP-048 taxonomy: implemented, tested, SPRINT_BOARD updated; manual NT8/dashboard spot-check pending
|
||||
- [x] GAP-047 Part 1/2: study delivered, DEC-20260823-01 accepted, runtime designed weights implemented and tested
|
||||
- [ ] GAP-054 runner trail: implemented, validated on sim/replay before any live gate run
|
||||
- [ ] GAP-055 persistence: implemented, restart/rollover-boundary test passed
|
||||
|
||||
@@ -14,7 +14,7 @@ Full detail: `docs/NT8_SDK_Master_Document_v7.0_Complete.docx`.
|
||||
|---|---|---|---|---|
|
||||
| 1 | **GAP-046** — set `AccountStartingBalance` or disable `EnableTrailingDrawdown` | operator action, no code | Operator | Every entry, from 14:30 ET daily |
|
||||
| 2 | **GAP-045/046 guards** — resolved: MNQ (cutover staged separately) + per-position semantics | `TASK_GAP045_GAP046_RISK_GUARDS_PROMPT.md` (Part 3 now actionable) | Kilocode, on current NQ config | All high-ATR days |
|
||||
| 3 | **GAP-048** — split the reject taxonomy | `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md` | Kilocode | Nothing — diagnostics only, safe now |
|
||||
| 3 | **GAP-048** — split the reject taxonomy | `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md` — implemented/deployed 2026-08-23, backup `20260823_142014` | Kilocode | Manual NT8 compile and dashboard spot-check |
|
||||
| 4 | **GAP-055** — persist `MaxDailyTrades` across restarts | `TASK_GAP055_MAXDAILYTRADES_PERSIST_PROMPT.md` | Kilocode | Gate Run #3 sample integrity |
|
||||
| 5 | **GAP-047** — Part 1 complete (commit `cbf45df`), Part 2 runtime weight fix implemented 2026-08-23 | `TASK_GAP047_PART2_WEIGHT_RUNTIME_PROMPT.md` — verification passed, deploy backup `20260823_135331` | Kilocode | Fresh gate freeze needed before gate evidence |
|
||||
| 6 | **GAP-054** — auto-breakeven destroys the runner trail | `TASK_GAP054_RUNNER_TRAIL_PROMPT.md` — **Option 0 implemented + source-verified 2026-08-21, NOT yet SIM-validated, NOT committed** | Kilocode implemented; operator validates | **RUNNER-001**, still blocked until SIM/replay validation passes |
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
# Current Status — NT8 SDK
|
||||
**Last Updated:** 2026-08-23 (GAP-047 Part 2 runtime designed weights implemented)
|
||||
**Last Updated:** 2026-08-23 (GAP-048 reject taxonomy implemented and deployed)
|
||||
|
||||
---
|
||||
|
||||
## 2026-08-23 — GAP-048 IMPLEMENTED, manual NT8 compile/dashboard spot-check pending
|
||||
|
||||
Kilocode executed `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md` as a logging-only change. Guard conditions, ordering, outcomes, and `REJECT:` / `REJECT SUMMARY:` line formats were left unchanged; only overloaded `reason=` token values were split.
|
||||
|
||||
Final vocabulary changes:
|
||||
- Actual kill switch remains `KillSwitch`.
|
||||
- Portfolio block -> `PortfolioRisk`.
|
||||
- Risk-manager/Tier 1 rejection -> `MaxTradeRisk`.
|
||||
- Circuit breaker -> `CircuitBreaker`.
|
||||
- Disabled long/short settings -> `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.
|
||||
|
||||
Evidence:
|
||||
- `verify-build.bat`: passed, 516/516 tests.
|
||||
- `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; backup `deployment\backups\20260823_142014`; `NinjaTrader.Custom.dll` was not present to invalidate.
|
||||
|
||||
Next required action: manual NinjaScript compile after starting NinjaTrader, then one live/SIM diagnostic session confirming `REJECT SUMMARY` shows distinct reasons and dashboard rejection panels render without frontend changes.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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