fix: use package names for PyPI dependency tree lookups #2980
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.43) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 102 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: 10%
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.277
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #2980"
general
weight: 0.35
pcbeingused33
When
generate-recipe pypi --treereads a compact requirement such asidna>=3, it uses the entire first whitespace-delimited token as the dependency name. The index receives a request for/pypi/idna>=3/jsonand the 404 aborts recipe generation.Reuse the existing requirement-name split before checking for a local recipe and fetching dependency metadata. The index lookup uses
idnaand the generated recipe retains the>=3constraint.Testing
A local index serves metadata for a parent with
Requires-Dist: idna>=3and exposes the dependency at/pypi/idna/json. The regression test exercises recursive recipe generation and checks that the dependency endpoint was requested. It fails with a 404 on main and passes with this change.AI assistance was used to prepare the change and regression test.