← Back to Pull requests

docs(designs): propose ADR-071 device scope for partial drains and scoped remediation #2452

Closed
unknown closed this pull request without merging on Nov 20, 2026 06:16 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 10:19 UTC
Author

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's GPU_UUID entry.
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.actions entry with the same impactedEntityScope. 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


  • 🐛 Bug fix

  • ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • Health Monitor

  • Core Service

  • Fault Management

  • Janitor

  • Deployment/Config

  • API/Interface

  • Preflight

  • Plugins

  • Documentation/CI

  • New Component

  • Multiple Components

  • Other
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Checklist


  • Self-review completed

  • Documentation updated (if needed)

  • Ready for review
  • <!-- 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 -->

    Diff: 425 lines (+318 / -107) across 5 files Reviewer: lalitadithya Review duration: 2636m
    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
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%