Index recipients for exact mail search and Sent evidence #140

Merged
Collaborator

Add the schema v13 recipients table, address-leading index, delete trigger and batched writer migration with counts-only logging. Share address parsing between migration and transactional upserts. Expose the exact To/Cc recipient filter through mail_search and use the index for Sent evidence while retaining copy deduplication.

Update migration assertions, query-plan coverage, README and benchmark setup. Add seven recipient tests. As approved, parsed whitespace-in-address cells now count as Sent evidence.

Validation: baseline 839 passed; implementation 846 passed, 8 skipped, 18 deselected. Affected tests: 462 passed; final recipient/evidence tests: 68 passed. Ruff, mypy, dependency audit, package build and container builds passed. SQLite 3.40.1 base/head/base/head benchmarks used 150,000 messages plus 30,000 Sent rows; both head plans sought recipients_address with no SCAN m. Typical account-free medians improved from 13.279–14.487 ms to 0.464–0.502 ms.

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

Add the schema v13 recipients table, address-leading index, delete trigger and batched writer migration with counts-only logging. Share address parsing between migration and transactional upserts. Expose the exact To/Cc recipient filter through mail_search and use the index for Sent evidence while retaining copy deduplication. Update migration assertions, query-plan coverage, README and benchmark setup. Add seven recipient tests. As approved, parsed whitespace-in-address cells now count as Sent evidence. Validation: baseline 839 passed; implementation 846 passed, 8 skipped, 18 deselected. Affected tests: 462 passed; final recipient/evidence tests: 68 passed. Ruff, mypy, dependency audit, package build and container builds passed. SQLite 3.40.1 base/head/base/head benchmarks used 150,000 messages plus 30,000 Sent rows; both head plans sought recipients_address with no SCAN m. Typical account-free medians improved from 13.279–14.487 ms to 0.464–0.502 ms. Closes #138 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Add the schema v13 recipients table, address-leading index, delete trigger and batched writer migration with counts-only logging. Share address parsing between migration and transactional upserts. Expose the exact To/Cc recipient filter through mail_search and use the index for Sent evidence while retaining copy deduplication.

Update migration assertions, query-plan coverage, README and benchmark setup. Add seven recipient tests. As approved, parsed whitespace-in-address cells now count as Sent evidence.

Validation: baseline 839 passed; implementation 846 passed, 8 skipped, 18 deselected. Affected tests: 462 passed; final recipient/evidence tests: 68 passed. Ruff, mypy, dependency audit, package build and container builds passed. SQLite 3.40.1 base/head/base/head benchmarks used 150,000 messages plus 30,000 Sent rows; both head plans sought recipients_address with no SCAN m. Typical account-free medians improved from 13.279–14.487 ms to 0.464–0.502 ms.

Closes #138
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
svc-agent-writer deleted branch feat/svd-dev-mail-mind-mcp-138-add-a-recipients-table-an-exac-7362604b 2026-11-02 10:55:34 +00:00
Sign in to join this conversation.
No description provided.