# sasidhar265/testpilotai architecture

> Architecture diagram of the GitHub repository sasidhar265/testpilotai, 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/sasidhar265/testpilotai
- Repository: https://github.com/sasidhar265/testpilotai

## Overview

Auto Finance Quality is a FastAPI-backed test-design workspace for vehicle-finance requirements. Its main journey reads requirements, supports reviewable story and scenario handoffs, generates and validates test cases, then converts approved suites or runs configured automation and records evidence. The README also documents knowledge reuse, Jira export, script packs, and execution reporting. Edges based on the README are documented product relationships; source-backed links cite the excerpts or SOURCE INDEX. Unsampled implementation details are not inferred.

Main entry points: [`app/agents/context_converter_agent.py`](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/context_converter_agent.py) (Export Conversion), [`app/workflow_routes.py`](https://github.com/sasidhar265/testpilotai/blob/main/app/workflow_routes.py) (Workflow Endpoints), [`app/workspace_routes.py`](https://github.com/sasidhar265/testpilotai/blob/main/app/workspace_routes.py) (Workspace and Reporting APIs), [`app/agents/artifact_runner.py`](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/artifact_runner.py) (Test Suite Generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Requirement Workflow"]
  node_ingestion["Requirement Ingestion"]
  node_workflow_routes["Workflow Endpoints<br/>[workflow_routes.py]"]
  node_workflow_agent["Story and Scenario Agent<br/>[workflow_agent.py]"]
  node_models["Workflow and Suite Models<br/>[models.py]"]
end

subgraph group_quality["Suite Quality"]
  node_requirements_gate["Requirements Alignment Gate"]
  node_validation["Suite Validation"]
  node_converter["Export Conversion"]
  node_step_definitions["ReqnRoll Bindings"]
  node_automation_pack["Automation Packs<br/>[automation_pack.py]"]
  node_script_packs["JMeter and SQL Packs<br/>[script_packs.py]"]
end

subgraph group_agents["Agent Runtime"]
  node_test_generation["Test Suite Generation<br/>[artifact_runner.py]"]
  node_agent_runtime["Agent Runtime<br/>[runner.py]"]
end

subgraph group_execution["Execution and Evidence"]
  node_execution["Configured Automation Execution"]
  node_lifecycle[("Lifecycle Reviews and Evidence<br/>[stlc.py]")]
  node_dashboard["Execution Dashboard<br/>[dashboard.py]"]
end

subgraph group_workspace["Workspace Services"]
  node_api["FastAPI Workspace<br/>[main.py]"]
  node_auth["Sessions and Access<br/>[auth.py]"]
  node_knowledge[("Approved Knowledge Memory<br/>[memory.py]")]
  node_jira["Jira Integration<br/>[jira.py]"]
  node_workspace_routes["Workspace and Reporting APIs"]
end

node_user(("Workspace User"))
node_mobile["Mobile Apps<br/>[bootstrap.js]"]

node_user -->|"uses workspace"| node_api
node_mobile -->|"connects to"| node_api
node_api -.->|"protects access"| node_auth
node_user -->|"provides requirements"| node_ingestion
node_workflow_routes -->|"extracts documents"| node_ingestion
node_workflow_routes -->|"requests stories"| node_workflow_agent
node_workflow_agent -->|"generates artifacts"| node_agent_runtime
node_workflow_routes -->|"validates handoffs"| node_requirements_gate
node_user -->|"reviews handoffs"| node_workflow_routes
node_user -->|"chooses test format"| node_test_generation
node_test_generation -->|"runs agent calls"| node_agent_runtime
node_test_generation -.->|"checks generated suite"| node_validation
node_validation -->|"gates conversion"| node_converter
node_converter -->|"enables bindings"| node_step_definitions
node_converter -->|"exports feature suite"| node_automation_pack
node_user -->|"runs configured features"| node_execution
node_execution -.->|"records outcomes"| node_lifecycle
node_user -->|"reviews suites"| node_lifecycle
node_lifecycle -.->|"feeds run summaries"| node_dashboard
node_workspace_routes -->|"serves dashboard"| node_dashboard
node_workspace_routes -->|"reads knowledge"| node_knowledge
node_converter -->|"exports Jira formats"| node_jira
node_user -->|"requests test packs"| node_script_packs
node_workspace_routes -->|"shows automation history"| node_execution

click node_mobile "https://github.com/sasidhar265/testpilotai/blob/main/mobile/src/bootstrap.js"
click node_api "https://github.com/sasidhar265/testpilotai/blob/main/app/main.py"
click node_auth "https://github.com/sasidhar265/testpilotai/blob/main/app/auth.py"
click node_ingestion "https://github.com/sasidhar265/testpilotai/blob/main/app/services/document_ingestion.py"
click node_workflow_routes "https://github.com/sasidhar265/testpilotai/blob/main/app/workflow_routes.py"
click node_workflow_agent "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/workflow_agent.py"
click node_models "https://github.com/sasidhar265/testpilotai/blob/main/app/models.py"
click node_requirements_gate "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/requirements_validation.py"
click node_test_generation "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/artifact_runner.py"
click node_validation "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/requirements_validation.py"
click node_converter "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/context_converter_agent.py"
click node_step_definitions "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/reqnroll_step_definition_agent.py"
click node_automation_pack "https://github.com/sasidhar265/testpilotai/blob/main/app/automation_pack.py"
click node_agent_runtime "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/runner.py"
click node_knowledge "https://github.com/sasidhar265/testpilotai/blob/main/app/memory.py"
click node_jira "https://github.com/sasidhar265/testpilotai/blob/main/app/jira.py"
click node_script_packs "https://github.com/sasidhar265/testpilotai/blob/main/app/script_packs.py"
click node_execution "https://github.com/sasidhar265/testpilotai/blob/main/app/agents/automation_execution_agent.py"
click node_lifecycle "https://github.com/sasidhar265/testpilotai/blob/main/app/services/stlc.py"
click node_dashboard "https://github.com/sasidhar265/testpilotai/blob/main/app/services/dashboard.py"
click node_workspace_routes "https://github.com/sasidhar265/testpilotai/blob/main/app/workspace_routes.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_ingestion,node_workflow_routes,node_workflow_agent,node_models,node_user toneBlue
class node_requirements_gate,node_validation,node_converter,node_step_definitions,node_automation_pack,node_script_packs toneAmber
class node_test_generation,node_agent_runtime toneMint
class node_execution,node_lifecycle,node_dashboard toneRose
class node_api,node_auth,node_knowledge,node_jira,node_workspace_routes toneIndigo
class node_mobile toneTeal
```

## Components

### Requirement Workflow

- [Requirement Ingestion](https://github.com/sasidhar265/testpilotai/blob/main/app/services/document_ingestion.py): `app/services/document_ingestion.py`
- [Workflow Endpoints](https://github.com/sasidhar265/testpilotai/blob/main/app/workflow_routes.py): `app/workflow_routes.py`
- [Story and Scenario Agent](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/workflow_agent.py): `app/agents/workflow_agent.py`
- [Workflow and Suite Models](https://github.com/sasidhar265/testpilotai/blob/main/app/models.py): `app/models.py`

### Suite Quality

- [Requirements Alignment Gate](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/requirements_validation.py): `app/agents/requirements_validation.py`
- [Suite Validation](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/requirements_validation.py): `app/agents/requirements_validation.py`
- [Export Conversion](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/context_converter_agent.py): `app/agents/context_converter_agent.py`
- [ReqnRoll Bindings](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/reqnroll_step_definition_agent.py): `app/agents/reqnroll_step_definition_agent.py`
- [Automation Packs](https://github.com/sasidhar265/testpilotai/blob/main/app/automation_pack.py): `app/automation_pack.py`
- [JMeter and SQL Packs](https://github.com/sasidhar265/testpilotai/blob/main/app/script_packs.py): `app/script_packs.py`

### Agent Runtime

- [Test Suite Generation](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/artifact_runner.py): `app/agents/artifact_runner.py`
- [Agent Runtime](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/runner.py): `app/agents/runner.py`

### Execution and Evidence

- [Configured Automation Execution](https://github.com/sasidhar265/testpilotai/blob/main/app/agents/automation_execution_agent.py): `app/agents/automation_execution_agent.py`
- [Lifecycle Reviews and Evidence](https://github.com/sasidhar265/testpilotai/blob/main/app/services/stlc.py): `app/services/stlc.py`
- [Execution Dashboard](https://github.com/sasidhar265/testpilotai/blob/main/app/services/dashboard.py): `app/services/dashboard.py`

### Workspace Services

- [FastAPI Workspace](https://github.com/sasidhar265/testpilotai/blob/main/app/main.py): `app/main.py`
- [Sessions and Access](https://github.com/sasidhar265/testpilotai/blob/main/app/auth.py): `app/auth.py`
- [Approved Knowledge Memory](https://github.com/sasidhar265/testpilotai/blob/main/app/memory.py): `app/memory.py`
- [Jira Integration](https://github.com/sasidhar265/testpilotai/blob/main/app/jira.py): `app/jira.py`
- [Workspace and Reporting APIs](https://github.com/sasidhar265/testpilotai/blob/main/app/workspace_routes.py): `app/workspace_routes.py`

### Other components

- **Workspace User**
- [Mobile Apps](https://github.com/sasidhar265/testpilotai/blob/main/mobile/src/bootstrap.js): `mobile/src/bootstrap.js`

## Connections

- Workspace User → FastAPI Workspace: uses workspace (evidence: `README.md`)
- Mobile Apps → FastAPI Workspace: connects to (evidence: `README.md`)
- FastAPI Workspace → Sessions and Access: protects access (evidence: `app/main.py`)
- Workspace User → Requirement Ingestion: provides requirements (evidence: `README.md`)
- Workflow Endpoints → Requirement Ingestion: extracts documents (evidence: `app/workflow_routes.py`)
- Workflow Endpoints → Story and Scenario Agent: requests stories (evidence: `app/workflow_routes.py`)
- Story and Scenario Agent → Agent Runtime: generates artifacts (evidence: `app/agents/workflow_agent.py`)
- Workflow Endpoints → Requirements Alignment Gate: validates handoffs (evidence: `app/workflow_routes.py`)
- Workspace User → Workflow Endpoints: reviews handoffs (evidence: `README.md`)
- Workspace User → Test Suite Generation: chooses test format (evidence: `README.md`)
- Test Suite Generation → Agent Runtime: runs agent calls (evidence: `app/agents/runner.py`)
- Test Suite Generation → Suite Validation: checks generated suite (evidence: `app/agents/requirements_validation.py`)
- Suite Validation → Export Conversion: gates conversion (evidence: `app/agents/context_converter_agent.py`)
- Export Conversion → ReqnRoll Bindings: enables bindings (evidence: `README.md`)
- Export Conversion → Automation Packs: exports feature suite (evidence: `README.md`)
- Workspace User → Configured Automation Execution: runs configured features (evidence: `README.md`)
- Configured Automation Execution → Lifecycle Reviews and Evidence: records outcomes
- Workspace User → Lifecycle Reviews and Evidence: reviews suites
- Lifecycle Reviews and Evidence → Execution Dashboard: feeds run summaries
- Workspace and Reporting APIs → Execution Dashboard: serves dashboard (evidence: `app/workspace_routes.py`)
- Workspace and Reporting APIs → Approved Knowledge Memory: reads knowledge (evidence: `app/workspace_routes.py`)
- Export Conversion → Jira Integration: exports Jira formats (evidence: `README.md`)
- Workspace User → JMeter and SQL Packs: requests test packs (evidence: `README.md`)
- Workspace and Reporting APIs → Configured Automation Execution: shows automation history (evidence: `app/workspace_routes.py`)
