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.
Checklist
status: baseline-confirmed title: A — Plain text: asks to resend (correctly identifies missing content) detail: envoy/testing/attachment-email-tests/A-text-summary
status: baseline-confirmed title: B — JSON: no reply body captured; Widget Gamma/309 absent detail: envoy/testing/attachment-email-tests/B-json-extraction
status: baseline-confirmed title: C — Save to notes: note created with placeholder [Content from the attached task list as text] detail: envoy/testing/attachment-email-tests/C-save-to-notes
status: baseline-confirmed title: D — Multiple attachments: asks to resend (correctly names both files) detail: envoy/testing/attachment-email-tests/D-multi-attachment
Key Findings
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.
version 2 · created 2026-03-16 · updated 2026-03-17