ALERT: PostgresConnectionPoolExhaustion · checkout-api · critical
Incident investigation
Incident investigation
with receipts.
Every claim in the report points to evidence the system actually collected. Code runs the investigation. One bounded LLM call interprets it.
Why
Fast answers are easy. Trustworthy ones aren't.
Free-roaming agents can call any tool and cite anything. OpsPilot narrows the model's job.
Typical AI triage
- Model decides which tools to call
- Plausible root causes, no proof
- Hard to test or replay
OpsPilot
- Fixed, traceable evidence collection
- Claims validated against cited evidence
- Unknowns reported, not guessed
Investigation flow
From alert to evidence-backed report
Critical alerts take the full path. Warnings take a fast path with a single structured LLM call.
01 Ingest
AlertAlertmanager or direct
Sanitizestrip secrets, normalize
Routecritical → investigate
Resolve appservice + environment
02 Collect
Logswindow · env · pool timeouts
Deploymentssame window → commit
GitHubcommit + changed files
RunbooksRAG chunks, stable IDs
03 Reason
One LLM callindexed evidence only · no tools
04 Verify
Validate refsevery citation must exist
Validate causalitypool setting in a changed file
Reportevidence · unknowns · trace
deterministic codethe only LLM calldeterministic validators
Architecture
The model never holds the controls
Tools sit behind Python contracts. Providers are swappable adapters.
Example
What an investigation returns
Connection pool at 28/30 on checkout-api. The report separates what it saw from what it infers.
alert.json
{ "alertname": "PostgresConnectionPoolExhaustion", "service": "checkout-api", "environment": "production", "severity": "critical", "description": "28/30 connections checked out. Pool 20, overflow 10. p99 wait 2.5s"}
investigation report · route: investigation
OBSERVATIONS • deployment [12] commit 40e57ae, status success • runbook [16] postgres-connection-poolHYPOTHESIS supported_inference A recent deployment that changed database pool settings may have contributed. refs [2..12]UNKNOWNS ? no pool metrics history collected ? no pg_stat_activity evidenceNEXT verify limits and waiters, then roll back or resize only after capacity check
Demo
Watch OIE investigate an incident
Register an incident, trigger the investigation, and inspect the resulting trace — end-to-end in 68 seconds.
Open source
Read the code. Break the pipeline.
git clone https://github.com/abhishek09827/Operational-Intelligence-Engine.git