How vibhavpan/adas-sotif-validation-copilot works
ADAS Validation Copilot accepts an OpenSCENARIO file and telemetry log, runs a LangGraph triage-and-repair workflow, simulates the proposed scenario, and returns diagnosis, patch, and simulation results for display. The graph preserves the distinct preflight, diagnosis, patch generation, patch validation, and simulation stages, plus the frontend/API boundary and indexed database modules. Workflow call relationships are supported by its excerpt; unsampled database usage and the separate graph nodes module are shown without inferred connections.
Main entry points: workflow.py Workflow Engine · llm.py LLM Client · App.tsx Validation Dashboard · api.ts API Client
Components 23
User Interface
- Validation Dashboard
frontend/src/App.tsx - API Client
frontend/src/services/api.ts
Triage Workflow
- Validation API
backend/main.py - Agent State
backend/app/agent/state.py - Workflow Engine
backend/app/graph/workflow.py - Graph Nodes
backend/app/graph/nodes.py - Graph State
backend/app/graph/state.py
Analysis and Simulation
- Preflight Checks
backend/app/graph/workflow.py - XML Validation
backend/app/mcp/xml_parser.py - Telemetry Window
backend/app/mcp/log_windower.py - Failure Diagnosis
backend/app/graph/workflow.py - Patch Generation
backend/app/graph/workflow.py - Patch Validation
backend/app/graph/workflow.py - Scenario Simulation
backend/app/graph/workflow.py - esmini Runner
backend/app/sim/esmini_runner.py
Platform Services
- LLM Client
backend/app/core/llm.py - Configuration
backend/app/core/config.py - SQL Database Access
backend/app/db/database.py - Vector Store
backend/app/db/vector_store.py - DB Module
backend/app/db/db.py
Other components
- User
- esmini Container
- Gemini Service
Connections 23
- User → Validation Dashboard: uploads files
frontend/src/App.tsx - Validation Dashboard → API Client: submits validation
frontend/src/App.tsx - API Client → Validation API: posts files
frontend/src/services/api.ts - Validation API → Workflow Engine: invokes workflow
backend/main.py - Workflow Engine → Preflight Checks: starts at
backend/app/graph/workflow.py - Preflight Checks → XML Validation: validates XML
backend/app/graph/workflow.py - Preflight Checks → Telemetry Window: extracts window
backend/app/graph/workflow.py - Workflow Engine → Failure Diagnosis: dispatches stage
backend/app/graph/workflow.py - Failure Diagnosis → Gemini Service: requests diagnosis
backend/app/graph/workflow.py - Workflow Engine → Patch Generation: dispatches stage
backend/app/graph/workflow.py - Patch Generation → Gemini Service: requests patch
backend/app/graph/workflow.py - Workflow Engine → Patch Validation: validates patch
backend/app/graph/workflow.py - Patch Validation → Patch Generation: retries patch
backend/app/graph/workflow.py - Workflow Engine → Scenario Simulation: dispatches stage
backend/app/graph/workflow.py - Scenario Simulation → esmini Runner: runs scenario
backend/app/graph/workflow.py - esmini Runner → esmini Container: launches container
backend/app/sim/esmini_runner.py - Workflow Engine → Graph Nodes
- Workflow Engine → Agent State
- Workflow Engine → Graph State
- LLM Client → Configuration: reads settings
backend/app/core/llm.py - LLM Client → Gemini Service: invokes model
backend/app/core/llm.py - SQL Database Access → Configuration: reads settings
backend/app/db/database.py - Vector Store → SQL Database Access
backend/app/db/vector_store.py