Add mail_evidence: signature lines, recent subjects and dates for one sender #78
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Decision: DD-465 §7 (peoplemind-mcp, vault, accepted 2026-11-01). Record: ADR 0008 (PR #80), an evidence token scope and the
mail_evidencefield list. ADR 0003 is not amended; it bounds Jev's fields, not a read tool's.Filed under: DD-465 §7, on the operator's word of 2026-11-01 ("promote … file the mailmind issue"), system-architect session on voyager. Amended the same day on the operator's acceptance of DD-465 grill round 2 Q7.
peoplemind-mcpis a people graph service that will run beside this one and consume it over MCP. It needs, for one sender, the evidence thatmail_peopledoes not carry: how the sender signs off, what they write about, and when. Today a client would pagemail_searchand callmail_readper message for every person. That is too slow and too chatty, and it pulls whole bodies for a question that needs a few lines.What to build (ADR 0008 is authoritative where this body differs)
evidence, nested insideread.[auth] evidence_token_fileis optional. An evidence token reachesmail_evidence,mail_people,mail_statusandmail_changesonly. Read and write tokens keep every tool they have today, and a test asserts that. Peoplemind holds an evidence token, never a read token.mail_evidence(address, account=None, include_self=False, max_messages=10, max_chars=600)on theevidencescope, returning exactly:domain;received,first,last;roles(inbox, archive, other);sent: N first..last(Sent role, address in To or Cc, not Bcc or From);signature(sign-off block of the newestmax_messagesmessages, deduplicated, at mostmax_chars, cut at a line boundary; a block is the lines after the last blank line of the quote-trimmed text, at most 8 lines, only when there is more than one paragraph);subjects(newestmax_messages,date | id | subject,Re:andFwd:stripped for display).mail_changesgains optionalenvelope=true: eachaddrow appendsfrom | to | cc, addresses only, lowercased, no names, no subject. Other kinds unchanged.no evidenceunlessinclude_self, asmail_peopledoes. Envelope cells are not filtered.Acceptance
mail_evidencefield set; a new field fails the test.envelope=truecells; addresses only, no names, no subjects.max_charsreached mid-block (cut at a line boundary).sentcounts To and Cc, not Bcc or From.include_selffalse hides the owner's addresses and any From seen in Sent or Drafts.mail_read,mail_searchandmail_thread; read and write tokens reach every tool they reach today.mail_changesparameter, the evidence token in Configuration and Quick start.server.py(tests/test_source.pystill passes).Human act
ruling: the operator accepts ADR 0008, the evidence scope and the mail_evidence and mail_changes envelope field lists (CONV-40)
Triaged to
ready-for-humanunder CONV-40 rule 3. The tool is bounded and shaped, but it is a data contract with another service, and it adds a token scope.Operator rulings on 2026-11-01:
evidence, not the read token. An evidence token cannot read message bodies.The issue body is updated to match. This issue has no
Filed under:line (CONV-40 rule 6). The session that filed it should add the line with the authority that its decision log records.Amendment from the DD-465 grill (2026-11-01, operator accepted). Two gaps found against the mirror schema, which already holds
to_addrsandcc_addrs:mail_evidenceis From-only. Add asent: N first..lastline counting messages in Sent-role mailboxes of the same account whose To or Cc containsaddress. Peoplemind needs the outbound side for interaction direction.mail_changesreturns ids only, so a client keeping interactions current would callmail_readper change. Add an optionalenvelope=trueparameter: eachaddrow appendsfrom | to | cc, addresses only, lowercased, no display names, no subject. Other kinds are unchanged.Both stay within ADR 0003: addresses the mirror already holds, no body text, no names. The ADR 0003 amendment in this issue covers both field lists. Acceptance gains: a unit test that
envelope=trueemits addresses only, and one thatsentcounts To and Cc but not Bcc or From.The edit of 01:21 replaced the whole body from a copy taken before the triage edit of 01:19. That undid the triage edit. The body now holds both:
sent: N first..lastline, andmail_changes envelope=true;evidencescope, ADR 0008 as the record instead of ADR 0003 §1,Blocked byand## Human act.The role counts are now inbox, archive and other, because a message from a correspondent is never in Sent. The
sentline covers the outbound side.ADR 0008 (PR #80) now holds both field lists:
mail_evidencein §2, and themail_changesenvelope cells in §3. The grill comment says that both amendments stay within ADR 0003. The operator ruled that the record for this tool is ADR 0008, because ADR 0003 §1 bounds only what Jev receives.To any session that edits this body: fetch it again just before you write, and patch only your own lines.
Correction from the architect session (2026-11-01): the record for this issue is ADR 0008 (PR #80), not an amendment to ADR 0003. My earlier comment said "within ADR 0003"; ADR 0003 bounds Jev's fields and does not bound a read tool. The body now names ADR 0008, adds the evidence scope, and carries the Filed under line. DD-465 §7, its status doc and peoplemind's repo ADRs 0001 and 0004 were corrected to the same: peoplemind holds an evidence token, never a read token.
Human act done: the operator accepted ADR 0008, the
evidencescope, and the field lists ofmail_evidence(§2) andmail_changes envelope=true(§3), on 2026-11-01. ADR 0008 in PR #80 now reads accepted.The build still waits for the operator's acceptance of DD-465, the other item under
Blocked by.Two corrections to the comment above:
## Human actsection that theready-for-humanlabel requires. The body of 01:31 is the authoritative one.svc-agent-writer referenced this issue from dev/people-mind-mcp2026-11-01 01:59:05 +00:00
svc-agent-writer referenced this issue from dev/people-mind-mcp2026-11-01 02:00:18 +00:00
Downstream: dev/peoplemind-mcp#6 (the peoplemind mailmind Source) is blocked by this issue. Filed 2026-11-01 under DD-465 Phase A, epic dev/peoplemind-mcp#1.