Core Technologies' AI employee. See PRD.md.
-
packages/policy: the rules layer (PRD FR3). It checks every action Fola plans (SQL, git, migrations, file writes, outgoing text) against the workspace's rules before the tool gateway runs it. Rules are data (src/seed/core-technologies.tsholds workspace #1's seed rules); the check types insrc/checks.tsare the only code. -
packages/db: Postgres schema (migrations/), migration runner, seed for workspace #1, and rule loading/approval. The runner refuses to run if an applied migration file was edited or deleted. Tests run on PGlite (in-process Postgres).
pnpm install
pnpm test
pnpm typecheck
# Supabase: use the Session pooler connection string (port 5432), not the
# Transaction pooler (6543); the migrator needs a session for its transactions.
DATABASE_URL=postgres://... pnpm db:migrate # apply pending migrations
DATABASE_URL=postgres://... pnpm db:seed # create Core Technologies workspace + seed rules