Repository navigation
fix: preserve novel source ranges in conceptual context - #480
Merged
Merged
Conversation
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.
Problem
Conceptual context packing rejected an entire retrieved hit on any same-file overlap, discarding source lines that were not present in higher-ranked evidence.
Change
Indexer.searchsource coordinates while preserving raw content bytes, so citations cannot claim a phantom trailing source line.Indexer.searchcoverage with expanded source coordinates; update changelog.Verification
endLinecounting a terminal-LF delimiter as line 13 in a 12-line file), then fixed and re-run passing.tests/context-evidence-acceptance.test.ts(17 tests) and the updatedtests/tools-utils.test.tscontext-pack contract tests pass locally against a clean native build.8a95a159dd98e623f60f8c370a3852ffb2da1e26:test (22),test (24),path-semantics(all 6 matrix jobs), CodeQL, and all Analyze jobs pass;mergeStateStatus: CLEAN.Delivery
This is the isolated source fix. Release preparation remains separate and must reconcile the full merged delta since v0.38.2 rather than presenting the next release as only this patch. The separate development-only range evidence package is additive and is not a release gate.