Eliksir is a production SaaS platform built with AI-assisted development (Claude, Copilot, ChatGPT). It consists of a React frontend and Node.js backend, deployed to production and serving real users.
Challenge: AI coding tools frequently violated architectural boundaries, deleted protected files, and pushed insecure code - resulting in CI failures and near-production incidents.
Solution: Cerber Core enforces a CERBER.md contract that defines project rules. Every commit is validated before merge, and CI revalidates before deployment.
- ❌ Claude deleted
.github/workflows/deploy.ymlduring refactoring - ❌ Copilot suggested hardcoded API keys in backend routes
- ❌ ChatGPT removed TypeScript schema files during "cleanup"
- ❌ Schema drift between frontend and backend (breaking API changes)
- ❌ Protected routes exposed publicly due to AI "optimization"
Impact:
- 12+ CI failures per week
- 3 emergency rollbacks
- Countless hours debugging "what changed?"
- Near-miss: hardcoded credentials almost reached staging
Defined clear rules:
- Protected files (workflows, schemas, security configs)
- Forbidden patterns (hardcoded secrets, dangerous SQL)
- Required schemas (frontend-backend contract)
- Health check endpoints (validate deployments)
Blocks commits that violate contract:
🛡️ Cerber Guardian: Validating staged files...
❌ Violation: Attempting to delete protected file .github/workflows/cerber.yml
❌ Violation: Forbidden pattern detected: 'apiKey=sk_live_'
🚫 Commit blockedEvery push revalidated in GitHub Actions:
- Cerber runs before tests
- Catches violations that bypass pre-commit
- Protects
cerber.ymlworkflow itself (self-healing)
- ✅ 47 violations caught before reaching CI
- ✅ 12 emergency incidents prevented (hardcoded secrets, schema breaks)
- ✅ Zero architectural violations in production since Cerber adoption
- ✅ 87% reduction in CI failures (from 12/week to <2/week)
- ✅ 100% deployment health check pass rate
- AI agents can iterate fast, knowing Cerber prevents disasters
- Onboarding new AI tools (Cursor, Windsurf) safe with contract in place
CERBER.mdserves as living documentation for AI and humans- Confident refactors knowing boundaries are enforced
Frontend Pipeline:
- URL: https://github.com/Agaslez/Eiksir-front-dashboard/actions/runs/20668597387
- Shows: Guardian Schema Check, lint, tests, Cerber validation ✅
Backend Pipeline:
- URL: https://github.com/Agaslez/Eliksir-Backend-front-dashboard/actions/runs/20664365046
- Shows: Quality Gate, deploy checks, Cerber integrity ✅
These are real production deployments, not staged demos.
Want to protect your project like Eliksir? Here's how:
npm i -D cerber-core
npx cerber initEdit CERBER.md with your rules:
- Protected files (workflows, configs, schemas)
- Forbidden patterns (secrets, dangerous code)
- Required schemas (API contracts)
- Health checks (post-deploy validation)
Use the Cerber Contract Translator prompt to generate from your roadmap.
npx cerber init # Second run generates hooks + workflows
npx cerber doctor # Verify setupgit add .
git commit -m "feat: add Cerber protection"
# Guardian validates before commit- Push to GitHub → Cerber validates in Actions
- Add branch protection: require
cerber-cijob to pass
- Add health endpoint to your server
- Cerber validates after deployment
- Auto-rollback if health check fails
✅ Contract-first - Define rules before AI generates code
✅ Pre-commit + CI - Dual validation catches everything
✅ Self-healing - Cerber protects its own workflows
✅ Living documentation - CERBER.md evolves with project
❌ Linters alone (don't catch architectural violations) ❌ Code reviews only (too late, too slow) ❌ "Just be careful" (AI tools are fast, mistakes happen)
- Start with minimal contract, grow as needed
- Use
CERBER_OVERRIDEfor emergency hotfixes (TTL required) - Review Guardian blocks weekly - tighten or relax rules
- Share contract with AI agents in every prompt
- Frontend: React + TypeScript + Vite
- Backend: Node.js + Express + TypeScript
- CI/CD: GitHub Actions
- Deployment: Render (backend), Vercel (frontend)
- Guardrails: Cerber Core v1.1.10
Cerber Core prevented 47 production bugs in 8 months by enforcing a simple contract. It doesn't slow down AI-assisted development - it makes it safe to move fast.
Without Cerber, Eliksir would have shipped hardcoded secrets, broken schemas, and deleted CI workflows to production. With Cerber, AI tools iterate freely within defined boundaries.
The contract is the foundation. AI builds on top of it. Cerber enforces it.
- 📖 Full docs: github.com/Agaslez/cerber-core
- 💬 Discord: Join community
- 🐛 Issues: Report bugs
Case study author: Stefan Pitek (Eliksir creator)
Last updated: January 5, 2026