notification: send_invite_email — deliver invitation #13

Closed
opened 2026-02-28 08:39:59 +00:00 by ash · 0 comments
Owner

🔵 State-Change Slice

Stream: notif-invite-{email-hash}
Command: SendInviteEmail{Email, InviteCode}
Event: InviteEmailSent{Email, InviteCode, SentAt, MessageID}

Invariants

  • Not already sent for this invite code (idempotent)

Side Effect

Sends email via Resend:

Subject: You're in! Here's your invite
Body: Your invite code is {Code}. Click here to get started.

Tests

TestSendInviteEmail_Happy
TestSendInviteEmail_Idempotent

Agent assignment: builder-notify

## 🔵 State-Change Slice **Stream:** `notif-invite-{email-hash}` **Command:** `SendInviteEmail{Email, InviteCode}` **Event:** `InviteEmailSent{Email, InviteCode, SentAt, MessageID}` ### Invariants - Not already sent for this invite code (idempotent) ### Side Effect Sends email via Resend: ``` Subject: You're in! Here's your invite Body: Your invite code is {Code}. Click here to get started. ``` ### Tests ``` TestSendInviteEmail_Happy TestSendInviteEmail_Idempotent ``` **Agent assignment:** builder-notify
ash closed this issue 2026-02-28 08:50:37 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ash/waitlist#13
No description provided.