docs: beginner-first README on the shared family anatomy

Rebuild both READMEs on the packaging patterns the most downloaded
vibe-coding repositories use, in the same order across the whole family:
one-line promise, badges, wide hero at full width, table of contents, and
ten fixed beginner headings.

- How It Works now carries an ASCII workflow diagram, a stage table, and one
  step per stage, each ending with a plain "you get" line;
- Quickstart offers three real install or download paths;
- honest four-column comparison, glossary, safety, limits, star ask, and the
  fork -> branch -> commit -> push -> Pull Request path;
- workflow stages are declared in .github/pantheon.json (schema 3) with short
  diagram labels; the wide stage image series is still pending;
- CLAUDE.md, GEMINI.md, .github/copilot-instructions.md and .cursor/rules
  point every coding agent at AGENTS.md;
- the previous long README is preserved as docs/DETAILS.md and DETAILS.ru.md.

public-repo-gate check --release-intent public: PASS 100/80.
This commit is contained in:
Зарубин Филипп
2026-08-29 18:53:20 +03:00
parent 66d7277091
commit bc84fe06d6
9 changed files with 664 additions and 211 deletions
+148 -103
View File
@@ -1,20 +1,119 @@
# Zeuz
Zeuz is a workflow factory for agent harnesses. Given a complete specification, it asks a sequence of specialist agents to design, write, and inspect a new multi-agent workflow system.
Zeuz turns a written specification into a multi-agent workflow with roles, gates, observability, and a verdict.
[Quickstart](#quickstart) · [Example](#example-run) · [Security](#security-and-privacy) · [Contributing](CONTRIBUTING.md) · [Русский](README.ru.md)
[Русский](README.ru.md)
<p align="center">
<img src="docs/assets/pantheon/emblem.png" alt="Zeuz emblem with Zeus, a golden lightning bolt, a gated workflow graph, and a marble column" width="144">
</p>
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Stars](https://img.shields.io/github/stars/zarubinvibe/zeuz?style=flat&color=C9A87A)](https://github.com/zarubinvibe/zeuz/stargazers) [![Status](https://img.shields.io/badge/status-reference-brightgreen.svg)](https://github.com/zarubinvibe/zeuz) [![Olympuz](https://img.shields.io/badge/olympuz-family-B8D6EA.svg)](https://github.com/zarubinvibe/athena#olympuz-family)
![Zeuz Pantheon hero showing Zeus beside a gated workflow graph and a classical marble column](docs/assets/pantheon/hero.png)
<p align="center"><img src="docs/assets/pantheon/hero.png" alt="Zeus in white marble with a golden lightning bolt beside the classical column, a governed workflow graph unfolding in daylight" width="100%"></p>
> Current status: reference implementation. The repository includes the workflow source, agent prompts, design rules, and a static smoke test. It does not include a standalone runner or a full end-to-end fixture.
## Contents
- [What This Is](#what-this-is)
- [Why It Helps](#why-it-helps)
- [The Main Advantage](#the-main-advantage)
- [How It Works](#how-it-works)
- [Quickstart](#quickstart)
- [Simple Comparison](#simple-comparison)
- [Simple Words](#simple-words)
- [Safety And Privacy](#safety-and-privacy)
- [Limits](#limits)
- [Star And Contribute](#star-and-contribute)
<!-- beginner-readme:start -->
## What This Is
Zeuz is a factory for agent workflows. You give it a complete specification; a sequence of specialist agents designs the system, writes its files, and inspects the result. The output is a new project folder, not a running service.
## Why It Helps
Writing a multi-agent system by hand means inventing roles, stages, gates, and logging from scratch every time, and forgetting one of them every time. Zeuz keeps that structure as a repeatable pipeline with a tester at the end.
## The Main Advantage
**Main advantage:** the generated system is required to protect irreversible actions with deterministic checks.
**Why this is better:** The architect and builder prompts demand those checks, and the tester inspects them before returning a verdict. A run reports `done` only when the tester agrees.
## How It Works
The pipeline runs as ordered phases inside a workflow host. Each phase has a role, an input, and an artifact you can read.
<!-- workflow-diagram:start -->
```text
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Specify │ ▶ │ Observe │ ▶ │ Cast │
└───────────┘ └───────────┘ └───────────┘
▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Architect │ ▶ │ Economize │ ▶ │ Build │
└───────────┘ └───────────┘ └───────────┘
▼
┌───────────┐
│ Test │
└───────────┘
```
<!-- workflow-diagram:end -->
| Stage | What happens |
|---|---|
| 1. Specify | Goal, input, completeness invariant, constraints, done-when |
| 2. Observe | What is actually available on this machine, written to a log |
| 3. Cast | Role definitions and verified personas |
| 4. Architect | Parallel boundaries and deterministic gate requirements |
| 5. Economize | A model map and context-saving measures per stage |
| 6. Build | Agent files, a workflow, a protocol, a router, a plan graph |
| 7. Test | Syntax, gates, observability, lineage, personas, dry run |
### Step 1: Write the specification
You state the goal, the input, what must never be skipped, the constraints, and how you will know it is done. A missing or very short specification is rejected.
**You get:** a specification the factory can build against instead of guessing.
### Step 2: Snapshot the local runtime
The first phase records a runtime snapshot in a local JSONL file. When an optional tool is missing, the run records that fact instead of pretending.
**You get:** a written starting point you can look at afterwards.
### Step 3: Roles get their people
The cast phase writes role definitions for the future system and the personas behind them. Biographical facts are meant to be checked, not invented.
**You get:** a named team instead of one anonymous prompt.
### Step 4: Stages, gates, and a graph
The architect lays out the stages, marks what can run in parallel, and states which gates must be deterministic. The result is a graph, not prose.
**You get:** a plan where irreversible steps are fenced before any code exists.
### Step 5: Choose models and cut context
Each stage gets a model class and measures that keep context small. Cheap mechanical work does not get an expensive model by default.
**You get:** a system that is affordable to run more than once.
### Step 6: Files are written out
The builder writes the generated project into your output directory: agent files, the workflow source, a protocol, a project router, and a plan graph.
**You get:** a project folder you can read, diff, and run separately.
### Step 7: A tester returns a verdict
The tester inspects the generated system across those dimensions and reports findings. Anything other than a passing verdict returns `needs_fix` with the issues attached.
**You get:** an honest status instead of a confident-sounding summary.
## Quickstart
Requirements: Bash and Node.js.
You need Bash and Node.js. The smoke check runs without any model and proves the factory source is still intact.
```bash
git clone https://github.com/zarubinvibe/zeuz.git
@@ -22,106 +121,63 @@ cd zeuz
bash smoke/smoke.sh
```
The final line should be:
No Git? Download [the ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) or [the tarball](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.tar.gz) and run the same check inside. To build something real, register `workflows/zeuz-pipeline.js` with a workflow host that provides `args`, `phase()`, `agent()`, and `log()`, then set `ZEUZ_HOME` and `ZEUZ_PROJECTS`.
```text
ГЕЙТ ПРОЙДЕН ✓
```
**You get:** the check ends with a passing gate line, which proves the source parses and still carries its required markers.
That result proves that Node can parse the workflow inside its async wrapper and that the factory source still contains the required observability, DAG, context-gate, schema, agent, and repository-layout markers. It does not run the specialist agents.
## Simple Comparison
## Run it in a host
| Choice | Best when | What you get | Trade-off |
|---|---|---|---|
| **Zeuz** | You build multi-agent systems more than once | Roles, gates, observability, and a tester verdict by default | Needs a workflow host; no bundled runner |
| Writing the workflow by hand | One small system | Exactly what you intended | Gates and logging get invented again every time |
| An agent framework | You want libraries and a community | Batteries, docs, integrations | You still design the roles, gates, and evidence yourself |
| One long agent prompt | A quick experiment | Nothing to set up | No stages, no gates, and no way to see what happened |
`workflows/zeuz-pipeline.js` expects a workflow host that provides `args`, `phase()`, `agent()`, and `log()`. The host must also support structured agent output through the `schema` option.
## Simple Words
Point Zeuz at the checkout and choose a parent directory for generated projects:
```bash
export ZEUZ_HOME="$PWD"
export ZEUZ_PROJECTS="$PWD/../zeuz-output"
```
Register `workflows/zeuz-pipeline.js` with the host, then invoke it with a complete specification:
```js
Workflow({
name: 'zeuz-pipeline',
args: `
Goal: build a workflow that reviews release notes before publication.
Input: Markdown files, up to 50 per run.
Completeness invariant: every input file has a recorded verdict.
Constraints: no publication without approval; keep an audit trail.
Done when: the ledger contains one verdict for every input file.
`.trim(),
})
```
The pipeline rejects a missing or very short specification. The interactive `/grill-me` step named in the agent instructions belongs to the host setup and is not shipped in this repository.
## Example run
The workflow moves through these phases:
| Phase | What the checked-in source asks the agent to produce |
| Word | Simple meaning |
|---|---|
| Observe | A local runtime snapshot in `runs/_observability.jsonl`; `abtop` is optional |
| Cast | Role definitions and verified scientist personas |
| Architect | Stages, parallel boundaries, deterministic gate requirements, and a graph |
| Economize | A model map and context-saving measures for each stage |
| Build | Agent files, a workflow, a protocol, `CLAUDE.md`, and a plan DAG |
| Test | Syntax, gate, observability, lineage, persona, and dry-run findings plus a verdict |
| Repository | The project folder that Git stores and versions |
| Terminal | The window where you type commands |
| Command | One instruction you give the computer |
| Branch | A separate line of changes that does not touch `main` |
| Pull Request | A request to review your change and accept it |
| Workflow host | The program that runs the pipeline and gives agents their tools |
| Gate | A check that must pass before an irreversible step is allowed |
Generated files go under `ZEUZ_PROJECTS/<system-slug>/`. The exact list requested by the build prompt is:
## Safety And Privacy
```text
agents/<scientist-slug>.md
<system-slug>-pipeline.js
PROTOCOL-<system-slug>.md
CLAUDE.md
runs/<run-id>-plan.dag.json
```
- File access: build agents are instructed to write under your output directory; snapshots go under the project folder.
- Shell access: the observe and test phases run local commands, and your host decides sandboxing and approvals.
- Network access: the cast phase asks the host to verify facts online; Zeuz sets no network policy of its own.
- Secrets: the repository needs no credentials, and none belong in a specification or a generated artifact.
- Telemetry: there is no remote telemetry client; snapshots are local files.
- Rollback: Zeuz does not undo generated writes, so use a separate output directory and review the diff.
The final return value uses `status: "done"` only when the tester returns the verdict `ГОТОВА`. Other verdicts return `status: "needs_fix"` with the reported issues.
See [SECURITY.md](SECURITY.md) for the trust boundary and how to report a problem.
## Gates and evidence
## Limits
The architect and builder prompts require generated workflows to protect irreversible actions with deterministic checks. The tester prompt inspects those checks before returning a verdict. The factory's own smoke test is narrower: it checks source syntax and invariant markers with `node --check`, file checks, and fixed-string searches.
Status: reference implementation. The repository holds the workflow source, agent prompts, rules, and a static smoke check.
For reviewable evidence, keep the generated project in a separate directory, inspect its files, and run its own tests before allowing publish, archive, move, or deployment actions.
- There is no bundled workflow host adapter and no packaged CLI.
- The smoke check inspects source and markers; it does not execute a complete generated system.
- Model labels such as haiku, sonnet, and opus must be mapped by your host.
- Agent verdicts are model output: treat generated code and claims as untrusted until your own checks pass.
- The optional observability binary may be missing, and the run records that instead of failing quietly.
## Security and privacy
Deeper reading: [the full reference](docs/DETAILS.md), [the roadmap](specs/00-roadmap.md), [construction rules](rules/best-practices.md), and the [decision records](docs/decisions/).
- File access: build agents are instructed to write under `ZEUZ_PROJECTS`; observability writes under `ZEUZ_HOME/runs`.
- Shell access: the Observe and Test prompts invoke local commands. The host decides sandboxing and approvals.
- Network access: the Cast prompt asks the host to verify biographical facts on the web. Zeuz does not configure network policy.
- Secrets: the repository needs no credentials. Do not place secrets in specifications or generated artifacts.
- Telemetry: Zeuz contains no remote telemetry client. Runtime snapshots are local JSONL files.
- Approvals: the repository describes approval gates but cannot enforce host permissions by itself.
- Rollback: Zeuz does not undo generated writes. Use an isolated output directory and review the diff before accepting it.
## Star And Contribute
See [SECURITY.md](SECURITY.md) for the trust boundary and reporting guidance.
Useful? Give Zeuz a star: [https://github.com/zarubinvibe/zeuz](https://github.com/zarubinvibe/zeuz). It takes a second and it decides whether other people ever find the project.
## Project map
Want to change something? The path is short: fork the repository, create a branch, commit your change, push the branch, then open a Pull Request. Do not push directly to `main`; the release gate rejects it.
| Path | Purpose |
|---|---|
| `workflows/zeuz-pipeline.js` | Executable workflow source for a compatible host |
| `agents/` | Prompts for the controller and six specialist roles |
| `rules/best-practices.md` | Repository-local construction policy passed to agents |
| `specs/00-roadmap.md` | Phase map and role ownership |
| `docs/decisions/` | Architecture decision records |
| `smoke/smoke.sh` | Static syntax and invariant check |
| `CLAUDE.md` | Project router for compatible coding-agent sessions |
Found a problem instead? Open an issue at [https://github.com/zarubinvibe/zeuz/issues](https://github.com/zarubinvibe/zeuz/issues) and say what you ran and what happened.
## Status and limits
Zeuz is a reference implementation, not a packaged CLI or SDK. No public release schedule is committed.
- The repository has no bundled workflow host adapter.
- The smoke test does not execute a complete generated system.
- Model labels such as `haiku`, `sonnet`, and `opus` must be understood or mapped by the host.
- Agent verdicts remain model output. Treat generated code and claims as untrusted until independent checks pass.
- `abtop` is optional; the Observe step records `abtop_unavailable` when it cannot run the binary.
<!-- beginner-readme:end -->
<!-- pantheon-family:start -->
## Olympuz family
@@ -137,17 +193,6 @@ This is one of the public [Olympuz projects](https://github.com/zarubinvibe/athe
| project | Zeuz | Factory that turns an idea into a governed multi-agent workflow with gates, observability, and replay. | [Repository](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) |
<!-- pantheon-family:end -->
## Contributing
## License
Read [CONTRIBUTING.md](CONTRIBUTING.md), keep changes scoped, and run:
```bash
bash smoke/smoke.sh
git diff --check
```
## Attribution and license
Zeuz was created by Philipp Zarubin. The original workflow structure, agent personas, and earlier repository artwork remain in the project history and tracked assets.
Licensed under the [MIT License](LICENSE). Copyright (c) 2026 Philipp Zarubin.
MIT. See [LICENSE](LICENSE). Zeuz was created by Philipp Zarubin.