Skip to content

Import graph: second repo for JavaScript and Shell (Part of #3798) - #6403

Merged
squid-protocol merged 1 commit into
mainfrom
churn/3798-import-corpus-js-shell
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/3798-import-corpus-js-shell

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

What

Part of #3798, first slice: a second pinned repo where the import-graph n was too small to quote.

language before after repos precision / recall
javascript n=63 n=433 express + axios/axios 100.0% / 99.8%
shell n=28 n=56 bash-it + bats-core/bats-core 100.0% / 100.0%

Manifest and baseline only, no engine or tool code. The baseline was regenerated against current main, so a few other languages' counts moved with it (cpp 134 -> 171, objective-c 671 -> 683, dart 744 -> 748, python 2099 -> 2101); no rate dropped.

Tried and not shipped (engine defects, sibling gaps)

Candidates were fetched and measured; two exposed real engine bugs, so they are not pinned here (gating them would bake the bug into the baseline):

  • Go, prometheus/client_golang (n=121): precision 61.6%, recall 37.2%. Stdlib net/http is linked to the repo's http.go by file stem (api/client.go -> prometheus/promhttp/http.go), and in-module imports (examples -> prometheus/...) get no edge in a repo with nested go.mod files.
  • Perl, plack/Plack (n=346): precision 92.6%. use Plack::Builder; lines inside POD synopsis blocks (e.g. App/Cascade.pm lines 74-75) are counted as imports.

Rust (n=211 now) needs no second repo for the small-n purpose.

Cross-repo

None. Gates: import_graph_accuracy.py --ci OK (20 languages), test_import_graph_accuracy.py 15 passed, ruff format clean.

Lessons for agents

The per-language group holds all repos of a language as subdirs, so a displayed FP path starts with the repo name; an FP whose source file never imports the target is an engine edge, not a truth-side miss.

🤖 Generated with Claude Code

…ts-core) (Part of #3798)

JavaScript n 63 -> 433, Shell n 28 -> 56; both gate at 100% precision.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant