Mail peer v1: one oversize entity blocks the snapshot permanently #179
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#179
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?
Symptom
One oversize peer entity blocks a Mail peer v1 snapshot permanently. A consumer can never complete its first snapshot.
Seen on mailmind-piers (0.11.0, schema v16) with people-mind-mcp 0.1.0-rc.7 as the consumer (starbase/iac#323), 2026-11-04 12:27 AEDT:
mail_peer_snapshot_v1returnedrecord_too_large(duration 2 ms).mailmind-record-too-large. The next pass resumes at the same cursor and hits the same record.Cause
peer.pysnapshot render (about line 830): a row withoversizeset stops the page. A page whose first row is oversize raisesrecord_too_largewith no rows and no cursor advancement.record_too_largewithout advancement". The contract has no way to skip, redact or tombstone one unservable entity, so the snapshot cannot pass it.stopped and not eventspath exists in the changes feed (about line 910), so one oversize event would block the feed the same way.The record
Read-only query on the piers store. Shape only, no addresses:
peer_entitiesrows hasoversize = 1; 0peer_eventsrows do.fastmail,revised_at2026-11-03T21:13:17Z, entity id length 34.from: 1 address, 16 bytes.cc: 0 addresses.to: 1 address, 361 characters. This is overPEER_ADDRESS_CHARS(320). It passed_PEER_ADDRESS.fullmatch, so it is probably a mis-parsed header rather than a real address.Expected
One unservable entity must not stop the snapshot or the feed. Possible directions (for triage, not decided):
_PEER_ADDRESSso a 361-character value is never accepted as an address.The consumer side may also need a finite policy for non-retryable records. That belongs on dev/people-mind-mcp and is not filed here.
Impact
People Mind on piers has never completed a Mail pass:
interactionsis 0 on both rc.6 and rc.7. CardDAV Sources are unaffected.Related: #152.
Human act
T4 merge: the operator merges PR #180 and pushes the v0.12.1 tag (ADR-0011)