chore: checkpoint remaining pre-gate worktree changes
- governance: stage v7.0 review prompts, run book, roadmap/current-status/decision updates, and sprint board state - adapters: capture DASH/trailing-drawdown/state-telemetry strategy work already present in the worktree - tools: capture dashboard console/KPI parser updates, logtriage notes, and runnersweep output Build: previously clean | Tests: previously 511 passing | Includes all open staged files
This commit is contained in:
@@ -28,6 +28,18 @@ Text mode prints:
|
||||
|
||||
`--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=<Reason> count=<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=<Reason> detail=<Detail> bar=<time>` line, as `{date, reason, detail, bar, line}`. GAP-035 logs at most one of these per unique reason per session.
|
||||
- `reject_summary_final`: the last observed count per reason, i.e. `{reason: count}` derived from `reject_summaries` — this is the number to cite for "how many times did X block a trade this session."
|
||||
|
||||
The `SILENT DAY` diagnostic now includes a `Rejections: <reason>=<count>, ...` breakdown in its message (and a machine-readable `reject_totals` field) whenever `reject_summary_final` data is available for the day, so a silent day is self-explanatory instead of just flagged.
|
||||
|
||||
Parsing uses `parse_key_values()`, which bounds each value by the next known key marker (`reason=`, `detail=`, `bar=`, `count=`) rather than splitting on whitespace or `=`, since `detail` text can itself contain `=` (e.g. the `GradeFilter` factor breakdown `Factors=<factor>=<score>x<weight>;...`). This is the canonical parser; `tools/dashboard/server.py` no longer keeps its own copy.
|
||||
|
||||
## Usage
|
||||
|
||||
Run against the default NT8 SDK log directory:
|
||||
|
||||
Reference in New Issue
Block a user