# yashu082/sentineliq-enterprise architecture

> Architecture diagram of the GitHub repository yashu082/sentineliq-enterprise, 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/yashu082/sentineliq-enterprise
- Repository: https://github.com/yashu082/sentineliq-enterprise

## Overview

SentinelIQ is a web platform that turns uploaded PRDs into architecture reviews, risk assessments, and executive reports. The main workflow runs from the React interface through FastAPI audit endpoints to a multi-agent analysis and back to report display; users can also authenticate and access saved audit history. The README documents analysis stages and generated artifacts, while excerpts show orchestration, validation, artifact generation, and persistence. Some frontend-to-API and middleware wiring is documented but not visible in sampled source, so those links cite the README.

Main entry points: [`backend-fastapi/core/orchestrator.py`](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/orchestrator.py) (Agent Orchestrator), [`backend-fastapi/main.py`](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py) (FastAPI Endpoints), [`frontend-react/src/App.jsx`](https://github.com/yashu082/sentineliq-enterprise/blob/main/frontend-react/src/App.jsx) (Review Interface), [`backend-fastapi/core/error_handler.py`](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/error_handler.py) (Error Handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_frontend["Review Interface<br/>[App.jsx]"]
  node_report["Report Viewer<br/>[App.jsx]"]
end

subgraph group_api["API and Operations"]
  node_api["FastAPI Endpoints<br/>[main.py]"]
  node_auth["Authentication<br/>[main.py]"]
  node_health["Health Check<br/>[main.py]"]
  node_limiter["Rate Limiting<br/>[rate_limiter.py]"]
  node_errors["Error Handling<br/>[error_handler.py]"]
  node_logging["Structured Logging<br/>[logging_config.py]"]
end

subgraph group_analysis["Review Pipeline"]
  node_orchestrator["Agent Orchestrator<br/>[orchestrator.py]"]
  node_requirements["Requirements Analysis<br/>[prompts.py]"]
  node_validation["Cross-Agent Validation<br/>[validation.py]"]
  node_planning["Delivery Planning<br/>[prompts.py]"]
  node_risk["Risk Analysis<br/>[prompts.py]"]
  node_insights["Executive Insights<br/>[prompts.py]"]
  node_benchmarks["Compliance Benchmarks<br/>[knowledge_base.py]"]
  node_artifacts["Architecture Artifacts"]
end

subgraph group_state["Persistent State"]
  node_database[("SQLite Audit Store<br/>[manager.py]")]
end

node_user(("Reviewer"))
node_gemini{{"Gemini"}}
node_groq{{"Groq"}}

node_user -->|"submits PRD"| node_frontend
node_frontend -->|"sends audit request"| node_api
node_api -->|"returns report"| node_frontend
node_frontend -->|"renders results"| node_report
node_api -->|"handles sign-in"| node_auth
node_api -->|"reads and writes"| node_database
node_api -->|"runs audit"| node_orchestrator
node_api -->|"checks status"| node_health
node_api -.->|"limits requests"| node_limiter
node_api -.->|"handles failures"| node_errors
node_errors -->|"logs errors"| node_logging
node_orchestrator -->|"runs phase"| node_requirements
node_orchestrator -->|"checks findings"| node_validation
node_orchestrator -->|"runs phase"| node_planning
node_orchestrator -->|"runs phase"| node_risk
node_orchestrator -->|"runs phase"| node_insights
node_orchestrator -->|"uses rubric"| node_benchmarks
node_orchestrator -->|"generates diagrams"| node_artifacts
node_orchestrator -->|"calls model"| node_gemini
node_orchestrator -->|"calls model"| node_groq
node_orchestrator -->|"stores report"| node_database

click node_frontend "https://github.com/yashu082/sentineliq-enterprise/blob/main/frontend-react/src/App.jsx"
click node_report "https://github.com/yashu082/sentineliq-enterprise/blob/main/frontend-react/src/App.jsx"
click node_api "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py"
click node_auth "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py"
click node_health "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py"
click node_limiter "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/rate_limiter.py"
click node_errors "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/error_handler.py"
click node_orchestrator "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/orchestrator.py"
click node_requirements "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py"
click node_validation "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/validation.py"
click node_planning "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py"
click node_risk "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py"
click node_insights "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py"
click node_benchmarks "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/config/knowledge_base.py"
click node_artifacts "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/architecture_generator.py"
click node_database "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/database/manager.py"
click node_logging "https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/logging_config.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_frontend,node_report,node_user toneBlue
class node_api,node_auth,node_health,node_limiter,node_errors,node_logging toneAmber
class node_orchestrator,node_requirements,node_validation,node_planning,node_risk,node_insights,node_benchmarks,node_artifacts toneMint
class node_database toneRose
class node_gemini,node_groq toneIndigo
```

## Components

### User Experience

- [Review Interface](https://github.com/yashu082/sentineliq-enterprise/blob/main/frontend-react/src/App.jsx): `frontend-react/src/App.jsx`
- [Report Viewer](https://github.com/yashu082/sentineliq-enterprise/blob/main/frontend-react/src/App.jsx): `frontend-react/src/App.jsx`

### API and Operations

- [FastAPI Endpoints](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py): `backend-fastapi/main.py`
- [Authentication](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py): `backend-fastapi/main.py`
- [Health Check](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/main.py): `backend-fastapi/main.py`
- [Rate Limiting](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/rate_limiter.py): `backend-fastapi/core/rate_limiter.py`
- [Error Handling](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/error_handler.py): `backend-fastapi/core/error_handler.py`
- [Structured Logging](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/logging_config.py): `backend-fastapi/core/logging_config.py`

### Review Pipeline

- [Agent Orchestrator](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/orchestrator.py): `backend-fastapi/core/orchestrator.py`
- [Requirements Analysis](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py): `backend-fastapi/core/prompts.py`
- [Cross-Agent Validation](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/validation.py): `backend-fastapi/core/validation.py`
- [Delivery Planning](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py): `backend-fastapi/core/prompts.py`
- [Risk Analysis](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py): `backend-fastapi/core/prompts.py`
- [Executive Insights](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/prompts.py): `backend-fastapi/core/prompts.py`
- [Compliance Benchmarks](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/config/knowledge_base.py): `backend-fastapi/config/knowledge_base.py`
- [Architecture Artifacts](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/core/architecture_generator.py): `backend-fastapi/core/architecture_generator.py`

### Persistent State

- [SQLite Audit Store](https://github.com/yashu082/sentineliq-enterprise/blob/main/backend-fastapi/database/manager.py): `backend-fastapi/database/manager.py`

### Other components

- **Reviewer**
- **Gemini**
- **Groq**

## Connections

- Reviewer → Review Interface: submits PRD (evidence: `README.md`)
- Review Interface → FastAPI Endpoints: sends audit request (evidence: `README.md`)
- FastAPI Endpoints → Review Interface: returns report (evidence: `README.md`)
- Review Interface → Report Viewer: renders results (evidence: `frontend-react/src/App.jsx`)
- FastAPI Endpoints → Authentication: handles sign-in (evidence: `backend-fastapi/main.py`)
- FastAPI Endpoints → SQLite Audit Store: reads and writes (evidence: `backend-fastapi/main.py`)
- FastAPI Endpoints → Agent Orchestrator: runs audit (evidence: `README.md`)
- FastAPI Endpoints → Health Check: checks status (evidence: `backend-fastapi/main.py`)
- FastAPI Endpoints → Rate Limiting: limits requests (evidence: `README.md`)
- FastAPI Endpoints → Error Handling: handles failures (evidence: `README.md`)
- Error Handling → Structured Logging: logs errors (evidence: `backend-fastapi/core/error_handler.py`)
- Agent Orchestrator → Requirements Analysis: runs phase (evidence: `README.md`)
- Agent Orchestrator → Cross-Agent Validation: checks findings (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → Delivery Planning: runs phase (evidence: `README.md`)
- Agent Orchestrator → Risk Analysis: runs phase (evidence: `README.md`)
- Agent Orchestrator → Executive Insights: runs phase (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → Compliance Benchmarks: uses rubric (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → Architecture Artifacts: generates diagrams (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → Gemini: calls model (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → Groq: calls model (evidence: `backend-fastapi/core/orchestrator.py`)
- Agent Orchestrator → SQLite Audit Store: stores report (evidence: `README.md`)
