All projects

Ragnarok: A Marketing Department in Software

Full-StackAnalytics Engineering
Screenshot of Ragnarok: A Marketing Department in Software

Ragnarok does a marketing department's job in software. A campaign starts with an audience, runs through a legal-first exclusion waterfall and a risk tier, routes the offer, checks it against the budget, ships, measures its A/B result, and writes the outcome back to a CRM. The domain is modeled on real rules (advisory, not legally reviewed): Reg Z disclosures, contact-consent exclusions, and fair-lending guardrails for the card bank, door hangers and Nextdoor drops for the landscapers. Everything runs on seeded synthetic businesses, so the whole system rebuilds the same way from a cold clone. The public demo is a read-only tour of the two landscaping firms.

What it proves

Turning a regulated, multi-tenant business domain into a tested end-to-end system, from audience selection through compliance, delivery, measured results, and CRM write-back.

How it was built

Claude Code through the ROCRLL loop: tests first, review findings adjudicated in a decision log, and CI running lint, typecheck, and the full suite, plus a cold-clone check.

What is real, and where I was learning

What is real: milestones M0 through M11 are merged (one backlog item open, and a split into three apps is planned), with per-user logins, a Postgres deployment, and the public demo. Where it stops: every customer, send, and CRM org is simulated, and the language-model features run on a deterministic stand-in in deployment until a security review clears real model calls. It is a working tool, and the repo is private.

PythonFastAPIPostgreSQLSQLAlchemyAlembicJinjaRailway