An AI-powered distributed systems failure simulation and LLM evaluation platform.
Generate infrastructure failures • Capture real telemetry • Diagnose with AI • Benchmark against Ground Truth
Modern LLMs can summarize logs, but can they accurately identify the real root cause of infrastructure failures?
FailureForge creates controlled failures inside a distributed environment, captures production-like telemetry, diagnoses incidents using AI, and evaluates the diagnosis against the known ground truth.
Because every incident is intentionally injected, the true root cause is always known—making diagnostic benchmarking objective and reproducible.
- ⚡ Docker-based distributed environment
- 🤖 AI-powered root cause analysis
- 📊 Automatic benchmark generation
- 📈 Precision / Recall / F1 evaluation
- 🔬 Reproducible experiments
- 📦 Exportable benchmark datasets
- 🧪 End-to-end tested
- 🌐 Interactive Next.js dashboard
| Feature | Status |
|---|---|
| Redis Outage Simulation | ✅ |
| PostgreSQL Deadlock Simulation | ✅ |
| Memory Leak Simulation | ✅ |
| Slow Database Simulation | ✅ |
| Telemetry Collection | ✅ |
| Incident Persistence | ✅ |
| AI Diagnosis Engine | ✅ |
| Evaluation Framework | ✅ |
| Interactive Dashboard | ✅ |
User
│
▼
Next.js Dashboard
│
▼
FastAPI Backend / Orchestrator
│
▼
Failure Orchestrator
│
▼
Distributed Environment
(App + PostgreSQL + Redis)
│
▼
Telemetry Collection
│
▼
PostgreSQL
│
▼
AI Diagnosis Engine
│
▼
Evaluation Engine
A complete architecture diagram with Mermaid visualizations is available in ARCHITECTURE.md.
- Python
- FastAPI
- Next.js 15
- TypeScript
- Tailwind CSS
- Docker
- Docker Compose
- PostgreSQL
- Redis
- Gemini API
- Pytest
- Playwright
backend/
├── app/
├── orchestrator/
frontend/
docker/
datasets/
scripts/
docs/
tests/
git clone https://github.com/Zoro-1012/failureforge.git
cd failureforgemake upOpen
http://localhost:3000
Redis Outage
make redis-outageDatabase Deadlock
make deadlockMemory Leak
make memory-leakSlow Database
make slow-databaseList captured incidents
make incidentsFailureForge supports two diagnosis providers.
Create a .env
GEMINI_API_KEY=your_api_keyDIAGNOSIS_PROVIDER=stub docker compose -f docker/docker-compose.yml up -d --force-recreate orchestrator
make demoGenerate benchmark metrics
make evaluation- Launch a failure scenario.
- Infrastructure failure is injected.
- Application emits logs and metrics.
- Telemetry is captured.
- Incident is stored in PostgreSQL.
- AI generates root cause analysis.
- Evaluation compares prediction with ground truth.
- Benchmark metrics are updated.
make testBackend End-to-End
make e2eFrontend Playwright
make e2e-uiPlanned features include:
- Upload any Docker Compose application
- Automatic dependency discovery
- Dynamic fault injection
- AI-generated resilience reports
- Reliability scoring
- Automated remediation recommendations
Current AI benchmarks evaluate language understanding.
FailureForge evaluates whether an AI model can accurately diagnose distributed system failures using real infrastructure telemetry.
It bridges the gap between Reliability Engineering, Chaos Engineering, Observability, and Generative AI.
Contributions, ideas, and feature requests are always welcome.
Please check CONTRIBUTING.md before submitting a pull request.
Please consider giving the repository a Star ⭐.