# nasirsaikh/glis_enterprise_v3 architecture

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

- Interactive diagram: https://gitdiagram.com/nasirsaikh/glis_enterprise_v3
- Repository: https://github.com/nasirsaikh/glis_enterprise_v3

## Overview

GLIS is a Django insurance-services platform whose principal workflow is authenticated service and TPA work: users submit requests or member transactions, deterministic authorization and workflow rules govern review and processing, and the portal records results. The map preserves major README capabilities—tickets, tasks, TPA intake, AI, analytics, documents, knowledge, jobs, CMS, and API—while grouping related implementation. Some subsystem links are documented only at a high level; unsampled details are not inferred.

Main entry points: [`glis/urls.py`](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/glis/urls.py) (Django application), [`apps/tickets/models.py`](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/models.py) (Ticket records), [`apps/job_center/services/queue_worker.py`](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/services/queue_worker.py) (Queued jobs), [`apps/tickets/views.py`](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/views.py) (Ticket requests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Portal and access"]
  node_accounts[("Accounts and organizations<br/>[models.py]")]
  node_tenancy["Tenant scoping<br/>[tenancy.py]"]
end

subgraph group_service_work["Service operations"]
  node_ticket_ui["Ticket requests<br/>[views.py]"]
  node_ticket_data[("Ticket records<br/>[models.py]")]
  node_ticket_rules["Ticket workflow<br/>[ticket_workflow.py]"]
  node_tasks["Tasks and recurrence<br/>[services.py]"]
end

subgraph group_tpa_work["TPA operations"]
  node_tpa_ui["TPA transactions<br/>[views.py]"]
  node_tpa_models[("Policies and members<br/>[models.py]")]
  node_tpa_flow["TPA intake and processing<br/>[workflow.py]"]
  node_tpa_access["TPA access rules<br/>[access.py]"]
end

subgraph group_intelligence["AI and analytics"]
  node_ai["AI providers and extraction<br/>[runtime.py]"]
  node_analytics["Governed analytics<br/>[services.py]"]
  node_vanna["Vanna runtime and memory<br/>[local_vanna.py]"]
end

subgraph group_platform["Platform services"]
  node_django["Django application<br/>[urls.py]"]
  node_knowledge["Knowledge base<br/>[views.py]"]
  node_documents["Document gateway<br/>[document_views.py]"]
  node_job_scheduler["Job scheduler<br/>[scheduler.py]"]
  node_job_executor["Job execution<br/>[job_executor.py]"]
  node_job_queue["Queued jobs<br/>[queue_worker.py]"]
  node_job_records[("Job history<br/>[models.py]")]
  node_api["Versioned API<br/>[views.py]"]
  node_cms[("Public site and CMS content<br/>[models.py]")]
end

node_users(("Portal users"))
node_mayan["Mayan EDMS"]
node_database[("Application database")]
node_external_ai["AI services"]
node_job_integrations["Job integrations"]

node_users -->|"use portal"| node_django
node_django -->|"routes requests"| node_ticket_ui
node_django -->|"routes tasks"| node_tasks
node_django -->|"routes TPA work"| node_tpa_ui
node_django -->|"serves articles"| node_knowledge
node_django -->|"serves analytics"| node_analytics
node_django -->|"serves documents"| node_documents
node_django -->|"exposes API"| node_api
node_django -->|"serves CMS"| node_cms
node_ticket_ui -.->|"records requests"| node_ticket_data
node_ticket_ui -.->|"handles workflow"| node_ticket_rules
node_ticket_rules -->|"updates tickets"| node_ticket_data
node_ticket_rules -->|"enqueues jobs"| node_job_queue
node_tasks -->|"creates linked tickets"| node_ticket_data
node_tasks -->|"scopes groups"| node_tenancy
node_tpa_ui -.->|"processes transactions"| node_tpa_flow
node_tpa_ui -.->|"checks permissions"| node_tpa_access
node_tpa_flow -.->|"updates members"| node_tpa_models
node_tpa_access -->|"scopes policies"| node_tenancy
node_tpa_models -->|"links tickets"| node_ticket_data
node_tpa_flow -.->|"assists extraction"| node_ai
node_ai -.->|"calls provider"| node_external_ai
node_analytics -->|"runs queries"| node_vanna
node_vanna -->|"applies user scope"| node_tenancy
node_vanna -.->|"uses Ollama"| node_external_ai
node_documents -.->|"integrates EDMS"| node_mayan
node_job_scheduler -->|"dispatches jobs"| node_job_executor
node_job_scheduler -->|"starts worker"| node_job_queue
node_job_queue -->|"claims and updates"| node_job_records
node_job_queue -.->|"runs handlers"| node_job_integrations
node_accounts -.->|"persists identity"| node_database
node_ticket_data -.->|"persists requests"| node_database
node_tpa_models -.->|"persists transactions"| node_database
node_job_records -.->|"persists job state"| node_database

click node_django "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/glis/urls.py"
click node_accounts "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/accounts/models.py"
click node_tenancy "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/services/tenancy.py"
click node_ticket_ui "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/views.py"
click node_ticket_data "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/models.py"
click node_ticket_rules "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/services/ticket_workflow.py"
click node_tasks "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tasks/services.py"
click node_tpa_ui "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/views.py"
click node_tpa_models "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/models.py"
click node_tpa_flow "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/services/workflow.py"
click node_tpa_access "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/services/access.py"
click node_ai "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/ai/runtime.py"
click node_analytics "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/orchestrator/services.py"
click node_vanna "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/orchestrator/local_vanna.py"
click node_knowledge "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/knowledge/views.py"
click node_documents "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/core/document_views.py"
click node_job_scheduler "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/scheduler.py"
click node_job_executor "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/services/job_executor.py"
click node_job_queue "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/services/queue_worker.py"
click node_job_records "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/models.py"
click node_api "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/api/views.py"
click node_cms "https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/core/models.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_accounts,node_tenancy,node_users toneBlue
class node_ticket_ui,node_ticket_data,node_ticket_rules,node_tasks,node_database toneAmber
class node_tpa_ui,node_tpa_models,node_tpa_flow,node_tpa_access toneMint
class node_ai,node_analytics,node_vanna toneRose
class node_django,node_knowledge,node_documents,node_job_scheduler,node_job_executor,node_job_queue,node_job_records,node_api,node_cms,node_mayan,node_external_ai,node_job_integrations toneIndigo
```

## Components

### Portal and access

- [Accounts and organizations](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/accounts/models.py): `apps/accounts/models.py`
- [Tenant scoping](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/services/tenancy.py): `services/tenancy.py`

### Service operations

- [Ticket requests](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/views.py): `apps/tickets/views.py`
- [Ticket records](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tickets/models.py): `apps/tickets/models.py`
- [Ticket workflow](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/services/ticket_workflow.py): `services/ticket_workflow.py`
- [Tasks and recurrence](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tasks/services.py): `apps/tasks/services.py`

### TPA operations

- [TPA transactions](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/views.py): `apps/tpa/views.py`
- [Policies and members](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/models.py): `apps/tpa/models.py`
- [TPA intake and processing](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/services/workflow.py): `apps/tpa/services/workflow.py`
- [TPA access rules](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/tpa/services/access.py): `apps/tpa/services/access.py`

### AI and analytics

- [AI providers and extraction](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/ai/runtime.py): `apps/ai/runtime.py`
- [Governed analytics](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/orchestrator/services.py): `apps/orchestrator/services.py`
- [Vanna runtime and memory](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/orchestrator/local_vanna.py): `apps/orchestrator/local_vanna.py`

### Platform services

- [Django application](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/glis/urls.py): `glis/urls.py`
- [Knowledge base](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/knowledge/views.py): `apps/knowledge/views.py`
- [Document gateway](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/core/document_views.py): `apps/core/document_views.py`
- [Job scheduler](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/scheduler.py): `apps/job_center/scheduler.py`
- [Job execution](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/services/job_executor.py): `apps/job_center/services/job_executor.py`
- [Queued jobs](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/services/queue_worker.py): `apps/job_center/services/queue_worker.py`
- [Job history](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/job_center/models.py): `apps/job_center/models.py`
- [Versioned API](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/api/views.py): `apps/api/views.py`
- [Public site and CMS content](https://github.com/nasirsaikh/glis_enterprise_v3/blob/main/apps/core/models.py): `apps/core/models.py`

### Other components

- **Portal users**
- **Mayan EDMS**
- **Application database**
- **AI services**
- **Job integrations**

## Connections

- Portal users → Django application: use portal
- Django application → Ticket requests: routes requests
- Django application → Tasks and recurrence: routes tasks
- Django application → TPA transactions: routes TPA work
- Django application → Knowledge base: serves articles
- Django application → Governed analytics: serves analytics
- Django application → Document gateway: serves documents
- Django application → Versioned API: exposes API
- Django application → Public site and CMS content: serves CMS
- Ticket requests → Ticket records: records requests
- Ticket requests → Ticket workflow: handles workflow
- Ticket workflow → Ticket records: updates tickets (evidence: `services/ticket_workflow.py`)
- Ticket workflow → Queued jobs: enqueues jobs (evidence: `services/ticket_workflow.py`)
- Tasks and recurrence → Ticket records: creates linked tickets (evidence: `apps/tasks/services.py`)
- Tasks and recurrence → Tenant scoping: scopes groups (evidence: `apps/tasks/services.py`)
- TPA transactions → TPA intake and processing: processes transactions
- TPA transactions → TPA access rules: checks permissions
- TPA intake and processing → Policies and members: updates members
- TPA access rules → Tenant scoping: scopes policies (evidence: `apps/tpa/services/access.py`)
- Policies and members → Ticket records: links tickets (evidence: `apps/tpa/models.py`)
- TPA intake and processing → AI providers and extraction: assists extraction
- AI providers and extraction → AI services: calls provider
- Governed analytics → Vanna runtime and memory: runs queries (evidence: `apps/orchestrator/services.py`)
- Vanna runtime and memory → Tenant scoping: applies user scope (evidence: `apps/orchestrator/local_vanna.py`)
- Vanna runtime and memory → AI services: uses Ollama
- Document gateway → Mayan EDMS: integrates EDMS
- Job scheduler → Job execution: dispatches jobs (evidence: `apps/job_center/scheduler.py`)
- Job scheduler → Queued jobs: starts worker (evidence: `apps/job_center/scheduler.py`)
- Queued jobs → Job history: claims and updates (evidence: `apps/job_center/services/queue_worker.py`)
- Queued jobs → Job integrations: runs handlers
- Accounts and organizations → Application database: persists identity
- Ticket records → Application database: persists requests
- Policies and members → Application database: persists transactions
- Job history → Application database: persists job state
