# sathwik061/opensre architecture

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

- Interactive diagram: https://gitdiagram.com/sathwik061/opensre
- Repository: https://github.com/sathwik061/opensre

## Overview

Incident Insights Hub is a web console for submitting incidents, tracking investigations, and managing integrations, projects, and runbooks. Its principal workflow starts with operator-entered or uploaded incident context, sends an investigation request to Sentinel, and presents the resulting RCA. Sentinel masks inputs, runs investigation and knowledge-retrieval components, and can also integrate with Camunda and external notification systems. The graph includes documented capabilities whose detailed implementations were not sampled; those connections are marked unverified where necessary.

Main entry points: [`graphify/sentinel/core/investigator.py`](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/investigator.py) (RCA investigator), [`graphify/sentinel/api/rca_routes.py`](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/rca_routes.py) (Sentinel API), [`graphify/Incident Insights Hub/src/routes/ingest.tsx`](https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/routes/ingest.tsx) (Console routes), [`graphify/sentinel/engine/dgx_client.py`](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/engine/dgx_client.py) (DGX model client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Incident console"]
  node_web_routes["Console routes<br/>[ingest.tsx]"]
  node_console_api["Browser API client<br/>[api.ts]"]
  node_rca_detail["RCA detail view<br/>[RcaDetail.tsx]"]
  node_local_storage[("Browser history and settings<br/>[storage.ts]")]
end

subgraph group_investigation["RCA investigation"]
  node_incident_builder["Incident normalization"]
  node_masking["Sensitive-data masking<br/>[masking.py]"]
  node_investigator["RCA investigator<br/>[investigator.py]"]
  node_dgx_facade["DGX engine facade<br/>[dgx_engine.py]"]
  node_dgx_client["DGX model client<br/>[dgx_client.py]"]
  node_prompt_builder["Prompt builder<br/>[prompt_builder.py]"]
end

subgraph group_context["Operational context"]
  node_camunda_client["Camunda Operate client<br/>[client.py]"]
  node_camunda_knowledge["Camunda knowledge"]
  node_runbook_knowledge["Runbook knowledge"]
  node_runbook_upload["Runbook upload and parsing"]
  node_project_store[("Project passports<br/>[project_store.py]")]
end

subgraph group_integrations["Integrations"]
  node_integration_routes["Integration management"]
  node_integration_catalog["Integration catalog<br/>[catalog.py]"]
end

subgraph group_runtime["Runtime and state"]
  node_sentinel_api["Sentinel API<br/>[rca_routes.py]"]
  node_state_store[("Investigation state<br/>[state_store.py]")]
end

node_operator(("SRE operator"))
node_external_services{{"Camunda and model services"}}
node_notification_channels{{"Notification channels"}}

node_operator -->|"submits incident"| node_web_routes
node_web_routes -->|"polls investigation"| node_console_api
node_console_api -.->|"requests investigation"| node_sentinel_api
node_sentinel_api -->|"masks payload"| node_masking
node_sentinel_api -->|"builds incident"| node_incident_builder
node_sentinel_api -->|"stores status"| node_state_store
node_sentinel_api -.->|"queues investigation"| node_investigator
node_investigator -->|"invokes model"| node_dgx_client
node_dgx_facade -->|"re-exports client"| node_dgx_client
node_dgx_facade -->|"re-exports prompts"| node_prompt_builder
node_dgx_client -->|"builds prompt"| node_prompt_builder
node_investigator -->|"retrieves context"| node_camunda_knowledge
node_investigator -->|"retrieves guidance"| node_runbook_knowledge
node_investigator -->|"sanitizes data"| node_masking
node_camunda_client -.->|"queries Operate"| node_external_services
node_operator -.->|"uploads runbooks"| node_runbook_upload
node_runbook_upload -->|"links project"| node_project_store
node_integration_routes -->|"lists definitions"| node_integration_catalog
node_integration_routes -->|"dispatches RCA"| node_notification_channels
node_investigator -.->|"returns RCA"| node_rca_detail
node_web_routes -.->|"saves history"| node_local_storage

click node_web_routes "https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/routes/ingest.tsx"
click node_console_api "https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/lib/api.ts"
click node_rca_detail "https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/components/RcaDetail.tsx"
click node_local_storage "https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/lib/storage.ts"
click node_sentinel_api "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/rca_routes.py"
click node_incident_builder "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/incident_builder.py"
click node_masking "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/masking.py"
click node_investigator "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/investigator.py"
click node_dgx_facade "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/dgx_engine.py"
click node_dgx_client "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/engine/dgx_client.py"
click node_prompt_builder "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/engine/prompt_builder.py"
click node_state_store "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/state_store.py"
click node_camunda_client "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/camunda/client.py"
click node_camunda_knowledge "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/knowledge/camunda_knowledge.py"
click node_runbook_knowledge "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/knowledge/runbook_knowledge.py"
click node_runbook_upload "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/runbook_upload_routes.py"
click node_project_store "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/project_store.py"
click node_integration_routes "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/integration_routes.py"
click node_integration_catalog "https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/integrations/catalog.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_web_routes,node_console_api,node_rca_detail,node_local_storage toneBlue
class node_incident_builder,node_masking,node_investigator,node_dgx_facade,node_dgx_client,node_prompt_builder toneAmber
class node_camunda_client,node_camunda_knowledge,node_runbook_knowledge,node_runbook_upload,node_project_store toneMint
class node_integration_routes,node_integration_catalog toneRose
class node_sentinel_api,node_state_store,node_operator,node_external_services,node_notification_channels toneIndigo
```

## Components

### Incident console

- [Console routes](https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/routes/ingest.tsx): `graphify/Incident Insights Hub/src/routes/ingest.tsx`
- [Browser API client](https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/lib/api.ts): `graphify/Incident Insights Hub/src/lib/api.ts`
- [RCA detail view](https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/components/RcaDetail.tsx): `graphify/Incident Insights Hub/src/components/RcaDetail.tsx`
- [Browser history and settings](https://github.com/sathwik061/opensre/blob/main/graphify/Incident%20Insights%20Hub/src/lib/storage.ts): `graphify/Incident Insights Hub/src/lib/storage.ts`

### RCA investigation

- [Incident normalization](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/incident_builder.py): `graphify/sentinel/core/incident_builder.py`
- [Sensitive-data masking](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/masking.py): `graphify/sentinel/core/masking.py`
- [RCA investigator](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/investigator.py): `graphify/sentinel/core/investigator.py`
- [DGX engine facade](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/dgx_engine.py): `graphify/sentinel/dgx_engine.py`
- [DGX model client](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/engine/dgx_client.py): `graphify/sentinel/engine/dgx_client.py`
- [Prompt builder](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/engine/prompt_builder.py): `graphify/sentinel/engine/prompt_builder.py`

### Operational context

- [Camunda Operate client](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/camunda/client.py): `graphify/sentinel/camunda/client.py`
- [Camunda knowledge](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/knowledge/camunda_knowledge.py): `graphify/sentinel/knowledge/camunda_knowledge.py`
- [Runbook knowledge](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/knowledge/runbook_knowledge.py): `graphify/sentinel/knowledge/runbook_knowledge.py`
- [Runbook upload and parsing](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/runbook_upload_routes.py): `graphify/sentinel/api/runbook_upload_routes.py`
- [Project passports](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/project_store.py): `graphify/sentinel/core/project_store.py`

### Integrations

- [Integration management](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/integration_routes.py): `graphify/sentinel/api/integration_routes.py`
- [Integration catalog](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/integrations/catalog.py): `graphify/sentinel/integrations/catalog.py`

### Runtime and state

- [Sentinel API](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/api/rca_routes.py): `graphify/sentinel/api/rca_routes.py`
- [Investigation state](https://github.com/sathwik061/opensre/blob/main/graphify/sentinel/core/state_store.py): `graphify/sentinel/core/state_store.py`

### Other components

- **SRE operator**
- **Camunda and model services**
- **Notification channels**

## Connections

- SRE operator → Console routes: submits incident (evidence: `graphify/Incident Insights Hub/src/routes/ingest.tsx`)
- Console routes → Browser API client: polls investigation (evidence: `graphify/Incident Insights Hub/src/routes/ingest.tsx`)
- Browser API client → Sentinel API: requests investigation
- Sentinel API → Sensitive-data masking: masks payload (evidence: `graphify/sentinel/api/rca_routes.py`)
- Sentinel API → Incident normalization: builds incident (evidence: `graphify/sentinel/api/rca_routes.py`)
- Sentinel API → Investigation state: stores status (evidence: `graphify/sentinel/api/rca_routes.py`)
- Sentinel API → RCA investigator: queues investigation (evidence: `graphify/sentinel/api/rca_routes.py`)
- RCA investigator → DGX model client: invokes model (evidence: `graphify/sentinel/core/investigator.py`)
- DGX engine facade → DGX model client: re-exports client (evidence: `graphify/sentinel/dgx_engine.py`)
- DGX engine facade → Prompt builder: re-exports prompts (evidence: `graphify/sentinel/dgx_engine.py`)
- DGX model client → Prompt builder: builds prompt (evidence: `graphify/sentinel/engine/dgx_client.py`)
- RCA investigator → Camunda knowledge: retrieves context (evidence: `graphify/sentinel/core/investigator.py`)
- RCA investigator → Runbook knowledge: retrieves guidance (evidence: `graphify/sentinel/core/investigator.py`)
- RCA investigator → Sensitive-data masking: sanitizes data (evidence: `graphify/sentinel/core/investigator.py`)
- Camunda Operate client → Camunda and model services: queries Operate
- SRE operator → Runbook upload and parsing: uploads runbooks
- Runbook upload and parsing → Project passports: links project (evidence: `graphify/sentinel/api/runbook_upload_routes.py`)
- Integration management → Integration catalog: lists definitions (evidence: `graphify/sentinel/api/integration_routes.py`)
- Integration management → Notification channels: dispatches RCA (evidence: `graphify/sentinel/api/integration_routes.py`)
- RCA investigator → RCA detail view: returns RCA
- Console routes → Browser history and settings: saves history
