End-to-end tests sending emails WITH attachments to envoy from envoy_test@critchley.biz, injected directly into INBOX.
Status: Pre-refactor baseline confirmed 2026-03-17. Re-run after the attachment/LLM refactor.
Two bugs found and fixed during this run: (1) mid_to_email NameError in dispatch_immediate_actions — all outbound replies were silently failing. (2) The same bug was already present as the IMAP Sent copy issue (fixed earlier). See memory/envoy/bugs.
Tests A and D: envoy correctly identifies that named attachments are missing and asks for resend. Good baseline behaviour.
Test C: envoy knows it should write a note and picks the right key, but hallucinates a placeholder instead of real content. Most revealing failure mode.
Test B: reply not captured in log preview. Worth re-checking manually.