Sonarist project

Sonarist / Design system

Documentation v1.0.0 · Work in progress · UI prototype with separate server foundations

Design system contents

Implementation

Server and provider boundaries

Treat backend foundations as separate integration work rather than inferred behavior from the frontend prototype.

On this page

Boundary

Boundary
AreaSource foundationFrontend evidence
Authentication/tenancyTenantContext and transaction-scoped RLSNo tenant-facing auth persistence connected to captured UI.
Outbound emailqueueReply writes message/recipients/job atomicallysendReply only adds a local message and Waiting state.
Inbound emailBearer-authenticated Brevo webhooks and worker routingSample messages imported from mock-data.
AttachmentsPrivate B2 and quarantine/availability pipelineFixed filename metadata, no transfer.
DeliveryProvider event reconciliationFixture statuses and local retry.
DomainsServer-only domain setup/provider foundationSample wizard and static readiness.
BillingStripe Checkout/portal and webhook projectionStatic annual plan/history and toast actions.
KitUI mapping and sample contact contextOAuth/live sync not demonstrated.

Implementation guidance

Future authenticated routes must establish trusted workspaceId/userId and enforce inbox access before calling server-only modules. Do not copy browser scope into trusted tenancy. Keep internal thread recipients separate from external provider delivery. Provider acceptance and actual delivery are distinct states.

The infrastructure architecture and runbook are useful source context, but this documentation does not certify the deployment, database roles, provider configuration or worker reliability. No network account checks or provider writes are part of the capture workflow.

Source references

Source references
FileResponsibility
helpdesk-notes/Infrastructure Architecture.mdArchitecture and explicit deferred auth
lib/server/email/outbound.tsTrusted outbox producer
lib/server/billing/summary.tsFuture owner-only summary
helpdesk-notes/Email Domain Infrastructure.mdDomain design
helpdesk-notes/Billing Infrastructure.mdBilling status authority

Reference downloads

Source audit: 2026-10-08 · Revision 10f45d1377b5 · Documentation v1.0.0