Add mail_evidence and an evidence token scope #84
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/mail-evidence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #78. Decision: ADR 0008.
Summary
New module
evidence.py: the sign-off rule, the address parser for the storedName <addr>columns, and display subjects. It is pure.Evidence
mail_readand every body.After: with the evidence token,
list_toolsreturns exactlymail_evidence,mail_people,mail_statusandmail_changes.mail_read,mail_search,mail_threadandmail_mailboxesraiseToolError. The read and write tokens list every tool they listed before, plusmail_evidence.tests/test_evidence.py, 48 tests:make check: lint,mypy --strict, 299 unit tests, pip-audit clean.Points to rule on
Sent from my iPhoneAliceThanks, / AliceA block now starts at an anchor: a closing phrase from a closed list, or a line that starts with the sender's name. Lines above it are never returned. Disclaimers and client footers are skipped. A corpus of 13 mails that must give nothing and 16 that must give a block guards the rule.
max_messages1 to 50,max_chars100 to 4,000, one line per Message-ID, andFW:removed.--signature is still lost at ingest. Filed as #85: asign_offcolumn, a backlog, and a counts-only hit-rate report. It needs its own ADR 0008 amendment.Merge Danger
Door: two-way
No schema change. The scope floor drops from
readtoevidence, but only a configured evidence token holdsevidencealone.Blast Radius: api
evidence_token_file, so no new token exists until an operator adds one. The deploy base already routes every*.tokenfile toapi.mail_evidence. It returns less thanmail_readalready gives them.🤖 Generated with Claude Code
The first rule took the last paragraph after a blank line, so a short closing sentence of the body ("The price is $40k, final") came back as a signature, against ADR 0008 §2. A block now starts at an anchor line: a closing phrase from a closed list, or a line that starts with the sender's name. Lines above the anchor are never returned. Disclaimers and mail-client footers are skipped. A corpus of 13 mails that must give nothing and 16 that must give a block guards the rule. ADR 0008 §2 is amended to match, with the bounds the first build chose. Delimited signatures, which ingest trims, are #85. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>