# aenealabs/aura architecture

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

- Interactive diagram: https://gitdiagram.com/aenealabs/aura
- Repository: https://github.com/aenealabs/aura

## Overview

Aura is an enterprise code-security platform whose principal workflow runs from repository ingestion and vulnerability analysis through GraphRAG context, agent-generated remediation, isolated validation, and human approval. The README documents these stages and additional governance and assurance capabilities. Source excerpts confirm ingestion, retrieval, planning, and some UI/API behavior; other links below are documented in the README rather than verified from implementation excerpts.

Main entry points: [`src/api/main.py`](https://github.com/aenealabs/aura/blob/main/src/api/main.py) (Aura API), [`src/agents/agent_orchestrator.py`](https://github.com/aenealabs/aura/blob/main/src/agents/agent_orchestrator.py) (Agent orchestration), [`src/services/git_ingestion_service.py`](https://github.com/aenealabs/aura/blob/main/src/services/git_ingestion_service.py) (Git ingestion), [`src/services/context_retrieval_service.py`](https://github.com/aenealabs/aura/blob/main/src/services/context_retrieval_service.py) (GraphRAG retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Platform entry"]
  node_api["Aura API<br/>[main.py]"]
  node_repo_api["Repository endpoints"]
end

subgraph group_analysis["Code analysis"]
  node_ingestion["Git ingestion"]
  node_ast["AST parsing"]
  node_retrieval["GraphRAG retrieval"]
  node_planner["Query planning"]
  node_graph_store[("Graph database<br/>[graph_database.py]")]
  node_vector_store[("Vector database<br/>[vector_database.py]")]
end

subgraph group_remediation["Remediation workflow"]
  node_orchestrator["Agent orchestration"]
  node_coder["Patch generation<br/>[coder_agent.py]"]
  node_reviewer["Patch review"]
  node_validator["Patch validation<br/>[agent_worker.py]"]
  node_sandbox["Isolated sandbox"]
end

subgraph group_governance["Governance and assurance"]
  node_constitutional["Constitutional AI"]
  node_approvals["Approval workflows"]
  node_assurance["Model assurance"]
  node_licenses["License compliance<br/>[license_engine.py]"]
end

subgraph group_experience["User experience"]
  node_web_app["Aura web app<br/>[App.jsx]"]
  node_scanner_ui["Scanner dashboard<br/>[ScanDetailPage.jsx]"]
  node_approval_ui["Approval dashboard"]
end

node_engineer(("Security engineer"))

node_engineer -->|"uses"| node_web_app
node_web_app -.->|"requests"| node_api
node_engineer -.->|"registers repository"| node_repo_api
node_api -->|"initializes"| node_ingestion
node_repo_api -->|"onboards repository"| node_ingestion
node_ingestion -->|"parses files"| node_ast
node_ingestion -.->|"indexes structure"| node_graph_store
node_ingestion -.->|"indexes embeddings"| node_vector_store
node_api -->|"retrieves context"| node_retrieval
node_retrieval -->|"plans searches"| node_planner
node_retrieval -->|"queries graph"| node_graph_store
node_retrieval -.->|"searches vectors"| node_vector_store
node_api -->|"starts remediation"| node_orchestrator
node_orchestrator -->|"dispatches coding"| node_coder
node_orchestrator -->|"dispatches review"| node_reviewer
node_orchestrator -->|"dispatches validation"| node_validator
node_validator -->|"tests patch"| node_sandbox
node_orchestrator -->|"checks principles"| node_constitutional
node_orchestrator -->|"requests approval"| node_approvals
node_approvals -.->|"presents review"| node_approval_ui
node_engineer -->|"reviews patch"| node_approval_ui
node_engineer -.->|"views findings"| node_scanner_ui
node_api -.->|"runs assurance"| node_assurance
node_api -.->|"checks licenses"| node_licenses

click node_api "https://github.com/aenealabs/aura/blob/main/src/api/main.py"
click node_repo_api "https://github.com/aenealabs/aura/blob/main/src/api/repository_endpoints.py"
click node_ingestion "https://github.com/aenealabs/aura/blob/main/src/services/git_ingestion_service.py"
click node_ast "https://github.com/aenealabs/aura/blob/main/src/agents/ast_parser_agent.py"
click node_retrieval "https://github.com/aenealabs/aura/blob/main/src/services/context_retrieval_service.py"
click node_planner "https://github.com/aenealabs/aura/blob/main/src/agents/query_planning_agent.py"
click node_graph_store "https://github.com/aenealabs/aura/blob/main/src/abstractions/graph_database.py"
click node_vector_store "https://github.com/aenealabs/aura/blob/main/src/abstractions/vector_database.py"
click node_orchestrator "https://github.com/aenealabs/aura/blob/main/src/agents/agent_orchestrator.py"
click node_coder "https://github.com/aenealabs/aura/blob/main/src/agents/coder_agent.py"
click node_reviewer "https://github.com/aenealabs/aura/blob/main/src/agents/architecture_review_agent.py"
click node_validator "https://github.com/aenealabs/aura/blob/main/src/agents/agent_worker.py"
click node_constitutional "https://github.com/aenealabs/aura/blob/main/src/services/constitutional_ai/llm_judge_service.py"
click node_approvals "https://github.com/aenealabs/aura/blob/main/src/api/approval_endpoints.py"
click node_assurance "https://github.com/aenealabs/aura/blob/main/src/lambda/calibration_pipeline.py"
click node_licenses "https://github.com/aenealabs/aura/blob/main/src/services/supply_chain/license_engine.py"
click node_web_app "https://github.com/aenealabs/aura/blob/main/frontend/src/App.jsx"
click node_scanner_ui "https://github.com/aenealabs/aura/blob/main/frontend/src/components/scanner/ScanDetailPage.jsx"
click node_approval_ui "https://github.com/aenealabs/aura/blob/main/frontend/src/components/ApprovalDashboard.jsx"

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_api,node_repo_api toneBlue
class node_ingestion,node_ast,node_retrieval,node_planner,node_graph_store,node_vector_store toneAmber
class node_orchestrator,node_coder,node_reviewer,node_validator,node_sandbox toneMint
class node_constitutional,node_approvals,node_assurance,node_licenses toneRose
class node_web_app,node_scanner_ui,node_approval_ui,node_engineer toneIndigo
```

## Components

### Platform entry

- [Aura API](https://github.com/aenealabs/aura/blob/main/src/api/main.py): `src/api/main.py`
- [Repository endpoints](https://github.com/aenealabs/aura/blob/main/src/api/repository_endpoints.py): `src/api/repository_endpoints.py`

### Code analysis

- [Git ingestion](https://github.com/aenealabs/aura/blob/main/src/services/git_ingestion_service.py): `src/services/git_ingestion_service.py`
- [AST parsing](https://github.com/aenealabs/aura/blob/main/src/agents/ast_parser_agent.py): `src/agents/ast_parser_agent.py`
- [GraphRAG retrieval](https://github.com/aenealabs/aura/blob/main/src/services/context_retrieval_service.py): `src/services/context_retrieval_service.py`
- [Query planning](https://github.com/aenealabs/aura/blob/main/src/agents/query_planning_agent.py): `src/agents/query_planning_agent.py`
- [Graph database](https://github.com/aenealabs/aura/blob/main/src/abstractions/graph_database.py): `src/abstractions/graph_database.py`
- [Vector database](https://github.com/aenealabs/aura/blob/main/src/abstractions/vector_database.py): `src/abstractions/vector_database.py`

### Remediation workflow

- [Agent orchestration](https://github.com/aenealabs/aura/blob/main/src/agents/agent_orchestrator.py): `src/agents/agent_orchestrator.py`
- [Patch generation](https://github.com/aenealabs/aura/blob/main/src/agents/coder_agent.py): `src/agents/coder_agent.py`
- [Patch review](https://github.com/aenealabs/aura/blob/main/src/agents/architecture_review_agent.py): `src/agents/architecture_review_agent.py`
- [Patch validation](https://github.com/aenealabs/aura/blob/main/src/agents/agent_worker.py): `src/agents/agent_worker.py`
- **Isolated sandbox**

### Governance and assurance

- [Constitutional AI](https://github.com/aenealabs/aura/blob/main/src/services/constitutional_ai/llm_judge_service.py): `src/services/constitutional_ai/llm_judge_service.py`
- [Approval workflows](https://github.com/aenealabs/aura/blob/main/src/api/approval_endpoints.py): `src/api/approval_endpoints.py`
- [Model assurance](https://github.com/aenealabs/aura/blob/main/src/lambda/calibration_pipeline.py): `src/lambda/calibration_pipeline.py`
- [License compliance](https://github.com/aenealabs/aura/blob/main/src/services/supply_chain/license_engine.py): `src/services/supply_chain/license_engine.py`

### User experience

- [Aura web app](https://github.com/aenealabs/aura/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Scanner dashboard](https://github.com/aenealabs/aura/blob/main/frontend/src/components/scanner/ScanDetailPage.jsx): `frontend/src/components/scanner/ScanDetailPage.jsx`
- [Approval dashboard](https://github.com/aenealabs/aura/blob/main/frontend/src/components/ApprovalDashboard.jsx): `frontend/src/components/ApprovalDashboard.jsx`

### Other components

- **Security engineer**

## Connections

- Security engineer → Aura web app: uses (evidence: `README.md`)
- Aura web app → Aura API: requests
- Security engineer → Repository endpoints: registers repository
- Aura API → Git ingestion: initializes (evidence: `src/api/main.py`)
- Repository endpoints → Git ingestion: onboards repository (evidence: `src/api/repository_endpoints.py`)
- Git ingestion → AST parsing: parses files (evidence: `src/services/git_ingestion_service.py`)
- Git ingestion → Graph database: indexes structure
- Git ingestion → Vector database: indexes embeddings
- Aura API → GraphRAG retrieval: retrieves context (evidence: `README.md`)
- GraphRAG retrieval → Query planning: plans searches (evidence: `src/services/context_retrieval_service.py`)
- GraphRAG retrieval → Graph database: queries graph (evidence: `src/services/context_retrieval_service.py`)
- GraphRAG retrieval → Vector database: searches vectors
- Aura API → Agent orchestration: starts remediation (evidence: `README.md`)
- Agent orchestration → Patch generation: dispatches coding (evidence: `README.md`)
- Agent orchestration → Patch review: dispatches review (evidence: `README.md`)
- Agent orchestration → Patch validation: dispatches validation (evidence: `README.md`)
- Patch validation → Isolated sandbox: tests patch (evidence: `README.md`)
- Agent orchestration → Constitutional AI: checks principles (evidence: `README.md`)
- Agent orchestration → Approval workflows: requests approval (evidence: `README.md`)
- Approval workflows → Approval dashboard: presents review
- Security engineer → Approval dashboard: reviews patch (evidence: `README.md`)
- Security engineer → Scanner dashboard: views findings
- Aura API → Model assurance: runs assurance
- Aura API → License compliance: checks licenses
