mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
* test(deduplication): cover ClusterBuilder, MergeStrategyManager, and batch paths Add focused coverage for union-find clustering, property merge rules, merge_duplicates, embedding similarity, and incremental detection (#866). * test(deduplication): assert unrelated clusters without conditional skip Make cluster-separation coverage fail closed by using mocked pairs and unconditional assertions for distinct Apple vs Microsoft cluster IDs. * test(deduplication): tighten update_clusters attachment assertions Require the incremental path to place the new near-duplicate in the same rebuilt cluster instead of accepting a vacuous cluster-count check. * test(deduplication): strengthen incremental detect_duplicates wrapper checks Assert real DuplicateCandidate matches, score threshold, and new×existing routing instead of only checking that the wrapper returns a list. * test(deduplication): verify metadata provenance behavior Assert that preserve_provenance writes metadata.provenance fields and add a disabled-path test so regressions do not pass through merge_entities metadata alone. --------- Co-authored-by: Pravit Ampapathini <pravitampapathini@users.noreply.github.com>