# omsrajput977/venturetwin architecture

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

- Interactive diagram: https://gitdiagram.com/omsrajput977/venturetwin
- Repository: https://github.com/omsrajput977/venturetwin

## Overview

VentureTwin is an executive decision-intelligence product: leaders submit SaaS strategy questions, which pass through specialist analysis, adversarial review, simulation, synthesis, and verification. The graph also preserves onboarding/integrations and interactive boardroom capabilities. Backend call edges use the API source index; workflow-stage links use the README’s documented workflow. Several implementations were not excerpted, so unverified internal links are omitted.

Main entry points: [`orchestrator/supervisor.py`](https://github.com/omsrajput977/venturetwin/blob/main/orchestrator/supervisor.py) (Workflow supervisor), [`api/app.py`](https://github.com/omsrajput977/venturetwin/blob/main/api/app.py) (FastAPI application), [`report/report_builder.py`](https://github.com/omsrajput977/venturetwin/blob/main/report/report_builder.py) (Decision report), [`ui/src/App.tsx`](https://github.com/omsrajput977/venturetwin/blob/main/ui/src/App.tsx) (Executive workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Executive experience"]
  node_workspace["Executive workspace<br/>[App.tsx]"]
  node_boardroom["Boardroom dialogue<br/>[BoardroomPanel.tsx]"]
  node_api_client["Frontend API client<br/>[api.ts]"]
  node_report_view["Report and analysis views"]
end

subgraph group_intake["Intake and context"]
  node_api["FastAPI application<br/>[app.py]"]
  node_context[("Company context")]
  node_question_parser["Question parser<br/>[parser.py]"]
end

subgraph group_decision["Decision workflow"]
  node_specialists["Executive specialists<br/>[specialists.py]"]
  node_mock_agents["Offline agent responses<br/>[mock_handlers.py]"]
  node_supervisor["Workflow supervisor<br/>[supervisor.py]"]
  node_conflict["Conflict arena"]
end

subgraph group_evidence["Data integrations"]
  node_integrations_api["Integration management<br/>[api_routes.py]"]
  node_connectors["Business data connectors"]
end

subgraph group_outcomes["Simulation and outcomes"]
  node_simulation["SaaS simulation<br/>[engine.py]"]
  node_report["Decision report<br/>[report_builder.py]"]
  node_verification["Decision verification<br/>[verifier.py]"]
end

node_leader(("Executive"))

node_leader -->|"submits question"| node_workspace
node_workspace -->|"requests data"| node_api_client
node_api_client -->|"calls backend"| node_api
node_api -->|"parses decision"| node_question_parser
node_api -->|"starts workflow"| node_supervisor
node_api -->|"manages context"| node_context
node_leader -->|"opens dialogue"| node_boardroom
node_integrations_api -->|"manages connections"| node_connectors
node_supervisor -->|"routes tasks"| node_specialists
node_supervisor -.->|"uses offline responses"| node_mock_agents
node_specialists -->|"submit findings"| node_supervisor
node_supervisor -->|"resolves disputes"| node_conflict
node_conflict -->|"tests strategies"| node_simulation
node_supervisor -->|"runs scenarios"| node_simulation
node_simulation -->|"supplies outcomes"| node_report
node_supervisor -->|"requests synthesis"| node_report
node_report -->|"checks decision"| node_verification
node_api -->|"returns report"| node_report
node_workspace -->|"shows report"| node_report_view

click node_workspace "https://github.com/omsrajput977/venturetwin/blob/main/ui/src/App.tsx"
click node_boardroom "https://github.com/omsrajput977/venturetwin/blob/main/ui/src/components/mission/BoardroomPanel.tsx"
click node_api_client "https://github.com/omsrajput977/venturetwin/blob/main/ui/src/api.ts"
click node_api "https://github.com/omsrajput977/venturetwin/blob/main/api/app.py"
click node_context "https://github.com/omsrajput977/venturetwin/blob/main/services/company_context_store.py"
click node_question_parser "https://github.com/omsrajput977/venturetwin/blob/main/orchestrator/parser.py"
click node_integrations_api "https://github.com/omsrajput977/venturetwin/blob/main/integrations/api_routes.py"
click node_connectors "https://github.com/omsrajput977/venturetwin/tree/main/integrations"
click node_specialists "https://github.com/omsrajput977/venturetwin/blob/main/agents/specialists.py"
click node_mock_agents "https://github.com/omsrajput977/venturetwin/blob/main/agents/mock_handlers.py"
click node_supervisor "https://github.com/omsrajput977/venturetwin/blob/main/orchestrator/supervisor.py"
click node_conflict "https://github.com/omsrajput977/venturetwin/tree/main/conflict"
click node_simulation "https://github.com/omsrajput977/venturetwin/blob/main/simulation/engine.py"
click node_report "https://github.com/omsrajput977/venturetwin/blob/main/report/report_builder.py"
click node_verification "https://github.com/omsrajput977/venturetwin/blob/main/verification/verifier.py"
click node_report_view "https://github.com/omsrajput977/venturetwin/blob/main/ui/src/components/DecisionReportView.tsx"

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_workspace,node_boardroom,node_api_client,node_report_view toneBlue
class node_api,node_context,node_question_parser toneAmber
class node_specialists,node_mock_agents,node_supervisor,node_conflict toneMint
class node_integrations_api,node_connectors toneRose
class node_simulation,node_report,node_verification,node_leader toneIndigo
```

## Components

### Executive experience

- [Executive workspace](https://github.com/omsrajput977/venturetwin/blob/main/ui/src/App.tsx): `ui/src/App.tsx`
- [Boardroom dialogue](https://github.com/omsrajput977/venturetwin/blob/main/ui/src/components/mission/BoardroomPanel.tsx): `ui/src/components/mission/BoardroomPanel.tsx`
- [Frontend API client](https://github.com/omsrajput977/venturetwin/blob/main/ui/src/api.ts): `ui/src/api.ts`
- [Report and analysis views](https://github.com/omsrajput977/venturetwin/blob/main/ui/src/components/DecisionReportView.tsx): `ui/src/components/DecisionReportView.tsx`

### Intake and context

- [FastAPI application](https://github.com/omsrajput977/venturetwin/blob/main/api/app.py): `api/app.py`
- [Company context](https://github.com/omsrajput977/venturetwin/blob/main/services/company_context_store.py): `services/company_context_store.py`
- [Question parser](https://github.com/omsrajput977/venturetwin/blob/main/orchestrator/parser.py): `orchestrator/parser.py`

### Decision workflow

- [Executive specialists](https://github.com/omsrajput977/venturetwin/blob/main/agents/specialists.py): `agents/specialists.py`
- [Offline agent responses](https://github.com/omsrajput977/venturetwin/blob/main/agents/mock_handlers.py): `agents/mock_handlers.py`
- [Workflow supervisor](https://github.com/omsrajput977/venturetwin/blob/main/orchestrator/supervisor.py): `orchestrator/supervisor.py`
- [Conflict arena](https://github.com/omsrajput977/venturetwin/tree/main/conflict): `conflict`

### Data integrations

- [Integration management](https://github.com/omsrajput977/venturetwin/blob/main/integrations/api_routes.py): `integrations/api_routes.py`
- [Business data connectors](https://github.com/omsrajput977/venturetwin/tree/main/integrations): `integrations`

### Simulation and outcomes

- [SaaS simulation](https://github.com/omsrajput977/venturetwin/blob/main/simulation/engine.py): `simulation/engine.py`
- [Decision report](https://github.com/omsrajput977/venturetwin/blob/main/report/report_builder.py): `report/report_builder.py`
- [Decision verification](https://github.com/omsrajput977/venturetwin/blob/main/verification/verifier.py): `verification/verifier.py`

### Other components

- **Executive**

## Connections

- Executive → Executive workspace: submits question (evidence: `README.md`)
- Executive workspace → Frontend API client: requests data (evidence: `ui/src/App.tsx`)
- Frontend API client → FastAPI application: calls backend
- FastAPI application → Question parser: parses decision (evidence: `api/app.py`)
- FastAPI application → Workflow supervisor: starts workflow (evidence: `api/app.py`)
- FastAPI application → Company context: manages context (evidence: `api/app.py`)
- Executive → Boardroom dialogue: opens dialogue (evidence: `README.md`)
- Integration management → Business data connectors: manages connections (evidence: `integrations/api_routes.py`)
- Workflow supervisor → Executive specialists: routes tasks (evidence: `README.md`)
- Workflow supervisor → Offline agent responses: uses offline responses
- Executive specialists → Workflow supervisor: submit findings (evidence: `README.md`)
- Workflow supervisor → Conflict arena: resolves disputes (evidence: `README.md`)
- Conflict arena → SaaS simulation: tests strategies (evidence: `README.md`)
- Workflow supervisor → SaaS simulation: runs scenarios (evidence: `README.md`)
- SaaS simulation → Decision report: supplies outcomes (evidence: `README.md`)
- Workflow supervisor → Decision report: requests synthesis (evidence: `README.md`)
- Decision report → Decision verification: checks decision (evidence: `README.md`)
- FastAPI application → Decision report: returns report (evidence: `api/app.py`)
- Executive workspace → Report and analysis views: shows report (evidence: `ui/src/App.tsx`)
