Drop over-length values from the peer envelope instead of refusing the record #180
No reviewers
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!180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/179-long-address-invalid"
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?
Summary
One envelope value over 320 characters blocked the Mail peer v1 snapshot on mailmind-piers for good. The operator ruled direction 3 on #179: such a value is not an address.
peer_eventsis immutable, so rows stored under the old rule stay as written. The re-filter reads only the stored envelope, nevermessagesrows (#152 criterion 2).contracts/mind-v1/README.mdand ADR 0012 rule 3 now state the rule. The wire schema is unchanged: every served address is still at most 320 characters.Evidence
record_too_largeon every snapshot page call. The cursor never advances.After:
test_legacy_long_address_row_is_served_without_itserves that row with the value dropped, and the snapshot completes.test_legacy_long_address_event_is_served_without_itreads one legacy entity through the feed and the snapshot, and both return the same envelope.test_peer_envelope_drops_long_address: 320 characters kept, 321 and 361 dropped, fromfrom,toandcc.test_legacy_oversize_row_past_read_bound_stays_refused: a stored envelope over 131,072 characters staysrecord_too_large.make check: 1395 passed, 18 deselected; ruff, mypy --strict and pip-audit clean.Merge Danger
Door: two-way
No schema change and no stored row is rewritten. A revert restores the old refusal.
Blast Radius: peer-consumers
People Mind receives envelopes with an over-length value removed, where it used to get
record_too_large. People Mind's copy of the contract README still states the old 320-character rule.Closes #179
🤖 Generated with Claude Code