# devopsmaddog/aldeci.ai architecture

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

- Interactive diagram: https://gitdiagram.com/devopsmaddog/aldeci.ai
- Repository: https://github.com/devopsmaddog/aldeci.ai

## Overview

ALDECI is a self-hosted security-intelligence platform: scanner output is ingested, normalized and prioritized into tenant-scoped findings and exposure cases, then enriched with graph context and AI reasoning for triage and remediation. Users reach the product through the API and UI; separate capabilities cover exploitability testing, threat intelligence and compliance evidence. The README documents the broad capability map, while sampled source confirms key ingestion, pipeline, graph, and API relationships; unsampled integrations are not expanded into speculative call chains.

Main entry points: [`suite-core/core/brain_pipeline.py`](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/brain_pipeline.py) (12-step Brain Pipeline), [`suite-api/apps/api/scanner_ingest_router.py`](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/scanner_ingest_router.py) (Scanner ingestion API), [`suite-attack/api/mpte_orchestrator_router.py`](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-attack/api/mpte_orchestrator_router.py) (MPTE orchestration), [`suite-core/core/trustgraph_backbone.py`](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/trustgraph_backbone.py) (TrustGraph backbone)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Ingestion and pipeline"]
  node_ingest_api["Scanner ingestion API"]
  node_normalizers["Scanner normalizers<br/>[scanner_parsers.py]"]
  node_pipeline_hook["Ingest pipeline hook"]
  node_pipeline["12-step Brain Pipeline<br/>[brain_pipeline.py]"]
end

subgraph group_intelligence["Security intelligence"]
  node_findings["Findings engine"]
  node_knowledge["Knowledge brain<br/>[knowledge_brain.py]"]
  node_trustgraph["TrustGraph backbone"]
  node_eventbus["TrustGraph event bus"]
  node_council["LLM council and providers<br/>[llm_providers.py]"]
  node_feeds["Threat intelligence feeds<br/>[feeds_service.py]"]
end

subgraph group_response["Verification and response"]
  node_mpte["MPTE orchestration"]
  node_pentest["Exploitability testing<br/>[micro_pentest.py]"]
  node_autofix["Automated remediation<br/>[autofix_engine.py]"]
  node_compliance_api["Compliance API"]
  node_compliance["Compliance assessments"]
  node_evidence["Evidence pack generator"]
end

subgraph group_platform["API and persistence"]
  node_gateway["FastAPI gateway<br/>[app.py]"]
  node_auth["Tenant authentication<br/>[auth_deps.py]"]
  node_dependencies["Tenant dependencies<br/>[dependencies.py]"]
  node_settings["Enterprise settings<br/>[settings.py]"]
  node_database[("Enterprise database sessions<br/>[session.py]")]
  node_security_store[("Security SQLite models<br/>[security_sqlite.py]")]
  node_cache[("Enterprise cache<br/>[cache_service.py]")]
  node_airgap["Air-gap controls<br/>[airgap_config.py]"]
end

subgraph group_experience["User experience"]
  node_ui["ALDECI UI<br/>[App.tsx]"]
end

node_user(("Security team"))
node_scanner["Scanner output"]

node_user -->|"uses"| node_ui
node_ui -->|"HTTP requests"| node_gateway
node_scanner -->|"uploads findings"| node_ingest_api
node_gateway -.->|"routes requests"| node_ingest_api
node_ingest_api -->|"resolves tenant"| node_dependencies
node_ingest_api -->|"parses uploads"| node_normalizers
node_ingest_api -->|"invokes on ingest"| node_pipeline_hook
node_pipeline_hook -->|"runs pipeline"| node_pipeline
node_pipeline -->|"processes findings"| node_findings
node_pipeline -->|"enriches context"| node_knowledge
node_pipeline -->|"updates graph"| node_trustgraph
node_pipeline -.->|"requests consensus"| node_council
node_pipeline -.->|"enriches advisories"| node_feeds
node_pipeline -->|"checks configuration"| node_airgap
node_pipeline -->|"emits graph events"| node_eventbus
node_eventbus -->|"indexes entities"| node_trustgraph
node_trustgraph -->|"enriches decisions"| node_knowledge
node_mpte -->|"invokes tests"| node_pentest
node_mpte -->|"queries intelligence"| node_feeds
node_mpte -->|"requests remediation"| node_autofix
node_compliance_api -->|"runs assessments"| node_compliance
node_pipeline -->|"generates evidence"| node_evidence
node_auth -->|"provides tenant context"| node_dependencies
node_settings -->|"configures sessions"| node_database
node_database -->|"creates tables"| node_security_store
node_settings -->|"configures cache"| node_cache

click node_ui "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-ui/aldeci-ui-new/src/App.tsx"
click node_gateway "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/app.py"
click node_auth "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/auth_deps.py"
click node_dependencies "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/dependencies.py"
click node_ingest_api "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/scanner_ingest_router.py"
click node_normalizers "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/scanner_parsers.py"
click node_pipeline_hook "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/pipeline_on_ingest.py"
click node_pipeline "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/brain_pipeline.py"
click node_findings "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/security_findings_engine.py"
click node_knowledge "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/knowledge_brain.py"
click node_trustgraph "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/trustgraph_backbone.py"
click node_eventbus "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/trustgraph_event_bus.py"
click node_council "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/llm_providers.py"
click node_feeds "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-feeds/feeds_service.py"
click node_mpte "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-attack/api/mpte_orchestrator_router.py"
click node_pentest "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/micro_pentest.py"
click node_autofix "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/autofix_engine.py"
click node_compliance_api "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-evidence-risk/api/compliance_engine_router.py"
click node_compliance "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-evidence-risk/compliance/compliance_engine.py"
click node_evidence "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/soc2_evidence_generator.py"
click node_settings "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/config/enterprise/settings.py"
click node_database "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/db/enterprise/session.py"
click node_security_store "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/models/enterprise/security_sqlite.py"
click node_cache "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/services/enterprise/cache_service.py"
click node_airgap "https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/airgap_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_ingest_api,node_normalizers,node_pipeline_hook,node_pipeline toneBlue
class node_findings,node_knowledge,node_trustgraph,node_eventbus,node_council,node_feeds toneAmber
class node_mpte,node_pentest,node_autofix,node_compliance_api,node_compliance,node_evidence toneMint
class node_gateway,node_auth,node_dependencies,node_settings,node_database,node_security_store,node_cache,node_airgap toneRose
class node_ui,node_user,node_scanner toneIndigo
```

## Components

### Ingestion and pipeline

- [Scanner ingestion API](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/scanner_ingest_router.py): `suite-api/apps/api/scanner_ingest_router.py`
- [Scanner normalizers](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/scanner_parsers.py): `suite-core/core/scanner_parsers.py`
- [Ingest pipeline hook](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/pipeline_on_ingest.py): `suite-api/apps/api/pipeline_on_ingest.py`
- [12-step Brain Pipeline](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/brain_pipeline.py): `suite-core/core/brain_pipeline.py`

### Security intelligence

- [Findings engine](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/security_findings_engine.py): `suite-core/core/security_findings_engine.py`
- [Knowledge brain](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/knowledge_brain.py): `suite-core/core/knowledge_brain.py`
- [TrustGraph backbone](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/trustgraph_backbone.py): `suite-core/core/trustgraph_backbone.py`
- [TrustGraph event bus](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/trustgraph_event_bus.py): `suite-core/core/trustgraph_event_bus.py`
- [LLM council and providers](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/llm_providers.py): `suite-core/core/llm_providers.py`
- [Threat intelligence feeds](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-feeds/feeds_service.py): `suite-feeds/feeds_service.py`

### Verification and response

- [MPTE orchestration](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-attack/api/mpte_orchestrator_router.py): `suite-attack/api/mpte_orchestrator_router.py`
- [Exploitability testing](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/micro_pentest.py): `suite-core/core/micro_pentest.py`
- [Automated remediation](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/autofix_engine.py): `suite-core/core/autofix_engine.py`
- [Compliance API](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-evidence-risk/api/compliance_engine_router.py): `suite-evidence-risk/api/compliance_engine_router.py`
- [Compliance assessments](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-evidence-risk/compliance/compliance_engine.py): `suite-evidence-risk/compliance/compliance_engine.py`
- [Evidence pack generator](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/soc2_evidence_generator.py): `suite-core/core/soc2_evidence_generator.py`

### API and persistence

- [FastAPI gateway](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/app.py): `suite-api/apps/api/app.py`
- [Tenant authentication](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/auth_deps.py): `suite-api/apps/api/auth_deps.py`
- [Tenant dependencies](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-api/apps/api/dependencies.py): `suite-api/apps/api/dependencies.py`
- [Enterprise settings](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/config/enterprise/settings.py): `suite-core/config/enterprise/settings.py`
- [Enterprise database sessions](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/db/enterprise/session.py): `suite-core/core/db/enterprise/session.py`
- [Security SQLite models](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/models/enterprise/security_sqlite.py): `suite-core/core/models/enterprise/security_sqlite.py`
- [Enterprise cache](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/services/enterprise/cache_service.py): `suite-core/core/services/enterprise/cache_service.py`
- [Air-gap controls](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-core/core/airgap_config.py): `suite-core/core/airgap_config.py`

### User experience

- [ALDECI UI](https://github.com/devopsmaddog/aldeci.ai/blob/main/suite-ui/aldeci-ui-new/src/App.tsx): `suite-ui/aldeci-ui-new/src/App.tsx`

### Other components

- **Security team**
- **Scanner output**

## Connections

- Security team → ALDECI UI: uses
- ALDECI UI → FastAPI gateway: HTTP requests
- Scanner output → Scanner ingestion API: uploads findings
- FastAPI gateway → Scanner ingestion API: routes requests
- Scanner ingestion API → Tenant dependencies: resolves tenant (evidence: `suite-api/apps/api/scanner_ingest_router.py`)
- Scanner ingestion API → Scanner normalizers: parses uploads (evidence: `suite-api/apps/api/scanner_ingest_router.py`)
- Scanner ingestion API → Ingest pipeline hook: invokes on ingest (evidence: `suite-api/apps/api/scanner_ingest_router.py`)
- Ingest pipeline hook → 12-step Brain Pipeline: runs pipeline (evidence: `suite-api/apps/api/pipeline_on_ingest.py`)
- 12-step Brain Pipeline → Findings engine: processes findings (evidence: `suite-core/core/brain_pipeline.py`)
- 12-step Brain Pipeline → Knowledge brain: enriches context (evidence: `suite-core/core/brain_pipeline.py`)
- 12-step Brain Pipeline → TrustGraph backbone: updates graph (evidence: `suite-core/core/brain_pipeline.py`)
- 12-step Brain Pipeline → LLM council and providers: requests consensus (evidence: `suite-core/core/brain_pipeline.py`)
- 12-step Brain Pipeline → Threat intelligence feeds: enriches advisories
- 12-step Brain Pipeline → Air-gap controls: checks configuration (evidence: `suite-api/apps/api/pipeline_on_ingest.py`)
- 12-step Brain Pipeline → TrustGraph event bus: emits graph events (evidence: `suite-core/core/brain_pipeline.py`)
- TrustGraph event bus → TrustGraph backbone: indexes entities (evidence: `suite-core/core/trustgraph_event_bus.py`)
- TrustGraph backbone → Knowledge brain: enriches decisions (evidence: `suite-core/core/trustgraph_event_bus.py`)
- MPTE orchestration → Exploitability testing: invokes tests (evidence: `suite-attack/api/mpte_orchestrator_router.py`)
- MPTE orchestration → Threat intelligence feeds: queries intelligence (evidence: `suite-attack/api/mpte_orchestrator_router.py`)
- MPTE orchestration → Automated remediation: requests remediation (evidence: `suite-attack/api/mpte_orchestrator_router.py`)
- Compliance API → Compliance assessments: runs assessments (evidence: `suite-evidence-risk/api/compliance_engine_router.py`)
- 12-step Brain Pipeline → Evidence pack generator: generates evidence (evidence: `suite-core/api/pipeline_router.py`)
- Tenant authentication → Tenant dependencies: provides tenant context (evidence: `suite-api/apps/api/dependencies.py`)
- Enterprise settings → Enterprise database sessions: configures sessions (evidence: `suite-core/core/db/enterprise/session.py`)
- Enterprise database sessions → Security SQLite models: creates tables (evidence: `suite-core/core/db/enterprise/session.py`)
- Enterprise settings → Enterprise cache: configures cache (evidence: `suite-core/core/services/enterprise/cache_service.py`)
