50 lines
2.5 KiB
Markdown
50 lines
2.5 KiB
Markdown
# TASK: DASH-001 Bugfix + Bars/Days-Loaded Panel
|
|
# Staged: 2026-08-17
|
|
# Sprint: Parallel Product Work — dashboard-only, safe while gate strategy is armed
|
|
# ─────────────────────────────────────────────────────────────────
|
|
|
|
## Part 1 — BUGFIX (priority, ship first)
|
|
|
|
dashboard_state.json currently shows offsets tracked for 16 session log files,
|
|
including the most recent (session_20260817_100812.log), but `current_session`
|
|
remains `null`. This is why the Live Local Server UI shows no live trade/
|
|
confluence/P&L data despite the server correctly polling files.
|
|
|
|
READ-FIRST: locate the logic in server.py/state.py responsible for selecting
|
|
the "current" session log. It should be the most recently created/modified
|
|
session_*.log in the configured log directory. Identify why it's tracking
|
|
offsets (proving it opens and reads these files) but never assigns to
|
|
current_session.
|
|
|
|
Also account for this real scenario from today's actual log directory: SIX
|
|
session_*.log files were created within a 90-second window this morning
|
|
(08:20:19 through 08:21:03), i.e. six rapid strategy restarts. Confirm
|
|
selection logic picks the newest by file mtime, not by filename string
|
|
comparison alone (verify these don't collide/misorder).
|
|
|
|
FIX: ensure `current_session` populates reliably on every poll cycle,
|
|
including correctly re-pointing to a new session file when NT8 restarts
|
|
mid-day.
|
|
|
|
VALIDATE: restart the dashboard server against the live log directory and
|
|
confirm current_session populates, and that trade/P&L/connection data from
|
|
the most recent real session (including any overnight session) appears in
|
|
the UI without a manual reload or restart.
|
|
|
|
## Part 2 — Bars/Days-Loaded Panel
|
|
|
|
Add a new dashboard panel showing, from the current session's log:
|
|
- Per-series: Type, DaysToLoad, HistoricalBarsLoaded (from the
|
|
"DataSeries[N] : Type=... DaysToLoad=... HistoricalBarsLoaded=..." lines)
|
|
- Factor warm-up status per calculator (from the "FactorWarmup : ..."
|
|
line) — display as pass/fail per calculator (e.g.
|
|
NarrowRangeFactorCalculator: SATISFIED 86/7, OrbRangeVsAtrFactorCalculator:
|
|
SATISFIED 86/5), not just the raw log line.
|
|
|
|
This data is already written once per session at startup — no NT8 source
|
|
change needed. Parse the existing "Historical readiness" block from
|
|
parsers.py the same way FILL/PNL_UPDATE/etc. are already parsed.
|
|
|
|
## GOVERNANCE
|
|
Track both under [DASH-001] in SPRINT_BOARD.md (extension, not a new item).
|