AegisHeal
Self-healing platform: an AI agent detects service failures, finds the root cause and recovers them in 2–5 seconds
Overview
AegisHeal monitors running services, detects failures, collects logs and metrics, lets an AI agent analyse the root cause, picks a safe predefined recovery action (restart, rollback, clear cache, reconnect, retry, throttle), executes it and verifies the service is healthy again. Every incident is stored so the agent learns which actions work best.
Problem
When a service crashes at 3am, an on-call engineer still has to wake up, read logs and run the same restart or rollback they ran last time. Most outages are known failure types with known fixes, but nothing applies them safely and automatically.
Solution
A 7-step agent pipeline — monitor, detect, collect, analyse, decide, recover, verify — with strict guardrails: whitelisted actions only, confidence thresholds, human approval for risky moves, cooldowns, a circuit breaker and three autonomy modes (autonomous, supervised, observe-only).
Architecture
- 1Monitor loop probes 3 real micro-services every 2 seconds (health, latency, CPU, memory, error rate, jobs, dependencies)
- 27 detection rules: crash, error-rate spike, memory leak, CPU saturation, high latency, dependency loss, failing jobs
- 3Root-cause analyser scores 7 failure signatures with evidence; optional Claude analysis with schema validation and a local second opinion
- 4Decision engine ranks actions using playbooks plus learned success rates per (failure, action)
- 5Recovery executor runs 6 predefined DevOps actions; verifier requires N consecutive healthy checks
- 6Chaos lab injects 7 real faults; React dashboard streams live state over Server-Sent Events
- 7JWT in httpOnly cookies, RBAC (admin / operator / viewer), zod validation, rate limiting and an audit log
Technical Challenges
- Letting an agent act on infrastructure without letting it do damage — solved with whitelists, approval for high-risk actions and a blast-radius limit.
- Proving a recovery actually worked, not just that a command ran — the verifier needs consecutive healthy probes before closing an incident.
- Keeping recovery independent of the network — if the Claude call fails or returns invalid output, the local engine takes over.
Results
- Three simultaneous injected failures (crash, memory leak, bad release) recovered automatically in 2–5 seconds each.
- 143 automated tests, including real end-to-end tests that crash real processes and assert recovery.
- Runs locally with no database, no Docker and no API key required.