← Back to Pull requests

hack/manual-validate: mv_expect_audit counts a long-running operation once #16403

Closed
unknown closed this pull request without merging on Nov 24, 2026 22:07 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 20:56 UTC
Author

mv_expect_audit now counts a long-running operation once, not once per audit entry.

A long-running create, update or delete writes several audit entries under one operation.id: its start, its completion, and sometimes the start twice. mv_expect_audit listed every entry, so any Kind whose API uses long-running operations failed the audit check with no controller bug. It now keeps the first entry of each operation.id (mv_audit_calls), and counts entries with no operation.id one each, so two separate calls still count as two.

Example: #16378 (StorageInsightsDatasetConfig) failed with Create,Create,Update,Update,Update,Delete,Delete. Those were three operations, with the update's start logged twice under one ID. Applied to that evidence, the helper now gives Create,Update,Delete.

Several scripts already work around this with their own audit helpers: dialogflowconversationprofile, hypercomputeclustercluster, memorystoreaclpolicy, networkmanagementvpcflowlogsconfig, designcentercatalogtemplate, discoveryenginedatastore, geminidataanalyticsdataagent, ftpuser, and #16402. They can move to mv_expect_audit later. Some of them drop completion entries or collapse repeated method names, which can also hide a real second call.

``release-note
NONE
``

Diff: 160 lines (+120 / -40) across 2 files Reviewer: barney-s Review duration: 70m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 160 lines diff across 2 files
0.35
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.304
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16403"
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: 34.8% (LOW) · Higher = larger blast radius
34.8%
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: 13.8% · Safe to merge
13.8%