# satheeshrock16-ship-it/ds architecture

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

- Interactive diagram: https://gitdiagram.com/satheeshrock16-ship-it/ds
- Repository: https://github.com/satheeshrock16-ship-it/ds

## Overview

#### Purpose and Entry Points
Torq Wings Design Studio is a Python-oriented aerospace design platform for multirotor, fixed-wing, and VTOL UAV concepts. The README describes initialization only, but the repository tree contains extensive implementation-shaped modules, tests, generated exports, and validation reports. The apparent application entry point is `backend/application/torq_wings_application.py`; runnable fixed-wing workflows are also exposed through `scripts/run_fixed_wing_pipeline.py` and `backend/design/fixed_wing/pipeline/fixed_wing_design_pipeline.py`.

#### Application Orchestration and Routing
The application should normalize design requests into a shared design context, select a vehicle-family engine, then execute its family pipeline. Routing is isolated from aircraft-specific engineering under:
- `backend/design/router/design_engine_router.py`
- `backend/design/router/design_engine_registry.py`
- `backend/design/common/context/design_context.py`

The studio layer appears to manage longer-lived sessions, workflow stages, artifacts, checkpoints, and report delivery, forming a boundary between orchestration/persistence and engineering computation:
- `backend/design/studio/design_studio.py`
- `backend/design/studio/workflow/workflow_engine.py`
- `backend/design/studio/persistence/design_session_manager.py`

#### Mission Intake, Validation, and Vehicle Recommendation
Mission and requirement models provide the common input contract across vehicle families. Validation pipelines reject or annotate invalid requirements before downstream selection/design. An advisor then assesses mission feasibility, eligible vehicle families, ranking, and explanation/reporting:
- `backend/design/common/requirements/requirement_model.py`
- `backend/design/common/validation/validation_pipeline.py`
- `backend/design/advisor/recommendation/recommendation_pipeline.py`

This creates a key boundary: generic mission requirements and recommendation output precede family-specific engineering pipelines.

#### Family-Specific Engineering Pipelines
Three primary design branches exist:
- Fixed wing: `backend/design/fixed_wing/pipeline/fixed_wing_pipeline.py`, `backend/design/fixed_wing/convergence/convergence_manager.py`
- Multirotor: `backend/design/multirotor/pipeline/multirotor_design_pipeline.py`, `backend/design/multirotor/pipeline/convergence.py`
- VTOL: `backend/design/vtol/pipeline/vtol_design_pipeline.py`, `backend/design/vtol/pipeline/convergence.py`

Each branch decomposes work into domain engines that accept requirements/profiles and produce result objects. Fixed-wing and VTOL cover mission, configuration, geometry/aerodynamics, propulsion, electrical, mass properties, performance, payload, avionics, manufacturing, CAD, optimization, verification, and reporting. Multirotor is comparatively focused on mission strategy, propulsion/electrical component selection, frame/layout, and mass properties.

#### Coupled Analysis and Optimization
Engineering domains expose consistent engine/profile/requirements/result/validator/registry patterns. Iterative convergence is necessary because geometry, mass/CG, propulsion, power, and performance mutually constrain one another. Shared optimization abstractions provide candidate generation/evaluation, constraints, objectives, and reports:
- `backend/design/common/optimization/optimizer_base.py`
- `backend/design/fixed_wing/wing/optimization/wing_planform_optimizer.py`
- `backend/design/vtol/optimization/optimization_engine.py`

The pipeline/convergence layer is the control boundary that should prevent unconverged intermediate calculations from being treated as final designs.

#### Verification, Outputs, and Knowledge
Verification is a separate acceptance layer over completed design state, with reusable rule-engine infrastructure and family-specific compliance checks:
- `backend/design/common/verification/verification_engine.py`
- `backend/design/fixed_wing/verification/verification_engine.py`
- `backend/design/vtol/verification/verification_engine.py`

Design results feed CAD, manufacturing, and engineering-report generators; committed sample outputs demonstrate STEP/STL/IGES/glTF, manufacturing artifacts, and HTML/JSON/Markdown/PDF reports under `exports/`.

A document-driven engineering knowledge subsystem loads Markdown documentation, parses entities/parameters, constructs a searchable graph, and supports relationship traversal:
- `backend/knowledge/knowledge_engine.py`
- `backend/knowledge/parser/document_parsing_pipeline.py`
- `backend/knowledge/graph/graph_construction_pipeline.py`

Knowledge source material is repository-local under `docs/engineering_knowledge_base/`; no external database, API, cloud service, package manifest, or deployment infrastructure is visible in the provided tree.

Main entry points: [`backend/design/router/design_engine_registry.py`](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/router/design_engine_registry.py) (Engine registry), [`backend/design/common/verification/verification_engine.py`](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/verification/verification_engine.py) (Verification engines), [`backend/design/common/validation/validation_pipeline.py`](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/validation/validation_pipeline.py) (Requirements validation), [`backend/design/studio/design_studio.py`](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/design_studio.py) (Design studio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Mission intake"]
  node_requirements["Mission requirements<br/>input contract"]
  node_validation["Requirements validation<br/>validation pipeline"]
  node_advisor["Vehicle advisor<br/>recommendation pipeline"]
end

subgraph group_orchestration["Studio orchestration"]
  node_application["Torq Wings application<br/>application entry"]
  node_studio["Design studio<br/>session orchestration<br/>[design_studio.py]"]
  node_workflow["Workflow engine<br/>stage controller<br/>[workflow_engine.py]"]
  node_sessions[("Session manager<br/>persistence")]
  node_context["Design context<br/>shared state<br/>[design_context.py]"]
  node_router["Design engine router<br/>family dispatcher"]
  node_registry["Engine registry<br/>engine catalog"]
end

subgraph group_families["Vehicle engineering"]
  node_fixed_pipeline["Fixed-wing pipeline<br/>family pipeline"]
  node_fixed_convergence["Fixed-wing convergence<br/>coupled analysis control"]
  node_multirotor_pipeline["Multirotor pipeline<br/>family pipeline"]
  node_multirotor_convergence["Multirotor convergence<br/>coupled analysis control<br/>[convergence.py]"]
  node_vtol_pipeline["VTOL pipeline<br/>family pipeline"]
  node_vtol_convergence["VTOL convergence<br/>coupled analysis control<br/>[convergence.py]"]
  node_optimization["Optimization layer<br/>shared and family optimizers<br/>[optimizer_base.py]"]
end

subgraph group_delivery["Verification and delivery"]
  node_verification["Verification engines<br/>acceptance layer"]
  node_exports["Design exports<br/>CAD, manufacturing, reports"]
end

subgraph group_knowledge["Engineering knowledge"]
  node_knowledge_engine["Knowledge engine<br/>document knowledge service"]
  node_document_parser["Document parser<br/>parsing pipeline"]
  node_knowledge_graph["Knowledge graph builder<br/>graph construction"]
  node_knowledge_docs["Engineering knowledge base<br/>Markdown sources"]
end

node_application -->|"starts"| node_studio
node_studio -->|"coordinates"| node_workflow
node_studio -->|"persists"| node_sessions
node_workflow -->|"collects"| node_requirements
node_requirements -->|"validates"| node_validation
node_validation -->|"eligible inputs"| node_advisor
node_validation -->|"normalizes"| node_context
node_advisor -->|"recommended family"| node_router
node_context -->|"design state"| node_router
node_router -->|"resolves engine"| node_registry
node_registry -->|"fixed wing"| node_fixed_pipeline
node_registry -->|"multirotor"| node_multirotor_pipeline
node_registry -->|"VTOL"| node_vtol_pipeline
node_fixed_pipeline -->|"iterates"| node_fixed_convergence
node_multirotor_pipeline -->|"iterates"| node_multirotor_convergence
node_vtol_pipeline -->|"iterates"| node_vtol_convergence
node_optimization -.->|"candidate evaluation"| node_fixed_convergence
node_optimization -.->|"candidate evaluation"| node_vtol_convergence
node_fixed_convergence -->|"converged design"| node_verification
node_multirotor_convergence -->|"converged design"| node_verification
node_vtol_convergence -->|"converged design"| node_verification
node_verification -->|"accepted outputs"| node_exports
node_knowledge_docs -->|"parses"| node_document_parser
node_document_parser -->|"entities and parameters"| node_knowledge_graph
node_knowledge_graph -->|"search and traversal"| node_knowledge_engine

click node_application "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/application/torq_wings_application.py"
click node_studio "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/design_studio.py"
click node_workflow "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/workflow/workflow_engine.py"
click node_sessions "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/persistence/design_session_manager.py"
click node_requirements "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/requirements/requirement_model.py"
click node_validation "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/validation/validation_pipeline.py"
click node_advisor "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/advisor/recommendation/recommendation_pipeline.py"
click node_context "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/context/design_context.py"
click node_router "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/router/design_engine_router.py"
click node_registry "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/router/design_engine_registry.py"
click node_fixed_pipeline "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/fixed_wing/pipeline/fixed_wing_pipeline.py"
click node_fixed_convergence "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/fixed_wing/convergence/convergence_manager.py"
click node_multirotor_pipeline "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/multirotor/pipeline/multirotor_design_pipeline.py"
click node_multirotor_convergence "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/multirotor/pipeline/convergence.py"
click node_vtol_pipeline "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/vtol/pipeline/vtol_design_pipeline.py"
click node_vtol_convergence "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/vtol/pipeline/convergence.py"
click node_optimization "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/optimization/optimizer_base.py"
click node_verification "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/verification/verification_engine.py"
click node_knowledge_engine "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/knowledge_engine.py"
click node_document_parser "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/parser/document_parsing_pipeline.py"
click node_knowledge_graph "https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/graph/graph_construction_pipeline.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_requirements,node_validation,node_advisor toneBlue
class node_application,node_studio,node_workflow,node_sessions,node_context,node_router,node_registry toneAmber
class node_fixed_pipeline,node_fixed_convergence,node_multirotor_pipeline,node_multirotor_convergence,node_vtol_pipeline,node_vtol_convergence,node_optimization toneMint
class node_verification,node_exports toneRose
class node_knowledge_engine,node_document_parser,node_knowledge_graph,node_knowledge_docs toneIndigo
```

## Components

### Mission intake

- [Mission requirements](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/requirements/requirement_model.py): input contract · `backend/design/common/requirements/requirement_model.py`
- [Requirements validation](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/validation/validation_pipeline.py): validation pipeline · `backend/design/common/validation/validation_pipeline.py`
- [Vehicle advisor](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/advisor/recommendation/recommendation_pipeline.py): recommendation pipeline · Ranks feasible vehicle families. · `backend/design/advisor/recommendation/recommendation_pipeline.py`

### Studio orchestration

- [Torq Wings application](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/application/torq_wings_application.py): application entry · `backend/application/torq_wings_application.py`
- [Design studio](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/design_studio.py): session orchestration · Manages long-lived design work and delivery. · `backend/design/studio/design_studio.py`
- [Workflow engine](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/workflow/workflow_engine.py): stage controller · `backend/design/studio/workflow/workflow_engine.py`
- [Session manager](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/studio/persistence/design_session_manager.py): persistence · `backend/design/studio/persistence/design_session_manager.py`
- [Design context](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/context/design_context.py): shared state · `backend/design/common/context/design_context.py`
- [Design engine router](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/router/design_engine_router.py): family dispatcher · `backend/design/router/design_engine_router.py`
- [Engine registry](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/router/design_engine_registry.py): engine catalog · `backend/design/router/design_engine_registry.py`

### Vehicle engineering

- [Fixed-wing pipeline](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/fixed_wing/pipeline/fixed_wing_pipeline.py): family pipeline · `backend/design/fixed_wing/pipeline/fixed_wing_pipeline.py`
- [Fixed-wing convergence](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/fixed_wing/convergence/convergence_manager.py): coupled analysis control · `backend/design/fixed_wing/convergence/convergence_manager.py`
- [Multirotor pipeline](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/multirotor/pipeline/multirotor_design_pipeline.py): family pipeline · `backend/design/multirotor/pipeline/multirotor_design_pipeline.py`
- [Multirotor convergence](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/multirotor/pipeline/convergence.py): coupled analysis control · `backend/design/multirotor/pipeline/convergence.py`
- [VTOL pipeline](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/vtol/pipeline/vtol_design_pipeline.py): family pipeline · `backend/design/vtol/pipeline/vtol_design_pipeline.py`
- [VTOL convergence](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/vtol/pipeline/convergence.py): coupled analysis control · `backend/design/vtol/pipeline/convergence.py`
- [Optimization layer](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/optimization/optimizer_base.py): shared and family optimizers · Generates and evaluates constrained design candidates. · `backend/design/common/optimization/optimizer_base.py`

### Verification and delivery

- [Verification engines](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/design/common/verification/verification_engine.py): acceptance layer · Applies shared and family-specific compliance checks. · `backend/design/common/verification/verification_engine.py`
- **Design exports**: CAD, manufacturing, reports · Committed artifacts include geometry and engineering reports.

### Engineering knowledge

- [Knowledge engine](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/knowledge_engine.py): document knowledge service · `backend/knowledge/knowledge_engine.py`
- [Document parser](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/parser/document_parsing_pipeline.py): parsing pipeline · `backend/knowledge/parser/document_parsing_pipeline.py`
- [Knowledge graph builder](https://github.com/satheeshrock16-ship-it/ds/blob/main/backend/knowledge/graph/graph_construction_pipeline.py): graph construction · `backend/knowledge/graph/graph_construction_pipeline.py`
- **Engineering knowledge base**: Markdown sources

## Connections

- Torq Wings application → Design studio: starts
- Design studio → Workflow engine: coordinates
- Design studio → Session manager: persists
- Workflow engine → Mission requirements: collects
- Mission requirements → Requirements validation: validates
- Requirements validation → Vehicle advisor: eligible inputs
- Requirements validation → Design context: normalizes
- Vehicle advisor → Design engine router: recommended family
- Design context → Design engine router: design state
- Design engine router → Engine registry: resolves engine
- Engine registry → Fixed-wing pipeline: fixed wing
- Engine registry → Multirotor pipeline: multirotor
- Engine registry → VTOL pipeline: VTOL
- Fixed-wing pipeline → Fixed-wing convergence: iterates
- Multirotor pipeline → Multirotor convergence: iterates
- VTOL pipeline → VTOL convergence: iterates
- Optimization layer → Fixed-wing convergence: candidate evaluation
- Optimization layer → VTOL convergence: candidate evaluation
- Fixed-wing convergence → Verification engines: converged design
- Multirotor convergence → Verification engines: converged design
- VTOL convergence → Verification engines: converged design
- Verification engines → Design exports: accepted outputs
- Engineering knowledge base → Document parser: parses
- Document parser → Knowledge graph builder: entities and parameters
- Knowledge graph builder → Knowledge engine: search and traversal
