← All work

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
Aegis abstention screen: “Not enough evidence”, no root cause named, with the next checks to run and the coverage gaps that stopped it.
An abstention: no root cause named — the next checks to run instead, and the coverage gaps that stopped it.

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.

  1. 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.
  2. It names a root cause only when those checks support it. Otherwise the verdict is “not enough evidence”, with the next checks to run.
  3. 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.
  4. Telemetry reaches the model only inside a randomly delimited, explicitly untrusted data block, so instructions injected into logs are treated as data.
  5. 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.
optionalAlerts & webhooksAlertmanagerIngestiondedupe · groupingPostgreSQL queueSKIP LOCKED + leasesWorkerinvestigation jobsCollectorsPrometheus · Loki · JaegerTelemetry snapshotredactedPure RCA corepass · fail · not evaluableEvidence graphverdict · checks · next checksBounded LLMselect · explain · lower onlyFastAPI + React UIlive progress (SSE)Remediationtwo-person approvalAudit loghash-chained
Alerts are ingested and queued in PostgreSQL. A worker collects metrics, logs and traces into a redacted snapshot, which a pure analysis core turns into an evidence graph with a verdict. An optional, bounded LLM can only explain or lower confidence. Results reach the React UI through the API, and every action is written to a hash-chained audit log.
  • Python
  • FastAPI
  • PostgreSQL
  • TypeScript
  • React
  • Docker
  • OpenTelemetry
  • 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).

  • 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.