# logtriage `logtriage` is a standalone Python CLI for triaging NT8 SDK runtime artifacts without referencing any NinjaTrader assembly or changing deployed NT8 output. Python was chosen instead of a .NET console app because it keeps the tool fully outside `NT8-SDK.sln`, requires no solution or publish changes, and avoids any chance of being pulled into `NinjaTrader.Custom.dll` deployment. ## Inputs The script reads these files from a directory: - `session_*.log` - `trades_*.jsonl` - `provenance_*.json` - `settings_*.txt` Default input directory: `%USERPROFILE%\Documents\NinjaTrader 8\log\nt8-sdk` ## Output Text mode prints: 1. A per-day table with: `Date | Account | Instrument | BarType | DaysToLoad | DailyBars | WarmupOK | Signals | Submits | Fills | NetPnL | KillSwitch | VerboseLog | ConfigHash(8) | TestMode` 2. A `DIAGNOSTICS` section flagging: `SILENT DAY`, `PARALLEL INSTANCE`, `NO CONFIG CAPTURE`, `GATE CONFIG VIOLATION`, `CONFIG DRIFT`, and `PROVENANCE DEFECT` `--json` emits machine-readable output for dashboard ingestion, including session rows, diagnostics, and per-trade records enriched with source file and line metadata. ### REJECT / REJECT SUMMARY parsing Each session row now also includes: - `reject_summaries`: every `REJECT SUMMARY: reason= count=` line encountered, in file order, as `{date, reason, count, line}`. Because GAP-035 writes these as periodic cumulative snapshots (first live rejection at/after 10:00 ET, then every 15 bar-minutes, plus a final snapshot at session end), this is a history of counts over the session, not a single tally. - `reject_records`: every `REJECT: reason= detail= bar=