Repository navigation
Backlog
Labels
blockedWaiting on another issue or a release; the runner clears it when that closesdashboardMining dashboard web UIenhancementNew feature or requestsize:MSized M against one local session
Milestone
Description
What's the problem
Part of #4431. The dashboard detects faults and fires alert edges, but it keeps no durable record of them. With no notification channel on (the default), an error leaves nothing to look at later. The edges are the _record_incident(EVT_*) calls in dashboard/mining_dashboard/service/notify/:
alert_edges.py: node down, disk space, DB unhealthy, DB reset, wallet changed, XvB no share, clearnet exposed, XvB registration, hashrate low, high reject rate;alert_service.py: worker offline, container unhealthy, hashrate loss;egress_firewall_edges.py,monero_health_edges.py,tari_node_edges.py.
What it impacts
Operators reviewing what went wrong, and the Errors filter and attention item in #D.
How I found it
A read-only read of develop-v2.1.0 at bfd061f (the edge list above). The monitoring-ping failure record (ping_failures, #4037) exists on develop only. It reaches develop-v2.1.0 with the next 2.0.x forward merge.
How important is it
Medium. Blocked on #4432 (the store). The monitoring-ping part also waits for the forward merge that brings ping_failures to develop-v2.1.0.
Acceptance criteria
- Each of these is recorded as an error or warning episode through
record_event, with a producer test:- monitoring ping failing;
- container crash loop or unhealthy;
- Monero or Tari node down or stalled;
- Tor proxy failure, and each Tor heal action;
- egress firewall not enforced, or clearnet exposed;
- disk warning or critical;
- DB unhealthy, and DB reset;
- payout wallet unreachable, and payout wallet changed;
- hashrate low;
- high reject rate;
- XvB no share, and XvB registration problem.
- The monitoring-ping episode is taken from the live failure stream in
healthchecks.py.ping_failuresstays the unchanged raw buffer (Let appliance owners download a redacted support bundle of past logs from the dashboard, and log why health pings fail #4032, Log every failed Healthchecks ping with its reason and show the last failures on the dashboard #4037). - A notification that could not be delivered is recorded from the sink result that A payout-confirmed alert is lost for good if every notification channel fails once #4390 / PR Retry a payout-confirmed alert when every channel fails (#4390) #4421 adds. Until that lands, nothing is written for it, and the PR says so.
- A test lists every
_record_incident(...)edge inservice/notify/and fails if an edge has neither an event kind nor an entry in an exemption list kept in that test. A new alert edge therefore cannot ship without an Event log entry. - Non-Tor egress detection stays owned by On-box egress watchdog: alert on non-Tor traffic from the host audit counters #4385 and Network panel shows only this app's egress, not the whole system #4384. This issue records an entry only when their edge fires.
-
make test,make test-patch-coverageandmake lint-file-budgetpass.
Possible solutions
- Call
record_eventat each edge, next to_record_incident(recommended). One place per edge, and the parity test keeps them in step. - Have
_record_incidentitself write the event. This is smaller, but it fires only for edges that count toward the digest, and it carries no subject or text slots.
Metadata
Metadata
Assignees
Labels
blockedWaiting on another issue or a release; the runner clears it when that closesdashboardMining dashboard web UIenhancementNew feature or requestsize:MSized M against one local session
Activity
pithead-developer commentedon Nov 25, 2026
Blocked before work can start: the store this issue writes to does not exist on the base branch yet.
record_event. That helper and theevent_logtable are pithead#4432, and they are not ondevelop-v2.1.0— verified at its tip 190234b, whererecord_event,event_log_storeandevent_logappear in no file on the branch.dashboard/mining_dashboard/service/event_log_store.py—record_eventwith kind, subject, label, severity and template slots, plusget_open_episodes(). This issue's detectors are exactly the callers of that API, so wiring them now would pin an API still under review and collide with that branch.healthchecks.py(ping_failures), which exists ondeveloponly; it reachesdevelop-v2.1.0with the forward merge tracked by pithead#4502.What is finished here: both prerequisites verified against the base, and the producer side mapped — 19
_record_incidentcall sites acrossalert_edges.py,alert_service.py,egress_firewall_edges.py,monero_health_edges.pyandtari_node_edges.pyare the edges the parity test must enumerate. The wiring and the parity test start on top of the merged store.What unblocks this: pithead#4432 closing with its store on
develop-v2.1.0(currently delivered through PR #4524), pithead#4509's episode layer landing, and pithead#4502's forward merge for the monitoring-ping row. The runner resumes this session when the blocker closes.pithead-developer commentedon Nov 25, 2026
Blocked on #4432. Blocked before work can start: every acceptance bullet records episodes through record_event, and that helper plus the event_log table (pithead#4432) are not on develop-v2.1.0 — verified at tip 190234b, where record_event, event_log_store and event_log appear in no file on that branch. The store and episode semantics are in flight as PR #4524 (pithead#4509), which adds dashboard/mining_dashboard/service/event_log_store.py (record_event with kind, subject, label, severity and template slots; get_open_episodes); this issue's detectors are exactly its callers, so wiring them now would pin an API still under review and collide with that branch. The monitoring-ping bullet additionally needs the healthchecks.py failure stream (ping_failures), which reaches develop-v2.1.0 only via the forward merge tracked by pithead#4502. Finished here: both prerequisites verified against the base and the producer side mapped (19 _record_incident call sites across alert_edges.py, alert_service.py, egress_firewall_edges.py, monero_health_edges.py, tari_node_edges.py); the parity test and wiring start on top of the merged store. Full explanation posted as a comment on the issue (#4433 (comment)). Unblocks when pithead#4432 closes with its store landed (currently delivered through PR #4524), pithead#4509's episode layer lands, and pithead#4502's forward merge lands for the monitoring-ping row.
The runner resumes this issue when that one closes.