perf(images): cache system CA roots, registry clients, manifests, and configs #3261
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.56) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 140 lines diff across 1 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.296
Sensitive Paths
sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #3261"
general
weight: 0.35
DefeatMan
TL;DR
Cache system CA roots, bounded per-host registry clients, verified manifests, and parsed image configs in memory.
Design doc: https://github.com/boxlite-ai/boxlite/issues/3153
Documentation: [docs/concepts/images.md](docs/concepts/images.md#in-memory-caches), [docs/guides/image-registry-configuration.md](docs/guides/image-registry-configuration.md#tls-trust)
How it works
ImageStoresnapshots system roots on first successful HTTPS load (propagating failures for retry and skipping the store for plain HTTP orskip_verify), caps per-host clients with a 32-entry LRU, and caches digest-verified manifests with write-lock deduplicatedArc<ImageConfiguration>while keepingImageObject::load_config()owned. Cold disk checks run outside the write lock with monotonic generations, digest validation, and cold-rebind rechecks.Verification
make fmt:check:rust && make clippy && make test:unit:rust FILTER=images::→ passed (253/253); defect proofs fail reverted and pass restored.pre-pushsmart matrix (rustunit +310 passed, 37 skippedintegration) → passed. Linux KVM pending.