← Back to Pull requests

feat(platform-connectors): let overrides set customRecommendedAction #2442

Closed
unknown closed this pull request without merging on Nov 18, 2026 12:22 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 10:42 UTC
Author

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" and customRecommendedAction, as [ADR-036](docs/designs/036-custom-remediation-actions.md#health-event-overrides) planned:

platformConnector:
  transformers:
    OverrideTransformer:
      rules:
        - name: "nvlink-to-hardware-repair"
          when: 'event.checkName == "GpuNvlinkWatch" && event.isFatal == true'
          override:
            recommendedAction: "CUSTOM"
            customRecommendedAction: "hardware-repair"

Validation

platform-connectors does not start when a rule sets CUSTOM without a name, sets an empty name, or sets a name without CUSTOM. The gRPC handler already rejects a CUSTOM event 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 customRecommendedAction of the event. Before, a rule that moved a CUSTOM event to, for example, RESTART_BM left the old name on the event, and event-exporter exports the name whenever it is set.

Metrics, Helm and docs

  • nvsentinel_overrides_applied_total counts customRecommendedAction as its own field.

  • The chart renders the new key into overrides.toml, and values.yaml has an example.

  • The override section of the platform-connectors configuration reference and the custom remediation tutorial describe the new key. The tutorial said in two places that overrides cannot set custom actions.
  • Testing


  • Tests pass locally

  • Manual testing completed

  • No breaking changes (or documented)
  • Manual test on a local kind cluster (Tilt), with the per-node DaemonSet and the central Deployment of platform-connectors. Extra Helm values:

    platformConnector:
      transformers:
        OverrideTransformer:
          rules:
          - name: "to-custom-action"
            when: 'event.checkName == "OverrideToCustomTest"'
            override:
              recommendedAction: "CUSTOM"
              customRecommendedAction: "hardware-repair"
          - name: "custom-to-built-in"
            when: 'event.checkName == "OverrideClearCustomTest"'
            override:
              recommendedAction: "CONTACT_SUPPORT"
    fault-remediation:
      maintenance:
        actions:
          "hardware-repair":
            apiGroup: "janitor.dgxc.nvidia.com"
            version: "v1alpha1"
            kind: "RebootNode"
            scope: "Cluster"
            completeConditionType: "NodeReady"
            templateFileName: "rebootnode-template.yaml"
            equivalenceGroup: "hardware-repair"
    

    | Event sent | What should happen | DaemonSet | Deployment |
    |---|---|---|---|
    | Action CONTACT_SUPPORT, matched by to-custom-action | Action becomes CUSTOM with custom recommended action "hardware-repair" | CUSTOM, "hardware-repair" | CUSTOM, "hardware-repair" |
    | Action CUSTOM with custom recommended action "foo", matched by custom-to-built-in | Action becomes CONTACT_SUPPORT and custom recommended action becomes "" | CONTACT_SUPPORT, "" | CONTACT_SUPPORT, "" |
    | Action CUSTOM with 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 RebootNode CR | created | created |

    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
  • 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

    New Features
    Platform connector overrides can route matching events to configured custom remediation actions by setting recommendedAction to CUSTOM and 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.
    customRecommendedAction is available in event fields for expressions and filtering. Check that recommendedAction is CUSTOM before 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 -->

    Diff: 606 lines (+454 / -152) across 7 files Reviewer: KaivalyaMDabhadkar Review duration: 1540m
    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
    0.50
    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.383
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2442"
    general weight: 0.35
    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: 50.1% (MEDIUM) · Higher = larger blast radius
    50.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: 19.8% · Safe to merge
    19.8%