rasidi3112/helios
حول
Auditable knowledge synthesis on the Model Context Protocol. Helios plans research questions, calls MCP tool servers through a gateway, and records each finding as a cited claim in a versioned world model. Claims are citation-checked, debated and localized (Thai), and every step lands in a hash-chained provenance ledger.
الذكاء الاصطناعي وتعلّم الآلةما يمكنك فعله
- Provenance by default. Every model call, tool call, resource read, commit and deliverable is a hash-chained event. Payloads are content-addressed, and helios_prov verify checks a whole run.
- MCP gateway. It handles server discovery, descriptor pinning, signed per-run grants, JSON-Schema validation and budget accounting, over stdio, Streamable HTTP or in-process.
- geo: place resolution and bounding boxes over a fixture gazetteer;
- climate: NASA POWER monthly climatology and rainfall seasonality;
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلHelios Collective
An MCP-based platform for auditable, localized, cross-domain knowledge synthesis.
Ask a question about a place, for example "When is the rainy season in Khon Kaen?". Helios plans research questions, calls MCP tool servers through a gateway, and records every finding as a cited claim in a versioned world model. Every step lands in a hash-chained provenance ledger, so any answer can be audited back to the tool results it rests on.
flowchart TD
Q(["Question"]) --> O["Orchestrator<br/>planner · inquiry"]
O <-->|tool calls| G["MCP gateway<br/>grants · pinning · budgets"]
G <--> S["MCP servers<br/>geo · climate · scholarly"]
O -->|cited claims| W[("World model<br/>versioned · helios://")]
W --> V["Citation verifier"]
V --> D["Debate<br/>proponent · critic"]
D -->|"verdicts, refined claims"| W
W --> L["Localization<br/>en · th-TH"]
L --> B(["Brief"])
O & G & W & V & D & L -.-> P[("Provenance ledger<br/>hash-chained")]
The three make demo targets, run offline: a place lookup, an inquiry with debate and refinement, and the same kind of inquiry with a Thai brief.
Features
- Provenance by default. Every model call, tool call, resource read, commit and deliverable is a hash-chained event. Payloads are content-addressed, and
helios_prov verifychecks a whole run. - MCP gateway. It handles server discovery, descriptor pinning, signed per-run grants, JSON-Schema validation and budget accounting, over stdio, Streamable HTTP or in-process.
- Tool servers:
- geo: place resolution and bounding boxes over a fixture gazetteer;
- climate: NASA POWER monthly climatology and rainfall seasonality;
- scholarly: OpenAlex work search and lookup, with the actual cost of each call reported.
- Versioned world model. Claims and evidence live in event-sourced worlds with branches and commits, are served as
helios://MCP resources, and are checked byhelios_world verify. - Citation verifier. It checks every number, month, quote, DOI and area id in a claim against the stored source. A model can optionally give a second opinion.
- Debate. A template proponent and critic argue over the claims that matter, and every argument is citation-checked. Each claim comes out
accepted,contestedorneeds_review. A contested claim can be refined into a new version that states the conditions it was missing. - Localization. Briefs can also be written in Thai (
th-TH), generated from the same claims. Rai and Buddhist Era equivalents are shown alongside the original values, and every sentence is checked against its English source.
Quick start
You need uv and Python 3.12 or later.
uv sync
uv run pytest
These commands run offline, using recorded NASA POWER and OpenAlex responses:
uv run python -m helios_orchestrator "Khon Kaen"
uv run python -m helios_orchestrator inquiry "Compare the rainy seasons in Khon Kaen and Vientiane." --debate --climate-fixtures servers/climate/tests/fixtures --scholarly-fixtures servers/scholarly/tests/fixtures
uv run python -m helios_orchestrator inquiry "When is the rainy season in Khon Kaen?" --debate --locale th-TH --audience farmer --climate-fixtures servers/climate/tests/fixtures --scholarly-fixtures servers/scholarly/tests/fixtures
They are, in order:
- a place lookup;
- an inquiry with debate and refinement;
- the same with a Thai brief.
make demo runs all three. Runs are stored in .helios/, which is git-ignored.
Usage
Place lookup
uv run python -m helios_orchestrator "Khon Kaen"
The output shows the resolved admin area and its bounding box, the MCP server and protocol used, tool and model cost, and whether the provenance chain verified. Names in other scripts work too, e.g. "ขอนแก่น", "Hà Nội", "Vientiane, Laos".
Inquiries
uv run python -m helios_orchestrator inquiry "When is the rainy season in Khon Kaen?"
Helios then:
- finds the places in the question and forks a run branch of the
helios-demoworld; - plans research questions and calls the geo, climate and scholarly servers;
- commits each finding as cited claims;
- checks every citation;
- prints a brief in which every claim carries its id and verdict.
| Option | Effect |
|---|---|
--place "Can Tho" |
Study an explicit place (repeatable, up to 3) |
--deliverable context_brief --deliverable claims_table |
Produce the brief, the claims table, or both |
--climate-fixtures DIR, --scholarly-fixtures DIR |
Use recorded responses instead of the live APIs |
--no-scholarly |
Skip the literature server; literature questions are recorded as not covered |
--model claude-opus-5-5 |
Have a model write the brief, accepted only if every claim id it cites exists |
--verify-with-model |
Ask the model for a second opinion on claims the citation rules can't fully verify |
--json |
Machine-readable output |
Questions about research or adaptation also search the literature, for example "What does research say about drought adaptation by rice farmers in Khon Kaen?".
Debate
Add --debate after the question to debate the claims that answer it, or --debate all to debate every claim.
- Verdicts: the brief lists each claim's verdict and every open challenge.
- Refinement: contested claims are refined and debated again;
--no-refineturns this off. - Thresholds: they live in one configuration (
packages/helios-debate/debate-config.example.toml). Override them with--debate-config FILE. - Model arguments:
--debate-with-model(with--model) adds the model's own arguments, which are citation-checked before they count.
Localization
Add --locale th-TH for a Thai brief; --audience farmer also shows rainfall as water per rai.
- What's checked: every Thai sentence is checked against its English source for numbers, ids, quotes, months, units, hedges and negations. A sentence that fails keeps its English text.
- What's untouched: the claims and the English brief stay exactly as they are.
- Model translation:
--localize-with-modellets the model translate sentences no template covers, and those are checked too.
Locale assets live in locales/.
Auditing a run
Every run prints the commands to audit it:
uv run python -m helios_prov verify <run_id>
uv run python -m helios_prov show <run_id> --type debate.
uv run python -m helios_world verify helios-demo --ref runs/<run_id>
uv run python -m helios_world show helios-demo --ref runs/<run_id> --debates
Web UI
A small web page and HTTP API for inquiries. It runs offline from the recorded responses, like make demo:
make web
Then open http://127.0.0.1:8000, type a question, tick Enable debate or Thai locale if you want them, and press Run inquiry. The page shows whether every research question was answered, the brief (English, and Thai when asked), the places, the claims with their verification and debate verdicts, and whether the provenance chain verified.
The API (packages/helios-api) runs each inquiry as python -m helios_orchestrator inquiry --json, the same path as the CLI, one at a time:
| Endpoint | What it does |
|---|---|
POST /inquiry |
Starts a run. Body: {"question": "…", "debate": true, "locale": "th-TH"}; debate and locale are optional. Returns 202 with the run_id. |
GET /inquiry/{run_id} |
Status (queued, running, completed, failed) and, when done, the brief, which research questions were answered, the claims summary, debate verdicts and provenance check. |
GET /health |
Liveness, whether offline fixtures are on, and the available locales. |
Runs are stored in the ledger and world store as usual (.helios/, or HELIOS_DATABASE_URL and HELIOS_PAYLOAD_DIR). The API keeps run status in memory only, so GET /inquiry/{run_id} forgets runs after a restart; audit them with helios_prov verify. The API has no authentication and listens on 127.0.0.1 by default. For live data, start it without fixtures:
uv run python -m helios_api
Configuration
| Variable | Purpose |
|---|---|
HELIOS_DATABASE_URL |
Ledger and world store: sqlite:///path, postgresql://… or memory:// (default sqlite:///.helios/ledger.sqlite) |
HELIOS_PAYLOAD_DIR |
Payload store directory (default .helios/payloads) |
ANTHROPIC_API_KEY |
Needed only for --model claude-… |
OPENALEX_API_KEY |
Optional: your own OpenAlex allowance. Without a key, searches share a small daily allowance. |
HELIOS_GRANT_SECRET |
Key for signing tool grants (default: random per process) |
Docker Compose
This starts PostgreSQL and the geo, climate and scholarly servers over HTTP, then runs the demos:
docker compose -f deploy/compose/docker-compose.yml up --build
docker compose -f deploy/compose/docker-compose.yml run --rm inquiry "Compare the rainy seasons in Khon Kaen and Vientiane" --debate
docker compose -f deploy/compose/docker-compose.yml --profile test run --rm tests
The web service serves the web UI and API at http://127.0.0.1:8000 with live data; it has not been run in Docker yet:
docker compose -f deploy/compose/docker-compose.yml up --build web
Optional settings go in deploy/compose/.env (copy .env.example).
Development
make sync
make test
make lint
make demo
The repository is a uv workspace: packages/* and servers/* are its members, and uv.lock pins every dependency.
| Path | What it is |
|---|---|
packages/helios-core |
IDs, RFC 8785 canonical JSON, hashes, the MCP 2026-07-28 protocol layer and server |
packages/helios-prov |
Provenance ledger, payload store, audit CLI |
packages/helios-models |
Model router (Claude, OpenAI-compatible) and budget ledger |
packages/helios-gateway |
MCP gateway |
packages/helios-world |
World model, helios:// resources, audit CLI |
packages/helios-verifier |
Citation verifier |
packages/helios-debate |
Debate engine |
packages/helios-l10n |
Localization engine |
packages/helios-orchestrator |
Place lookup, research planner, inquiry path, CLI |
packages/helios-api |
HTTP API for inquiries (FastAPI); serves the web UI |
servers/geo, servers/climate, servers/scholarly |
First-party MCP servers |
locales/ |
Locale profiles and assets |
web/ |
Web UI: plain HTML, CSS and JavaScript |
deploy/compose |
Dockerfile and Compose stack |
Roadmap
The long-term direction comes from DESIGN.md. STATUS.md tracks in detail what is implemented and its known limitations. Items under Current status are released. Everything after that is planned and not yet started. None of it has a date, and the later stages depend on contributors and partners.
Current status (v0.2.1)
Released and covered by the test suite:
- a hash-chained provenance ledger, a payload store, and audit CLIs;
- an MCP gateway with signed grants, descriptor pinning, schema validation and budgets;
- three first-party MCP servers:
- geo;
- climate (NASA POWER);
- scholarly (OpenAlex);
- a versioned world model served as
helios://resources; - a keyword research planner and the inquiry path;
- a citation verifier, a template-based debate with refinement, and rule-based verdicts;
- Thai briefs (
th-TH) with sentence-level invariant checks; - a minimal web UI and HTTP API (
make web).
Not yet verified:
- Docker: the Compose stack, including the
webservice, has not been run end to end. - Models: the model-backed options have been tested only with scripted stand-ins.
- Thai wording: it has not been reviewed by native speakers.
Near term (next releases)
Small, concrete work, mostly from the known limitations and from hands-on testing of the web UI:
- Web UI:
- plain error messages, with no CLI flags or raw validation text;
- the page scrolls to the result, and the previous result clears when a new run starts;
- a health badge that keeps checking;
- readable names for uncovered topics instead of internal ids;
- DOIs as links;
- Ctrl/Cmd+Enter to submit;
- a hint that names the places the offline data covers.
- Run links after a restart: look up finished runs in the ledger, so a run link still works after the API restarts.
- Docker and self-hosting: run the Compose stack, including
web, end to end and fix what breaks; run the PostgreSQL-backed tests in CI. - Documentation and contributors:
- a contributing guide;
- a guide to writing and registering a new MCP server;
- issue templates.
- Release hygiene: package versions that match the release tags, and a changelog.
Mid term
Larger parts of the design that are not built yet. Their scope may change as they are built:
More MCP servers, from the list in DESIGN.md §5.2:
- statistics (World Bank, FAOSTAT);
- knowledge graphs (Wikidata, AGROVOC);
- open-data portals (CKAN);
- document ingestion;
- a sandboxed
computeserver.
Also more recorded data for offline use: a larger gazetteer, and climate data beyond Khon Kaen and Vientiane.
Stronger debate: the Evidence-Grounded Argumentation Protocol (EGAP) from DESIGN.md, with DF-QuAD argument scoring, several specialised critics and a judge. It replaces the current rule-based verdicts only if it measurably does better.
Planning:
- a planner that composes tools from their capability descriptors, beyond today's keyword planner;
- durable runs that survive restarts.
Localization:
- a native-speaker review of the Thai wording;
- more locales (the design names
vi-VN,id-IDandesfirst); - a review workflow for translations.
Web UI: a fuller research workspace, built to WCAG 2.2 AA, with:
- plan review;
- a run monitor;
- an evidence map;
- a debate viewer.
Evaluation: a benchmark of seed tasks with simple baselines, so changes to planning and debate are measured, not assumed.
World model: reviewed merges into
main, and contradiction detection.
Long-term vision
These directions from DESIGN.md depend on the stages above and on outside partners. They are goals, not commitments:
- Multi-tenancy and policy:
- Cedar policies;
- single sign-on;
- per-tenant isolation;
- a Helm chart for cluster deployments.
- Federation: Helios instances share public world models through signed commits, under trust policies.
- Capability expansion: Helios detects recurring gaps and drafts new MCP servers for human review. Drafts are never published automatically.
- Domain packs and channels:
- public health, water and education data, developed with partners;
- SMS and IVR delivery formats;
- more locales.
- Interoperability: agent-to-agent (A2A) support for external specialist agents.
Some things are deliberately out of scope, for example tools that act on external systems without human approval, and automatic merges into public worlds. See DESIGN.md §8.4.
Documentation
- DESIGN.md: the full architecture.
- STATUS.md: what is implemented, known limitations, and the roadmap.
- Guides:
- docs/adr: architecture decision records.
License
Helios Collective is licensed under the Apache License 2.0.
Recorded data used by the tests and offline demos comes from NASA POWER and OpenAlex and keeps their terms. See servers/climate/tests/fixtures/README.md and servers/scholarly/tests/fixtures/README.md.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…