ROX-39204: Use only the scan's ProfileBundle for Rule metadata #1452
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 186 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.313
Real PR Conversation Timeline
1 comments
"Review active on #1452"
general
weight: 0.35
Vincent056
The aggregator indexed every Rule in the namespace by its rule ID (
compliance.openshift.io/rule) when propagating custom labels and annotations to ComplianceCheckResults. Two ProfileBundles with the same content have Rules with the same ID, so the Rule listed last won, and a check result could get another bundle's metadata and lose its own.Found while running the serial e2e suite in parallel (#1451):
TestOpenSCAPRuleMetadataPropagationlost its custom labels while another test's bundle with ocp4 content existed.ProfileBundlesForScanfollows the scan'scompliance.openshift.io/profile-namelabel (set since #1456 on the scans a ScanSettingBinding creates for a Profile) to the Profile, and that Profile'scompliance.openshift.io/profile-bundlelabel to its bundle. Scans without the label (TailoredProfile and CEL scans, scans created directly, and scans created before the label existed) fall back to the bundles with the scan's content image and file, which a ScanSettingBinding copies from the bundle into the scan.NewRuleMetadataCacheForBundlesindexes only those bundles' Rules. With none, it indexes every Rule, as before;NewRuleMetadataCachekeeps that behavior.remediation-aggregatorRole and both CSVs gainlistonprofilebundlesandgetonprofiles.TestOpenSCAPRuleMetadataPropagationpasses on OCP 4.22 with this change.Generated with Claude Code