Skip to content

v0.2.0 – Web UI

Choose a tag to compare

@rasidi3112 rasidi3112 released this 03 Dec 03:09

Helios Collective v0.2.0

This release adds a simple web UI and HTTP API for inquiries. You can now ask a question in the browser, optionally with debate and a Thai brief, and read the result with its claims, debate verdicts and provenance check, without using the command line.

Highlights

  • Web UI (web/): a single page in plain HTML, CSS and JavaScript, with no build step and no third-party dependencies. It has a question box with example questions, Enable debate and Thai locale options, and a result view. The result view shows the brief, the places, the claims with their verification and debate verdicts, and whether the provenance chain verified. It works in light and dark mode.
  • HTTP API (packages/helios-api): a small FastAPI app that also serves the UI. Each inquiry runs python -m helios_orchestrator inquiry --json, the same code path as the CLI, so the API adds no research logic of its own. Inquiries run one at a time.
  • Debate and Thai locale: debate turns on the limited debate (material by default, or all), and locale: "th-TH" adds the Thai brief next to the English one.
  • Offline by default: make web serves the UI and API from the recorded NASA POWER and OpenAlex responses, like make demo, so no API keys are needed.
  • CLI: python -m helios_orchestrator inquiry has a new --run-id option, so a caller can choose the run id before the run starts.

API endpoints

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, the claims summary, the debate verdicts and the provenance check.
GET /health Liveness, whether offline fixtures are on, and the available locales.

How to run

uv sync --locked
make web

Then open http://127.0.0.1:8000. For live data instead of the recorded responses, run uv run python -m helios_api. Runs are stored in the ledger and world store as usual (.helios/, or HELIOS_DATABASE_URL and HELIOS_PAYLOAD_DIR), and each one can be audited with helios_prov verify.

Testing

The test suite now has 210 tests: 208 pass, and 2 need a live PostgreSQL and are skipped otherwise. The new API tests use FastAPI's TestClient and the recorded fixtures, so they make no live calls. The UI was also tested by hand in a browser, with an inquiry submitted with debate and the Thai locale.

Known limitations

  • The Docker Compose web service is untested. It has been added to deploy/compose/docker-compose.yml, but it has not been run in Docker, like the rest of the Compose stack.
  • Run status is kept in memory. GET /inquiry/{run_id} forgets runs after the server restarts. The runs themselves stay in the ledger and world store.
  • No authentication. The API listens on 127.0.0.1 by default, and the Compose service publishes its port on 127.0.0.1 only. Do not expose it to a network as it is.
  • Package versions are unchanged. The workspace packages still declare version 0.1.0.

The limitations listed for v0.1.0 still apply; see STATUS.md.

Full changelog: v0.1.0...v0.2.0