Skip to content

fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860

Closed
thejesh23 wants to merge 1 commit into
Graphify-Labs:v8from
thejesh23:fix/1857-dedup-fuzzy-summary
Closed

fix(dedup): report fuzzy count in summary when exact_merges is 0 (#1857)#1860
thejesh23 wants to merge 1 commit into
Graphify-Labs:v8from
thejesh23:fix/1857-dedup-fuzzy-summary

Conversation

@thejesh23

Copy link
Copy Markdown
Contributor

Summary

  • Rebuilds the dedup summary line as a parts list so (N fuzzy) prints whether or not there were exact merges — previously the if fuzzy_merges branch was nested inside if exact_merges, and a doc-only / semantic-only run with exact_merges == 0 printed Deduplicated N node(s). with no breakdown.
  • Adds two regression tests in tests/test_dedup.py:
    • test_dedup_summary_prints_fuzzy_count_when_no_exact_merges — cross-file long labels, entropy-gated, JW-close → exact=0, fuzzy=1; asserts "fuzzy" appears in the log and "exact" does not.
    • test_dedup_summary_still_reports_exact_only — same-file identical normalized labels → exact=1, fuzzy=0; pins the reverse case.

Closes #1857.

Test plan

  • uv run --frozen pytest tests/test_dedup.py -q → 36 passed (up from 34).
  • uv run --frozen pytest tests/ -q → 3195 passed, 3 skipped (baseline was 3193; delta = the two new tests).
  • uv run --frozen pre-commit run --files graphify/dedup.py tests/test_dedup.py → skillgen + ruff green.

safishamsi added a commit that referenced this pull request Jul 14, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@safishamsi

Copy link
Copy Markdown
Collaborator

Landed on v8 as 20405a8, ships in 0.9.16. Thanks @thejesh23 - reports the fuzzy count on zero-exact-merge runs.

@safishamsi safishamsi closed this Jul 14, 2026
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 summary log silently omits the fuzzy-merge count when exact_merges == 0

2 participants