Skip to content

fix(dedup): pick pass-2 winner from the verified pair only (#1247) - #1248

Merged
safishamsi merged 1 commit into
Graphify-Labs:v8from
teemow:fix/dedup-pass2-winner-union
Jun 11, 2026
Merged

safishamsi merged 1 commit into
Graphify-Labs:v8from
teemow:fix/dedup-pass2-winner-union

Conversation

@teemow

@teemow teemow commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #1247.

Summary

Test

Regression test in tests/test_dedup.py: A ("Session Manager", auth.md), B ("Session Manager", billing.md, shortest id), C ("Session Managr", notes.md). Only A–C is a verified fuzzy match; before the fix all three collapsed into B, after the fix the A–C pair merges and B stays distinct.

Full suite: 1985 passed, 27 skipped (uv run --frozen pytest tests/ -q).

Made with Cursor

…Labs#1247)

Pass 2 selected the merge winner from the union of both normalized-label
groups, so never-compared same-label/cross-file nodes could be pulled
into the union, bypassing the Graphify-Labs#1046/Graphify-Labs#1178 guards. Pick the winner from
[node, neighbor] only; group members that belong together still merge
via pass 1 (same file) or their own verified comparison.

Co-authored-by: Cursor <[email protected]>
@safishamsi
safishamsi merged commit 2117983 into Graphify-Labs:v8 Jun 11, 2026
PerryLin-0420 pushed a commit to PerryLin-0420/graphify-decouple that referenced this pull request Aug 13, 2026
…ner-union

fix(dedup): pick pass-2 winner from the verified pair only (Graphify-Labs#1247)
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.

Dedup pass 2 over-merges: winner picked from full normalized-label groups pulls in never-compared nodes

2 participants