wip: add ADR-040 — External Remediations (EF / ERR) coordination #1282
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 488 lines diff across 6 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.370
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1282"
general
weight: 0.35
jtschelling
Summary
Adds ADR-040: External Remediations (EF / ERR), defining the API and reconciler design for coordinating node ownership between NVSentinel and external remediation systems (CSP-side repair, RMA workflows, hardware swaps, operator-driven maintenance).
Two new CRDs in the existing
nvsentinel.nvidia.com/v1alpha1API group:ExternalRemediationRequest(ERR) — exit door from NVSentinel ownership. Created byfault-remediation(when triage hits theCUSTOMaction from ADR-036) or by theExternalFaultreconciler. Applies a release taint to the node carrying its own name in the value; external system reads it, does work, writes a terminal completion condition back.ExternalFault(EF) — entry door for external systems declaring "I need to take this node." Triggers the standard pipeline (quarantine → drain → fault-remediation), which produces the ERR.Both spec types are the existing
datamodels.HealthEvent(reused by reference in the proto — no schema duplication). Coordination state lives instatus.conditions, following theUnknown/True/Falseterminal-state convention already established byRebootNode/GPUReset/TerminateNode.CRDs are generated proto-driven via the existing
protoc-gen-crdplugin (same plugin already used forHealthEventResource). Reconcilers + a smallmetav1.Conditionadapter live alongside the existing maintenance reconcilers injanitor/. A validating admission webhook (modelled on the existingjanitor_webhook.go) rejects malformed EFs at admission.Design highlights
HealthEvent-driven — same proto already produced by every health-monitor and consumed by every downstream stage.ExternalRemediationCompletecan stayUnknownindefinitely; observability surfaces the wait.ExternalRemediationComplete=False— for NVSentinel-detected ERRs, taint comes off and existing health-monitors re-detect persistent faults. For EF-owned ERRs, the EF reconciler does NOT emit a healthy event (NVSentinel can't verify the external fault is gone); fault-quarantine taint stays on, the EF goes terminal, and the external system can create a new EF as the explicit retry path.fault-remediation's existing equivalence-group +latestFaultRemediationStatemachinery for "single active ERR per node" — no bespoke dedup code.RebootNode/GPUResetdeclared via existingsupersedingEquivalenceGroupsconfig — no new code.Refs: #1276
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Documentation
Added ADR describing an external remediations protocol for coordinated node handoff between systems, including message/condition semantics, reconciliation behaviors, admission validation and safety checks, integration with existing remediation flows, operator discovery and RBAC guidance, observability considerations (metrics, events, tracing, alerts), failure modes, alternatives, and detailed example workflows.
<!-- review_stack_entry_start -->

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->