← Back to Pull requests

Fix NHC escalation flakiness #145

Merged
abrugaro merged 1 files (35 lines) on Nov 29, 2026 11:42 UTC
View on GitHub
abrugaro abrugaro commented on Nov 27, 2026 12:07 UTC
Author

Avoid selecting the same victim node twice in the same test and ensure node SSH access and SNR Agents readiness between tests.

Diff: 35 lines (+28 / -7) across 1 files Reviewer: razo7 Review duration: 2855m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.24) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.24 · 35 lines diff across 1 files
0.24
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.81 · 2 substantive comment(s)
0.81
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
85%
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.214
Real PR Conversation Timeline
2 comments
tests/nhc-operator/tests/nhc_escalation.go
"I think we have a potential bug here. the way `SelectWorkerNode` implemented (see below relevant snippet) in case we have 2 worker we'll end up picking the bastion node instead of the correct worker. ``` node := pickRandomReadyNode(nodeList.Items, append(append([]string{}, excludeNodes...), bastionNodes...)...) if node == nil { node = pickRandomReadyNode(nodeList.Items, excludeNodes...) } ```"
logic_concern weight: 0.8
tests/nhc-operator/tests/nhc_escalation.go
"Good point /hold"
clarifying weight: 0.45
Reviewers
Assignees
abrugaro abrugaro
Labels
risk: low confidence: 85.7% 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: 24.4% (LOW) · Higher = larger blast radius
24.4%
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: 85.7% · Lower = rushed or shallow review
85.7%
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: 3.5% · Safe to merge
3.5%