Skip to content

fix(review): content dedup follow-ups — coalesceAnchors, titleSimilarity, logging - #86

Merged
aliasunder merged 6 commits into
mainfrom
worktree-fix-content-dedup-followups
Sep 5, 2026
Merged

fix(review): content dedup follow-ups — coalesceAnchors, titleSimilarity, logging#86
aliasunder merged 6 commits into
mainfrom
worktree-fix-content-dedup-followups

Conversation

@aliasunder

Copy link
Copy Markdown
Owner

Summary

Follow-up fixes from unresolved bot review threads on the merged PR #85 (content-based cross-run dedup):

  • coalesceAnchors uses positional-only dedup — the content tier was over-collapsing the tracked-findings count, treating genuinely distinct prior findings as one when their titles shared vocabulary. The count now only collapses anchors within the 5-line positional window (same file + same category), matching the pre-PR feat(review): content-based cross-run dedup for shifted/reworded findings #85 behavior for counting while keeping the content tier for new-finding suppression.
  • titleSimilarity deduplicates internally via Sets — the exported function now guarantees [0, 1] for arbitrary input, not just pre-deduplicated normalizeTitle output.
  • Content-tier suppressions logged at warn level — each content-tier drop logs file, line, category, and title. The dedup summary gains droppedByPositional and droppedByContent counts for threshold tuning from run logs.

Test plan

  • coalesceAnchors test updated: content-similar anchors across different categories are now kept as distinct
  • All 581 tests pass, lint clean, build clean

aliasunder and others added 2 commits September 4, 2026 18:56
Three fixes from unresolved bot threads on the merged PR:

1. coalesceAnchors uses positional-only dedup for tracked-findings
   count — content similarity must not collapse genuinely distinct
   prior findings that share title vocabulary
2. titleSimilarity deduplicates internally via Sets so the result
   stays in [0, 1] for arbitrary input
3. Content-tier suppressions logged at warn level with file, line,
   category, and title for observability and threshold tuning

581 tests, lint clean, build clean.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread src/review/title-similarity.ts
Comment thread src/orchestrate.ts Outdated
@umm-actually

umm-actually Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

umm-actually re-reviewed at 9484db5

No new findings (5 tracked finding(s) across all runs).


umm-actually · deepseek/deepseek-v4-flash-0731

Comment thread src/orchestrate.ts
Comment thread src/review/__tests__/title-similarity.test.ts Outdated
Comment thread src/orchestrate.ts
@aliasunder
aliasunder merged commit a2137cc into main Sep 5, 2026
9 checks passed
@aliasunder
aliasunder deleted the worktree-fix-content-dedup-followups branch September 5, 2026 00:00
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