# husseizo/gsl2026 architecture

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

- Interactive diagram: https://gitdiagram.com/husseizo/gsl2026
- Repository: https://github.com/husseizo/gsl2026

## Overview

AIOS is an automotive operations system of record with a governed AI foundation and advisory capability layers. A user works through the authenticated web portal or API; operational data and knowledge are managed in Operational Core, while AI requests pass through its gateway to the DGX inference boundary. Knowledge ingestion, human review, and retrieval are distinct stages. The README also identifies forecasting, enterprise integrations, and operational dashboards as product capabilities. Source excerpts are selective, so several subsystem links are documented at the README level rather than verified from implementation.

Main entry points: [`services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts`](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts) (Knowledge ingestion), [`services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts`](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts) (Retrieval intelligence), [`services/operational-core/src`](https://github.com/husseizo/gsl2026/tree/main/services/operational-core/src) (Operational records), [`services/web-portal/src/App.tsx`](https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/App.tsx) (Web portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["User Portal"]
  node_portal_app["Web portal<br/>[App.tsx]"]
  node_portal_client["API client<br/>[client.ts]"]
  node_source_registry_page["Knowledge source UI"]
end

subgraph group_core["Operational Core"]
  node_api["Operational API<br/>[app.module.ts]"]
  node_identity["Identity and access"]
  node_operations["Operational records"]
  node_integrations["Enterprise integrations"]
  node_db[("Canonical relational store<br/>[prisma.service.ts]")]
  node_audit["Audit trail<br/>[audit.service.ts]"]
end

subgraph group_knowledge["Knowledge Platform"]
  node_knowledge_ingest["Knowledge ingestion"]
  node_structured_ingest["Structured ingestion"]
  node_knowledge_review["Human knowledge review"]
  node_knowledge_retrieval["Knowledge retrieval"]
  node_structured_facts["Structured facts"]
end

subgraph group_ai["AI Foundation"]
  node_retrieval_intel["Retrieval intelligence"]
  node_query_classifier["Query classification"]
  node_vector_search["Hybrid vector search"]
  node_ai_gateway["AI gateway"]
  node_dgx["DGX inference service<br/>[main.py]"]
  node_metrics["Metrics<br/>[metrics.service.ts]"]
  node_rag_confidence["Retrieval confidence<br/>[rag-confidence.ts]"]
end

subgraph group_capabilities["Capability Layers"]
  node_forecasting["Demand forecasting"]
  node_catalogue_ai["Catalogue AI"]
end

node_user(("Staff user"))
node_ollama["Ollama inference"]

node_user -->|"uses"| node_portal_app
node_portal_app -->|"requests through"| node_portal_client
node_portal_client -->|"calls over HTTP"| node_api
node_api -.->|"authenticates"| node_identity
node_api -->|"serves operations"| node_operations
node_operations -->|"stores records"| node_db
node_integrations -->|"synchronizes data"| node_operations
node_structured_ingest -->|"submits records"| node_knowledge_ingest
node_knowledge_ingest -->|"creates drafts for"| node_knowledge_review
node_knowledge_ingest -.->|"persists knowledge"| node_db
node_knowledge_review -.->|"records review"| node_db
node_knowledge_retrieval -->|"searches knowledge"| node_vector_search
node_knowledge_retrieval -->|"optionally reranks"| node_retrieval_intel
node_retrieval_intel -->|"classifies queries"| node_query_classifier
node_retrieval_intel -.->|"retrieves candidates"| node_vector_search
node_retrieval_intel -->|"scores confidence"| node_rag_confidence
node_structured_ingest -->|"creates facts"| node_structured_facts
node_ai_gateway -->|"sends inference"| node_dgx
node_dgx -->|"forwards inference"| node_ollama
node_catalogue_ai -->|"requests embeddings"| node_ai_gateway
node_catalogue_ai -->|"searches catalogue"| node_vector_search
node_forecasting -.->|"uses AI foundation"| node_ai_gateway
node_operations -.->|"audits actions"| node_audit
node_knowledge_ingest -->|"records failures"| node_metrics
node_portal_app -->|"routes to"| node_source_registry_page
node_source_registry_page -->|"uses API client"| node_portal_client

click node_portal_app "https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/App.tsx"
click node_portal_client "https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/api/client.ts"
click node_api "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/app.module.ts"
click node_identity "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/identity/identity.service.ts"
click node_operations "https://github.com/husseizo/gsl2026/tree/main/services/operational-core/src"
click node_integrations "https://github.com/husseizo/gsl2026/tree/main/services/operational-core/src/integration"
click node_db "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/prisma/prisma.service.ts"
click node_knowledge_ingest "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts"
click node_structured_ingest "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts"
click node_knowledge_review "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/review-workflow/knowledge-review.service.ts"
click node_knowledge_retrieval "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/retrieval/knowledge-retrieval.service.ts"
click node_structured_facts "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/structured-facts/structured-fact.service.ts"
click node_retrieval_intel "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts"
click node_query_classifier "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/retrieval-intelligence/query-understanding/query-classifier.ts"
click node_vector_search "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/vector-search/vector-search.service.ts"
click node_ai_gateway "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/ai-gateway/ai-gateway.service.ts"
click node_dgx "https://github.com/husseizo/gsl2026/blob/main/services/dgx-ai-platform/app/main.py"
click node_forecasting "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/forecasting/forecasting.service.ts"
click node_catalogue_ai "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/catalogue-ai/rag/catalogue-rag.service.ts"
click node_audit "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/common/audit/audit.service.ts"
click node_metrics "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/observability/metrics.service.ts"
click node_rag_confidence "https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/rag/rag-confidence.ts"
click node_source_registry_page "https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/pages/knowledge/SourceRegistryPage.tsx"

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_portal_app,node_portal_client,node_source_registry_page,node_user toneBlue
class node_api,node_identity,node_operations,node_integrations,node_db,node_audit toneAmber
class node_knowledge_ingest,node_structured_ingest,node_knowledge_review,node_knowledge_retrieval,node_structured_facts toneMint
class node_retrieval_intel,node_query_classifier,node_vector_search,node_ai_gateway,node_dgx,node_metrics,node_rag_confidence toneRose
class node_forecasting,node_catalogue_ai,node_ollama toneIndigo
```

## Components

### User Portal

- [Web portal](https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/App.tsx): `services/web-portal/src/App.tsx`
- [API client](https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/api/client.ts): `services/web-portal/src/api/client.ts`
- [Knowledge source UI](https://github.com/husseizo/gsl2026/blob/main/services/web-portal/src/pages/knowledge/SourceRegistryPage.tsx): `services/web-portal/src/pages/knowledge/SourceRegistryPage.tsx`

### Operational Core

- [Operational API](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/app.module.ts): `services/operational-core/src/app.module.ts`
- [Identity and access](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/identity/identity.service.ts): `services/operational-core/src/identity/identity.service.ts`
- [Operational records](https://github.com/husseizo/gsl2026/tree/main/services/operational-core/src): `services/operational-core/src`
- [Enterprise integrations](https://github.com/husseizo/gsl2026/tree/main/services/operational-core/src/integration): `services/operational-core/src/integration`
- [Canonical relational store](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/prisma/prisma.service.ts): `services/operational-core/src/prisma/prisma.service.ts`
- [Audit trail](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/common/audit/audit.service.ts): `services/operational-core/src/common/audit/audit.service.ts`

### Knowledge Platform

- [Knowledge ingestion](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts): `services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts`
- [Structured ingestion](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts): `services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts`
- [Human knowledge review](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/review-workflow/knowledge-review.service.ts): `services/operational-core/src/knowledge-platform/review-workflow/knowledge-review.service.ts`
- [Knowledge retrieval](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/retrieval/knowledge-retrieval.service.ts): `services/operational-core/src/knowledge-platform/retrieval/knowledge-retrieval.service.ts`
- [Structured facts](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/knowledge-platform/structured-facts/structured-fact.service.ts): `services/operational-core/src/knowledge-platform/structured-facts/structured-fact.service.ts`

### AI Foundation

- [Retrieval intelligence](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts): `services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts`
- [Query classification](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/retrieval-intelligence/query-understanding/query-classifier.ts): `services/operational-core/src/retrieval-intelligence/query-understanding/query-classifier.ts`
- [Hybrid vector search](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/vector-search/vector-search.service.ts): `services/operational-core/src/vector-search/vector-search.service.ts`
- [AI gateway](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/ai-gateway/ai-gateway.service.ts): `services/operational-core/src/ai-gateway/ai-gateway.service.ts`
- [DGX inference service](https://github.com/husseizo/gsl2026/blob/main/services/dgx-ai-platform/app/main.py): `services/dgx-ai-platform/app/main.py`
- [Metrics](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/observability/metrics.service.ts): `services/operational-core/src/observability/metrics.service.ts`
- [Retrieval confidence](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/rag/rag-confidence.ts): `services/operational-core/src/rag/rag-confidence.ts`

### Capability Layers

- [Demand forecasting](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/forecasting/forecasting.service.ts): `services/operational-core/src/forecasting/forecasting.service.ts`
- [Catalogue AI](https://github.com/husseizo/gsl2026/blob/main/services/operational-core/src/catalogue-ai/rag/catalogue-rag.service.ts): `services/operational-core/src/catalogue-ai/rag/catalogue-rag.service.ts`

### Other components

- **Staff user**
- **Ollama inference**

## Connections

- Staff user → Web portal: uses (evidence: `README.md`)
- Web portal → API client: requests through (evidence: `services/web-portal/src/App.tsx`)
- API client → Operational API: calls over HTTP (evidence: `services/web-portal/src/api/client.ts`)
- Operational API → Identity and access: authenticates
- Operational API → Operational records: serves operations (evidence: `README.md`)
- Operational records → Canonical relational store: stores records (evidence: `README.md`)
- Enterprise integrations → Operational records: synchronizes data (evidence: `README.md`)
- Structured ingestion → Knowledge ingestion: submits records (evidence: `services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts`)
- Knowledge ingestion → Human knowledge review: creates drafts for (evidence: `services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts`)
- Knowledge ingestion → Canonical relational store: persists knowledge (evidence: `services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts`)
- Human knowledge review → Canonical relational store: records review
- Knowledge retrieval → Hybrid vector search: searches knowledge (evidence: `services/operational-core/src/knowledge-platform/retrieval/knowledge-retrieval.service.ts`)
- Knowledge retrieval → Retrieval intelligence: optionally reranks (evidence: `services/operational-core/src/knowledge-platform/retrieval/knowledge-retrieval.service.ts`)
- Retrieval intelligence → Query classification: classifies queries (evidence: `services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts`)
- Retrieval intelligence → Hybrid vector search: retrieves candidates (evidence: `services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts`)
- Retrieval intelligence → Retrieval confidence: scores confidence (evidence: `services/operational-core/src/retrieval-intelligence/pipeline/retrieval-pipeline.service.ts`)
- Structured ingestion → Structured facts: creates facts (evidence: `services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts`)
- AI gateway → DGX inference service: sends inference (evidence: `README.md`)
- DGX inference service → Ollama inference: forwards inference (evidence: `README.md`)
- Catalogue AI → AI gateway: requests embeddings (evidence: `services/operational-core/src/catalogue-ai/rag/catalogue-rag.service.ts`)
- Catalogue AI → Hybrid vector search: searches catalogue (evidence: `services/operational-core/src/catalogue-ai/rag/catalogue-rag.service.ts`)
- Demand forecasting → AI gateway: uses AI foundation
- Operational records → Audit trail: audits actions (evidence: `services/operational-core/src/knowledge-platform/structured-ingestion/structured-source-ingestion.service.ts`)
- Knowledge ingestion → Metrics: records failures (evidence: `services/operational-core/src/knowledge-platform/ingestion/ingestion-pipeline.service.ts`)
- Web portal → Knowledge source UI: routes to (evidence: `services/web-portal/src/App.tsx`)
- Knowledge source UI → API client: uses API client (evidence: `services/web-portal/src/pages/knowledge/SourceRegistryPage.tsx`)
