← Back to Pull requests

bootutil: loader: refactor swap encryption key setup + Skip key load when the slot header is not a valid image #2945

Merged
nvlsianpu merged 1 files (70 lines) on Nov 10, 2026 08:57 UTC
View on GitHub
nvlsianpu nvlsianpu commented on Nov 06, 2026 10:53 UTC
Author

Extract duplicated primary and secondary encryption key handling into boot_swap_enc_key_prepare. Skip key load when the slot header is not a valid image so empty slots are not treated as encrypted.

Diff: 70 lines (+41 / -29) across 1 files Reviewer: nordicjm Review duration: 5643m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.52) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 70 lines diff across 1 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
71%
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.255
Sensitive Paths sensitive_paths
0.052
Real PR Conversation Timeline
4 items
nordicjm nordicjm approved these changes on Nov 06, 2026 12:37 UTC
Approved Reviewer

Approved these changes.

nordicjm nordicjm commented on Nov 06, 2026 12:37 UTC
Contributor

seems we now need to remove python 3.8 support...

de-nordic de-nordic approved these changes on Nov 10, 2026 08:56 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
nvlsianpu nvlsianpu
Labels
risk: low confidence: 71.6% reviewed sensitive_module
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: 51.7% (MEDIUM) · Higher = larger blast radius
51.7%
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: 71.6% · Lower = rushed or shallow review
71.6%
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: 14.7% · Safe to merge
14.7%