# mgdaaslab/wharttest architecture

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

- Interactive diagram: https://gitdiagram.com/mgdaaslab/wharttest
- Repository: https://github.com/mgdaaslab/wharttest
- Video tour (about a minute): https://gitdiagram.com/mgdaaslab/wharttest/video

## Overview

WHartTest is an AI-assisted test-management and automation platform. Users manage requirements, generate or refine test cases, then execute functional, API, or UI tests and inspect results. The Django backend provides domain services and orchestration; the Vue app is the user interface, and a separate actuator connects to the backend for UI execution. The README documents the major product capabilities and their links; source-level evidence is available for selected actuator and requirement/knowledge components, so other documented relationships are cited to the README rather than presented as inspected implementation details.

Main entry points: [`WHartTest_Vue/src`](https://github.com/mgdaaslab/wharttest/tree/master/WHartTest_Vue/src) (Web app), [`WHartTest_Django/orchestrator_integration/agent_loop_view.py`](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/orchestrator_integration/agent_loop_view.py) (Agent orchestration), [`WHartTest_Django/requirements/services.py`](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/requirements/services.py) (Requirements), [`WHartTest_Django/testcases/models.py`](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/testcases/models.py) (Test cases)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_vue["Web app"]
end

subgraph group_planning["Requirements and AI"]
  node_requirements["Requirements<br/>[services.py]"]
  node_knowledge["Knowledge retrieval<br/>[services.py]"]
  node_prompts["Prompt templates<br/>[services.py]"]
  node_agent["Agent orchestration<br/>[agent_loop_view.py]"]
  node_llm_config[("LLM configuration<br/>[models.py]")]
end

subgraph group_test_assets["Test assets and execution"]
  node_testcases[("Test cases<br/>[models.py]")]
  node_case_execution["Case execution<br/>[tasks.py]"]
  node_api_assets[("API test assets<br/>[models.py]")]
  node_api_runner["API execution<br/>[runner.py]"]
  node_api_tasks["API task service<br/>[services.py]"]
  node_task_center["Task center<br/>[tasks.py]"]
  node_ui_backend["UI automation service<br/>[consumers.py]"]
end

subgraph group_platform["Platform services"]
  node_mcp["MCP tools"]
  node_skills["Agent skills"]
  node_accounts[("Users and access<br/>[models.py]")]
  node_projects[("Projects<br/>[models.py]")]
end

subgraph group_actuator["UI execution"]
  node_actuator_main["Actuator startup<br/>[main.py]"]
  node_actuator_socket["WebSocket client"]
  node_actuator_dispatch["Task dispatch<br/>[consumer.py]"]
  node_browser["Browser execution<br/>[executor.py]"]
end

node_user(("Test team"))

node_user -->|"uses"| node_vue
node_vue -->|"manages"| node_requirements
node_requirements -->|"retrieves context"| node_knowledge
node_requirements -->|"requests AI review"| node_agent
node_agent -->|"uses templates"| node_prompts
node_agent -->|"uses model config"| node_llm_config
node_agent -->|"calls tools"| node_mcp
node_agent -->|"uses skills"| node_skills
node_agent -->|"generates or edits"| node_testcases
node_vue -->|"manages"| node_testcases
node_vue -->|"manages"| node_api_assets
node_api_assets -->|"configures"| node_api_runner
node_vue -->|"runs tests"| node_api_runner
node_api_runner -->|"supports task runs"| node_api_tasks
node_vue -->|"tracks tasks"| node_task_center
node_testcases -->|"executes"| node_case_execution
node_case_execution -->|"drives test run"| node_agent
node_vue -->|"manages UI runs"| node_ui_backend
node_ui_backend -.->|"sends execution work"| node_actuator_socket
node_actuator_main -->|"connects"| node_actuator_socket
node_actuator_socket -->|"routes messages"| node_actuator_dispatch
node_actuator_dispatch -->|"executes actions"| node_browser
node_accounts -->|"supports access"| node_projects
node_vue -->|"manages users"| node_accounts
node_vue -->|"manages projects"| node_projects

click node_vue "https://github.com/mgdaaslab/wharttest/tree/master/WHartTest_Vue/src"
click node_requirements "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/requirements/services.py"
click node_knowledge "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/knowledge/services.py"
click node_prompts "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/prompts/services.py"
click node_agent "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/orchestrator_integration/agent_loop_view.py"
click node_llm_config "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/langgraph_integration/models.py"
click node_testcases "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/testcases/models.py"
click node_case_execution "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/testcases/tasks.py"
click node_api_assets "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_interfaces/models.py"
click node_api_runner "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_testcases/runner.py"
click node_api_tasks "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_testtasks/services.py"
click node_task_center "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/task_center/tasks.py"
click node_ui_backend "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/ui_automation/consumers.py"
click node_actuator_main "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/main.py"
click node_actuator_socket "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/websocket_client.py"
click node_actuator_dispatch "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/consumer.py"
click node_browser "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/executor.py"
click node_mcp "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/mcp_tools/persistent_client.py"
click node_skills "https://github.com/mgdaaslab/wharttest/tree/master/WHartTest_Django/skills"
click node_accounts "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/accounts/models.py"
click node_projects "https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/projects/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_vue toneBlue
class node_requirements,node_knowledge,node_prompts,node_agent,node_llm_config toneAmber
class node_testcases,node_case_execution,node_api_assets,node_api_runner,node_api_tasks,node_task_center,node_ui_backend toneMint
class node_mcp,node_skills,node_accounts,node_projects toneRose
class node_actuator_main,node_actuator_socket,node_actuator_dispatch,node_browser,node_user toneIndigo
```

## Components

### User experience

- [Web app](https://github.com/mgdaaslab/wharttest/tree/master/WHartTest_Vue/src): `WHartTest_Vue/src`

### Requirements and AI

- [Requirements](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/requirements/services.py): `WHartTest_Django/requirements/services.py`
- [Knowledge retrieval](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/knowledge/services.py): `WHartTest_Django/knowledge/services.py`
- [Prompt templates](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/prompts/services.py): `WHartTest_Django/prompts/services.py`
- [Agent orchestration](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/orchestrator_integration/agent_loop_view.py): `WHartTest_Django/orchestrator_integration/agent_loop_view.py`
- [LLM configuration](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/langgraph_integration/models.py): `WHartTest_Django/langgraph_integration/models.py`

### Test assets and execution

- [Test cases](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/testcases/models.py): `WHartTest_Django/testcases/models.py`
- [Case execution](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/testcases/tasks.py): `WHartTest_Django/testcases/tasks.py`
- [API test assets](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_interfaces/models.py): `WHartTest_Django/api_interfaces/models.py`
- [API execution](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_testcases/runner.py): `WHartTest_Django/api_testcases/runner.py`
- [API task service](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/api_testtasks/services.py): `WHartTest_Django/api_testtasks/services.py`
- [Task center](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/task_center/tasks.py): `WHartTest_Django/task_center/tasks.py`
- [UI automation service](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/ui_automation/consumers.py): `WHartTest_Django/ui_automation/consumers.py`

### Platform services

- [MCP tools](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/mcp_tools/persistent_client.py): `WHartTest_Django/mcp_tools/persistent_client.py`
- [Agent skills](https://github.com/mgdaaslab/wharttest/tree/master/WHartTest_Django/skills): `WHartTest_Django/skills`
- [Users and access](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/accounts/models.py): `WHartTest_Django/accounts/models.py`
- [Projects](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Django/projects/models.py): `WHartTest_Django/projects/models.py`

### UI execution

- [Actuator startup](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/main.py): `WHartTest_Actuator/main.py`
- [WebSocket client](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/websocket_client.py): `WHartTest_Actuator/websocket_client.py`
- [Task dispatch](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/consumer.py): `WHartTest_Actuator/consumer.py`
- [Browser execution](https://github.com/mgdaaslab/wharttest/blob/master/WHartTest_Actuator/executor.py): `WHartTest_Actuator/executor.py`

### Other components

- **Test team**

## Connections

- Test team → Web app: uses (evidence: `README.md`)
- Web app → Requirements: manages (evidence: `README.md`)
- Requirements → Knowledge retrieval: retrieves context (evidence: `README.md`)
- Requirements → Agent orchestration: requests AI review (evidence: `README.md`)
- Agent orchestration → Prompt templates: uses templates (evidence: `README.md`)
- Agent orchestration → LLM configuration: uses model config (evidence: `README.md`)
- Agent orchestration → MCP tools: calls tools (evidence: `README.md`)
- Agent orchestration → Agent skills: uses skills (evidence: `README.md`)
- Agent orchestration → Test cases: generates or edits (evidence: `README.md`)
- Web app → Test cases: manages (evidence: `README.md`)
- Web app → API test assets: manages (evidence: `README.md`)
- API test assets → API execution: configures (evidence: `README.md`)
- Web app → API execution: runs tests (evidence: `README.md`)
- API execution → API task service: supports task runs (evidence: `README.md`)
- Web app → Task center: tracks tasks (evidence: `README.md`)
- Test cases → Case execution: executes (evidence: `README.md`)
- Case execution → Agent orchestration: drives test run (evidence: `WHartTest_Django/testcases/tasks.py`)
- Web app → UI automation service: manages UI runs (evidence: `README.md`)
- UI automation service → WebSocket client: sends execution work
- Actuator startup → WebSocket client: connects (evidence: `WHartTest_Actuator/main.py`)
- WebSocket client → Task dispatch: routes messages (evidence: `WHartTest_Actuator/consumer.py`)
- Task dispatch → Browser execution: executes actions (evidence: `WHartTest_Actuator/consumer.py`)
- Users and access → Projects: supports access (evidence: `README.md`)
- Web app → Users and access: manages users (evidence: `README.md`)
- Web app → Projects: manages projects (evidence: `README.md`)
