Incident root-cause analysis
Aegis
When a microservice breaks, Aegis names the service that caused it, shows the evidence — and says so plainly when it can’t tell.
Telemetry is noisy and incomplete. The hard part is never sounding more confident than the data: a deterministic engine decides, and the LLM may only explain or lower confidence.
- RoleSolo project · design, architecture decisions, acceptance criteria, verification
- Year2026
- StackPython · FastAPI · PostgreSQL · TypeScript · React · Docker · OpenTelemetry

01Problem
During an outage, on-call engineers have metrics, logs and traces from dozens of services and very little time. An AI assistant that guesses makes it worse: a confident wrong root cause sends the whole team down the wrong path.
02Approach
- A deterministic root-cause engine tests each candidate service against explicit checks that can pass, fail or be “not evaluable”: baseline validity, failure propagation in traces, isolation, recent changes, agreement across metrics, logs and traces.
- It names a root cause only when those checks support it. Otherwise the verdict is “not enough evidence”, with the next checks to run.
- An optional LLM may pick among the engine’s candidates, explain them with citations and lower confidence — never raise it. That rule is enforced by a validator in code, not by a prompt.
- Telemetry reaches the model only inside a randomly delimited, explicitly untrusted data block, so instructions injected into logs are treated as data.
- Under the hood: tenant isolation with PostgreSQL row-level security, a job queue in PostgreSQL (SKIP LOCKED + leases), SSRF-safe egress, a hash-chained audit log, and a pure, clock-free analysis core.
03Architecture
04Stack
- Python
- FastAPI
- PostgreSQL
- TypeScript
- React
- Docker
- OpenTelemetry
05What I owned
- Scope and the core rule: deterministic checks decide; the LLM may only explain or lower confidence.
- Architecture decisions, recorded as ADRs and reviewed with LLM-council sessions.
- Acceptance criteria and the verification ledger that every claim in the README points to.
AI assistance: Claude Code wrote most of the implementation under those decisions (stated in the repo’s README).
06Verified results
- 2 partly right · 6 “can’t tell” · 0 confidently wrongon 8 held-out real incident captures (OpenTelemetry Demo)0 fully correct. Abstaining is the design goal, but it means this shows no confident wrong answers on degraded telemetry — not accuracy. Small sample, no baseline comparison yet.Source: aegis/README.md · Results · read 2026-11-21
- 15 / 15 passsynthetic regression scenarios: 12 correct, 3 appropriate abstentions, 0 confidently wrongA regression gate written alongside the engine — not an accuracy estimate.Source: aegis/README.md · Results · read 2026-11-21
- 366 backend tests137 of them against real PostgreSQL; plus mypy --strict, 81 frontend unit tests and 3 Playwright end-to-end tests, all in CISource: aegis/README.md · Results (CI) · read 2026-11-21
- v1.0.0 → v1.0.1tagged releases with a one-command Docker demoSource: GitHub releases · read 2026-11-09
- 2.3× fasterinvestigations in the research prototype after switching to error-focused queries (137 s vs 312 s)Source: aegis/README.md · Research history · read 2026-11-21
What these numbers don’t show
- Demo mode only — there is no production deployment.
- No live LLM output has been accepted yet: with a 1B local model, every assessment broke the bounds and was rejected, and the deterministic verdict stood.
- Accuracy beyond these benchmarks is unmeasured; thresholds are engineering defaults, not calibrated.
07More
