Drop malformed mailmind envelope addresses and count unreadable handles #40

Merged
piers merged 1 commit from feat/svd-dev-people-mind-mcp-39-mailmind-source-one-envelope-42f87828 into main 2026-11-02 05:27:44 +00:00
Collaborator

Preserve valid addresses while dropping malformed handles, count drops only for accepted pages, and reset unreadable each pass. Keep protocol shape checks strict and address values out of traces.

Add regression coverage for malformed recipients and senders, pass resets, privacy, and protocol validation.

Validation: baseline 65 passed; updated mailmind suite 70 passed; make check passed with 295 passed, 5 skipped, 4 deselected. Standards self-review found no issues.

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

Preserve valid addresses while dropping malformed handles, count drops only for accepted pages, and reset unreadable each pass. Keep protocol shape checks strict and address values out of traces. Add regression coverage for malformed recipients and senders, pass resets, privacy, and protocol validation. Validation: baseline 65 passed; updated mailmind suite 70 passed; make check passed with 295 passed, 5 skipped, 4 deselected. Standards self-review found no issues. Closes #39 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Preserve valid addresses while dropping malformed handles, count drops only for accepted pages, and reset unreadable each pass. Keep protocol shape checks strict and address values out of traces.

Add regression coverage for malformed recipients and senders, pass resets, privacy, and protocol validation.

Validation: baseline 65 passed; updated mailmind suite 70 passed; make check passed with 295 passed, 5 skipped, 4 deselected. Standards self-review found no issues.

Closes #39
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Owner

Architect verification (host, scratch worktree at c611a19, 05:24Z to 05:26Z).

Diff against main 5e0a500 touches exactly the two Primary files. The source change matches the gated spec, including the gate's D1 ruling: _addresses returns kept handles plus a drop count, the single-sender check stays len(sender) > 1 over kept handles, drops are added to unreadable only when the page is accepted, and unreadable resets at the top of _fetch. No logger line added; no address value in any trace.

Check Result
tests/test_mailmind.py 70 passed (baseline 65 at 5e0a500; 3 new tests, 2 new parametrize cases)
neighbours (test_mailmind test_config_cli test_carddav test_vcard_sync) 180 passed (baseline 175)
full -m "not integration" with the model present 297 passed, 3 skipped
mypy strict src tests clean
ruff check + format clean
nested .git in worktree none

Integrate: readyForMerge true, verifiedCommitSha c611a19 equals the dispatch commit, 0 rework rounds, forbidden-mutation and empty-filter checks clean.

Ready to merge. After merge: image 0.1.0-rc.4, starbase pin, Flux roll, live mail pass recorded on #10 (V1).

**Architect verification (host, scratch worktree at c611a19, 05:24Z to 05:26Z).** Diff against main 5e0a500 touches exactly the two Primary files. The source change matches the gated spec, including the gate's D1 ruling: `_addresses` returns kept handles plus a drop count, the single-sender check stays `len(sender) > 1` over kept handles, drops are added to `unreadable` only when the page is accepted, and `unreadable` resets at the top of `_fetch`. No logger line added; no address value in any trace. | Check | Result | |---|---| | `tests/test_mailmind.py` | 70 passed (baseline 65 at 5e0a500; 3 new tests, 2 new parametrize cases) | | neighbours (`test_mailmind test_config_cli test_carddav test_vcard_sync`) | 180 passed (baseline 175) | | full `-m "not integration"` with the model present | 297 passed, 3 skipped | | mypy strict `src tests` | clean | | ruff check + format | clean | | nested `.git` in worktree | none | Integrate: `readyForMerge` true, `verifiedCommitSha` c611a19 equals the dispatch commit, 0 rework rounds, forbidden-mutation and empty-filter checks clean. Ready to merge. After merge: image 0.1.0-rc.4, starbase pin, Flux roll, live mail pass recorded on #10 (V1).
piers merged commit 902eed7f48 into main 2026-11-02 05:27:44 +00:00
Sign in to join this conversation.
No description provided.