Answer the prose pass: name README.md beside the records, one idea per sentence in --help and the judge's rules, date the decision's revision

This commit is contained in:
2026-10-03 01:49:33 +02:00
parent 80f1cc2dc9
commit 0eb97e9e88
9 changed files with 35 additions and 34 deletions
+13 -13
View File
@@ -3,13 +3,14 @@
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
as much of the transcript's end as fits a 400,000-character prompt 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, printed
on stdout, and the worker resumes with it, up to three times a cycle; a question asked again after
its answer goes to the human, and a fourth with the quote.
premises; the task runs at the checkout root. Each cycle a worker runs the task. A judge then reads
the transcript's end, the premises, and the project's records: AGENTS.md and docs/decisions.md,
where they exist. It 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, loop-claude prints it, and the worker resumes with it. A
quote they do not hold word for word is dropped, and the question goes to the human. So does a
question asked again after its answer, and the fourth question they answer in one cycle, with the
quote.
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.
@@ -51,12 +52,11 @@ 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; an answer it quotes
that the premises and the records do not hold is dropped, and the question goes to the human. 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
retried every 10 minutes. stderr says when the next try is due.
interrupts without a question, or quotes a line the transcript does 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 retried every 10 minutes.
stderr says when the next try is due.
Exit 2, when the human is needed and cannot answer:
- stdin or stdout is not a terminal, when a model must be picked or an interrupt answered