Skip to content

fix(#588): renderImportedBy honors the basename-ambiguity guard from #572#590

Merged
justrach merged 2 commits into
release/0.2.5825from
fix/issue-588-render-imported-by
Jun 10, 2026
Merged

fix(#588): renderImportedBy honors the basename-ambiguity guard from #572#590
justrach merged 2 commits into
release/0.2.5825from
fix/issue-588-render-imported-by

Conversation

@justrach

Copy link
Copy Markdown
Owner

Fixes #588.

The #572 bundle added the same-basename ambiguity guard to getImportedBy/getImportedByFiltered (query-pipeline deps op), but renderImportedBy — backing the main MCP codedb_deps reverse listing — kept the unconditional basename fallback (explore.zig:3914). A bare import conf was still attributed to every indexed conf.py through the primary tool while the pipeline op correctly suppressed it.

Found by a focused defect review of the freshly-merged #572 bundle (9 other candidates investigated and cleared — incl. the codegraph literal-scanner boundary cases, the deps-arena UAF fix, the secret-filter fast path, and the import-cap widening).

Failing test committed red on merged HEAD (64/65 — importer attributed to both a/conf.py and b/conf.py); fix mirrors getImportedBy's guard; single-basename fallback behavior pinned by the same test. Full suite green.

🤖 Generated with Claude Code

justrach and others added 2 commits June 10, 2026 16:23
…rts to every same-basename file

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… mirroring getImportedBy

The #572 bundle added the same-basename ambiguity guard to
getImportedBy (query-pipeline deps op) but renderImportedBy — the MCP
codedb_deps reverse listing — kept the unconditional fallback, so a
bare 'import conf' was still attributed to every indexed conf.py
through the primary tool. Count same-basename outlines and skip the
fallback when ambiguous, exactly like getImportedBy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Benchmark Regression Report

Thresholds: 10.00% and 50,000 ns absolute delta

NOISE means the percentage threshold was exceeded, but the absolute delta was too small to fail CI.

Tool Base (ns) Head (ns) Delta Abs Delta (ns) Status
codedb_bundle 109325 106355 -2.72% -2970 OK
codedb_changes 11086 11344 +2.33% +258 OK
codedb_context 1217516 1229141 +0.95% +11625 OK
codedb_deps 334 339 +1.50% +5 OK
codedb_edit 51435 52529 +2.13% +1094 OK
codedb_find 9439 9816 +3.99% +377 OK
codedb_hot 24957 24454 -2.02% -503 OK
codedb_outline 33955 34234 +0.82% +279 OK
codedb_read 15839 16313 +2.99% +474 OK
codedb_search 27254 29507 +8.27% +2253 OK
codedb_snapshot 69382 68970 -0.59% -412 OK
codedb_status 9419 9484 +0.69% +65 OK
codedb_symbol 51122 51938 +1.60% +816 OK
codedb_tree 39958 41729 +4.43% +1771 OK
codedb_word 11383 12123 +6.50% +740 OK

@justrach justrach merged commit 491bbd9 into release/0.2.5825 Jun 10, 2026
2 checks passed
@justrach justrach deleted the fix/issue-588-render-imported-by branch June 10, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant