Artifacts: test overrides and lookup, and fix the bugs they found #64512
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 132 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Diff Size
diff_size
0.293
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #64512"
general
weight: 0.35
IanButterworth
Claude:
---
Artifacts had about 74% line coverage, with most of the override handling untested. The first commit adds tests for
Overrides.tomllayering and invalid entries, overrides by package UUID,artifact_metaandfind_artifacts_toml. Writing them turned up these bugs, each fixed in its own commit:Overrides.tomlbroke every lookup.load_overridesthrew aTypeErrorinstead of logging the entry and skipping it. The error message now names the entry rather than the UUID.AbstractStringmethods ofselect_downloadable_artifactspassed their keyword arguments on as positional ones, so any keyword gave aMethodError.AbstractStringmethod ofartifact_slash_lookupdroppedplatformand called itself, which overflowed the stack.pkg_uuidwas ignored byartifact_hashand byselect_downloadable_artifactson an already loaded dictionary, so overrides by package UUID and name never took effect there.Fixes #64195
Written with Claude Code (Opus 5.5).