Skip to content

feat(email): add audited Resend queue primitives - #174

Merged
sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
codex/email-queue-v2-phase1
Oct 31, 2026
Merged

sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
codex/email-queue-v2-phase1

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

Scope

Add the next development layer to the existing queue: encrypted asynchronous job payloads, sender authorization and blocklist checks, Redis quota scopes, a PostgreSQL audit adapter, a Resend transport with idempotency headers, signed webhook verification, event deduplication, and safe uncertain-send state handling. The legacy queuedDelivery API remains exported.

Verification

  • bun run build
  • bun test — 10 unit tests
  • Redis-backed bun test — 16 tests, including deduplication, quota enforcement, encrypted job payloads, worker restart behavior, restriction pausing, and UNKNOWN status persistence

Remaining work

This is an implementation-stage PR. The package is not production complete: no REST service, CLI, MCP tools, admin PWA, alert routing, app-wide migration, deployed worker/database, encrypted PostgreSQL PII fields, provider/domain verification, or production delivery verification is included. Existing MyNaPoster compatibility callers do not yet provide the PostgreSQL audit store and tenant scope required by the new asynchronous API. Do not publish or deploy from this branch.

No external email was sent.

@sh1pt-actions-fleet
sh1pt-actions-fleet Bot marked this pull request as ready for review October 31, 2026 02:50
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit 9abbcb6 into main Oct 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant