fix: находки независимого ревью codex+kimi (расхождение-схождение): маркер привязан к id, exit_code=0 обязателен, base≠head, running.json fail-closed + атомарная запись + лок, budget без слепого нуля, poll неубиваем (poison-update, битые файлы), flush/poll/adopt под локом, битый outbox виден

This commit is contained in:
Зарубин Филипп
2026-08-24 00:37:13 +03:00
parent 931b0c62a6
commit 40a1eb8512
23 changed files with 4601 additions and 45 deletions
+3
View File
@@ -27,6 +27,9 @@ function mkHome() {
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'])
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'])
writeFileSync(path.join(tmp, 'config', 'conveyor.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')