AI-assisted incident-response system that constructs and maintains a causal memory of production incidents: what happened, what intervention was attempted, whether it worked, under what conditions it worked, and what side effects occurred.
Traditional incident-response systems and post-mortem repositories merely store text logs and search for superficially similar incidents. However, in distributed software production environments:
CausalOps creates a structured causal operational memory connecting:
incident
├── conditions (e.g. recent deployment, connection growth)
├── symptoms (e.g. DB saturation, latency spikes, 504 timeouts)
├── causes (e.g. unclosed ORM session handles)
├── interventions (e.g. rollback, restart, capacity scale)
├── outcomes (e.g. successful in 28s, temporary recovery, failed)
└── learnings (e.g. "scaling DB does not resolve code connection leaks")
When a new incident occurs, CausalOps:
┌─────────────────────────────────────────────────────────────┐
│ CAUSALOPS UI │
│ Next.js 14 App Router + Tailwind CSS + Lucide Icons │
├──────────────────────────────┬──────────────────────────────┤
│ Interactive React Flow Graph │ Recharts Telemetry Trends │
├──────────────────────────────┼──────────────────────────────┤
│ Counterfactual Reasoning │ Human-in-the-Loop Approval │
└──────────────────────────────┴──────────────────────────────┘
│
Next.js API Layer
│
┌────────────────────┼────────────────────┐
│ │ │
Contextual Relevance AI Engine Prisma ORM
Scoring Algorithm OpenAI + Fallback SQLite DB
│ │
Operational Memory Causal Graphs &
& Learned Rules Decision Ledger
For any candidate historical intervention, relevance to current incident state is computed as:
\[\text{Relevance} = 0.35 \cdot S_{\text{conditions}} + 0.20 \cdot S_{\text{service}} + 0.15 \cdot S_{\text{deployment}} + 0.20 \cdot S_{\text{causal}} + 0.10 \cdot R_{\text{recency}}\]Normalized strictly between 0.00 and 1.00.
reactflow)gpt-4o-mini) with built-in deterministic causal fallback# 1. Install dependencies
npm install
# 2. Configure environment
cp .env.example .env
# 3. Synchronize database schema
npx prisma db push
# 4. Seed operational database (8 incidents, 12 interventions, 8 learned rules)
npm run seed
# 5. Start development server
npm run dev
Open http://localhost:3000 in your browser.
http://localhost:3000.CRITICAL ALERT: SEV-1 INCIDENT INC-1042.checkout v4.7.2.INC-0981: Rollback checkout deployment (✓ Successful, MTTR 4m 12s, Relevance 0.94).INC-0873: Restart pods (⚠ Temporary recovery, recurred in 11 minutes).INC-0762: Scale database (✕ Failed, leak consumed added capacity).LOW), and safety guarantee.14:41:03 Rollback initiated
14:41:05 Pods terminating
14:41:12 New version healthy
14:41:19 Error rate decreasing
14:41:31 Recovery confirmed: 28 seconds
{
"rule": "Rollback is effective when checkout deployment is followed by rapid DB connection growth.",
"conditions": ["recent deployment", "connection growth", "checkout latency increase"],
"negative_conditions": ["database-only saturation"],
"confidence": 0.88
}
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/incidents |
List all production incidents |
GET |
/api/incidents/:id |
Fetch incident state, telemetry, and causal edges |
POST |
/api/incidents |
Create a new incident |
POST |
/api/incidents/:id/analyze |
Run AI analysis with historical memory matching |
GET |
/api/memory |
Retrieve scored historical intervention experiences |
GET |
/api/memory/:id |
Get individual memory card details |
GET |
/api/graph/:incidentId |
Get React Flow node and edge definitions |
GET |
/api/interventions |
List interventions catalog |
POST |
/api/interventions/:id/simulate |
Execute dry-run simulation and update memory |
GET |
/api/decisions |
Audit log of human approvals & execution outcomes |
POST |
/api/decisions |
Create decision record |
GET |
/api/learnings |
List extracted operational rules |
POST |
/api/learnings |
Save post-incident learning rule |
CausalOps explicitly does not modify cloud infrastructure, execute shell commands, or perform autonomous remediation. All actions are executed against a safe dry-run simulation sandbox to evaluate cognitive reasoning without risk to production environments.