Collapse message copies and join threads across accounts #92

Merged
Collaborator

Collapse filter-passing copies by Message-ID, From and normalized Date. Prefer inbox rows, report copy counts, deduplicate keyword and semantic rankings, exclude all copies from similar_to, and count messages once in people, evidence and triage. Join threads across accounts through copies in one hop. Update tool documentation and add 25 regression tests.

Validation: make check passes; baseline 308 passed, final 333 passed, both with 4 skipped. Package build and source-import guard pass. Keyword ranking uses GROUP BY with MIN(f.rank).

Benchmark medians on the same 105,000-row store: unfiltered 61.9 -> 292.7 ms (4.73x); common-word search 65.4 -> 317.9 ms (4.86x). Both satisfy the approved performance limits.

Closes #59
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Collapse filter-passing copies by Message-ID, From and normalized Date. Prefer inbox rows, report copy counts, deduplicate keyword and semantic rankings, exclude all copies from similar_to, and count messages once in people, evidence and triage. Join threads across accounts through copies in one hop. Update tool documentation and add 25 regression tests. Validation: make check passes; baseline 308 passed, final 333 passed, both with 4 skipped. Package build and source-import guard pass. Keyword ranking uses GROUP BY with MIN(f.rank). Benchmark medians on the same 105,000-row store: unfiltered 61.9 -> 292.7 ms (4.73x); common-word search 65.4 -> 317.9 ms (4.86x). Both satisfy the approved performance limits. Closes #59 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Collapse filter-passing copies by Message-ID, From and normalized Date. Prefer inbox rows, report copy counts, deduplicate keyword and semantic rankings, exclude all copies from similar_to, and count messages once in people, evidence and triage. Join threads across accounts through copies in one hop. Update tool documentation and add 25 regression tests.

Validation: make check passes; baseline 308 passed, final 333 passed, both with 4 skipped. Package build and source-import guard pass. Keyword ranking uses GROUP BY with MIN(f.rank).

Benchmark medians on the same 105,000-row store: unfiltered 61.9 -> 292.7 ms (4.73x); common-word search 65.4 -> 317.9 ms (4.86x). Both satisfy the approved performance limits.

Closes #59
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.