Mailmind Source over MCP with an evidence token, Interactions and deterministic enrichment #6
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#6
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?
Parent: #1. Records: ADR 0001 §5, ADR 0003, ADR 0004 §5; mailmind ADR 0008.
What to build
The join no other store makes: mail evidence attached to Persons, under least privilege.
mail_changes envelope=truefor addresses only andmail_evidence(address)for the closed field list: domain, received, first, last, roles, sent, signature, subjects. It never calls a body or search tool.mail, directioninorout, stored by reference (message id), never the text.people_cardshows evidence only on request, through the evidence id.Acceptance criteria
sentandenvelope=trueare consumed; a body read with that token is refused and the refusal is logged as a code.people_recentin both directions.Blocked by
Filed under: operator word "go. compelling public-facing README.md as A0" sha256:3f9e946994fa
svc-agent-writer referenced this issue from dev/mail-mind-mcp2026-11-01 03:26:30 +00:00
⏸ SVD architect gate: dev/peoplemind-mcp#6 mailmind-source-over-mcp-with-an-evidence-token-interactions
Status: CLEAN after 1 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
substrate· dispatch efforthighRun:
20261101T102110Z-9054c4fcHeld because: CLEAN but 6 open risk(s) (1 sequencing · 2 verification · 3 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
The PR body must carry the SHA and an A1–A6 table with file:line for each row. Any failing row halts with mailmind-contract-divergent and goes back for re-spec. A merge of #78 alone never discharges this risk. [verification]
Change: Pre-edit contract gate: read mailmind's merged main read-only at a recorded SHA. Check A1–A6 against server.py mail_changes/mail_evidence, tests/test_evidence.py FIELDS and docs/adr/0008-evidence-scope.md. Halt with mailmind-contract-divergent or mailmind-contract-unavailable on any failure, with no code written. Then do the following:
Files:
src/peoplemind_mcp/config.py·src/peoplemind_mcp/sources/__init__.py·src/peoplemind_mcp/sources/mailmind.py·src/peoplemind_mcp/enrich.py·src/peoplemind_mcp/graph.py·src/peoplemind_mcp/store.py·src/peoplemind_mcp/sync.py·src/peoplemind_mcp/cli.py·tests/test_mailmind.py·tests/test_enrich.py·tests/test_identity.py·tests/test_config_cli.py·README.mdDecision: accept the 6 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-mailmind-source-over-mcp-with-an-evidence-token-interactions.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-01-mailmind-source-over-mcp-with-an-evidence-token-interactions.mdArchitect gate: CLEAN, rulings recorded, released for dispatch
Spec
2026-11-01-mailmind-source-over-mcp-with-an-evidence-token-interactions.md(Half-A run20261101T102110Z-9054c4fc, 13 files, substrate/high). The rulings are appended to the spec under## Agent Adjustments.98b8b5f, ancestor of mailmind main96efa14).96efa14and written into the spec. Two rows diverged from the spec's assumptions and are ruled:mail_evidencehas six fields withfirst..lastembedded in thereceivedandsentlines (A1), and thesignatureblock carries no per-block message id, so signature-derived fields reference<source>:evidence:<address>(A3). Footermoreis0|1. Dispatch builds to the shipped shapes and does not halt on A1 or A3.0: the first pass backfills mailmind's changes log at 100 rows per page.httpto a non-loopback host needsallow_http = trueon the mailmind source; the README shows it for the in-cluster URL with a one-sentence warning.cfg.sources[...]narrows withisinstanceor reads.name/.kind; no file joins the write set.Riders: pytest only as
uv run python3 -m pytest … --basetemp "$(mktemp -d "${TMPDIR:-/var/tmp}/svd.XXXXXX")/x"; no nested.git; baseline on pristine254fe67first (173 passed, 3 skipped expected);pyproject.tomlanddocs/adr/untouched.Operator: paste
svd:goto release Half-B. Dispatch runs ascodex-svd dispatchwithCODEX_SVD_STAGE_TIMEOUT_SECONDS=9000.spec-verify-dispatch Half B for dev/peoplemind-mcp#6 mailmind-source-over-mcp-with-an-evidence-token-interactions completed integration verify.
63d8961eba63d8961: no Forgejo commit statuses (absent, non-blocking). Local: 50 new tests and 182 regression tests pass; mypy, ruff check and ruff format are clean.63d8961(Forgejo statuses list is empty); remote CI is unobserved.63d8961and no required checks are readable; no run in history. No tracking pointer found. — reported as absent, not blocking (gh#633)codex-svd ship --run-id 20261101T110821Z-8f761078 --confirm-merge)