Adopt Mail peer v1 with durable bounded evidence recovery #47
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/people-mind-mcp#47
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?
Outcome
Adopt the pinned Mail peer contract with bounded, durable progress in People Mind. A restart during evidence processing repeats only unfinished bounded work; it must not skip derived effects or replay an entire completed evidence pass.
Decision substrate
Operator-approved ADR 0009 adopts Mail ADR 0010.
docs/contracts/mail-peer-v1.mdpins the exact wire specification, schemas, fixtures and recovery matrix. People ADR 0003 remains authoritative for reference-only evidence storage, asserted-field ownership and Forget. #45 landed as PR #46 (8395238); integrate its configurable deadline, do not duplicate or revert it.Scope and acceptance criteria
make checkand existing CardDAV/vCard behaviour pass. Do not treat wire fixtures as runtime certification.Non-goals
Bus/fabric delivery, calendar/attention implementation, off-host derivation, broader evidence fields, package publication and production deployment.
Blocked by
⏸ SVD architect gate: dev/people-mind-mcp#47 adopt-mail-peer-v1-with-durable-bounded-evidence-recovery
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:
20261103T194658Z-c6a5ac02Held because: CLEAN but 8 open risk(s) (2 verification · 6 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: Add a v1 wire client in new sources/mailpeer.py, mirroring MailmindSource._fetch (mailmind.py:163-266: one Client per pass, the #45 timeout, _Pacer, _retry_delay, sanitized excepts), and read only structured_content. The durable bounded pass now lives in sync.py as run_peer_pass, dispatched from run_pass:38. That frees the ceiling slot for tests/test_identity.py:445. Migration 6 adds new tables only, mirroring store.py:91-95. Page commit, snapshot activation and per-address evidence units each run in one transaction. Source-specific retraction uses two per-(source,address) SQL constants. RETRACT_UNSUPPORTED deletes interactions whose (entity, direction, at) is no longer in mail_support. It runs at page commit for every affected address (del, add-revision narrowing, direction/at change) and again in each evidence unit. RESTORE_SUPPORTED re-inserts from mail_support after ingest_record, because ingest_record's rec_hash 'unchanged' shortcut (graph.py:267-268) skips the INSERT OR IGNORE at :339-342. Forget purges the mail* rows. views exposes applied freshness.
Files:
src/people_mind_mcp/config.py·src/people_mind_mcp/store.py·src/people_mind_mcp/sources/mailpeer.py·src/people_mind_mcp/sources/__init__.py·src/people_mind_mcp/sync.py·src/people_mind_mcp/graph.py·src/people_mind_mcp/views.py·src/people_mind_mcp/server.py·README.md·tests/test_mailpeer.py·tests/test_mailmind.py·tests/test_server.py·tests/test_config_cli.py·tests/test_embed.py·tests/test_deploy.py·tests/test_identity.pyWrite-set divergence: present table wins. structured return named src/people_mind_mcp/config.py, src/people_mind_mcp/store.py, src/people_mind_mcp/sources/mailpeer.py, src/people_mind_mcp/sources/init.py, src/people_mind_mcp/sync.py, src/people_mind_mcp/graph.py, src/people_mind_mcp/views.py, src/people_mind_mcp/server.py, README.md, tests/test_mailpeer.py, tests/test_mailmind.py, tests/test_server.py, tests/test_config_cli.py, tests/test_embed.py, tests/test_deploy.py, tests/test_identity.py, src/people_mind_mcp/mailsync.py; table names src/people_mind_mcp/config.py, src/people_mind_mcp/store.py, src/people_mind_mcp/sources/mailpeer.py, src/people_mind_mcp/sources/init.py, src/people_mind_mcp/sync.py, src/people_mind_mcp/graph.py, src/people_mind_mcp/views.py, src/people_mind_mcp/server.py, README.md, tests/test_mailpeer.py, tests/test_mailmind.py, tests/test_server.py, tests/test_config_cli.py, tests/test_embed.py, tests/test_deploy.py, tests/test_identity.py.
Decision: accept the 8 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-03-adopt-mail-peer-v1-with-durable-bounded-evidence-recovery.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-adopt-mail-peer-v1-with-durable-bounded-evidence-recovery.mdspec-verify-dispatch Half B for dev/people-mind-mcp#47 adopt-mail-peer-v1-with-durable-bounded-evidence-recovery completed integration verify.
82c9404ebd82c9404: Woodpecker ci/woodpecker/pr/validation green. Local: 69 mailpeer tests, 264 regression (2 skipped) and 371 non-integration (5 skipped) all pass. No blockers.codex-svd ship --run-id 20261103T202208Z-0f16dd63 --confirm-merge)