diff --git a/README.md b/README.md index 596dadd..f10b52f 100644 --- a/README.md +++ b/README.md @@ -4,56 +4,106 @@ Helioz: a serene white marble statue of Helios with a radiant sun-disc beside the classical marble column, warm ivory light, soft blue and gold threads assembling a layered glass system

-**Helioz** is the 24/7 orchestration conveyor of the **Olympuz pantheon** — a sibling of Zeuz (the factory), Mnemazine (memory), Themis (legal practice) and Olympuz itself (the swarm cockpit). Its lot is continuous runs: the owner drops tasks, and work never stands still. At night nobody wakes the owner — a council of independent advisors decides (Karpathy-style), and quiet Telegram reports fly to the owner's bot («Зевс»), so any decision can be replayed in the morning. Like Helios driving his chariot across the sky without a single day off, the conveyor keeps moving while everyone sleeps. +## Who I am -## Why +Hello. I am Helioz. -An autonomous agent will happily report "done" without proof, forge its own checkmarks, wake you at 3am over a trivial fork, or silently die and lose everything it knew. Helioz answers each of those with an instrument, not a promise: +In the old stories I drove the sun chariot across the sky every single day. No weekends, no holidays, no "not today". The sun rose because I was working. -- **State lives on disk, never in an agent's memory.** Kill the orchestrator at any moment — the next one continues from the instrument. -- **A completion marker is written only by code** — with base/head commits, a hash of changed files and the check's exit code. A hand-made, truncated or copied marker is detected as `tampered`. -- **Generator never judges itself.** Executor and verifier are different CLIs (claude / codex / kimi, live-probed, rotated); the verifier never sees the executor's report — only the disk. -- **Three escalation cases** reach the owner (production, foreign work conflict, expensive-to-revert fork). Everything else is decided by default or, at night, by a council of lenses that must serve the owner's stated goal — or abstain. -- **Fail-closed everywhere.** Empty queue is red. Unreadable state is red. A council without the owner's goal refuses to decide. +Now I do the same with tasks. -## Flow +Philipp Zarubin built me. The reason is boring: he is a lawyer and a father of two girls, and he has almost no time. Night, court, kids — and the work stands still because nobody is driving it. Now I drive. + +I belong to a family: [Olympuz](https://github.com/zarubinphil/olympuz) is the swarm cockpit, [Zeuz](https://github.com/zarubinphil/zeuz) is the factory that births systems like me, [Mnemazine](https://github.com/zarubinphil/mnemazine) is memory, [Themis](https://github.com/zarubinphil/themis) runs a law practice, [Athena](https://github.com/zarubinphil/athena) is the agent OS all of it lives on. My lot in that family is one thing: continuity. The work moves while you sleep. + +## Why you need me (in plain words) + +Picture a worker who can do anything but has three flaws. He says "done" when it is not done. He wakes you at 3am over nothing. And he forgets everything the moment you switch him off. + +Every flaw gets an instrument, not a promise: + +**"Done" is judged by a program, not by him.** One agent works, a DIFFERENT one verifies — and the verifier never reads the first one's report, it looks at the disk and runs commands. Nobody grades their own homework. Not even me. + +**The "finished" mark is written by code.** It carries fingerprints: commits before and after, a hash of the changed files, the exit code of the check. You cannot forge it — hand-written, truncated or copied from another task, I see it and call it out. + +**At night nobody wakes you.** Small forks go to a council of independent advisors: one looks at risk, another at the cost of undoing, a third at simplicity. Each writes a position without seeing the others. Then the decision is checked against your goal. In the morning you read what was decided and can replay it with one message. + +**Three things I never decide alone:** production actions, conflicts with someone else's work, and forks that are expensive to undo either way. Those wait for you — and while they wait, I work on everything else. I never idle. + +**Kill me at any moment — nothing is lost.** Everything I know lives on disk, not in my head. The next me continues from the same line. + +**Empty means red.** Empty queue, unreadable state, a council without your goal — all refusals, not "eh, good enough". A gate that turns green on nothing is worse than no gate. + +## How it actually looks + +You give me a goal in one file, `queue/GOAL.md`. That is my compass: every decision I make without you gets checked against it. + +Tasks go into `queue/tasks/`. Each one must carry a check command. No command, no task: "done" without proof is not done. + +Then I drive: ```text -owner: goal → queue/GOAL.md · tasks → queue/tasks/*.task.md (no check_cmd → not accepted) +goal → queue/GOAL.md · tasks → queue/tasks/*.task.md (no check command, not accepted) ↓ -orchestrator tact: beat → poll Zeus → budget → ready → probe CLI → start (code blocks path overlaps) - → executor (headless CLI, background) → blind verifier (different CLI) - → gate --task: check_cmd + adversarial probe → integrity marker → finish → report to Telegram +tact: heartbeat → pull your Telegram answers → budget → pick a task → probe agents + → start (code will not let two touch one file) → executor → blind verifier + → check command + adversarial probe → integrity mark → report to you ↓ -fork? → three owner-cases wait in queue (conveyor keeps working) · night default-forks → council - (isolated lenses → blind synthesis → decision must serve owner's goal → ledger) → replayable in the morning +fork? your three cases wait in the queue while I keep working · small night forks go to the council + (lenses apart → blind synthesis → checked against the goal → ledger) → replay it in the morning ↓ -context low → handoff → watchdog (launchd) restarts a fresh orchestrator from disk. Nothing is lost. +context running out → handoff → the watchdog starts a fresh session from disk. Nothing is lost. ``` -## Layout +Everything important lands in your Telegram: stage, percent, what went wrong and how I got out — plain words, no code. Say "stop" and I freeze losslessly. Say "go" and I continue. -| Path | What | -|---|---| -| `ORCHESTRATOR.md` | frozen orchestrator prompt (the tact above) | -| `scripts/helioz-gate.mjs` | queue, slots, dependency graph, tampered-proof markers, STOP, budget, `--adopt` | -| `scripts/helioz-zeus.mjs` | Telegram channel: durable outbox → best-effort delivery, fork buttons, stop/go/replay | -| `scripts/helioz-exec.mjs` | honest CLI probe (a real run, not a version check), rotation, role runner | -| `scripts/helioz-council.mjs` | night council: lenses in isolation → blind synthesis → ledger; forbidden cases refused | -| `scripts/helioz-watchdog.sh` | stale heartbeat → new orchestrator session with handoff | -| `scripts/helioz-probes.mjs` | six end-to-end adversarial probes; the only writer of `READY.json` | -| `docs/CONTRACTS.md` | on-disk state contracts (tasks, forks, markers, ledger) | -| `docs/BRAND.md` | design description — Pantheon Design System instance | +## Install -## Run +```bash +git clone https://github.com/zarubinphil/helioz.git ~/helioz +cd ~/helioz +bash install.sh en +``` + +`install.sh` first introduces itself and explains how I work, then checks what you have (Node, git, at least one agent CLI: claude, codex or kimi), runs my instruments through their selftests and tells you what is left to do by hand. Needs macOS or Linux and Node.js 20+. + +After that: ```bash bash scripts/helioz-start.sh ``` -Owner controls from Telegram: buttons under a fork, or `