— Technical Walkthrough —
For anyone who wants to understand what the platform is actually doing. No marketing. Just architecture.
§01 — The pipeline
The email intelligence pipeline processes ~100 emails/day through a 3-stage cascade.
Sender domain/pattern matching. Catches noreply@, notifications, newsletters. ~22% filtered. Zero cost.
20 emails/batch. 3-way classification: action_required / awareness / noise. ~$0.0005/email.
Priority scoring, action summaries, linked contacts, entity extraction. ~$0.015/email.
Top 8 action items → CEO Daily. Top 5 awareness → ELT Weekly. PDF generation via Puppeteer.
§02 — Architecture
Every component is hosted, versioned, and monitored. Zero shared infrastructure with external clients.
Reporting, RAG, MADE AI OS, Private, Transfer, Joe Private. PostgreSQL 15, RLS enforced, PITR.
madescientificai.com (client-facing) + madeaisandbox (internal cockpit). React + TypeScript + Vite.
30 launchd crons + 10 event-driven. Node.js 22. Claude Sonnet 4 primary, Haiku 4.5 classifier.
Supabase Edge (Deno). Brain-search, brain-router, skills-scaffold-gap, content-gen. JWT verified.
Voyage voyage-3 1024d. IVFFlat index. Hybrid search (vector + FTS). 95ms p50 latency.
8 n8n workflows (VPS). 30 launchd plist jobs (local). Eyes dashboard monitors all.
Anthropic primary. Voyage for embeddings. Zero OpenAI surface. Zero-data-retention agreements.
5-min launchd scan. Failure detection <10 min. Structured logs. Alert via webhook.
§03 — Automation
Every agent runs on a schedule. Every failure is logged. Every recovery is automatic.
§04 — Security & compliance
Designed for a 150-person regulated CDMO environment.
RLS enforced on all 6 databases. Per-user data isolation. No shared service keys in frontend.
All API keys in Supabase Vault or GitHub Secrets. Zero hardcoded credentials in source.
PROJ-028: Public / Internal / Restricted classification. 30-prompt red-team test suite.
.agent/protocols/permissions.md: always/approval/never rules. No autonomous destructive writes.
§05 — Data flow
Six databases with clear ownership. Data flows downstream, never back.
SFDC (CRM) ────────┐
Monday (OKRs) ──────┤
Gmail (Email) ──────┤──→ [AGENTS] ──→ Reporting DB ──→ CEO Daily / ELT Weekly
LinkedIn ───────────┤ │
Firecrawl (Web) ────┘ ├──→ RAG DB (295K chunks)
├──→ AI OS DB (skills, agents, evals)
└──→ Transfer DB (competitive intel)
[LOVABLE APPS] ←── read ── Reporting DB + AI OS DB
[EDGE FUNCTIONS] ←── invoke ── Lovable Apps + n8n + launchd agents
Questions? This is the actual production system — happy to walk through any layer live.