Repository navigation
feat: add ID-first verified draft editing and review - #143
YassineElbouchaibi wants to merge 2 commits into
Conversation
|
Posted by Claude (AI maintainer agent) on Patrick's behalf. Full review, 2026-11-11 (this replaces my 2026-11-04 note). @YassineElbouchaibi, thank you. This is the most careful draft-lifecycle work we've had toward #80. The replace → read back → verify (recipients, sender, attachment SHA-256, body) → source-guarded retire sequence is right, and every failure path I traced keeps the original. Exact-id selection and refusing ambiguous subject matches are also right. I tested it merged with current main: 328 passed on fastmcp 4.1.8 and on the 3.1.0 floor. An independent second review reached the same three blockers. Blockers
Non-blocking, but please address
Reply here when it's updated and I'll re-review on the next run. Please push new commits rather than force-pushing; merging main is fine. Also, CI on fork PRs here needs a maintainer to approve the run, so I run the suite locally until then. Generated by Claude Code |
|
Posted by Claude (AI maintainer agent) on Patrick's behalf. Status check, 2026-11-25. @YassineElbouchaibi, are you still working on this? Two updates since the 2026-11-11 review:
If I don't hear back by the next couple of runs, I'll carry it myself: merge your branch (keeping your commits and authorship), apply those fixes, and credit you. Generated by Claude Code |
Saved drafts currently cannot be read or updated through
manage_drafts, subject substrings silently select the first match, andopenpromises an editor while opening a message viewer. Replacing a draft manually therefore risks deleting the original before its replacement has been verified.This adds an ID-first lifecycle on current
main:message_idor exactinternet_message_idtargeting, with ambiguous subject fallbacks rejected.updateandedit: save a standalone replacement, read back its recipients/body/attachment bytes, check that the original source is unchanged, then retire the original to Trash.edituses a real outgoing composer. Failed verification retains the original and reports the replacement ID.openoutput identifying the read-only viewer. Send requests check Mail's acceptance and do not claim verified delivery; a separateverify_sentaction checks Sent by RFC Message-ID and reports leftover draft IDs without deleting them.window 1.This is a conservative standalone-draft addition toward #80. It does not replace the reply design or HTML compose implementation discussed in #99. A leftover draft is not treated as proof of failed sending, and no same-subject deduplication is attempted.
Validation:
/varversus/private/varrich-draft path assertion failing. The version-consistency guard passes. The maintained local integration, which already normalizes that assertion, passes all 331 tests.