# rasidi3112/helios architecture

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

- Interactive diagram: https://gitdiagram.com/rasidi3112/helios
- Repository: https://github.com/rasidi3112/helios

## Overview

Helios Collective is an MCP-based research and knowledge-synthesis platform. A user submits a place lookup or inquiry; the orchestrator scopes places, plans research, gathers tool results, commits cited claims to a versioned world, verifies citations, and optionally debates and localizes the resulting brief. The README documents these major stages and the hash-chained provenance requirement. Source excerpts confirm key orchestration, server, world-store, and localization behavior; links for unsampled subsystems rely on README statements rather than inspected implementation.

Main entry points: [`packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`](https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py) (Inquiry runner), [`packages/helios-world/src/helios_world/store.py`](https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/store.py) (Versioned world), [`packages/helios-l10n/src/helios_l10n/pipeline.py`](https://github.com/rasidi3112/helios/blob/main/packages/helios-l10n/src/helios_l10n/pipeline.py) (Brief localization), [`packages/helios-debate/src/helios_debate/runner.py`](https://github.com/rasidi3112/helios/blob/main/packages/helios-debate/src/helios_debate/runner.py) (Claim debate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Research workflow"]
  node_orchestrator["Inquiry runner<br/>[inquiry_run.py]"]
  node_planner["Research planner<br/>[planner.py]"]
  node_claims["Finding claims<br/>[claims.py]"]
end

subgraph group_tools["MCP tools"]
  node_geo["Geo server<br/>[server.py]"]
  node_gazetteer[("Place gazetteer<br/>[gazetteer.py]")]
  node_climate["Climate server<br/>[server.py]"]
  node_power["NASA POWER client<br/>[power.py]"]
  node_scholarly["Scholarly server<br/>[server.py]"]
  node_openalex["OpenAlex client<br/>[openalex.py]"]
end

subgraph group_knowledge["Knowledge and audit"]
  node_world_store[("Versioned world<br/>[store.py]")]
  node_world_models["World records<br/>[models.py]"]
  node_world_resources["World resources<br/>[resources.py]"]
  node_ledger[("Provenance ledger<br/>[ledger.py]")]
  node_payloads[("Content payloads<br/>[payloads.py]")]
end

subgraph group_quality["Review and delivery"]
  node_verifier["Citation verifier<br/>[verifier.py]"]
  node_facts["Fact extraction<br/>[facts.py]"]
  node_debate["Claim debate<br/>[runner.py]"]
  node_debate_rules["Debate rules<br/>[rules.py]"]
  node_localizer["Brief localization<br/>[pipeline.py]"]
  node_locale_profile["Locale profile<br/>[profile.py]"]
end

subgraph group_runtime["Runtime services"]
  node_gateway["MCP gateway<br/>[gateway.py]"]
  node_mcp_client["MCP client<br/>[client.py]"]
  node_model_router["Model router<br/>[router.py]"]
  node_budget["Model budgets<br/>[budget.py]"]
  node_api["HTTP API<br/>[app.py]"]
  node_web["Web interface<br/>[app.js]"]
end

node_user(("Questioner"))
node_brief["Research brief"]
node_mcp_servers(("MCP tool servers"))
node_external_apis(("External data APIs"))

node_user -->|"asks inquiry"| node_orchestrator
node_orchestrator -->|"plans research"| node_planner
node_orchestrator -->|"calls tools"| node_gateway
node_gateway -->|"dispatches through"| node_mcp_client
node_mcp_client -->|"uses MCP"| node_mcp_servers
node_mcp_servers -->|"hosts geo tools"| node_geo
node_mcp_servers -->|"hosts climate tools"| node_climate
node_mcp_servers -->|"hosts literature tools"| node_scholarly
node_geo -->|"resolves places"| node_gazetteer
node_climate -->|"fetches climatology"| node_power
node_scholarly -->|"searches works"| node_openalex
node_power -->|"queries NASA POWER"| node_external_apis
node_openalex -->|"queries OpenAlex"| node_external_apis
node_orchestrator -->|"forms findings"| node_claims
node_orchestrator -->|"commits claims"| node_world_store
node_world_store -->|"applies patches"| node_world_models
node_world_resources -->|"reads world state"| node_world_store
node_orchestrator -->|"verifies citations"| node_verifier
node_verifier -->|"checks claim facts"| node_facts
node_orchestrator -->|"starts debate"| node_debate
node_debate -->|"uses rules"| node_debate_rules
node_debate -->|"records verdicts"| node_world_store
node_orchestrator -->|"localizes brief"| node_localizer
node_localizer -->|"uses locale"| node_locale_profile
node_localizer -->|"produces brief"| node_brief
node_orchestrator -->|"returns deliverable"| node_brief
node_orchestrator -->|"records run events"| node_ledger
node_world_store -->|"records commits"| node_ledger
node_ledger -->|"stores content"| node_payloads
node_model_router -->|"accounts usage"| node_budget
node_localizer -->|"requests translation"| node_model_router
node_web -->|"submits inquiries"| node_api
node_api -->|"runs inquiries"| node_orchestrator

click node_orchestrator "https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py"
click node_planner "https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/planner.py"
click node_claims "https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/claims.py"
click node_gateway "https://github.com/rasidi3112/helios/blob/main/packages/helios-gateway/src/helios_gateway/gateway.py"
click node_mcp_client "https://github.com/rasidi3112/helios/blob/main/packages/helios-gateway/src/helios_gateway/client.py"
click node_geo "https://github.com/rasidi3112/helios/blob/main/servers/geo/src/helios_geo/server.py"
click node_gazetteer "https://github.com/rasidi3112/helios/blob/main/servers/geo/src/helios_geo/gazetteer.py"
click node_climate "https://github.com/rasidi3112/helios/blob/main/servers/climate/src/helios_climate/server.py"
click node_power "https://github.com/rasidi3112/helios/blob/main/servers/climate/src/helios_climate/power.py"
click node_scholarly "https://github.com/rasidi3112/helios/blob/main/servers/scholarly/src/helios_scholarly/server.py"
click node_openalex "https://github.com/rasidi3112/helios/blob/main/servers/scholarly/src/helios_scholarly/openalex.py"
click node_world_store "https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/store.py"
click node_world_models "https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/models.py"
click node_world_resources "https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/resources.py"
click node_verifier "https://github.com/rasidi3112/helios/blob/main/packages/helios-verifier/src/helios_verifier/verifier.py"
click node_facts "https://github.com/rasidi3112/helios/blob/main/packages/helios-verifier/src/helios_verifier/facts.py"
click node_debate "https://github.com/rasidi3112/helios/blob/main/packages/helios-debate/src/helios_debate/runner.py"
click node_debate_rules "https://github.com/rasidi3112/helios/blob/main/packages/helios-debate/src/helios_debate/rules.py"
click node_localizer "https://github.com/rasidi3112/helios/blob/main/packages/helios-l10n/src/helios_l10n/pipeline.py"
click node_locale_profile "https://github.com/rasidi3112/helios/blob/main/packages/helios-l10n/src/helios_l10n/profile.py"
click node_ledger "https://github.com/rasidi3112/helios/blob/main/packages/helios-prov/src/helios_prov/ledger.py"
click node_payloads "https://github.com/rasidi3112/helios/blob/main/packages/helios-prov/src/helios_prov/payloads.py"
click node_model_router "https://github.com/rasidi3112/helios/blob/main/packages/helios-models/src/helios_models/router.py"
click node_budget "https://github.com/rasidi3112/helios/blob/main/packages/helios-models/src/helios_models/budget.py"
click node_api "https://github.com/rasidi3112/helios/blob/main/packages/helios-api/src/helios_api/app.py"
click node_web "https://github.com/rasidi3112/helios/blob/main/web/app.js"

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_orchestrator,node_planner,node_claims toneBlue
class node_geo,node_gazetteer,node_climate,node_power,node_scholarly,node_openalex toneAmber
class node_world_store,node_world_models,node_world_resources,node_ledger,node_payloads,node_mcp_servers,node_external_apis toneMint
class node_verifier,node_facts,node_debate,node_debate_rules,node_localizer,node_locale_profile toneRose
class node_gateway,node_mcp_client,node_model_router,node_budget,node_api,node_web,node_user,node_brief toneIndigo
```

## Components

### Research workflow

- [Inquiry runner](https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py): `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`
- [Research planner](https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/planner.py): `packages/helios-orchestrator/src/helios_orchestrator/planner.py`
- [Finding claims](https://github.com/rasidi3112/helios/blob/main/packages/helios-orchestrator/src/helios_orchestrator/claims.py): `packages/helios-orchestrator/src/helios_orchestrator/claims.py`

### MCP tools

- [Geo server](https://github.com/rasidi3112/helios/blob/main/servers/geo/src/helios_geo/server.py): `servers/geo/src/helios_geo/server.py`
- [Place gazetteer](https://github.com/rasidi3112/helios/blob/main/servers/geo/src/helios_geo/gazetteer.py): `servers/geo/src/helios_geo/gazetteer.py`
- [Climate server](https://github.com/rasidi3112/helios/blob/main/servers/climate/src/helios_climate/server.py): `servers/climate/src/helios_climate/server.py`
- [NASA POWER client](https://github.com/rasidi3112/helios/blob/main/servers/climate/src/helios_climate/power.py): `servers/climate/src/helios_climate/power.py`
- [Scholarly server](https://github.com/rasidi3112/helios/blob/main/servers/scholarly/src/helios_scholarly/server.py): `servers/scholarly/src/helios_scholarly/server.py`
- [OpenAlex client](https://github.com/rasidi3112/helios/blob/main/servers/scholarly/src/helios_scholarly/openalex.py): `servers/scholarly/src/helios_scholarly/openalex.py`

### Knowledge and audit

- [Versioned world](https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/store.py): `packages/helios-world/src/helios_world/store.py`
- [World records](https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/models.py): `packages/helios-world/src/helios_world/models.py`
- [World resources](https://github.com/rasidi3112/helios/blob/main/packages/helios-world/src/helios_world/resources.py): `packages/helios-world/src/helios_world/resources.py`
- [Provenance ledger](https://github.com/rasidi3112/helios/blob/main/packages/helios-prov/src/helios_prov/ledger.py): `packages/helios-prov/src/helios_prov/ledger.py`
- [Content payloads](https://github.com/rasidi3112/helios/blob/main/packages/helios-prov/src/helios_prov/payloads.py): `packages/helios-prov/src/helios_prov/payloads.py`

### Review and delivery

- [Citation verifier](https://github.com/rasidi3112/helios/blob/main/packages/helios-verifier/src/helios_verifier/verifier.py): `packages/helios-verifier/src/helios_verifier/verifier.py`
- [Fact extraction](https://github.com/rasidi3112/helios/blob/main/packages/helios-verifier/src/helios_verifier/facts.py): `packages/helios-verifier/src/helios_verifier/facts.py`
- [Claim debate](https://github.com/rasidi3112/helios/blob/main/packages/helios-debate/src/helios_debate/runner.py): `packages/helios-debate/src/helios_debate/runner.py`
- [Debate rules](https://github.com/rasidi3112/helios/blob/main/packages/helios-debate/src/helios_debate/rules.py): `packages/helios-debate/src/helios_debate/rules.py`
- [Brief localization](https://github.com/rasidi3112/helios/blob/main/packages/helios-l10n/src/helios_l10n/pipeline.py): `packages/helios-l10n/src/helios_l10n/pipeline.py`
- [Locale profile](https://github.com/rasidi3112/helios/blob/main/packages/helios-l10n/src/helios_l10n/profile.py): `packages/helios-l10n/src/helios_l10n/profile.py`

### Runtime services

- [MCP gateway](https://github.com/rasidi3112/helios/blob/main/packages/helios-gateway/src/helios_gateway/gateway.py): `packages/helios-gateway/src/helios_gateway/gateway.py`
- [MCP client](https://github.com/rasidi3112/helios/blob/main/packages/helios-gateway/src/helios_gateway/client.py): `packages/helios-gateway/src/helios_gateway/client.py`
- [Model router](https://github.com/rasidi3112/helios/blob/main/packages/helios-models/src/helios_models/router.py): `packages/helios-models/src/helios_models/router.py`
- [Model budgets](https://github.com/rasidi3112/helios/blob/main/packages/helios-models/src/helios_models/budget.py): `packages/helios-models/src/helios_models/budget.py`
- [HTTP API](https://github.com/rasidi3112/helios/blob/main/packages/helios-api/src/helios_api/app.py): `packages/helios-api/src/helios_api/app.py`
- [Web interface](https://github.com/rasidi3112/helios/blob/main/web/app.js): `web/app.js`

### Other components

- **Questioner**
- **Research brief**
- **MCP tool servers**
- **External data APIs**

## Connections

- Questioner → Inquiry runner: asks inquiry (evidence: `README.md`)
- Inquiry runner → Research planner: plans research (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Inquiry runner → MCP gateway: calls tools (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- MCP gateway → MCP client: dispatches through (evidence: `packages/helios-gateway/src/helios_gateway/gateway.py`)
- MCP client → MCP tool servers: uses MCP (evidence: `README.md`)
- MCP tool servers → Geo server: hosts geo tools (evidence: `README.md`)
- MCP tool servers → Climate server: hosts climate tools (evidence: `README.md`)
- MCP tool servers → Scholarly server: hosts literature tools (evidence: `README.md`)
- Geo server → Place gazetteer: resolves places (evidence: `servers/geo/src/helios_geo/server.py`)
- Climate server → NASA POWER client: fetches climatology (evidence: `servers/climate/src/helios_climate/server.py`)
- Scholarly server → OpenAlex client: searches works (evidence: `servers/scholarly/src/helios_scholarly/server.py`)
- NASA POWER client → External data APIs: queries NASA POWER (evidence: `README.md`)
- OpenAlex client → External data APIs: queries OpenAlex (evidence: `README.md`)
- Inquiry runner → Finding claims: forms findings (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Inquiry runner → Versioned world: commits claims (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Versioned world → World records: applies patches (evidence: `packages/helios-world/src/helios_world/store.py`)
- World resources → Versioned world: reads world state (evidence: `packages/helios-world/src/helios_world/resources.py`)
- Inquiry runner → Citation verifier: verifies citations (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Citation verifier → Fact extraction: checks claim facts (evidence: `packages/helios-verifier/src/helios_verifier/verifier.py`)
- Inquiry runner → Claim debate: starts debate (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Claim debate → Debate rules: uses rules (evidence: `packages/helios-debate/src/helios_debate/runner.py`)
- Claim debate → Versioned world: records verdicts (evidence: `README.md`)
- Inquiry runner → Brief localization: localizes brief (evidence: `packages/helios-orchestrator/src/helios_orchestrator/inquiry_run.py`)
- Brief localization → Locale profile: uses locale (evidence: `packages/helios-l10n/src/helios_l10n/pipeline.py`)
- Brief localization → Research brief: produces brief (evidence: `README.md`)
- Inquiry runner → Research brief: returns deliverable (evidence: `README.md`)
- Inquiry runner → Provenance ledger: records run events (evidence: `README.md`)
- Versioned world → Provenance ledger: records commits (evidence: `README.md`)
- Provenance ledger → Content payloads: stores content (evidence: `packages/helios-prov/src/helios_prov/ledger.py`)
- Model router → Model budgets: accounts usage (evidence: `packages/helios-models/src/helios_models/router.py`)
- Brief localization → Model router: requests translation (evidence: `packages/helios-l10n/src/helios_l10n/pipeline.py`)
- Web interface → HTTP API: submits inquiries (evidence: `README.md`)
- HTTP API → Inquiry runner: runs inquiries (evidence: `packages/helios-api/src/helios_api/app.py`)
