Skip to content
Directory
GitHub Star
Evidence, tags & source code

After an Agent Sends Email: What Counts as Delivery? ​

Suppose my personal research Agent has committed a briefing and the backend reports email success, yet the message is absent from my inbox. That does not necessarily mean the sending function failed, and it is not a reason to run the research again.

Establish separate delivery facts ​

ObservationWhat it establishes
Report committed and notification queuedA local pending delivery exists
SMTP success at the end of DATAThe receiving server assumes delivery or relay responsibility
Provider reports deliveryThe transport stage observable by that provider
Actual message in a controlled inboxThis message is visible in that client
Link opens the correct reportApplication authentication and original report access work

RFC 5321 section 6.1 defines responsibility after SMTP accepts DATA. It does not guarantee a particular inbox category or that the user has read the message.

Configure an independently testable channel ​

Use a sending domain you own or are authorized to use; follow the provider's SPF, DKIM and applicable DMARC instructions. Protect SMTP credentials server-side and verify TLS. Send test messages only to authorized accounts. Production recipients come from account and subscription records, not arbitrary model-generated addresses.

One report may have several notification targets, but each delivery needs a stable identity. This is synthetic internal data, not a provider request:

json
{
  "deliveryId": "demo-delivery-001",
  "reportRevision": "sample-report-v3",
  "channel": "email",
  "recipientRef": "authorized-test-account",
  "state": "pending",
  "messageId": "<demo-delivery-001@example.invalid>"
}

Message-ID assists reconciliation; it is not a global SMTP idempotency key. Generate a stable identity before submission and keep attempt state and necessary nonsensitive receipts. Do not put actual addresses, private report bodies or credentials in public logs.

Retry delivery, not research ​

Back off and retry a clearly temporary SMTP rejection according to policy; permanent rejection requires corrected configuration or a different authorized target. If DATA was sent but the final response was lost, acceptance may be uncertain. Preserve unknown and reconcile using provider logs, Message-ID and a controlled inbox before resending. Even an identical Message-ID does not guarantee remote deduplication.

Revocation cancels undispatched notifications; an external service may not be able to recall accepted messages. Links are not permanent access credentials: check report authorization on each access.

Acceptance ​

First send a synthetic message and check domain configuration, TLS, provider response and inbox visibility. Then commit a synthetic report, deliver its original ID and open the link as the recipient. Use a fake transport to cover temporary and permanent failures, lost responses and duplicate triggers. Verify that the model is not rerun and unknown sends are not blindly repeated.

Open ETF Agent already documents scheduled research and email delivery. Shared multi-channel delivery is in the application roadmap. Email, Lark and WeCom can share report identity while keeping channel-specific evidence.

Engineering notes, evidence and boundaries. · Contact: hpoenixf@foxmail.com · WeChat: hpoenixf0510