feat(platform-connectors): let overrides set customRecommendedAction #2442
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 606 lines diff across 7 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.383
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2442"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
Part of #2247. Closes #2424.
A health event override ([ADR-021](docs/designs/021-health-event-property-overrides.md)) can now send a fault to a custom remediation action. The rule sets
recommendedAction: "CUSTOM"andcustomRecommendedAction, as [ADR-036](docs/designs/036-custom-remediation-actions.md#health-event-overrides) planned:Validation
platform-connectors does not start when a rule sets
CUSTOMwithout a name, sets an empty name, or sets a name withoutCUSTOM. The gRPC handler already rejects aCUSTOMevent without a name from a monitor, so an override cannot create one either.Override to a built-in action
An override to a built-in action now clears the
customRecommendedActionof the event. Before, a rule that moved aCUSTOMevent to, for example,RESTART_BMleft the old name on the event, and event-exporter exports the name whenever it is set.Metrics, Helm and docs
nvsentinel_overrides_applied_totalcountscustomRecommendedActionas its ownfield.overrides.toml, andvalues.yamlhas an example.Testing
Manual test on a local kind cluster (Tilt), with the per-node DaemonSet and the central Deployment of platform-connectors. Extra Helm values:
| Event sent | What should happen | DaemonSet | Deployment |
|---|---|---|---|
| Action
CONTACT_SUPPORT, matched byto-custom-action| Action becomesCUSTOMwith custom recommended action"hardware-repair"|CUSTOM,"hardware-repair"|CUSTOM,"hardware-repair"|| Action
CUSTOMwith custom recommended action"foo", matched bycustom-to-built-in| Action becomesCONTACT_SUPPORTand custom recommended action becomes""|CONTACT_SUPPORT,""|CONTACT_SUPPORT,""|| Action
CUSTOMwith custom recommended action"foo", no rule matches | Event stays as sent |CUSTOM,"foo"|CUSTOM,"foo"|| Node of the
"hardware-repair"event | Node is cordoned | cordoned | cordoned || Same node | fault-remediation creates a
RebootNodeCR | created | created |Type of Change
Component(s) Affected
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Platform connector overrides can route matching events to configured custom remediation actions by setting
recommendedActiontoCUSTOMand providing a custom action name.Incomplete or mismatched custom-action settings are rejected. Switching an override to a built-in action clears its custom action name.
customRecommendedActionis available in event fields for expressions and filtering. Check thatrecommendedActionisCUSTOMbefore relying on the custom action name.Documentation
Added configuration examples and guidance, including the requirement to define custom actions in fault remediation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->