Implement durable Mail peer changes and snapshot handoff #152
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#152
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
Implement durable direct Mail peer changes and snapshot handoff under the approved shared mind contract. Existing text feeds remain compatible; direct deployments need no broker or Kubernetes.
Decision substrate
Operator-approved ADR 0010 and the versioned contract kit at
21e279da85eab618ef8c76bc8211daaa23e0ca52(contracts/mind-v1/). ADR 0008 continues to bound evidence disclosure. The contract is an implementation target; its wire tests alone do not prove runtime recovery.Scope and acceptance criteria
mail_peer_info,mail_peer_changes_v1andmail_peer_snapshot_v1with exact negotiated schemas and evidence auth. Advertise only implemented/tested operations. Add the corresponding ADR 0008 tool-list amendment without widening payload authority.make checkpass.Non-goals
People consumer changes, release/deploy, broker transport, fabric mapping, calendar/attention implementation and any widening of evidence authority. Future bus work must derive from canonical dev/fabric-spec only when fan-out/workload justifies it.
Blocked by
Sub-issues
Split in the grill of 2026-11-03 (ADR 0012, #162). Each unit is dispatched after the previous one merges. This epic closes when all three are merged and P01–P09 pass.
mail_peer_infoandmail_peer_changes_v1(P05 reader half, P08, P09).2a. dev/mail-mind-mcp#167 — cut the feed's per-call cost to meet the I02 search budget (added at the #160 gate); blocks #161.
mail_peer_snapshot_v1and the feed handoff (P06, P07).Grill record (2026-11-03, operator accepted)
The grill replaced SVD for #152, because it implements a substrate contract (CONV-40). ADR 0012 (#162) records every ruling in full.
peer_eventstable with AUTOINCREMENT;changesandmail_changesunchangedpeer_entitiesplus each event's previous revision; no copy, no API write{source_id, epoch, max_seq}after each emitting commit; a missing marker or a database behind it means a new epoch;source_idkept; clones go throughmailmind peer new-identityscope_id[peer]config section; floor recorded before trimmingmeta, replaced with the epochStore._emitbeside everychangesinsert, plus a guard testmail_searchp95 ≤ +25 %; page p99 ≤ 250 ms; RSS growth ≤ 64 MiBinfoandchanges; #161 addssnapshot; each amends ADR 0008Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Closing. All units are merged:
The P01–P09 cases are in the merged test suites. I02 passes every ADR 0012 rule 14 budget at
cc56ba7(three voyager runs, recorded in ADR 0008): feed, snapshot, health, search and RSS. dev/people-mind-mcp#47, which #161 blocked, is closed.