diff --git a/.github/pantheon.json b/.github/pantheon.json new file mode 100644 index 0000000..ecc6463 --- /dev/null +++ b/.github/pantheon.json @@ -0,0 +1,30 @@ +{ + "schema_version": 2, + "family_id": "zarubinvibe-pantheon", + "catalog_version": "2026-08-26", + "project": { + "slug": "zeuz", + "deity": "Zeus", + "symbol": "golden lightning bolt, governed workflow graph, and gates" + }, + "visuals": { + "style_anchor_sha256": "ce524f9d22cb0092cb17aa280832e1b2ab2a77a0e01602065ec502232a3bb2d2", + "column_reference_sha256": "9d32edd56ac55c4dd6d0425a28a2ac35035e9ab09073fc8ce0c1414b2edfb1bd", + "hero": { + "source_path": "docs/assets/pantheon/hero.png", + "source_sha256": "b403eea6060c1dab5d764d47f9967bbeb11c75afab4bf7272be2328ccfa24997", + "published_path": "docs/assets/pantheon/hero.png", + "published_sha256": "b403eea6060c1dab5d764d47f9967bbeb11c75afab4bf7272be2328ccfa24997" + }, + "emblem": { + "source_path": "docs/assets/pantheon/emblem.png", + "source_sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c", + "published_path": "docs/assets/pantheon/emblem.png", + "published_sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c" + } + }, + "receipts": { + "generation_path": ".github/pantheon/generation-receipt.json", + "visual_judge_path": ".github/pantheon/visual-judge-receipt.json" + } +} diff --git a/.github/pantheon/generation-receipt.json b/.github/pantheon/generation-receipt.json new file mode 100644 index 0000000..8714d1c --- /dev/null +++ b/.github/pantheon/generation-receipt.json @@ -0,0 +1,91 @@ +{ + "schema_version": 1, + "kind": "pantheon-generation", + "selection_mode": "managed-frontier", + "runtime": "codex", + "tool": "image_gen", + "route_id": "codex:image_gen:managed-frontier", + "model": { + "id": "provider-managed", + "revision": "provider-managed", + "tier": "frontier" + }, + "quality": "highest", + "generation_id": "01a03e74-7385-7f71-8f26-532fcee7ef34", + "generated_at": "2026-08-26T14:33:52Z", + "capability_snapshot": { + "checked_at": "2026-08-26T14:33:52Z", + "routes": [ + { + "id": "codex:image_gen:managed-frontier", + "rank": 1, + "available": true, + "tier": "frontier", + "quality": "highest", + "model": { + "id": "provider-managed", + "revision": "provider-managed", + "tier": "frontier" + } + } + ] + }, + "prompt": { + "path": ".github/pantheon/prompt.txt", + "sha256": "23269fdc802309a97689866fcf83ec0fe5c08ce88c3544214e3eee249e0ff17c", + "format": "two exact asset prompts: hero and emblem" + }, + "references": [ + { + "role": "style-anchor", + "sha256": "ce524f9d22cb0092cb17aa280832e1b2ab2a77a0e01602065ec502232a3bb2d2" + }, + { + "role": "column-reference", + "sha256": "9d32edd56ac55c4dd6d0425a28a2ac35035e9ab09073fc8ce0c1414b2edfb1bd" + } + ], + "asset_generations": [ + { + "role": "hero", + "generation_id": "01a03e74-7385-7f71-8f26-532fcee7ef34", + "execution_id": "exec-26176cfd-81a7-4dd5-9b7b-a711cfee5016", + "generated_at": "2026-08-26T14:33:52Z", + "provider_output_sha256": "61b9a39deaf8aaf7bb42a63b28e03419628ffcb586804ca75dfb20669b916e07", + "postprocess": "resampled from 1672x941 to 2048x1152 with sips" + }, + { + "role": "emblem", + "generation_id": "01a03e74-7385-7f71-8f26-532fcee7ef34", + "execution_id": "exec-6577ea81-cebb-45c5-aec6-dd0958b86d9b", + "generated_at": "2026-08-26T14:35:05Z", + "provider_output_sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c", + "postprocess": "none" + } + ], + "candidates": [ + { + "id": "codex-managed", + "route_id": "codex:image_gen:managed-frontier", + "generation_id": "01a03e74-7385-7f71-8f26-532fcee7ef34", + "prompt_sha256": "23269fdc802309a97689866fcf83ec0fe5c08ce88c3544214e3eee249e0ff17c", + "reference_sha256": [ + "ce524f9d22cb0092cb17aa280832e1b2ab2a77a0e01602065ec502232a3bb2d2", + "9d32edd56ac55c4dd6d0425a28a2ac35035e9ab09073fc8ce0c1414b2edfb1bd" + ], + "outputs": [ + { + "role": "hero", + "source_sha256": "b403eea6060c1dab5d764d47f9967bbeb11c75afab4bf7272be2328ccfa24997", + "published_sha256": "b403eea6060c1dab5d764d47f9967bbeb11c75afab4bf7272be2328ccfa24997" + }, + { + "role": "emblem", + "source_sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c", + "published_sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c" + } + ] + } + ], + "winner_id": "codex-managed" +} diff --git a/.github/pantheon/prompt.txt b/.github/pantheon/prompt.txt new file mode 100644 index 0000000..996ac66 --- /dev/null +++ b/.github/pantheon/prompt.txt @@ -0,0 +1,31 @@ +HERO PROMPT + +Use case: stylized-concept +Asset type: public GitHub README hero +Primary request: Create a calm, precise hero for Zeuz, a multi-agent workflow factory. Mature bearded male Zeus governs a clear workflow graph whose nodes pass through visible gates. He holds a restrained golden lightning bolt as the symbol of authority and orchestration. +Input images: Image 1 is the immutable Pantheon style reference; Image 2 is the required family-signature column reference. +Scene/backdrop: bright warm-ivory architectural studio with a white-marble platform and open air +Subject: unmistakable mature bearded male Zeus in a simple classical robe, bareheaded, with no shield and no animal companion; one clean golden lightning bolt; a controlled workflow graph made from frosted-glass nodes, pale-blue flow lines, and muted-gold decision gates; one recognizable classical white-marble column clearly visible +Style/medium: premium restrained 3D product render, warm ivory Apple-like presentation, white marble, frosted glass +Composition/framing: true 16:9 landscape, balanced full scene, Zeus and column fully clear of the edges, graph easy to follow, generous negative space +Lighting/mood: soft daylight from upper left, long gentle shadows, calm, lucid, confident; no dramatic storm +Color palette: ivory #F3EFE8, bright ivory #FBFAF6, white marble, sky blue #B8D6EA, muted gold #C9A87A, soft charcoal #3E3A36 +Constraints: preserve the reference style; preserve a recognizable classical column; Zeus, the golden lightning bolt, workflow graph, and gates must all be unmistakable; highest final quality; clean anatomy and geometry +Avoid: Athena, female figure, helmet, shield, owl, eagle, dark or black background, thunderstorm, lightning-filled sky, combat pose, neon, purple gradient, smoky cinema lighting, heavy bronze, brown cast, clutter, illegible marks, watermark, logo drift +Text (verbatim): No readable text, no letters, no numbers, no logos. + +EMBLEM PROMPT + +Use case: stylized-concept +Asset type: public GitHub README emblem +Primary request: Create a square Zeuz emblem showing calm orchestration: mature bearded male Zeus with a restrained golden lightning bolt beside a clear gated workflow symbol. +Input images: Image 1 is the immutable Pantheon style reference; Image 2 is the required family-signature column reference. +Scene/backdrop: bright warm-ivory studio with a white-marble base and open negative space +Subject: unmistakable mature bearded male Zeus in a simple classical robe, bareheaded, with no shield and no animal companion; one clean golden lightning bolt; a compact frosted-glass workflow graph with connected nodes and one visible muted-gold gate; one recognizable classical white-marble column clearly visible +Style/medium: premium restrained 3D product render, warm ivory Apple-like presentation, white marble, frosted glass +Composition/framing: true 1:1 square, centered emblem composition, all objects fully visible with generous margins, strong silhouette at thumbnail size +Lighting/mood: soft daylight from upper left, long gentle shadow, calm, lucid, confident; no dramatic storm +Color palette: ivory #F3EFE8, bright ivory #FBFAF6, white marble, sky blue #B8D6EA, muted gold #C9A87A, soft charcoal #3E3A36 +Constraints: preserve the reference style; preserve a recognizable classical column; Zeus, the golden lightning bolt, workflow graph, and gate must all be unmistakable; highest final quality; clean anatomy and geometry +Avoid: Athena, female figure, helmet, shield, owl, eagle, dark or black background, thunderstorm, lightning-filled sky, combat pose, neon, purple gradient, smoky cinema lighting, heavy bronze, brown cast, clutter, illegible marks, watermark, logo drift +Text (verbatim): No readable text, no letters, no numbers, no logos. diff --git a/.github/pantheon/visual-judge-receipt.json b/.github/pantheon/visual-judge-receipt.json new file mode 100644 index 0000000..443540f --- /dev/null +++ b/.github/pantheon/visual-judge-receipt.json @@ -0,0 +1,89 @@ +{ + "schema_version": 1, + "kind": "pantheon-visual-judge", + "receipt_id": "zeuz-visual-b403eea6-c97c55fc", + "checked_at": "2026-08-26T14:44:03Z", + "runtime": "codex", + "tool": "view_image", + "route_id": "codex:view_image:managed-frontier", + "model": { + "id": "provider-managed", + "revision": "provider-managed", + "tier": "frontier" + }, + "quality": "highest", + "verdict": "pass", + "human_reviewed": true, + "references": [ + { + "role": "style-anchor", + "sha256": "ce524f9d22cb0092cb17aa280832e1b2ab2a77a0e01602065ec502232a3bb2d2" + }, + { + "role": "column-reference", + "sha256": "9d32edd56ac55c4dd6d0425a28a2ac35035e9ab09073fc8ce0c1414b2edfb1bd" + } + ], + "outputs": [ + { + "role": "hero", + "path": "docs/assets/pantheon/hero.png", + "sha256": "b403eea6060c1dab5d764d47f9967bbeb11c75afab4bf7272be2328ccfa24997", + "verdict": "pass", + "hard_constraints": { + "column": true, + "ivory-background": true, + "white-marble": true, + "daylight": true, + "blue-gold-accents": true, + "no-dark-background": true, + "deity-symbol": true, + "text-accuracy": true, + "anchor-similarity": true, + "readme-render": true + }, + "scorecard": { + "column": 5, + "ivory-background": 5, + "white-marble": 5, + "daylight": 5, + "blue-gold-accents": 5, + "no-dark-background": 5, + "deity-symbol": 5, + "text-accuracy": 5, + "anchor-similarity": 5, + "readme-render": 5 + } + }, + { + "role": "emblem", + "path": "docs/assets/pantheon/emblem.png", + "sha256": "c97c55fc0c609eff23db3c731472e3568c291079b48bb01d1427e195c883430c", + "verdict": "pass", + "hard_constraints": { + "column": true, + "ivory-background": true, + "white-marble": true, + "daylight": true, + "blue-gold-accents": true, + "no-dark-background": true, + "deity-symbol": true, + "text-accuracy": true, + "anchor-similarity": true, + "readme-render": true + }, + "scorecard": { + "column": 5, + "ivory-background": 5, + "white-marble": 5, + "daylight": 5, + "blue-gold-accents": 5, + "no-dark-background": 5, + "deity-symbol": 5, + "text-accuracy": 5, + "anchor-similarity": 5, + "readme-render": 5 + } + } + ] +} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..4964ec9 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,33 @@ +# Agent guide + +## Read first + +1. `CLAUDE.md` +2. `rules/best-practices.md` +3. `specs/00-roadmap.md` +4. Relevant files under `agents/` and `docs/decisions/` + +## Scope + +- Keep changes inside this repository. +- Treat `workflows/zeuz-pipeline.js` as host-executed source, not a standalone Node program. +- Preserve the six checked-in specialist roles unless a task explicitly changes the factory design. +- Keep runtime output under `runs/`; never track it. +- Do not add secrets, credentials, machine-specific absolute paths, sessions, caches, or private runtime state. + +## Change rules + +- When pipeline phases or required outputs change, update `specs/00-roadmap.md` and `rules/best-practices.md` in the same patch. +- Keep `CLAUDE.md` as a short router. Put detail in `rules/`, `specs/`, or `docs/`. +- Describe host requirements and limitations directly. Do not claim a full end-to-end run from the static smoke test. +- Put irreversible file, archive, publish, move, and deployment actions behind explicit host approval. +- Preserve English `README.md`, Russian `README.ru.md`, attribution, and MIT licensing. + +## Checks + +```bash +bash smoke/smoke.sh +git diff --check +``` + +The smoke test must end with `ГЕЙТ ПРОЙДЕН ✓`. Review the diff before handoff. diff --git a/CLAUDE.md b/CLAUDE.md index cded3fb..5b8aa95 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -25,7 +25,7 @@ ## Команды - Гейт: `smoke/smoke.sh` (node --check pipeline + grep ворот/observability/душ) - Синтаксис workflow: `node --check` через обёртку `async function __wf(){…}` (export→const, top-level return легален) -- Старт сессии: читать `rules/best-practices.md` → `specs/00-roadmap.md` → знать образцы (Мнемозина/Фемида) +- Старт сессии: читать `rules/best-practices.md` → `specs/00-roadmap.md` → `docs/decisions/` ## Конвенции - `/caveman` всегда (общение) · `/humanizer` все рождаемые документы. Русский, без воды. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..deacdaa --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,34 @@ +# Contributing to Zeuz + +Zeuz is a small, host-dependent reference implementation. Keep pull requests focused and make the host contract explicit when behavior changes. + +## Setup + +You need Git, Bash, and Node.js. + +```bash +git clone https://github.com/zarubinvibe/zeuz.git +cd zeuz +bash smoke/smoke.sh +``` + +No dependency installation is required for the checked-in smoke test. + +## Before a pull request + +- Read `CLAUDE.md`, `rules/best-practices.md`, and `specs/00-roadmap.md`. +- Keep runtime files, credentials, local paths, and generated project output out of Git. +- Update both READMEs when a user-facing command, prerequisite, output path, or limitation changes. +- Update the roadmap and construction policy together when the workflow changes. +- Add the smallest deterministic check that catches new behavior. + +Run: + +```bash +bash smoke/smoke.sh +git diff --check +``` + +In the pull request, state what changed, which host assumptions changed, and what the smoke test does and does not cover. + +Security reports do not belong in public issues. Follow [SECURITY.md](SECURITY.md). diff --git a/README.md b/README.md index 7c9a212..c52ff9c 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,153 @@ -# zeuz — factory of agentic workflow systems +# 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. + +[Quickstart](#quickstart) · [Example](#example-run) · [Security](#security-and-privacy) · [Contributing](CONTRIBUTING.md) · [Русский](README.ru.md)

- Zeus the father-creator at his forge, sculpting a glowing system into being + Zeuz emblem with Zeus, a golden lightning bolt, a gated workflow graph, and a marble column

-**Zeuz** is a factory: from an idea it births a complete agentic workflow system of the Femida/Mnemozina class. It runs the spec through six inventor-masters (Russian scientists, role = character) and bakes a constitution into every system it produces. +![Zeuz Pantheon hero showing Zeus beside a gated workflow graph and a classical marble column](docs/assets/pantheon/hero.png) -## Why +> 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. -Building a multi-agent system by hand is slow and easy to get wrong: one step skips the gate before an irreversible action, another burns tokens where Haiku would do, a third leaves a hole in coverage. Zeuz takes that off your plate. You bring an idea — it interrogates it into a full spec, casts the roles, draws the architecture with gates, budgets the tokens, writes the files, and tests the result before handoff. What you get is a working system under one constitution, not a pile of loose prompts. +## Quickstart -Who it's for: anyone building not a single workflow but a family of them, who wants every new system born to the same standard — observability, replay, and control over irreversible actions baked in. - -## Flow - -

- Six master-sages at workbenches: an idea passes down the line, growing into a finished system -

- -```text -"need a new workflow/system" - → Stage 0: Lobachevsky + /grill-me (spec: goal · input+volume · completeness invariant · constraints) - → Workflow({ name: 'zeuz-pipeline', args: spec }) - 0 Observe (abtop, CTX gate) → 1 Markov (cast souls) → 2 Shukhov (architecture + gates) - → 3 Kotelnikov (token economy + model-per-function) → 4 DAG artifact - → 5 Lebedev (write files) → 6 Zvorykin (test → verdict) - → Zeuz: Graphify (if knowledge) · mirror Codex+VPS · deliver -``` - -## Layout (Athena schema) - -| Path | What | -|---|---| -| `CLAUDE.md` | thin router: map, autostart, conventions | -| `rules/best-practices.md` | **constitution** — baked into every birthed system | -| `specs/00-roadmap.md` | factory flow + team (read first) | -| `agents/*.md` | 6 master souls + `zeuz.md` overseer | -| `workflows/zeuz-pipeline.js` | active workflow with code-enforced gates | -| `docs/decisions/` | ADRs | -| `smoke/smoke.sh` | gate: `node --check` + grep invariants | -| `runs/` | runtime (observability, DAG; gitignored) | - -## Gates - -

- A sealed marble gate before a threshold of fire: passage only when the seal verifies -

- -Every irreversible action (archive, publish, `mv`) sits behind a `## NAME ✓` marker that a code check must satisfy first — no gate, no passage. +Requirements: Bash and Node.js. ```bash -smoke/smoke.sh # node --check pipeline + grep gates/observability/souls/schema +git clone https://github.com/zarubinvibe/zeuz.git +cd zeuz +bash smoke/smoke.sh ``` -## One constitution, baked in +The final line should be: -

- A law engraved in stone, its light flowing into every small system born below -

+```text +ГЕЙТ ПРОЙДЕН ✓ +``` -`rules/best-practices.md` is the source of truth. Every system Zeuz births inherits the same spine: harness > model, completeness gates in code, swarm economy, context-as-budget, token thrift, Run Observatory, DAG/replay, artifact lineage, model-per-function. +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. -See [README.ru.md](README.ru.md) for the Russian version. +## Run it in a host + +`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. + +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 | +|---|---| +| 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 | + +Generated files go under `ZEUZ_PROJECTS//`. The exact list requested by the build prompt is: + +```text +agents/.md +-pipeline.js +PROTOCOL-.md +CLAUDE.md +runs/-plan.dag.json +``` + +The final return value uses `status: "done"` only when the tester returns the verdict `ГОТОВА`. Other verdicts return `status: "needs_fix"` with the reported issues. + +## Gates and evidence + +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. + +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. + +## Security and privacy + +- 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. + +See [SECURITY.md](SECURITY.md) for the trust boundary and reporting guidance. + +## Project map + +| 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 | + +## 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. + + +## Olympuz family + +This is one of the public [Olympuz projects](https://github.com/zarubinvibe/athena#olympuz-family). Each row opens the repository or downloads its source as a ZIP. + +| Type | Name | What it does | Source | +|---|---|---|---| +| project | Athena | Portable agent OS that restores a complete Claude and Codex setup on a new Mac. | [Repository](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) | +| project | Helioz | 24/7 agent work conveyor with verified completion markers and goal-based overnight decisions. | [Repository](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) | +| project | Mnemazine | Local-first memory system that turns raw inputs into verified reusable knowledge. | [Repository](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) | +| project | Themis | Multi-agent assistant for Russian litigation with local OCR and review by a five-jurist council. | [Repository](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) | +| 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) | + + +## Contributing + +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. diff --git a/README.ru.md b/README.ru.md index f72990c..a3edf0a 100644 --- a/README.ru.md +++ b/README.ru.md @@ -1,62 +1,153 @@ -# zeuz — фабрика агентных workflow-систем +# Zeuz + +Zeuz - фабрика агентных workflow для совместимого host. Она принимает полную спецификацию, затем специалисты проектируют, записывают и проверяют новую многоагентную систему. + +[Быстрый старт](#быстрый-старт) · [Пример](#пример-запуска) · [Безопасность](#безопасность-и-приватность) · [Участие](CONTRIBUTING.md) · [English](README.md)

- Зевс-отец у кузницы лепит из света живую систему + Эмблема Zeuz: Зевс, золотая молния, граф с воротами и мраморная колонна

-**Зевс** — фабрика: из идеи рождает полноценную агентную workflow-систему класса Фемида/Мнемозина. Проводит спеку через шесть мастеров-изобретателей (русские учёные, роль = характер) и закладывает конституцию в каждую рождаемую систему. +![Светлый Pantheon hero Zeuz: Зевс рядом с управляемым графом workflow и классической колонной](docs/assets/pantheon/hero.png) -## Зачем +> Статус: reference implementation. В репозитории лежат исходник workflow, prompts агентов, правила проектирования и статический smoke-тест. Отдельного runner и полного end-to-end fixture пока нет. -Собрать многоагентную систему вручную — долго и легко напортачить: один забывает ворота перед необратимым шагом, другой жжёт токены там, где хватило бы Haiku, третий оставляет дыру в покрытии. Зевс снимает это с человека. Ты приносишь идею — он сам допрашивает её до полной спеки, кастует роли, рисует архитектуру с воротами, считает токены, пишет файлы и испытывает результат перед сдачей. На выходе — рабочая система с единой конституцией, а не набор разрозненных промптов. +## Быстрый старт -Кому полезно: тем, кто строит не один workflow, а семейство, и хочет, чтобы каждая новая система рождалась по одному стандарту — с observability, replay и контролем необратимых действий из коробки. - -## Поток - -

- Шесть мастеров у верстаков: идея идёт по линии и вырастает в готовую систему -

- -```text -«нужен новый workflow/система» - → Стадия 0: Лобачевский + /grill-me (спека: цель · вход+объём · инвариант полноты · ограничения) - → Workflow({ name: 'zeuz-pipeline', args: спека }) - 0 Observe (abtop, CTX-gate) → 1 Марков (кастинг душ) → 2 Шухов (архитектура + ворота) - → 3 Котельников (токеносбережение + модель по функции) → 4 DAG artifact - → 5 Лебедев (пишет файлы) → 6 Зворыкин (испытание → вердикт) - → Зевс: Graphify (если знание) · зеркало Codex+VPS · сдача -``` - -## Раскладка (схема Афины) - -| Путь | Что | -|---|---| -| `CLAUDE.md` | тонкий роутер: карта, автозапуск, конвенции | -| `rules/best-practices.md` | **конституция** — закладывается в каждую рождаемую систему | -| `specs/00-roadmap.md` | поток фабрики + команда (читать первым) | -| `agents/*.md` | 6 душ-мастеров + `zeuz.md` (надзиратель) | -| `workflows/zeuz-pipeline.js` | активный workflow с воротами в коде | -| `docs/decisions/` | ADR | -| `smoke/smoke.sh` | гейт: `node --check` + grep инвариантов | -| `runs/` | runtime (observability, DAG; gitignored) | - -## Ворота - -

- Запечатанные мраморные врата перед огнём: проход только когда печать сверена -

- -Каждое необратимое действие (архив, публикация, `mv`) стоит за маркером `## ИМЯ ✓`, который сперва обязана пройти проверка в коде — нет ворот, нет прохода. +Нужны Bash и Node.js. ```bash -smoke/smoke.sh # node --check pipeline + grep ворот/observability/душ/схемы +git clone https://github.com/zarubinvibe/zeuz.git +cd zeuz +bash smoke/smoke.sh ``` -## Что заложено в конституцию (v2) +Последняя строка успешной проверки: -

- Закон, высеченный в камне; его свет течёт в каждую рождённую систему -

+```text +ГЕЙТ ПРОЙДЕН ✓ +``` -Harness>модель · 6 слоёв OS · души-личности · ворота полноты (код) · рой-экономика (×15 токенов) · контекст=бюджет (73%/49%/10%) · токеносбережение · Run Observatory · DAG/replay · artifact lineage · синтез-на-записи · keep-or-revert + circuit breakers · принуждение · модель по функции · 10 боевых правил. +Этот результат подтверждает две вещи. Node разбирает workflow внутри async-обёртки, а в исходнике остались обязательные маркеры observability, DAG, CTX-gate, schema, агентов и раскладки репозитория. Самих агентов smoke не запускает. + +## Запуск в host + +`workflows/zeuz-pipeline.js` рассчитан на workflow host, где доступны `args`, `phase()`, `agent()` и `log()`. Host должен уметь передавать агенту JSON Schema через опцию `schema`. + +Укажи checkout Zeuz и родительский каталог для создаваемых проектов: + +```bash +export ZEUZ_HOME="$PWD" +export ZEUZ_PROJECTS="$PWD/../zeuz-output" +``` + +Зарегистрируй `workflows/zeuz-pipeline.js` в host и передай полную спецификацию: + +```js +Workflow({ + name: 'zeuz-pipeline', + args: ` +Цель: собрать workflow для проверки release notes перед публикацией. +Вход: Markdown-файлы, до 50 за один прогон. +Инвариант полноты: у каждого входного файла записан вердикт. +Ограничения: публикация только после approval; нужен audit trail. +Готово: ledger содержит один вердикт на каждый входной файл. + `.trim(), +}) +``` + +Pipeline отклоняет пустую или слишком короткую спецификацию. Интерактивный шаг `/grill-me`, указанный в prompts агентов, относится к настройке host и в этот репозиторий не входит. + +## Пример запуска + +Фазы workflow: + +| Фаза | Что требует исходник от агента | +|---|---| +| Observe | Локальный runtime snapshot в `runs/_observability.jsonl`; `abtop` опционален | +| Cast | Роли и проверенные биографии учёных для персон агентов | +| Architect | Стадии, границы параллельной работы, требования к воротам и граф | +| Economize | Карта моделей и способы экономить контекст на каждой стадии | +| Build | Файлы агентов, workflow, протокол, `CLAUDE.md` и plan DAG | +| Test | Проверки синтаксиса, ворот, observability, lineage, персон и dry-run, затем вердикт | + +Новая система записывается в `ZEUZ_PROJECTS//`. Build prompt запрашивает такой комплект: + +```text +agents/.md +-pipeline.js +PROTOCOL-.md +CLAUDE.md +runs/-plan.dag.json +``` + +Финальный ответ получает `status: "done"`, только если испытатель вернул `ГОТОВА`. При другом вердикте pipeline отдаёт `status: "needs_fix"` и список найденных проблем. + +## Ворота и доказательства + +Prompts архитектора и строителя требуют закрывать необратимые действия детерминированными проверками. Prompt испытателя ищет эти проверки перед вердиктом. Smoke самой фабрики проверяет меньше: `node --check`, наличие файлов и обязательные fixed-string маркеры. + +Храни создаваемый проект в отдельном каталоге. Перед публикацией, архивом, переносом или деплоем проверь файлы и запусти его собственные тесты. + +## Безопасность и приватность + +- Файлы: build-агенты получают команду писать в `ZEUZ_PROJECTS`, observability пишет в `ZEUZ_HOME/runs`. +- Shell: prompts Observe и Test запускают локальные команды. Sandbox и approvals настраивает host. +- Сеть: Cast просит host проверить биографические факты через веб. Zeuz не задаёт сетевую политику. +- Секреты: репозиторию не нужны credentials. Не клади секреты в спецификацию и создаваемые артефакты. +- Телеметрия: удалённого telemetry client нет. Runtime snapshots остаются в локальном JSONL. +- Подтверждения: репозиторий описывает ворота, но сам не управляет правами host. +- Откат: автоматического undo нет. Используй изолированный output-каталог и проверяй diff. + +Граница доверия и порядок сообщения об уязвимостях описаны в [SECURITY.md](SECURITY.md). + +## Карта проекта + +| Путь | Назначение | +|---|---| +| `workflows/zeuz-pipeline.js` | Workflow для совместимого host | +| `agents/` | Prompts контролёра и шести специалистов | +| `rules/best-practices.md` | Локальные правила сборки, которые получают агенты | +| `specs/00-roadmap.md` | Фазы и владельцы ролей | +| `docs/decisions/` | Архитектурные решения | +| `smoke/smoke.sh` | Статическая проверка синтаксиса и маркеров | +| `CLAUDE.md` | Роутер проекта для совместимых coding-agent sessions | + +## Статус и ограничения + +Zeuz пока reference implementation, а не готовый CLI или SDK. Публичного плана релизов в репозитории нет. + +- Адаптера для workflow host в репозитории нет. +- Smoke не исполняет полную созданную систему. +- Метки моделей `haiku`, `sonnet` и `opus` должен понимать или преобразовывать host. +- Вердикты агентов остаются model output. Созданный код и факты требуют независимой проверки. +- `abtop` опционален. Если binary недоступен, Observe записывает `abtop_unavailable`. + + +## Семья Olympuz + +Это один из публичных [проектов семьи Olympuz](https://github.com/zarubinvibe/athena#olympuz-family). Из таблицы можно открыть репозиторий или сразу скачать исходники в ZIP. + +| Тип | Название | Что внутри | Скачать | +|---|---|---|---| +| проект | Athena | Переносимая агентная ОС: разворачивает рабочую среду Claude и Codex на новом Mac. | [Репозиторий](https://github.com/zarubinvibe/athena) · [ZIP](https://github.com/zarubinvibe/athena/archive/refs/heads/main.zip) | +| проект | Helioz | Конвейер работы агентов 24/7 с проверяемыми отметками готовности и ночными решениями по цели владельца. | [Репозиторий](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) | +| проект | Mnemazine | Локальная система памяти: превращает сырьё в проверенные знания для повторного использования. | [Репозиторий](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) | +| проект | Themis | Многоагентный помощник по российским судебным делам с локальным OCR и советом из пяти юристов. | [Репозиторий](https://github.com/zarubinvibe/themis) · [ZIP](https://github.com/zarubinvibe/themis/archive/refs/heads/main.zip) | +| проект | Zeuz | Фабрика многоагентных workflow: собирает систему с правилами, гейтами, наблюдаемостью и replay. | [Репозиторий](https://github.com/zarubinvibe/zeuz) · [ZIP](https://github.com/zarubinvibe/zeuz/archive/refs/heads/main.zip) | + + +## Как помочь проекту + +Прочитай [CONTRIBUTING.md](CONTRIBUTING.md), не раздувай scope и запусти: + +```bash +bash smoke/smoke.sh +git diff --check +``` + +## Авторство и лицензия + +Zeuz создал Philipp Zarubin. Исходная структура workflow, персоны агентов и ранние иллюстрации остаются в истории Git и каталоге `docs/assets/`. + +Код распространяется по [MIT License](LICENSE). Copyright (c) 2026 Philipp Zarubin. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..f09c219 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,26 @@ +# Security policy + +Zeuz coordinates agents that may read files, run shell commands, use the network, and write a new project. The repository supplies prompts and workflow source. The workflow host controls the actual permissions. + +## Trust boundary + +- `workflows/zeuz-pipeline.js` assumes the host provides `phase()`, `agent()`, `log()`, and `args`. +- Agent responses are untrusted model output, including structured responses and test verdicts. +- Build agents are instructed to write under `ZEUZ_PROJECTS`. +- Observe writes local runtime data under `ZEUZ_HOME/runs` and may execute `abtop`, shell utilities, and Python. +- Cast asks the host for web research. The repository does not grant or restrict network access. +- Zeuz does not implement a sandbox, approval UI, credential store, or automatic rollback. + +Run the workflow with least-privilege file and network access. Use a dedicated output directory, review generated files, and require human approval before publishing, moving, archiving, deploying, or executing generated code. + +Do not place credentials, tokens, private keys, personal data, or confidential source text in a specification. Prompts may pass the specification to several agents and generated artifacts may preserve parts of it. + +## Supported versions + +Security fixes target the current `main` branch. The project has no tagged stable release line. + +## Reporting a vulnerability + +Do not publish exploit details in a public issue. If the repository Security tab offers private vulnerability reporting, use it. Otherwise open a minimal issue asking the maintainer for a private contact channel and omit sensitive details until that channel exists. + +Include the affected revision, required host capabilities, reproduction steps, impact, and any safe mitigation you tested. diff --git a/agents/zeuz.md b/agents/zeuz.md index b0006f4..41142bb 100644 --- a/agents/zeuz.md +++ b/agents/zeuz.md @@ -32,6 +32,6 @@ model: sonnet - Каждая система ОБЯЗАНА содержать: души · ворота полноты (код) · токеносбережение · рой по роли · graphify-финал (если знание) · принуждение · модель по функции. - Общение → `/caveman`; документы → `/humanizer`. -Конституция: `rules/best-practices.md`. Поток: `specs/00-roadmap.md`. Образцы: `Протокол_Мнемозина`, `Протокол_Фемида`. +Конституция: `rules/best-practices.md`. Поток: `specs/00-roadmap.md`. Решения: `docs/decisions/`. **Модель:** Sonnet 4.6 (оркестрация); конфликт/тяжёлый синтез → Opus 4.8. diff --git a/docs/assets/pantheon/emblem.png b/docs/assets/pantheon/emblem.png new file mode 100644 index 0000000..bb51402 Binary files /dev/null and b/docs/assets/pantheon/emblem.png differ diff --git a/docs/assets/pantheon/hero.png b/docs/assets/pantheon/hero.png new file mode 100644 index 0000000..992d619 Binary files /dev/null and b/docs/assets/pantheon/hero.png differ diff --git a/docs/decisions/0001-rebuild-athena-schema-knowledge-upgrade.md b/docs/decisions/0001-rebuild-athena-schema-knowledge-upgrade.md index 97daf18..e1acafc 100644 --- a/docs/decisions/0001-rebuild-athena-schema-knowledge-upgrade.md +++ b/docs/decisions/0001-rebuild-athena-schema-knowledge-upgrade.md @@ -11,7 +11,7 @@ zeuz (v1.1) — рабочая фабрика, но: (1) конституция 1. **Латинский ренейм**: `агенты/`→`agents/`, `конституция/`→`rules/`, `BEST-PRACTICES.md`→`best-practices.md`. 2. **Схема Афины**: тонкий `CLAUDE.md` (Карта/Автозапуск/Команды/Конвенции/Не-делать), `specs/00-roadmap.md` (фазовый план, читать первым), `docs/decisions/` (ADR), `smoke/smoke.sh` (гейт), `README.md`+`README.ru.md`. Старые `CLAUDE_Зевс.md`/`Протокол_Зевс.md` свёрнуты в CLAUDE+specs. -3. **Апгрейд конституции** — добавлены/заострены: §0 harness>модель · §4 рой-экономика (×15 токенов, ×4.4 vs ×17.2) · §5 контекст=бюджет (73%/49%/10% cache) · §9 синтез-на-записи + retrieval-стек · §10 keep-or-revert + generator≠evaluator + circuit breakers · боевые правила (10). +3. **Апгрейд конституции** — добавлены/заострены: §0 harness>модель · §4 рой-экономика · §5 контекст=бюджет · §9 синтез-на-записи + retrieval-стек · §10 keep-or-revert + generator≠evaluator + circuit breakers · боевые правила. Числовые оценки без repository-local evidence в публичной версии не используются. ## Границы diff --git a/rules/best-practices.md b/rules/best-practices.md index 3fafe62..7fa2fc3 100644 --- a/rules/best-practices.md +++ b/rules/best-practices.md @@ -1,14 +1,12 @@ # Конституция Зевса — как строить правильные агентные workflow-системы -Дистиллировано из базы знаний Филиппа (AgenticOS, Parallel-Agents, KB-Architecture, How Claude Code Works, Bernstein, OpenMultiAgent) + боевых логов (`~/.claude/self-learning/`) + мета-паттерн Фемида/Мнемозина. Зевс закладывает ЭТО в КАЖДУЮ систему, которую рождает. - -> Источник заострения цифр: `~/Полезные знания/.../Оптимизация агентных систем — best practices.md` (синтез ~80 нот + боевые логи). +Repository-local правила, которые Zeuz передаёт в prompt каждой создаваемой системы. Они описывают требования фабрики, а не измеренные гарантии качества или стоимости. --- ## 0. Harness > модель (фундамент) -Среда определяет результат, не модель. Слабый harness превращает сильную модель в хаос; **~90% улучшений доступны без дорогой модели**. Перед сменой `/model` — аудит harness: framing → context → tools → evals → feedback. Промпты, инструменты, evals, фикстуры держатся ВНЕ модели (harness-артефакты) — при апгрейде модели улучшения не теряются. Meta-harness: каждый прогон делает среду лучше (metric → inspect failure → change harness → eval → compare → rollback). MCP ≠ A2A: пассивный инструмент → MCP; автономный исполнитель → A2A. Не смешивать. +Среда определяет результат вместе с моделью. Перед сменой `/model` — аудит harness: framing → context → tools → evals → feedback. Промпты, инструменты, evals, фикстуры держатся ВНЕ модели (harness-артефакты) — при апгрейде модели улучшения не теряются. Meta-harness: каждый прогон делает среду лучше (metric → inspect failure → change harness → eval → compare → rollback). MCP ≠ A2A: пассивный инструмент → MCP; автономный исполнитель → A2A. Не смешивать. ## 0b. Сначала требования (grill-me), потом постройка @@ -30,7 +28,7 @@ `Census(1, охват) → Triage(1, классификация) → Process(N ∥, по юниту) → Reconcile(1, ворота) → Archive(1, необратимое)`. -**Когда рой оправдан** (иначе соло — multi-agent стоит **×15 токенов**): +**Когда рой оправдан** (иначе соло: multi-agent добавляет координацию и расход контекста): | Задача | Решение | |---|---| @@ -39,11 +37,11 @@ | Широкий research, независимые источники | 10+ воркеров, чёткие роли | | Sequential (B зависит от A) / цепь с гейтами / destructive | ВСЕГДА соло | -Правила: Read параллельно, **Write изолировать** (1 модуль = 1 агент, нет гонок). Worktree = единственная верная изоляция coding-агентов; конфликты → merge-stage. Recon ДО fan-out (иначе воркеры дублируют угол). Orchestrator держит цель+decision log, воркеры — только execution: **централизованный MAS усиливает ошибки ×4.4, independent — ×17.2**. 3–5 устойчивых ролей, не 20. Воркеры пишут в external store (TL;DR + findings `file:line`/URL + gaps), не agent-to-agent chat. Fan-in = отдельная работа: дедуп + противоречия + подтверждённое/гипотезы/пробел/next. Hard cap заранее (Claude Code: 16 одновременно, 1000 на запуск). **Большой рой — отдельным процессом**, не в главный контекст. +Правила: Read параллельно, **Write изолировать** (1 модуль = 1 агент, нет гонок). Worktree = надёжная изоляция coding-агентов; конфликты → merge-stage. Recon ДО fan-out (иначе воркеры дублируют угол). Orchestrator держит цель+decision log, воркеры — только execution. Общая ошибка координатора может разойтись по всему рою, а независимые воркеры могут повторить одну и ту же работу. Держи 3–5 устойчивых ролей. Воркеры пишут в external store (TL;DR + findings `file:line`/URL + gaps), не agent-to-agent chat. Fan-in = отдельная работа: дедуп + противоречия + подтверждённое/гипотезы/пробел/next. Hard cap задай до запуска. **Большой рой — отдельным процессом**, не в главный контекст. ## 5. Контекст = бюджет (не свалка) -Жёсткие факты: **73% токенов уходят ДО твоего промпта** (CLAUDE.md + история + MCP). **MCP-дескрипторы — до 49% стартового контекста** (8–10 постоянных MCP = вечная утечка). **Cache hit = 10% цены**; смена `/model`, `/effort`, MCP, `/compact` ломает кэш. +Baseline-контекст приходит до пользовательского prompt: инструкции, история и MCP-дескрипторы уже занимают окно. Измеряй его в текущем harness и не держи ненужные MCP включёнными. Смена `/model`, `/effort`, MCP или `/compact` может сбросить prompt cache. | Практика | Правило | |---|---| @@ -59,7 +57,7 @@ ## 5b. Токеносбережение (тяжёлое — ДО контекста LLM) 1. **hash-cache** (SHA-256) — обработанное = skip за 0 токенов. -2. **markitdown** — docx/pdf/pptx/xlsx→markdown локально до LLM (−60%). +2. **markitdown** — docx/pdf/pptx/xlsx→markdown локально до LLM. 3. **локальный OCR/embed** (Apple Vision/fastembed) — фолбэк дорогих vision-токенов; семантический дедуп cosine ≥0.72. 4. **cost-aware тиры** — механику на Haiku, не Sonnet. 5. **разведка перед полным** — пробный вызов (limit 3, pages 1-3) → оценить → полный с лимитами. @@ -79,7 +77,7 @@ ## 9. Память: синтез-на-записи > RAG-на-запросе -RAG возвращает chunks → агент регенерирует шум. **Сжимай знание в ноту ОДИН раз** при записи, ставь `source:` + «как поможет». **Hot/Cold — два слоя**: hot = констрейнты + текущая цель + решения; cold = атомарные ноты on-demand. Весь vault в промпт — никогда. Атомарность: 1 нота = 1 концепт. Retrieval-стек под задачу: **BM25-first (85% recall@20) → vector (semantic) → GraphRAG (multi-hop) → KAG (governed facts + provenance)**. **Retrieval ≠ source of truth**: auth/payments/security/migrations — первичка + тест. Если система рождает знание — `graphify --update --no-viz` обязательный финал (запускает надзиратель). +RAG возвращает chunks → агент регенерирует шум. **Сжимай знание в ноту ОДИН раз** при записи, ставь `source:` + «как поможет». **Hot/Cold — два слоя**: hot = констрейнты + текущая цель + решения; cold = атомарные ноты on-demand. Весь vault в промпт — никогда. Атомарность: 1 нота = 1 концепт. Retrieval-стек под задачу: **BM25-first → vector (semantic) → GraphRAG (multi-hop) → KAG (governed facts + provenance)**. **Retrieval ≠ source of truth**: auth/payments/security/migrations — первичка + тест. Если система рождает знание — `graphify --update --no-viz` обязательный финал (запускает надзиратель). ## 10. Автономия и петли (без метрики = busy loop) @@ -116,9 +114,9 @@ RAG возвращает chunks → агент регенерирует шум. ## Боевые правила (высший сигнал — из практики) -1. **Destructive + sequential + gated = соло Opus**, не рой. (0 откатов на 2 сессиях) +1. **Destructive + sequential + gated = соло Opus**, не рой. 2. **Baseline-расход = длина сессии × кол-во вызовов**, не состав rules. Lang-дубли (zh) — шум. -3. **Чекпойнты раньше на bash-heavy.** Cache-read 94% при 108 вызовах × большой baseline → дорого. +3. **Чекпойнты раньше на bash-heavy.** Длинная сессия с большим baseline повторно тратит контекст. 4. **Batch-вопросы > микро-раунды.** 4× multiSelect за 2 захода вместо 19 раундов. 5. **claim→контент, не «URL существует».** Галлюцинация цитирует реальный-но-нерелевантный источник. 6. **Большой рой — отдельный фон-процесс.** Контекст не читает гигабайты. diff --git a/specs/00-roadmap.md b/specs/00-roadmap.md index 94099a7..2326f96 100644 --- a/specs/00-roadmap.md +++ b/specs/00-roadmap.md @@ -48,4 +48,4 @@ 3. Система не сдаётся без вердикта **ГОТОВА** Зворыкина. 4. Имена агентов — реальные русские учёные по роли, даты ВЕРИФИЦИРОВАНЫ, занятых не повторять. 5. Каждая система ОБЯЗАНА содержать инварианты конституции (см. выше). -6. Файлы: `~/Проекты/zeuz/` (проект) · активный workflow `~/.claude/workflows/zeuz-pipeline.js`. +6. Файлы: checkout репозитория задаётся через `ZEUZ_HOME`; родитель выходных проектов — через `ZEUZ_PROJECTS`. Workflow регистрируется средствами совместимого host harness. diff --git a/workflows/zeuz-pipeline.js b/workflows/zeuz-pipeline.js index d65885d..cd4ab0e 100644 --- a/workflows/zeuz-pipeline.js +++ b/workflows/zeuz-pipeline.js @@ -19,7 +19,7 @@ const HOME = (typeof process !== 'undefined' && process.env && process.env.HOME) const ZEUZ_HOME = (typeof process !== 'undefined' && process.env && process.env.ZEUZ_HOME) || (HOME + '/Проекты/zeuz') const PROJECTS = (typeof process !== 'undefined' && process.env && process.env.ZEUZ_PROJECTS) || (HOME + '/Проекты') const CONST = ZEUZ_HOME + '/rules/best-practices.md' -const SAMPLES = 'Образцы: ~/Полезные знания/99 Система/Протокол_Мнемозина.md · ~/Desktop/Протокол_Фемида.md' +const SAMPLES = 'Опирайся только на правила и спецификации из текущего репозитория; не предполагай доступ к внешним частным образцам.' const ABTOP = HOME + '/.cargo/bin/abtop' // new Date()/Date.now() запрещены в workflow-скриптах (ломают resume). RUN_ID — дет. хэш спеки: уникален per-бренд, стабилен для resume. const __hash = (s) => { let h = 5381; for (let i = 0; i < s.length; i++) h = ((h * 33) ^ s.charCodeAt(i)) >>> 0; return h.toString(36) }