Skip to content

fix: strip the five surviving +1 emit sites (literal search, imports) - #348

Merged
flupkede merged 1 commit into
developfrom
fix/line-convention-completion
Oct 17, 2026
Merged

flupkede merged 1 commit into
developfrom
fix/line-convention-completion

Conversation

@flupkede

Copy link
Copy Markdown
Owner

Completes PR #347: the round-2 review counted 27 PR-added +1 emit sites, not 22 — four literal-search match-line compositions (literal_search.rs:138,192,426,509) and the imports helper (mcp/mod.rs:980) survived outside the first sweep, so literal match lines and graph-import responses still reported line N as N+1.

True editor line = start_line + offset (offset is 0-based within the chunk content); the emitted start_line + offset + 1 was true + 1.

  • The five +1s stripped.
  • test_parse_import_lines_detects_common_forms: premise + expected values corrected to the shipped convention (10–14, was 11–15) — it was the last green test pinning the dead convention.
  • Two stale comments refreshed; the relaxed-fallback test fixture moved to a 1-based chunk.

Review-process note: the 2-round cap was reached (round 2 FAIL on the incomplete sweep). The reviewer's fix list is mechanical, was executed verbatim, and was self-verified read-only: a full re-sweep shows only producer-side +1 sites remain (jupyter chunker, scip_proto — both deliberate convention conversions), and fmt / clippy --all-targets -D warnings / cargo test --lib --bins (939 tests) are fully green.

Round-2 review of the line-convention reconciliation counted 27 PR-added
emit sites, not 22: four literal-search match-line compositions and the
imports helper still reported line N as N+1. True editor line is
start_line + offset (offset is 0-based within the chunk content); the
emitted start_line + offset + 1 was true + 1.

- literal_search.rs x4 + mcp/mod.rs imports helper: +1 stripped
- test_parse_import_lines_detects_common_forms: premise + expected
  values corrected to the shipped convention (10-14, was 11-15)
- two stale comments refreshed (search.rs emit, relaxed-fallback test
  fixture moved to a 1-based chunk)

Review deviation: the 2-round cap was reached (round 2 FAIL on the
incomplete sweep); the reviewer's fix list is mechanical and was
executed verbatim, then self-verified read-only — full sweep re-run
shows only producer-side +1 sites remain (jupyter chunker, scip_proto),
plus fmt/clippy/939 tests green.
@flupkede
flupkede merged commit 2a88aaf into develop Oct 17, 2026
2 of 6 checks passed
@flupkede
flupkede deleted the fix/line-convention-completion branch October 17, 2026 20:20
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