# abdullahabtahi/eios architecture

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

- Interactive diagram: https://gitdiagram.com/abdullahabtahi/eios
- Repository: https://github.com/abdullahabtahi/eios

## Overview

EIOS is a financial-crime and risk operations platform: its documented product combines event-driven monitoring and investigation with an operator cockpit. A central workflow is AML surveillance: the pipeline runs transaction and network detection, prioritizes alerts, and assembles case dossiers; the cockpit presents ranked cases, evidence, and SAR drafts. Separate partner-churn and fraud pipelines provide additional risk signals. The excerpts establish several pipeline-to-engine and storage relationships, but do not show the full ingestion or frontend-to-backend wiring, so those links are omitted or marked unverified.

Main entry points: [`EIOS/src/eios/aml/pipeline.py`](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/pipeline.py) (AML Pipeline), [`EIOS/src/eios/ingestion/hot_state.py`](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/ingestion/hot_state.py) (Hot State), [`EIOS/src/eios/churn/pipeline.py`](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/churn/pipeline.py) (Churn Radar), [`EIOS/src/eios/aml/triage_scorer.py`](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/triage_scorer.py) (AML Triage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_monitoring["Risk Monitoring"]
  node_aml_pipeline["AML Pipeline<br/>[pipeline.py]"]
  node_aml_detectors["AML Detectors"]
  node_aml_triage["AML Triage<br/>[triage_scorer.py]"]
  node_aml_dossier["AML Dossiers<br/>[dossier.py]"]
  node_aml_models["AML Schemas<br/>[models.py]"]
  node_churn_pipeline["Churn Radar<br/>[pipeline.py]"]
  node_churn_features["Churn Features<br/>[features.py]"]
  node_fraud_pipeline["Fraud Pipeline<br/>[pipeline.py]"]
  node_fraud_pairs["Pair Detection<br/>[pair_detector.py]"]
  node_sar["SAR Composer<br/>[sar_composer.py]"]
  node_partner_engine["Partner Engine<br/>[partner_engine.py]"]
end

subgraph group_state["Data State"]
  node_hot_state[("Hot State<br/>[hot_state.py]")]
  node_aml_service["AML Service<br/>[aml_service.py]"]
  node_aml_engine["AML Engine<br/>[aml_engine.py]"]
end

subgraph group_operator["Investigation Cockpit"]
  node_aml_view["AML Case View<br/>[aml_engine_view.py]"]
  node_cockpit["Operator Cockpit<br/>[server.py]"]
end

subgraph group_platform["Platform Services"]
  node_api["Core API<br/>[app.py]"]
end

node_analyst(("Risk Analyst"))

node_aml_pipeline -->|"runs detection"| node_aml_detectors
node_aml_pipeline -->|"scores alerts"| node_aml_triage
node_aml_pipeline -->|"assembles dossiers"| node_aml_dossier
node_aml_pipeline -->|"reads and persists"| node_hot_state
node_aml_detectors -->|"persists results"| node_hot_state
node_aml_triage -->|"reads state"| node_hot_state
node_aml_dossier -->|"reads state"| node_hot_state
node_aml_pipeline -->|"uses schemas"| node_aml_models
node_churn_pipeline -->|"extracts features"| node_churn_features
node_churn_pipeline -->|"reads and persists"| node_hot_state
node_fraud_pipeline -->|"runs pair detection"| node_fraud_pairs
node_fraud_pipeline -->|"reads and persists"| node_hot_state
node_aml_view -->|"queries cases"| node_aml_service
node_aml_view -->|"builds SAR draft"| node_sar
node_aml_engine -->|"uses scoring"| node_aml_triage
node_partner_engine -->|"runs churn scoring"| node_churn_pipeline
node_partner_engine -->|"checks trading pairs"| node_fraud_pairs
node_analyst -.->|"investigates risk"| node_cockpit
node_cockpit -.->|"requests case data"| node_api

click node_aml_pipeline "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/pipeline.py"
click node_aml_detectors "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/mule_ring_detector.py"
click node_aml_triage "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/triage_scorer.py"
click node_aml_dossier "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/dossier.py"
click node_aml_models "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/models.py"
click node_churn_pipeline "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/churn/pipeline.py"
click node_churn_features "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/churn/features.py"
click node_fraud_pipeline "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/fraud/pipeline.py"
click node_fraud_pairs "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/fraud/pair_detector.py"
click node_hot_state "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/ingestion/hot_state.py"
click node_aml_service "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/aml_service.py"
click node_aml_engine "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/aml_engine.py"
click node_aml_view "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/cockpit/aml_engine_view.py"
click node_cockpit "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/cockpit/server.py"
click node_api "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/api/app.py"
click node_sar "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/sar_composer.py"
click node_partner_engine "https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/partner_engine.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_aml_pipeline,node_aml_detectors,node_aml_triage,node_aml_dossier,node_aml_models,node_churn_pipeline,node_churn_features,node_fraud_pipeline,node_fraud_pairs,node_sar,node_partner_engine toneBlue
class node_hot_state,node_aml_service,node_aml_engine toneAmber
class node_aml_view,node_cockpit toneMint
class node_api toneRose
class node_analyst toneIndigo
```

## Components

### Risk Monitoring

- [AML Pipeline](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/pipeline.py): `EIOS/src/eios/aml/pipeline.py`
- [AML Detectors](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/mule_ring_detector.py): `EIOS/src/eios/aml/mule_ring_detector.py`
- [AML Triage](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/triage_scorer.py): `EIOS/src/eios/aml/triage_scorer.py`
- [AML Dossiers](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/dossier.py): `EIOS/src/eios/aml/dossier.py`
- [AML Schemas](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/models.py): `EIOS/src/eios/aml/models.py`
- [Churn Radar](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/churn/pipeline.py): `EIOS/src/eios/churn/pipeline.py`
- [Churn Features](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/churn/features.py): `EIOS/src/eios/churn/features.py`
- [Fraud Pipeline](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/fraud/pipeline.py): `EIOS/src/eios/fraud/pipeline.py`
- [Pair Detection](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/fraud/pair_detector.py): `EIOS/src/eios/fraud/pair_detector.py`
- [SAR Composer](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/aml/sar_composer.py): `EIOS/src/eios/aml/sar_composer.py`
- [Partner Engine](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/partner_engine.py): `EIOS/src/eios/dataplane/partner_engine.py`

### Data State

- [Hot State](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/ingestion/hot_state.py): `EIOS/src/eios/ingestion/hot_state.py`
- [AML Service](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/aml_service.py): `EIOS/src/eios/dataplane/aml_service.py`
- [AML Engine](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/dataplane/aml_engine.py): `EIOS/src/eios/dataplane/aml_engine.py`

### Investigation Cockpit

- [AML Case View](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/cockpit/aml_engine_view.py): `EIOS/src/eios/cockpit/aml_engine_view.py`
- [Operator Cockpit](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/cockpit/server.py): `EIOS/src/eios/cockpit/server.py`

### Platform Services

- [Core API](https://github.com/abdullahabtahi/eios/blob/main/EIOS/src/eios/api/app.py): `EIOS/src/eios/api/app.py`

### Other components

- **Risk Analyst**

## Connections

- AML Pipeline → AML Detectors: runs detection (evidence: `EIOS/src/eios/aml/pipeline.py`)
- AML Pipeline → AML Triage: scores alerts (evidence: `EIOS/src/eios/aml/pipeline.py`)
- AML Pipeline → AML Dossiers: assembles dossiers (evidence: `EIOS/src/eios/aml/pipeline.py`)
- AML Pipeline → Hot State: reads and persists (evidence: `EIOS/src/eios/aml/pipeline.py`)
- AML Detectors → Hot State: persists results (evidence: `EIOS/src/eios/aml/mule_ring_detector.py`)
- AML Triage → Hot State: reads state (evidence: `EIOS/src/eios/aml/triage_scorer.py`)
- AML Dossiers → Hot State: reads state (evidence: `EIOS/src/eios/aml/dossier.py`)
- AML Pipeline → AML Schemas: uses schemas (evidence: `EIOS/src/eios/aml/pipeline.py`)
- Churn Radar → Churn Features: extracts features (evidence: `EIOS/src/eios/churn/pipeline.py`)
- Churn Radar → Hot State: reads and persists (evidence: `EIOS/src/eios/churn/pipeline.py`)
- Fraud Pipeline → Pair Detection: runs pair detection (evidence: `EIOS/src/eios/fraud/pipeline.py`)
- Fraud Pipeline → Hot State: reads and persists (evidence: `EIOS/src/eios/fraud/pipeline.py`)
- AML Case View → AML Service: queries cases (evidence: `EIOS/src/eios/cockpit/aml_engine_view.py`)
- AML Case View → SAR Composer: builds SAR draft (evidence: `EIOS/src/eios/cockpit/aml_engine_view.py`)
- AML Engine → AML Triage: uses scoring (evidence: `EIOS/src/eios/dataplane/aml_engine.py`)
- Partner Engine → Churn Radar: runs churn scoring (evidence: `EIOS/src/eios/dataplane/partner_engine.py`)
- Partner Engine → Pair Detection: checks trading pairs (evidence: `EIOS/src/eios/dataplane/partner_engine.py`)
- Risk Analyst → Operator Cockpit: investigates risk
- Operator Cockpit → Core API: requests case data
