Add email-sending provider: Resend, invite-code delivery, admin notice (Plan 14) - #33
Merged
Merged
Conversation
…e (Plan 14) Builds the outbound email subsystem (provider seam, Resend transport, a never-throws gateway with kill-switch/cap gates, append-only email_log) in the same shape as the LLM gateway, then wires two real triggers: auto-sending an invite code generated from an access request (with an optional sendTo on the admin's plain generate flow, and a manual resend route as the recovery path), and a fire-and-forget admin notice on a new access request that never disturbs that endpoint's anti-enumeration response. Live-verified against a real Resend account and inbox, including an induced failure. Also retires the standing rule requiring UI changes to be prototyped in Layout-Workbench.html first, corrects the privacy policy and stale in-app copy that predated this subsystem, and archives the completed plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0161C4FPAJerdFRSERiVZYn9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fetch, zero new dependency), a gateway that gates (kill switch + hourly cap) and logs every send attempt, and never throws — an email failure can never change a caller's HTTP status.sendToon the admin's plain generate flow, and a manual resend route as the recovery path), and a fire-and-forget admin notice on a new access request that never disturbs that endpoint's byte-identical anti-enumeration response.system-about.md,user-guide.md,roadmap.md,README.md,.env.example,CHANGELOG.md).Layout-Workbench.htmlbefore touching live code (renumbers the remainingCLAUDE.mdstanding rules).plans/archive/14-email-sending-provider.md.Test plan
npx tsc --noEmit— cleannpm test— 1088 tests passing, including new coverage for the gateway, provider, templates, the architecture fitness function, and all three wired routes' email behavior🤖 Generated with Claude Code
https://claude.ai/code/session_0161C4FPAJerdFRSERiVZYn9