feat(nvhv): add nvhv-health-monitor scaffold #2553
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 438 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.364
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2553"
general
weight: 0.35
KaivalyaMDabhadkar
Issue: https://github.com/NVIDIA/NVSentinel/issues/2554
Summary
Adds the nvhv-health-monitor module for ADR-076, with the proto and a poll loop. It calls NVHV's VerdictService/Evaluate over loopback gRPC every poll interval and logs the verdict. It doesn't publish events yet, and nothing wires it into the root build, CI or the chart; those come in follow-up PRs.
Changes
1.
health-monitors/nvhv-health-monitor/: new Go module (owngo.mod/go.sum, go 1.27.3) and Makefile using the sharedmake/.mk.2.
pkg/nvhvclient/: gRPC reflection client. It fetches NVHV's schema, binds only the fields the monitor reads, and fails withErrIncompatibleSchemaif one is missing or has another type (includingxid_from/xid_toin a real oneof, and a non-stringstring_value). It caches the schema and re-reads it after a failed call. Errors are wrapped with context.3.
pkg/verdict/: plain Go types for the verdict and the request.4.
pkg/poller/: runsEvaluateat--poll-intervalwith a per-call timeout that may not exceed the interval, and asks for a request before each poll.5. The request carries an optional Xid window
(xid_from, xid_to]so a caller can read each Xid line once.6.
internal/mocknvhv/: a mock NVHV server for tests. It serves a small schema over reflection.7.
main.go: flags (--nvhv-address,--poll-interval,--request-timeout,--node-name); logs each verdict.Testing
Tested on a AWS GB200 cluster, using a build that includes this client and poller
Evaluatein every 15sec poll, no poll failed, and the schema was read.journalctlinside the NVHV container, nothing on the node). It appeared in the verdict of the one poll whose window covered it (overall severityCRITICAL), and not in the following polls, as the window moved on.Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Summary
New Features
Added an NVHV health monitor that periodically retrieves node health verdicts, including check results and severity levels.
The monitor validates its node name and polling settings, and stops cleanly when interrupted or terminated.
Verdict retrieval discovers the service schema and checks compatibility before decoding results.
Added rule evaluation that selects matching rule sets by priority and reports evaluation errors.
Bug Fixes
Node-condition cleanup now reports retrieval and patch failures, skips deleted nodes, and returns a failure status when any worker fails.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->