Repository navigation
import graph: ripgrep as Rust's second repo; unprefixed use groups, [[bin]] path (Part of #3798) - #6603
Conversation
…ixed use group, honour [[bin]] path (Part of #3798) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6603 @ 2b8f966: 1 failed check(s) == graph-accuracy-audit (failure) -- real |
…rt of #3798) call_graph_resolution.py scores every Rust repo in the import-graph corpus, so pinning ripgrep for imports also pulled it into call-rust, whose baseline is serde-rs/json alone (precision 93.8 -> 87.0, recall 60.1 -> 27.8 on CI). Mark it "callgraph": false, the opt-out #6571 added for client_golang. The engine's use-group change leaves serde's extracted imports identical (0 of 71 files differ), so the drop was the corpus, not the engine. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (89383d0) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #3798.
What changed
Plan change: Go's second repo already landed in Go imports resolve through go.mod, not the file-stem search; client_golang as 2nd Go corpus repo (Part of #3798) #6571, so this slice pins BurntSushi/ripgrep (
6892bc2b) as Rust's second import-graph repo.Engine (
galaxyscope._expand_import_selectors): a Rust unprefixed groupuse { a::B, c::{D, E} };was kept as one leaf token. It now expands with no prefix. Recall on ripgrep 90.2% -> 100%.Audit reference rule (
import_graph_accuracy._cargo/_rust_crate): a[[bin]] pathis a crate root likesrc/main.rs. Precision 93.8% -> 99.5%.Rust baseline: 99.5% precision / 99.3% recall over 814 resolvable imports (6 FN, 2 FP). Baseline and ledger regenerated by the tools; only the rust entry moved.
Rescue fix: ripgrep is marked
"callgraph": falseintests/import_graph_corpus.json.call_graph_resolution.pyscores every Rust repo in the import-graph corpus, so pinning ripgrep also pulled it intocall-rust, whose baseline covers serde-rs/json only. On CI that moved confident precision from 93.8 to 87.0 and recall from 60.1 to 27.8. The engine's use-group change does not touch serde: its extracted imports are identical on main and on this branch (0 of 71 files differ).Verification
tests/extraction/languages/test_rust_use_group_3798.py,test_rust_bin_path_is_a_crate_root. Plainpytestfrom/tmppasses.crucible_check.py(both legs): zero drift, no re-bless needed.pr_gates --fast7/7,--ratchets9/9,audit_checkall clear.Class / Sibling gaps
crate::flags::defs::FLAGS): the Rust prism mis-splitsr#"..."#raw strings that contain//or quotes, so the inlinemod tests { use super::*; }is invisible in the code stream. The glob is then attributed toflags/mod.rs. A prism fix is golden-wide, so it is not done here.Cross-repo
None. The corpus pin lives in
tests/import_graph_corpus.json; no companion PR.Overlap: #6394 also touches
galaxyscope.py; this change there is 6 lines and merges cleanly with current main.Lessons for agents
tests/import_graph_corpus.jsonfor a language that has a call-graph gate (python, go, rust, ...) also adds it to that gate's corpus. Either mark it"callgraph": falseor re-baseline the call-graph gate in the same PR (Go imports resolve through go.mod, not the file-stem search; client_golang as 2nd Go corpus repo (Part of #3798) #6571, import graph: ripgrep as Rust's second repo; unprefixed use groups, [[bin]] path (Part of #3798) #6603).code_stream, not raw text, before blaming the resolver.🤖 Generated with Claude Code