Skip in-tree directory links so sdist keeps the real package #2388
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.43) × (1 − Review Confidence (0.90)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 90 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.96 · 3 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.270
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
5 items
Do not include issue links or reference numbers in comments. And comments should explain things that are not clearly explainable by reading the code itself.
Remove issue links from comments
Changes Requested
Requested changes.
@cjames23 thanks for the master sync. Comment cleanup in ackend/src/hatchling/builders/utils.py and ests/backend/builders/plugin/test_interface.py is in ef34209 — issue links dropped, comment kept to the inode first-seen-wins trap that isn't obvious from the code. CI is green on the merged HEAD. Ready when you are for another look.
cjames23
Kayforkind
Summary
safe_walkfollows directory links and records(st_dev, st_ino)to stop cycles. A junction or symlink whose name sorts before its target (bar→foo) was markingfoo's inode as already seen, so the real package was never walked.excludeof the alias no longer drops the real package's files.Fixes #1197.
Fixes #2008.
Test plan
test_in_tree_dir_link_does_not_hide_real_directory(issue #1197 repro)test_excluding_dir_link_keeps_real_directory(#2008 exclude footgun)hatch test tests/backend/builders→ 469 passed, 10 skippedtest_infinite_loop_preventionstill valid (unix)AI disclosure
Assisted by Cursor. I directed the change, reviewed inode first-seen-wins vs cycle detection, and verified the tests above. No
Co-authored-byLLM trailer.Made with Cursor