Expand description
§Health Status Monitoring
Component-level health tracking for IPC subsystems. The score is a deterministic aggregation of currently-tracked issues weighted by severity.
Layout (one export per file, file name = identity):
SeverityLevel::Enum- Low / Medium / High / Critical (ordered).HealthIssue::Enum- tagged issue withSeverityandDescriptionaccessors.HealthMonitor::Struct- score + issue list + recovery counter.
TODO: zero callers as of 2026-05-02. IPC::StatusReporter defines
its own HealthMonitor / HealthIssue with different shapes; the
two should converge in a future batch.
Modules§
- Health
Issue - Tagged health issue. Each variant carries a free-form description
string;
SeverityandDescriptionaccessors normalise the tag→severity mapping in one place so the recalculation logic inHealthMonitor::Structstays a pure aggregation. - Health
Monitor - Aggregate health monitor: a 0-100 score, the list of currently
tracked issues (each paired with its severity for fast filtering),
a recovery-attempt counter, and the timestamp of the last update.
Recalculatederives the score deterministically from the issue list using the severity → penalty table: Low=5, Medium=15, High=25, Critical=40. - Severity
Level - Health-issue severity ladder. Ordered Low → Medium → High →
Critical so callers can compare with
</>. Drives the penalty applied toHealthMonitor::Struct::HealthScore.