Fix Markdown dependency noise evidence - #4964
Merged
Merged
Conversation
Widthdom
marked this pull request as ready for review
July 29, 2026 01:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause and impact
Legacy Markdown heading references were ranked and filtered as ordinary symbol-name matches, so dense heading fanout could dominate dependency and cycle results. The dependency payload also flattened sampled symbols into a comma-delimited string, which made a valid comma-containing Markdown target ambiguous during later filtering and ranking.
The updated dependency pipeline distinguishes heading-derived evidence from explicit links, removes only the heading-derived counts, and keeps retained evidence ahead of candidate limits. Workspace-cycle aggregation now keeps bounded retained/suppressed buckets instead of accumulating every database-pair result.
Validation
dotnet format CodeIndex.sln --verify-no-changes --no-restoredotnet build CodeIndex.sln -c Release --no-restore— 0 warnings, 0 errorsdotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj -c Release --no-build --filter Issue4868— 6 passed on both .NET 8 and .NET 9DbReaderTests/RunDepsregression filter — 700 passed on .NET 8; 699 passed and 1 known performance-test skip on .NET 9dotnet run --project tools/CodeIndex.Changelog -- check— 38 fragments validatedcdidx status --check --json—index_matches_workspace: trueDocumentation and changelog
Updated the English and Japanese dependency contracts in
README.md,USER_GUIDE.md, andDEVELOPER_GUIDE.md.Changelog fragment:
changelog.d/unreleased/4868.fixed.mdFollow-ups
None identified within this issue scope.
Fixes #4868