Sentin8 Email8:Store - Mail & Collaboration Data Core
1. Summary
Email8:Store is the mail plane's data core: mailboxes, messages,
folders, contacts, calendars (the email8 schema), plus the JMAP
API - the authenticated read/write surface for the other mail
services and user clients.
2. Architecture
3. Key Traits
- Owns the
email8database schema (mailboxes, messages, groupware) with standard RLS discipline: account-scoped tables (holder-or-admin tier), env-scoped config tables,principalsas the env-tier root (writes service-layer-gated; SELECT admits the auth-user holder-match), anddomainsas the NO-RLS mail-domain→env discovery catalog (the MTA resolves recipient domains pre-tenant - the openfin8-caprovider_profilesprecedent; design../../design/sentin8-provisioned-rls-and-telemetry-design.md). The tenant context is transaction-local: every stamp + query sequence runs inside ONE explicit transaction on ONE connection. - The local outbox lives in the
storeleaf schema (store.outbox, OUTBOX-EMAIL8 - the DBX producer path; the shell's 8b relay drains it to BusPOST /v1/produce, idempotency_key = row id). - Audit journal (architecture-principles §6.8): the
store.audit_journalleaf-schema table (migration v4 - the 15-columnsentin8_audit::audit_journal_sqlcontract) is drained to SysPOST /v1/auditby the shell's boot-8c pusher, presenting thestore-auditworkload certificate (sentin8:sys:audit:write). - Message blobs go to Sentin8:Storage; Store keeps the metadata + indexes.
- M2M: certificate identity (CERTFREE-4V) - internal callers present their workload certs; bus events via the local outbox → produce API (inbox-first).
See the vertical group docs (email8/README.md) for the plane
overview.
Architecture & Design: email8:store and its underlying concepts were designed by Hamid Jahanzad.