# openutm/verification architecture

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

- Interactive diagram: https://gitdiagram.com/openutm/verification
- Repository: https://github.com/openutm/verification

## Overview

OpenUTM Verification Toolkit runs configuration-defined conformance scenarios against Flight Blender, from either the CLI or web editor, then records execution results and reports. The graph covers scenario authoring and configuration, server orchestration, step execution, external data sources, and reporting, including documented authentication and cleanup capabilities. Some subsystems are represented by their exact enclosing directories because their implementation files were not sampled; edges are limited to relationships visible in excerpts, the source index, or README.

Main entry points: [`src/openutm_verification/server/main.py`](https://github.com/openutm/verification/blob/main/src/openutm_verification/server/main.py) (HTTP API), [`src/openutm_verification/core/execution/scenario_runner.py`](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/scenario_runner.py) (Scenario execution), [`web-editor/src/components/ScenarioEditor.tsx`](https://github.com/openutm/verification/blob/main/web-editor/src/components/ScenarioEditor.tsx) (Scenario editor), [`web-editor/src/hooks/useScenarioRunner.ts`](https://github.com/openutm/verification/blob/main/web-editor/src/hooks/useScenarioRunner.ts) (Editor runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Scenario authoring"]
  node_editor["Scenario editor<br/>[ScenarioEditor.tsx]"]
  node_editor_runner["Editor runner"]
  node_scenario_conversion["Scenario conversion"]
  node_config_screen["Settings screen<br/>[ConfigScreen.tsx]"]
end

subgraph group_service["Configuration and API"]
  node_api["HTTP API<br/>[main.py]"]
  node_router["Scenario routes<br/>[router.py]"]
  node_config["App configuration<br/>[config_models.py]"]
  node_auth["Authentication"]
end

subgraph group_execution["Verification execution"]
  node_session_runner["Session manager<br/>[runner.py]"]
  node_scenario_loader["Scenario loading<br/>[scenario_loader.py]"]
  node_scenario_runner["Scenario execution<br/>[scenario_runner.py]"]
end

subgraph group_integration["Flight data integrations"]
  node_flight_blender["Flight Blender client"]
  node_air_traffic["Air traffic clients"]
  node_opensky["OpenSky client<br/>[opensky_client.py]"]
  node_simulator["Flight simulation"]
end

subgraph group_reporting["Results and reporting"]
  node_reporting["Report generation<br/>[reporting.py]"]
  node_http_collector["HTTP collector<br/>[http_collector.py]"]
  node_reports["Run reports"]
end

node_user(("Engineer"))
node_flight_blender_service{{"Flight Blender"}}
node_opensky_service{{"OpenSky Network"}}

node_user -->|"authors scenarios"| node_editor
node_editor -->|"converts graph"| node_scenario_conversion
node_editor_runner -->|"builds payload"| node_scenario_conversion
node_editor -.->|"starts runs"| node_editor_runner
node_user -->|"configures toolkit"| node_config_screen
node_config_screen -->|"manages settings"| node_api
node_editor_runner -.->|"submits scenarios"| node_api
node_api -->|"loads configuration"| node_config
node_api -->|"dispatches runs"| node_session_runner
node_api -->|"routes requests"| node_router
node_router -->|"loads scenarios"| node_scenario_loader
node_session_runner -.->|"runs scenarios"| node_scenario_runner
node_scenario_runner -->|"executes verification steps"| node_flight_blender
node_flight_blender -->|"sends API requests"| node_flight_blender_service
node_scenario_runner -->|"uses live data"| node_opensky
node_opensky -->|"requests flight data"| node_opensky_service
node_scenario_runner -.->|"runs traffic checks"| node_air_traffic
node_scenario_runner -.->|"uses flight data"| node_simulator
node_flight_blender -->|"records responses"| node_http_collector
node_api -->|"configures reports"| node_reporting
node_reporting -->|"generates outputs"| node_reports
node_user -->|"reviews results"| node_reports
node_config -->|"selects auth method"| node_auth

click node_editor "https://github.com/openutm/verification/blob/main/web-editor/src/components/ScenarioEditor.tsx"
click node_editor_runner "https://github.com/openutm/verification/blob/main/web-editor/src/hooks/useScenarioRunner.ts"
click node_scenario_conversion "https://github.com/openutm/verification/blob/main/web-editor/src/utils/scenarioConversion.ts"
click node_config_screen "https://github.com/openutm/verification/blob/main/web-editor/src/components/ConfigScreen.tsx"
click node_api "https://github.com/openutm/verification/blob/main/src/openutm_verification/server/main.py"
click node_router "https://github.com/openutm/verification/blob/main/src/openutm_verification/server/router.py"
click node_config "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/config_models.py"
click node_auth "https://github.com/openutm/verification/tree/main/src/openutm_verification/auth"
click node_session_runner "https://github.com/openutm/verification/blob/main/src/openutm_verification/server/runner.py"
click node_scenario_loader "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/scenario_loader.py"
click node_scenario_runner "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/scenario_runner.py"
click node_flight_blender "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/clients/flight_blender/flight_blender_client.py"
click node_air_traffic "https://github.com/openutm/verification/tree/main/src/openutm_verification/core/clients/air_traffic"
click node_opensky "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/clients/opensky/opensky_client.py"
click node_simulator "https://github.com/openutm/verification/tree/main/src/openutm_verification/simulator"
click node_reporting "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/reporting/reporting.py"
click node_http_collector "https://github.com/openutm/verification/blob/main/src/openutm_verification/core/reporting/http_collector.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_editor,node_editor_runner,node_scenario_conversion,node_config_screen toneBlue
class node_api,node_router,node_config,node_auth toneAmber
class node_session_runner,node_scenario_loader,node_scenario_runner toneMint
class node_flight_blender,node_air_traffic,node_opensky,node_simulator toneRose
class node_reporting,node_http_collector,node_reports,node_user,node_flight_blender_service,node_opensky_service toneIndigo
```

## Components

### Scenario authoring

- [Scenario editor](https://github.com/openutm/verification/blob/main/web-editor/src/components/ScenarioEditor.tsx): `web-editor/src/components/ScenarioEditor.tsx`
- [Editor runner](https://github.com/openutm/verification/blob/main/web-editor/src/hooks/useScenarioRunner.ts): `web-editor/src/hooks/useScenarioRunner.ts`
- [Scenario conversion](https://github.com/openutm/verification/blob/main/web-editor/src/utils/scenarioConversion.ts): `web-editor/src/utils/scenarioConversion.ts`
- [Settings screen](https://github.com/openutm/verification/blob/main/web-editor/src/components/ConfigScreen.tsx): `web-editor/src/components/ConfigScreen.tsx`

### Configuration and API

- [HTTP API](https://github.com/openutm/verification/blob/main/src/openutm_verification/server/main.py): `src/openutm_verification/server/main.py`
- [Scenario routes](https://github.com/openutm/verification/blob/main/src/openutm_verification/server/router.py): `src/openutm_verification/server/router.py`
- [App configuration](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/config_models.py): `src/openutm_verification/core/execution/config_models.py`
- [Authentication](https://github.com/openutm/verification/tree/main/src/openutm_verification/auth): `src/openutm_verification/auth`

### Verification execution

- [Session manager](https://github.com/openutm/verification/blob/main/src/openutm_verification/server/runner.py): `src/openutm_verification/server/runner.py`
- [Scenario loading](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/scenario_loader.py): `src/openutm_verification/core/execution/scenario_loader.py`
- [Scenario execution](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/execution/scenario_runner.py): `src/openutm_verification/core/execution/scenario_runner.py`

### Flight data integrations

- [Flight Blender client](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/clients/flight_blender/flight_blender_client.py): `src/openutm_verification/core/clients/flight_blender/flight_blender_client.py`
- [Air traffic clients](https://github.com/openutm/verification/tree/main/src/openutm_verification/core/clients/air_traffic): `src/openutm_verification/core/clients/air_traffic`
- [OpenSky client](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/clients/opensky/opensky_client.py): `src/openutm_verification/core/clients/opensky/opensky_client.py`
- [Flight simulation](https://github.com/openutm/verification/tree/main/src/openutm_verification/simulator): `src/openutm_verification/simulator`

### Results and reporting

- [Report generation](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/reporting/reporting.py): `src/openutm_verification/core/reporting/reporting.py`
- [HTTP collector](https://github.com/openutm/verification/blob/main/src/openutm_verification/core/reporting/http_collector.py): `src/openutm_verification/core/reporting/http_collector.py`
- **Run reports**

### Other components

- **Engineer**
- **Flight Blender**
- **OpenSky Network**

## Connections

- Engineer → Scenario editor: authors scenarios (evidence: `README.md`)
- Scenario editor → Scenario conversion: converts graph (evidence: `web-editor/src/components/ScenarioEditor.tsx`)
- Editor runner → Scenario conversion: builds payload (evidence: `web-editor/src/hooks/useScenarioRunner.ts`)
- Scenario editor → Editor runner: starts runs (evidence: `web-editor/src/components/ScenarioEditor.tsx`)
- Engineer → Settings screen: configures toolkit (evidence: `README.md`)
- Settings screen → HTTP API: manages settings (evidence: `README.md`)
- Editor runner → HTTP API: submits scenarios
- HTTP API → App configuration: loads configuration (evidence: `src/openutm_verification/server/main.py`)
- HTTP API → Session manager: dispatches runs (evidence: `src/openutm_verification/server/main.py`)
- HTTP API → Scenario routes: routes requests (evidence: `src/openutm_verification/server/main.py`)
- Scenario routes → Scenario loading: loads scenarios (evidence: `src/openutm_verification/server/router.py`)
- Session manager → Scenario execution: runs scenarios
- Scenario execution → Flight Blender client: executes verification steps (evidence: `src/openutm_verification/core/clients/flight_blender/flight_blender_client.py`)
- Flight Blender client → Flight Blender: sends API requests
- Scenario execution → OpenSky client: uses live data (evidence: `src/openutm_verification/core/execution/scenario_runner.py`)
- OpenSky client → OpenSky Network: requests flight data
- Scenario execution → Air traffic clients: runs traffic checks (evidence: `src/openutm_verification/core/clients/air_traffic/blue_sky_client.py`)
- Scenario execution → Flight simulation: uses flight data (evidence: `src/openutm_verification/core/execution/scenario_runner.py`)
- Flight Blender client → HTTP collector: records responses
- HTTP API → Report generation: configures reports (evidence: `src/openutm_verification/server/main.py`)
- Report generation → Run reports: generates outputs (evidence: `README.md`)
- Engineer → Run reports: reviews results (evidence: `README.md`)
- App configuration → Authentication: selects auth method (evidence: `README.md`)
