docs(designs): propose ADR-071 device scope for partial drains and scoped remediation #2452
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 · 425 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.362
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2452"
general
weight: 0.35
lalitadithya
Summary
Part of #2247. Design for #2417.
Proposes ADR-071. It makes partial drains and scoped remediation work for any device type an operator configures, not only NVIDIA GPUs with
COMPONENT_RESET, as ADR-070 plans in [Device scope from configuration](docs/designs/070-vendor-neutral-core.md#device-scope-from-configuration).Decisions
1. The entity-type map moves from Go code to one Helm value,
global.partialRemediationEntityTypes. Each entry lists the devices of the entity type, as device-plugin resource names or a DRA driver with its DeviceClasses, and the actions scoped to it. The default is today'sGPU_UUIDentry.2. node-drainer runs a partial drain for any action listed in
scopedActions, including custom actions. It retries when a pod's annotation has no entry for a resource or DeviceClass that the pod requests.3. fault-remediation does not run an action that a partial drain does not cover. The chart fails when a scoped action has no
maintenance.actionsentry with the sameimpactedEntityScope. At run time, a rule set ([ADR-064](docs/designs/064-node-and-device-selection.md)) that picks an action on the full node, or one scoped to a different entity type, after a partial drain makes fault-remediation retry the event with a metric instead of creating the CR.4. The pod device mapper stays in the metadata-collector binary. For DRA devices it reads the entity value from a ResourceSlice attribute, such as the NVIDIA driver's
uuid, instead of from NVML. It lists its node's ResourceSlices only when it sees a new DRA device, and does not watch them. If it cannot resolve every device of a pod, it writes no annotation for the pod. #2419 covers running the mapper on other nodes.Out of scope
Recovery matching after a device replacement (#2418), MIG (ADR-072), GPU sharing (#2451), and changes to the metadata-collector DaemonSet (#2419). The preflight webhook's DRA DeviceClass, which #2417 lists, is left to a separate change.
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
Documentation
Added a proposed architecture decision record describing configurable device scopes for partial drains and scoped remediation.
The proposal covers device-plugin resources and DRA devices, mapping device entities to scoped actions, and validating that scoped actions have matching maintenance actions.
It documents retry behavior when an action does not match a recorded drain scope, along with compatibility defaults, scope checks, limitations, alternatives, and non-goals.
* Added the record to the design index.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->