All workAndrew Cates.

Project 35 of 84

Executive

Executive: a multi-tenant SaaS that gives every organization an AI executive team of 8 fixed departments (Strategy, Finance, People & Talent, Legal, Operations, Marketing, Product, Board & Investor Comms), each backed by an LLM specialist reachable from a web chat UI or from Slack, Discord, Telegram and Google Chat. It is a clean-room TypeScript reimplementation of the design ideas in OpenExecutive (Python/FastAPI, Apache-licensed), built on the next-starters dashboard template.

Status
In progress
Area
Personal Products & SaaS
Last activity
2026
Stack
  • TypeScript
  • pnpm monorepo
  • Hono
  • Next.js
  • Drizzle ORM
  • Postgres row-level security
  • Supabase Auth
  • Kubb

Highlights

  1. Rebuilt an open-source Python/FastAPI AI-executive product as a clean-room TypeScript multi-tenant SaaS (Hono, Next.js, Drizzle, Supabase, pgvector) across 10 consensus-planned phases: 8 LLM department specialists reachable from web chat, Slack, Discord, Telegram and Google Chat through one shared turn pipeline.
  2. Enforced tenant isolation in 2 layers, app-layer org resolution plus Postgres RLS with separate least-privilege runtime roles per service, backed by governance tests that fail the build when any tenant table lacks a policy; retrofitted RLS onto 11 deferred tables.
  3. Ran 3 security-review waves that closed an identity-takeover path in JIT user provisioning, bound MCP service tokens to an org so they fail closed, narrowed service_role from every public table to 1, and fixed cross-org role escalation in invite and user-role routes.
  4. Built per-organization LLM spend metering at microcent precision across 5 paid call sites, with spend caps enforced on chat turns and document uploads; also fixed a fail-open where zero RLS rows meant unmetered spend.
  5. Took the product from no hosting to live production in one session: 4 Docker targets pushed to ECR and run on CapRover, a one-shot migration job, a dedicated outbox DB role, 2 Vercel frontends, and a custom API domain with TLS, all checked with /health/deep.
  6. Built a bounded multi-turn LLM tool-execution loop with round/call/size limits, untrusted-result wrapping, a side-effect denylist and pre-persistence spend-cap checks on each round.
  7. Moved the frontends to a Kubb v5-generated, committed React Query client on shared @cogs packages, and added the missing impersonation start/end APIs: time-boxed, audited, start limited to super-staff.
  8. Shipped a 36-URL static marketing site whose test suite reads the product's own source and fails when site copy drifts from real departments, channels, tool schemas or impersonation limits; it deploys through a manual workflow on an isolated release runner.