feat(fault-remediation): record the selected remediation action on the event #2341
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 279 lines diff across 3 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.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2341"
general
weight: 0.35
cbumb
Summary
fault-remediation now records the action it selects for an event in the event's
remediationDecisionstatus field. The action is the event's recommended action, orcustomRecommendedActionfor aCUSTOMevent, which is the name used to look upmaintenance.actions.NONE, no entry inmaintenance.actions, already remediated, already resolved), and before the existing CR check, the log collector and the maintenance CR. An event covered by an existing CR still gets its own record.record_decision_errorprocessing error label.Fixes #2207
Type of Change
Component(s) Affected
Testing
Unit tests cover a built-in action, a custom action, an existing record that is not rewritten, and a failed write that stops remediation. The envtest flow test asserts the record for an event that creates a CR and for one covered by it.
TestNewCRsAreCreatedAfterFaultsAreRemediatednow checks that the event recordsRESTART_VM(MongoDB only), and it passes on a local kind cluster.Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Health events now record the selected remediation action before log collection or maintenance-request handling, including for events already covered by a request. Custom events record their custom recommended action. Events without a matching action remain unrecorded, and existing decisions are preserved.
Documentation
Updated remediation guidance and the health-event lifecycle reference to explain when decisions are recorded and which action is used.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->