Answer the stability and product passes: print each records answer, name its question, drop a misquote to an interrupt, budget the whole prompt
This commit is contained in:
@@ -4,11 +4,12 @@ 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
|
||||
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, up to three
|
||||
times a cycle; a question asked again after its answer, or a fourth, goes to the human.
|
||||
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.
|
||||
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.
|
||||
@@ -50,9 +51,9 @@ 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, answers without interrupting, 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
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user