# abhay13-11/aegis-ai-sre architecture

> Architecture diagram of the GitHub repository abhay13-11/aegis-ai-sre, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhay13-11/aegis-ai-sre
- Repository: https://github.com/abhay13-11/aegis-ai-sre

## Overview

AEGIS is an AI-SRE platform for diagnosing microservice incidents and safely verifying remediation. Operators use the web dashboard to inspect service health, topology, incidents, evidence, investigations, and remediation; the backend gathers telemetry, detects anomalies, ranks root causes, supports bounded investigation, and gates and verifies actions. The platform also offers fault injection and research benchmarks. The README documents the end-to-end stages, while sampled source confirms key implementations and some calls; links based only on documented architecture cite the README.

Main entry points: [`engine/main.py`](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/main.py) (REST API), [`engine/telemetry/pipeline.py`](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/pipeline.py) (Telemetry Pipeline), [`web/src/App.tsx`](https://github.com/abhay13-11/aegis-ai-sre/blob/main/web/src/App.tsx) (Dashboard App), [`engine/agent/tools.py`](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/agent/tools.py) (Read-only Tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Operator Dashboard"]
  node_app["Dashboard App<br/>[App.tsx]"]
  node_api["Web API Client<br/>[api.ts]"]
  node_dashboard_views["Dashboard Views"]
end

subgraph group_platform["Platform API"]
  node_backend["REST API<br/>[main.py]"]
  node_testbed["Microservice Testbed<br/>[testbed_manager.py]"]
end

subgraph group_signals["Signals and Diagnosis"]
  node_telemetry["Telemetry Pipeline<br/>[pipeline.py]"]
  node_metrics[("Metrics Store")]
  node_logs[("Log Store<br/>[log_store.py]")]
  node_traces[("Trace Store<br/>[trace_store.py]")]
  node_detectors["Anomaly Detectors"]
  node_topology["Dependency Graph<br/>[graph.py]"]
  node_fusion["Evidence Fusion<br/>[evidence_fusion.py]"]
  node_incidents["Incident Lifecycle"]
end

subgraph group_response["Investigation and Response"]
  node_investigator["Investigation Agent<br/>[investigator.py]"]
  node_tools["Read-only Tools<br/>[tools.py]"]
  node_policy["Policy Gate<br/>[policy_gate.py]"]
  node_actions["Action Catalog<br/>[action_catalog.py]"]
  node_executor["Execute and Verify"]
end

subgraph group_experiments["Chaos and Evaluation"]
  node_faults["Fault Injection<br/>[fault_injector.py]"]
  node_scenarios["Chaos Scenarios<br/>[scenarios.py]"]
  node_benchmarks["Research Benchmarks<br/>[main.py]"]
end

node_operator(("SRE Operator"))

node_operator -->|"uses"| node_app
node_app -->|"calls"| node_api
node_app -->|"renders"| node_dashboard_views
node_api -->|"requests"| node_backend
node_backend -->|"manages traffic"| node_testbed
node_backend -.->|"collects signals"| node_telemetry
node_telemetry -->|"records metrics"| node_metrics
node_telemetry -->|"records logs"| node_logs
node_telemetry -->|"records spans"| node_traces
node_backend -.->|"detects anomalies"| node_detectors
node_detectors -->|"queries samples"| node_metrics
node_backend -.->|"uses graph"| node_topology
node_backend -.->|"ranks causes"| node_fusion
node_backend -.->|"tracks incidents"| node_incidents
node_backend -.->|"starts investigation"| node_investigator
node_investigator -->|"queries evidence"| node_tools
node_tools -->|"reads signals"| node_telemetry
node_tools -->|"reads graph"| node_topology
node_backend -.->|"gates actions"| node_policy
node_backend -.->|"proposes actions"| node_actions
node_backend -.->|"executes and verifies"| node_executor
node_backend -.->|"injects faults"| node_faults
node_scenarios -.->|"defines fault cases"| node_faults
node_backend -.->|"serves evaluations"| node_benchmarks

click node_app "https://github.com/abhay13-11/aegis-ai-sre/blob/main/web/src/App.tsx"
click node_api "https://github.com/abhay13-11/aegis-ai-sre/blob/main/web/src/api.ts"
click node_dashboard_views "https://github.com/abhay13-11/aegis-ai-sre/tree/main/web/src/components"
click node_backend "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/main.py"
click node_testbed "https://github.com/abhay13-11/aegis-ai-sre/blob/main/services/testbed_manager.py"
click node_telemetry "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/pipeline.py"
click node_metrics "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/metrics_collector.py"
click node_logs "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/log_store.py"
click node_traces "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/trace_store.py"
click node_detectors "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/detectors/detector_manager.py"
click node_topology "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/topology/graph.py"
click node_fusion "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/rca/evidence_fusion.py"
click node_incidents "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/rca/incident_manager.py"
click node_investigator "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/agent/investigator.py"
click node_tools "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/agent/tools.py"
click node_policy "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/policy_gate.py"
click node_actions "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/action_catalog.py"
click node_executor "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/executor_and_verifier.py"
click node_faults "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/chaos/fault_injector.py"
click node_scenarios "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/chaos/scenarios.py"
click node_benchmarks "https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_api,node_dashboard_views toneBlue
class node_backend,node_testbed toneAmber
class node_telemetry,node_metrics,node_logs,node_traces,node_detectors,node_topology,node_fusion,node_incidents toneMint
class node_investigator,node_tools,node_policy,node_actions,node_executor toneRose
class node_faults,node_scenarios,node_benchmarks,node_operator toneIndigo
```

## Components

### Operator Dashboard

- [Dashboard App](https://github.com/abhay13-11/aegis-ai-sre/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [Web API Client](https://github.com/abhay13-11/aegis-ai-sre/blob/main/web/src/api.ts): `web/src/api.ts`
- [Dashboard Views](https://github.com/abhay13-11/aegis-ai-sre/tree/main/web/src/components): `web/src/components`

### Platform API

- [REST API](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/main.py): `engine/main.py`
- [Microservice Testbed](https://github.com/abhay13-11/aegis-ai-sre/blob/main/services/testbed_manager.py): `services/testbed_manager.py`

### Signals and Diagnosis

- [Telemetry Pipeline](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/pipeline.py): `engine/telemetry/pipeline.py`
- [Metrics Store](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/metrics_collector.py): `engine/telemetry/metrics_collector.py`
- [Log Store](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/log_store.py): `engine/telemetry/log_store.py`
- [Trace Store](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/telemetry/trace_store.py): `engine/telemetry/trace_store.py`
- [Anomaly Detectors](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/detectors/detector_manager.py): `engine/detectors/detector_manager.py`
- [Dependency Graph](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/topology/graph.py): `engine/topology/graph.py`
- [Evidence Fusion](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/rca/evidence_fusion.py): `engine/rca/evidence_fusion.py`
- [Incident Lifecycle](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/rca/incident_manager.py): `engine/rca/incident_manager.py`

### Investigation and Response

- [Investigation Agent](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/agent/investigator.py): `engine/agent/investigator.py`
- [Read-only Tools](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/agent/tools.py): `engine/agent/tools.py`
- [Policy Gate](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/policy_gate.py): `engine/remediation/policy_gate.py`
- [Action Catalog](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/action_catalog.py): `engine/remediation/action_catalog.py`
- [Execute and Verify](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/remediation/executor_and_verifier.py): `engine/remediation/executor_and_verifier.py`

### Chaos and Evaluation

- [Fault Injection](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/chaos/fault_injector.py): `engine/chaos/fault_injector.py`
- [Chaos Scenarios](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/chaos/scenarios.py): `engine/chaos/scenarios.py`
- [Research Benchmarks](https://github.com/abhay13-11/aegis-ai-sre/blob/main/engine/main.py): `engine/main.py`

### Other components

- **SRE Operator**

## Connections

- SRE Operator → Dashboard App: uses (evidence: `README.md`)
- Dashboard App → Web API Client: calls (evidence: `web/src/App.tsx`)
- Dashboard App → Dashboard Views: renders (evidence: `web/src/App.tsx`)
- Web API Client → REST API: requests (evidence: `web/src/api.ts`)
- REST API → Microservice Testbed: manages traffic (evidence: `engine/main.py`)
- REST API → Telemetry Pipeline: collects signals
- Telemetry Pipeline → Metrics Store: records metrics (evidence: `engine/telemetry/pipeline.py`)
- Telemetry Pipeline → Log Store: records logs (evidence: `engine/telemetry/pipeline.py`)
- Telemetry Pipeline → Trace Store: records spans (evidence: `engine/telemetry/pipeline.py`)
- REST API → Anomaly Detectors: detects anomalies
- Anomaly Detectors → Metrics Store: queries samples (evidence: `engine/detectors/detector_manager.py`)
- REST API → Dependency Graph: uses graph
- REST API → Evidence Fusion: ranks causes
- REST API → Incident Lifecycle: tracks incidents
- REST API → Investigation Agent: starts investigation
- Investigation Agent → Read-only Tools: queries evidence (evidence: `engine/agent/investigator.py`)
- Read-only Tools → Telemetry Pipeline: reads signals (evidence: `engine/agent/tools.py`)
- Read-only Tools → Dependency Graph: reads graph (evidence: `engine/agent/tools.py`)
- REST API → Policy Gate: gates actions
- REST API → Action Catalog: proposes actions
- REST API → Execute and Verify: executes and verifies
- REST API → Fault Injection: injects faults
- Chaos Scenarios → Fault Injection: defines fault cases
- REST API → Research Benchmarks: serves evaluations (evidence: `engine/main.py`)
