Answer the first round: resume the worker with the records' answer to its question, read docs/decisions.md alone, scope --help's promise

This commit is contained in:
2026-10-03 00:35:40 +02:00
parent 6d5d19bd69
commit 6340e5a993
11 changed files with 100 additions and 54 deletions
+8 -5
View File
@@ -4,9 +4,11 @@ usage: loop-claude <task>
Run it anywhere inside a project checkout whose README.md has ## Goals and ## Audience, the
premises; the task runs at the checkout root. Each cycle a worker runs the task; a judge then reads
the transcript's last 400,000 characters against the premises and the project's records, AGENTS.md,
docs/decisions.md and docs/decisions/*.md where they exist, and rules whether the chunk, the work of
one PR, is finished. A choice the premises or the records settle is not asked again.
the transcript's last 400,000 characters against the premises and the project's records, AGENTS.md
and docs/decisions.md where they exist, and rules whether the chunk, the work of one PR, is finished.
A choice the worker made that the premises or the records settle is not asked about. When the worker
asks a question they answer, the judge quotes the answer and the worker resumes with it; the
worker's next question in the cycle goes to the human.
A question only the human can answer, or a release ready to cut, is an interrupt: `claude --resume`
on the terminal, every worktree first marked trusted in ~/.claude.json. An unfinished chunk resumes
its session next cycle; the next chunk starts a fresh session.
@@ -36,7 +38,7 @@ Exit 1, saying why, when:
- no task is given
- git cannot start or finds no checkout
- README.md holds no premises
- AGENTS.md or a decision file cannot be read, or is not UTF-8
- AGENTS.md or docs/decisions.md cannot be read, or is not UTF-8
- the models file cannot be read or written
- claude leaves no transcript
- a transcript cannot be read or archived
@@ -48,7 +50,8 @@ Exit 1, saying why, when:
- the worker or the judge fails three times running, retried a minute apart within the cycle. A
worker fails when claude cannot start, exits non-zero, is killed, or ends without a result event;
a judge when claude cannot start or exits non-zero, or its reply misses or mistypes a field,
interrupts without a question, or quotes a line the transcript does not hold. A usage limit is
interrupts without a question, quotes a line the transcript does not hold, or quotes an answer
the premises and the records do not hold. A usage limit is
not a failure, and restarts the count of three: the worker or the judge is retried 2 minutes
after the limit resets, or every 10 minutes when the reset time is unknown or more than 2
minutes past. The judge's reply gives its reset time only as text, so the judge is always