test: isolate release checks and refresh docs

This commit is contained in:
Зарубин Филипп
2026-08-26 18:04:41 +03:00
parent 0315b82579
commit a67e1b4585
6 changed files with 49 additions and 41 deletions
+8 -12
View File
@@ -16,7 +16,7 @@ Now I do the same with tasks.
Philipp Zarubin built me. The reason is dull: he has no time. Night, court, kids, and the work sits still because nobody is driving it. Now I drive.
I come from a family: [Olympuz](https://github.com/zarubinvibe/olympuz) is the swarm cockpit, [Zeuz](https://github.com/zarubinvibe/zeuz) is the factory that births systems like me, [Mnemazine](https://github.com/zarubinvibe/mnemazine) is memory, [Themis](https://github.com/zarubinvibe/themis) runs a law practice, [Athena](https://github.com/zarubinvibe/athena) is the agent OS all of it lives on. My one job here is continuity.
I work alongside [Zeuz](https://github.com/zarubinvibe/zeuz), the system factory; [Mnemazine](https://github.com/zarubinvibe/mnemazine), the memory layer; [Themis](https://github.com/zarubinvibe/themis), the legal workflow; and [Athena](https://github.com/zarubinvibe/athena), the agent OS. My one job here is continuity.
## Why you need me
@@ -30,7 +30,7 @@ Every flaw gets an instrument, not a promise.
**The "finished" mark is written by code.** Inside it are fingerprints: commits before and after, a hash of the changed files, the exit code of the check. Forging it does not work. A mark written by hand, truncated, or copied from another task gets seen and called out loud.
**At night nobody wakes you.** Small forks go to a council: one advisor looks at risk, another at the cost of undoing, a third at simplicity. Each writes alone, blind to the others. Then the decision is checked against your goal. In the morning you read it and replay it with one message if you disagree.
**At night nobody wakes you.** Small forks go to a council with four lenses: risk, cost of undoing, your constraints, and simplicity. A decision needs at least three valid positions. Each advisor writes alone, blind to the others. Then the decision is checked against your goal. In the morning you read it and replay it with one message if you disagree.
**Three things I never decide.** Production actions, a clash with someone else's work, and a fork that is expensive to undo either way. Those wait for you. While they wait I take other work, because idling is not something I do.
@@ -114,7 +114,7 @@ bash scripts/helioz-start.sh
| `scripts/helioz-exec.mjs` | honest agent probe (a real run, not a version check), rotation, role runner |
| `scripts/helioz-council.mjs` | night council: lenses apart, blind merge, ledger; forbidden cases refused |
| `scripts/helioz-watchdog.sh` | heartbeat gone, start a new session with the handoff |
| `scripts/helioz-probes.mjs` | six adversarial probes; only they grant the project its "ready" status |
| `scripts/helioz-probes.mjs` | thirteen adversarial probes; only they grant the project its "ready" status |
| `scripts/helioz-budget-reset.mjs` | reset the budget window: spend counts from now, the ceiling stays |
| `docs/CONTRACTS.md` | on-disk state contracts: tasks, forks, marks, ledger |
| `docs/BRAND.md` | design description, an instance of the Pantheon Design System |
@@ -139,13 +139,13 @@ Start with this README, then read [state contracts](docs/CONTRACTS.md), [the mas
## How I prove I am not lying
Six probes, one command, all of them must be green:
Thirteen probes, one command, all of them must be green:
```bash
node scripts/helioz-probes.mjs
```
Kill the orchestrator mid-task: the next one continues. Forge a mark: caught. Stay silent for a day: work goes on, forks intact. Cut Telegram: reports queue up and arrive later. Hand the council a forbidden fork: it refuses. Send two executors at one file: the second never starts.
Six probes hit the visible workflow: kill the orchestrator mid-task, forge a mark, stay silent for a day, cut Telegram, hand the council a forbidden fork, or send two executors at one file. Seven more attack the proof chain: a receipt for an older task revision, a marker without `external_sha`, a receipt without logs, a hand-written receipt, a changed log, a substituted check command, and one CLI assigned as both executor and verifier.
The probes test me, not my claims about myself. A red probe means no "ready" status.
@@ -157,7 +157,7 @@ The probes test me, not my claims about myself. A red probe means no "ready" sta
If Helioz turns out useful, star it: [github.com/zarubinvibe/helioz](https://github.com/zarubinvibe/helioz).
Seconds for you, genuinely important for the project. And meet the family: [themis](https://github.com/zarubinvibe/themis), [mnemazine](https://github.com/zarubinvibe/mnemazine), [zeuz](https://github.com/zarubinvibe/zeuz), [athena](https://github.com/zarubinvibe/athena), [smltlk](https://github.com/zarubinvibe/smltlk).
Seconds for you, genuinely important for the project. And meet the family: [themis](https://github.com/zarubinvibe/themis), [mnemazine](https://github.com/zarubinvibe/mnemazine), [zeuz](https://github.com/zarubinvibe/zeuz), [athena](https://github.com/zarubinvibe/athena).
## License
@@ -168,19 +168,15 @@ MIT. See [LICENSE](LICENSE).
Русская версия: [README.ru.md](README.ru.md)
<!-- pantheon-family:start -->
## Pantheon family
## Olympuz family
Part of the [Pantheon project family](https://github.com/zarubinvibe?tab=repositories). Every public project links directly to its repository and source ZIP.
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 | Claude Code Setup OS | Bootstrap skill for a token-efficient Claude Code workspace and a local LLM wiki. | [Repository](https://github.com/zarubinvibe/claude-code-setup-os) · [ZIP](https://github.com/zarubinvibe/claude-code-setup-os/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 | Humanizer | Agent skill that removes common AI writing patterns from English text. | [Repository](https://github.com/zarubinvibe/humanizer) · [ZIP](https://github.com/zarubinvibe/humanizer/archive/refs/heads/main.zip) |
| project | Humanizer RU | Russian writing skill that detects and removes 58 common AI text patterns. | [Repository](https://github.com/zarubinvibe/humanizer-ru) · [ZIP](https://github.com/zarubinvibe/humanizer-ru/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 | Smltlk | macOS menu bar app for keyboard-layout repair, offline dictation, and speech-to-prompt. | [Repository](https://github.com/zarubinvibe/smltlk) · [ZIP](https://github.com/zarubinvibe/smltlk/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) |
<!-- pantheon-family:end -->
+8 -12
View File
@@ -16,7 +16,7 @@
Собрал меня Филипп Зарубин, юрист и отец двух дочек. Причина скучная: времени у него нет совсем. Ночь, суд, дети, а работа стоит, потому что везти её некому. Теперь везу я.
Я из семьи: [Олимпуз](https://github.com/zarubinvibe/olympuz) - кокпит роя, [Зевс](https://github.com/zarubinvibe/zeuz) - фабрика, которая рождает такие системы, [Мнемозина](https://github.com/zarubinvibe/mnemazine) - память, [Фемида](https://github.com/zarubinvibe/themis) - юрпрактика, [Афина](https://github.com/zarubinvibe/athena) - агентная ОС, на которой всё это живёт. Мой удел здесь один: непрерывность.
Я работаю рядом с [Зевсом](https://github.com/zarubinvibe/zeuz), фабрикой систем; [Мнемозиной](https://github.com/zarubinvibe/mnemazine), слоем памяти; [Фемидой](https://github.com/zarubinvibe/themis), юридическим процессом; и [Афиной](https://github.com/zarubinvibe/athena), агентной ОС. Мой удел здесь один: непрерывность.
## Зачем я нужен
@@ -30,7 +30,7 @@
**Отметку «готово» пишет код.** Внутри отпечатки: коммиты до и после, хэш изменённых файлов, код возврата проверки. Подделать не выйдет. Отметку, написанную руками, обрезанную или скопированную с чужой задачи, я вижу и объявляю подделкой вслух.
**Ночью тебя никто не будит.** Мелкие развилки решает совет: один советник смотрит на риск, другой на цену отката, третий на простоту. Каждый пишет своё, чужого не видя. Потом решение сверяется с твоей целью. Утром прочитаешь и одним сообщением переиграешь, если не согласен.
**Ночью тебя никто не будит.** Мелкие развилки решает совет с четырьмя линзами: риск, цена отката, твои ограничения и простота. Решение возможно, только если ответили хотя бы трое. Каждый советник пишет своё, чужого не видя. Потом решение сверяется с твоей целью. Утром прочитаешь и одним сообщением переиграешь, если не согласен.
**Три вещи я не решаю никогда.** Выход в прод, столкновение с чужой работой и развилку, где любой вариант дорого откатывать. Тут жду тебя. Но пока жду, беру другую работу: стоять я не умею.
@@ -114,7 +114,7 @@ bash scripts/helioz-start.sh
| `scripts/helioz-exec.mjs` | честный зонд агента (настоящий прогон, а не проверка версии), ротация, запуск ролей |
| `scripts/helioz-council.mjs` | ночной совет: линзы врозь, слепой свод, журнал; запретные случаи отклоняет |
| `scripts/helioz-watchdog.sh` | пульс пропал, поднять новую сессию с хэндоффом |
| `scripts/helioz-probes.mjs` | шесть враждебных проб; только они дают проекту статус «готов» |
| `scripts/helioz-probes.mjs` | тринадцать враждебных проб; только они дают проекту статус «готов» |
| `scripts/helioz-budget-reset.mjs` | сброс окна бюджета: отсчёт расхода с этой минуты, потолок не трогает |
| `docs/CONTRACTS.md` | контракты состояния на диске: задачи, развилки, отметки, журнал |
| `docs/BRAND.md` | дизайн-описание, инстанс Pantheon Design System |
@@ -139,13 +139,13 @@ bash scripts/helioz-start.sh
## Чем докажу, что не вру
Шесть проб, одна команда, все обязаны быть зелёными:
Тринадцать проб, одна команда, все обязаны быть зелёными:
```bash
node scripts/helioz-probes.mjs
```
Убить оркестратора посреди задачи: следующий продолжит. Подделать отметку: поймается. Промолчать сутки: работа идёт, развилки целы. Обрубить Telegram: отбивки копятся и доезжают. Дать совету запретную развилку: откажется решать. Пустить двоих на один файл: второй не стартует.
Шесть проб бьют по видимой механике: убить оркестратора посреди задачи, подделать отметку, промолчать сутки, обрубить Telegram, дать совету запретную развилку или пустить двоих на один файл. Ещё семь проверяют цепочку доказательств: квитанцию от старой редакции задачи, отметку без `external_sha`, квитанцию без логов, рукописную квитанцию, подмену лога, чужую команду проверки и один CLI сразу в ролях исполнителя и проверяющего.
Пробы проверяют меня самого, а не мои слова о себе. Проба красная, значит статуса «готов» нет.
@@ -157,7 +157,7 @@ node scripts/helioz-probes.mjs
Если Гелиоз пригодился, поставь звезду: [github.com/zarubinvibe/helioz](https://github.com/zarubinvibe/helioz).
Тебе несколько секунд, проекту правда важно. И загляни к родне: [themis](https://github.com/zarubinvibe/themis), [mnemazine](https://github.com/zarubinvibe/mnemazine), [zeuz](https://github.com/zarubinvibe/zeuz), [athena](https://github.com/zarubinvibe/athena), [smltlk](https://github.com/zarubinvibe/smltlk).
Тебе несколько секунд, проекту правда важно. И загляни к родне: [themis](https://github.com/zarubinvibe/themis), [mnemazine](https://github.com/zarubinvibe/mnemazine), [zeuz](https://github.com/zarubinvibe/zeuz), [athena](https://github.com/zarubinvibe/athena).
## Лицензия
@@ -168,19 +168,15 @@ MIT. См. [LICENSE](LICENSE).
English version: [README.md](README.md)
<!-- pantheon-family:start -->
## Семья Pantheon
## Семья Olympuz
Этот репозиторий входит в [семью проектов Pantheon](https://github.com/zarubinvibe?tab=repositories). Для каждого публичного проекта даны прямые ссылки на репозиторий и ZIP с исходниками.
Это один из публичных [проектов семьи 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) |
| проект | Claude Code Setup OS | Bootstrap-скилл для экономной среды Claude Code и локальной LLM-вики. | [Репозиторий](https://github.com/zarubinvibe/claude-code-setup-os) · [ZIP](https://github.com/zarubinvibe/claude-code-setup-os/archive/refs/heads/main.zip) |
| проект | Helioz | Конвейер работы агентов 24/7 с проверяемыми отметками готовности и ночными решениями по цели владельца. | [Репозиторий](https://github.com/zarubinvibe/helioz) · [ZIP](https://github.com/zarubinvibe/helioz/archive/refs/heads/main.zip) |
| проект | Humanizer | Агентный скилл, который убирает типичные следы AI из английского текста. | [Репозиторий](https://github.com/zarubinvibe/humanizer) · [ZIP](https://github.com/zarubinvibe/humanizer/archive/refs/heads/main.zip) |
| проект | Humanizer RU | Русский редакторский скилл: находит и убирает 58 типичных следов AI-текста. | [Репозиторий](https://github.com/zarubinvibe/humanizer-ru) · [ZIP](https://github.com/zarubinvibe/humanizer-ru/archive/refs/heads/main.zip) |
| проект | Mnemazine | Локальная система памяти: превращает сырьё в проверенные знания для повторного использования. | [Репозиторий](https://github.com/zarubinvibe/mnemazine) · [ZIP](https://github.com/zarubinvibe/mnemazine/archive/refs/heads/main.zip) |
| проект | Smltlk | Приложение для строки меню macOS: чинит раскладку, распознаёт речь офлайн и превращает голос в промпт. | [Репозиторий](https://github.com/zarubinvibe/smltlk) · [ZIP](https://github.com/zarubinvibe/smltlk/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) |
<!-- pantheon-family:end -->
+11 -6
View File
@@ -608,7 +608,12 @@ async function cmdSelftest() {
// 2–7. Изолированное состояние в tmp git-репо.
const tmp = mkdtempSync(path.join(os.tmpdir(), 'helioz-selftest-'))
try {
const env = { ...process.env, HELIOZ_HOME: tmp }
const env = {
...process.env,
HELIOZ_HOME: tmp,
GIT_CONFIG_GLOBAL: os.devNull,
GIT_CONFIG_SYSTEM: os.devNull,
}
const self = fileURLToPath(import.meta.url)
const execScript = path.join(path.dirname(self), 'helioz-exec.mjs')
const run = (args) => spawnSync(process.execPath, [self, ...args], { env, encoding: 'utf8' })
@@ -623,14 +628,14 @@ async function cmdSelftest() {
kimi: { invoke_read: stub, invoke_write: stub, stdin_prompt: true, roles: ['execute', 'verify'] },
codex: { invoke_read: stub, invoke_write: stub, stdin_prompt: true, roles: ['execute', 'verify'] },
}))
execFileSync('git', ['-C', tmp, 'init', '-q'])
execFileSync('git', ['-C', tmp, 'init', '-q'], { env })
writeFileSync(path.join(tmp, 'seed.txt'), 'seed\n')
execFileSync('git', ['-C', tmp, 'add', '-A'])
execFileSync('git', ['-C', tmp, '-c', 'user.email=g@c', '-c', 'user.name=gate', 'commit', '-qm', 'seed'])
execFileSync('git', ['-C', tmp, 'add', '-A'], { env })
execFileSync('git', ['-C', tmp, '-c', 'user.email=g@c', '-c', 'user.name=gate', 'commit', '-qm', 'seed'], { env })
// второй коммит: маркер требует base≠head с реальным diff (пустой diff = фордж, ревью kimi)
writeFileSync(path.join(tmp, 'seed.txt'), 'seed\nwork\n')
execFileSync('git', ['-C', tmp, 'add', '-A'])
execFileSync('git', ['-C', tmp, '-c', 'user.email=g@c', '-c', 'user.name=gate', 'commit', '-qm', 'work'])
execFileSync('git', ['-C', tmp, 'add', '-A'], { env })
execFileSync('git', ['-C', tmp, '-c', 'user.email=g@c', '-c', 'user.name=gate', 'commit', '-qm', 'work'], { env })
// пустая очередь → exit 2 (fail-closed)
eq(run(['--ready']).status, 2, 'пустая очередь обязана давать 2')
+9 -3
View File
@@ -513,7 +513,13 @@ async function cmdSelftest() {
}))
writeFileSync(path.join(tmp, 'config', 'helioz.json'), JSON.stringify({ probe_timeout_sec: 5, run_timeout_sec: 5 }))
const self = path.join(tmp, 'scripts', 'helioz-plan.mjs')
const run = args => spawnSync(process.execPath, [self, ...args], { env: { ...process.env, HELIOZ_HOME: tmp }, encoding: 'utf8' })
const env = {
...process.env,
HELIOZ_HOME: tmp,
GIT_CONFIG_GLOBAL: os.devNull,
GIT_CONFIG_SYSTEM: os.devNull,
}
const run = args => spawnSync(process.execPath, [self, ...args], { env, encoding: 'utf8' })
eq(run(['grill']).status, 2, 'без идеи допрос невозможен')
eq(run(['grill', '--idea', 'починить сборку']).status, 0)
@@ -543,8 +549,8 @@ async function cmdSelftest() {
ok(existsSync(path.join(tmp, 'docs', 'MASTER-PLAN.md')), 'мастер-план на диске')
const t1 = readFileSync(path.join(tmp, 'queue', 'tasks', 'T1.task.md'), 'utf8')
ok(t1.includes('check_cmd:') && t1.includes('## Промт исполнителя') && t1.includes('## Промт проверяющего'))
spawnSync('git', ['-C', tmp, 'init', '-q'])
const gate = spawnSync(process.execPath, [path.join(tmp, 'scripts', 'helioz-gate.mjs'), '--ready', '--json'], { env: { ...process.env, HELIOZ_HOME: tmp }, encoding: 'utf8' })
spawnSync('git', ['-C', tmp, 'init', '-q'], { env })
const gate = spawnSync(process.execPath, [path.join(tmp, 'scripts', 'helioz-gate.mjs'), '--ready', '--json'], { env, encoding: 'utf8' })
const ready = JSON.parse(gate.stdout || '{}')
eq((ready.invalid || []).length, 0, 'гейт принял все рождённые задачи')
ok((ready.ready || []).some(r => r.task === 'T1'), 'T1 готова к запуску')
+12 -7
View File
@@ -13,6 +13,11 @@ import os from 'node:os'
const SCRIPTS = path.dirname(fileURLToPath(import.meta.url))
const HOME = process.env.HELIOZ_HOME || path.dirname(SCRIPTS)
const ISOLATED_GIT_ENV = {
...process.env,
GIT_CONFIG_GLOBAL: os.devNull,
GIT_CONFIG_SYSTEM: os.devNull,
}
const now = () => new Date().toISOString()
const sha256 = s => createHash('sha256').update(s).digest('hex')
const results = []
@@ -25,13 +30,13 @@ function mkHome() {
const tmp = mkdtempSync(path.join(os.tmpdir(), 'helioz-probe-'))
for (const d of ['queue/tasks', 'queue/dilemmas', '.helioz/state', 'docs', 'scripts', 'config']) mkdirSync(path.join(tmp, d), { recursive: true })
for (const s of readdirSync(SCRIPTS)) if (s.endsWith('.mjs') || s.endsWith('.sh')) writeFileSync(path.join(tmp, 'scripts', s), readFileSync(path.join(SCRIPTS, s)))
execFileSync('git', ['-C', tmp, 'init', '-q'])
execFileSync('git', ['-C', tmp, 'init', '-q'], { env: ISOLATED_GIT_ENV })
writeFileSync(path.join(tmp, 'seed.txt'), 'seed\n')
execFileSync('git', ['-C', tmp, 'add', '-A'])
execFileSync('git', ['-C', tmp, '-c', 'user.email=p@c', '-c', 'user.name=probe', 'commit', '-qm', 'seed'])
execFileSync('git', ['-C', tmp, 'add', '-A'], { env: ISOLATED_GIT_ENV })
execFileSync('git', ['-C', tmp, '-c', 'user.email=p@c', '-c', 'user.name=probe', 'commit', '-qm', 'seed'], { env: ISOLATED_GIT_ENV })
writeFileSync(path.join(tmp, 'seed.txt'), 'seed\nwork\n')
execFileSync('git', ['-C', tmp, 'add', '-A'])
execFileSync('git', ['-C', tmp, '-c', 'user.email=p@c', '-c', 'user.name=probe', 'commit', '-qm', 'work'])
execFileSync('git', ['-C', tmp, 'add', '-A'], { env: ISOLATED_GIT_ENV })
execFileSync('git', ['-C', tmp, '-c', 'user.email=p@c', '-c', 'user.name=probe', 'commit', '-qm', 'work'], { env: ISOLATED_GIT_ENV })
writeFileSync(path.join(tmp, 'config', 'helioz.json'), JSON.stringify({ quiet_hours: { start: '00:00', end: '23:59' }, council: { lenses: ['риск', 'цена отката', 'простота'], min_advisors: 3 }, probe_timeout_sec: 5, run_timeout_sec: 5 }))
const stub = path.join(tmp, 'bin-adv')
writeFileSync(stub, '#!/bin/sh\ncat >/dev/null 2>&1\necho "ВЫБОР: 1"; echo "ПОЧЕМУ: так."; echo "РИСК ОШИБКИ: нет."\n')
@@ -44,10 +49,10 @@ function mkHome() {
return tmp
}
const task = (id, p, extra = '') => `---\nid: ${id}\npaths:\n - ${p}\nexecutor: claude\nverifier: codex\ncheck_cmd: "true"\n${extra}---\n## Промт исполнителя\nx\n## Промт проверяющего\ny\n`
const gate = (tmp, args) => spawnSync(process.execPath, [path.join(tmp, 'scripts', 'helioz-gate.mjs'), ...args], { env: { ...process.env, HELIOZ_HOME: tmp }, encoding: 'utf8' })
const gate = (tmp, args) => spawnSync(process.execPath, [path.join(tmp, 'scripts', 'helioz-gate.mjs'), ...args], { env: { ...ISOLATED_GIT_ENV, HELIOZ_HOME: tmp }, encoding: 'utf8' })
function receipt(tmp, id, executor = 'claude', verifier = 'codex') {
const ex = path.join(tmp, 'scripts', 'helioz-exec.mjs')
const env = { ...process.env, HELIOZ_HOME: tmp }
const env = { ...ISOLATED_GIT_ENV, HELIOZ_HOME: tmp }
const a = spawnSync(process.execPath, [ex, 'task', '--id', id, '--role', 'executor', '--cli', executor], { env, encoding: 'utf8' })
const b = spawnSync(process.execPath, [ex, 'task', '--id', id, '--role', 'verifier', '--cli', verifier], { env, encoding: 'utf8' })
if (a.status !== 0 || b.status !== 0) throw new Error(`receipt ${id}: helioz-exec failed ${a.status}/${b.status}`)
+1 -1
View File
@@ -46,7 +46,7 @@ if [ "${1:-}" = "--selftest" ]; then
case "$out" in SKIP:heartbeat*) ;; *) echo "FAIL: при свежем heartbeat получили '$out'"; exit 1;; esac
# проба 3: протухший heartbeat + незакрытая задача → START
node -e "require('fs').writeFileSync('$TMP/.helioz/state/heartbeat.json',JSON.stringify({at:new Date(Date.now()-3600e3).toISOString()}))"
printf -- '---\nid: TW\npaths:\n - docs/w.md\ncheck_cmd: "true"\n---\n## Промт исполнителя\nx\n## Промт проверяющего\ny\n' > "$TMP/queue/tasks/TW.task.md"
printf -- '---\nid: TW\npaths:\n - docs/w.md\nexecutor: claude\nverifier: codex\ncheck_cmd: "true"\n---\n## Промт исполнителя\nx\n## Промт проверяющего\ny\n' > "$TMP/queue/tasks/TW.task.md"
out=$(HELIOZ_HOME="$TMP" bash "$0" --dry-run)
[ "$out" = "START" ] || { echo "FAIL: при протухшем heartbeat получили '$out'"; exit 1; }
# проба 4: протухший heartbeat, но очередь закрыта → SKIP