Spell the interrupt one way in loop-claude's help and failures, and let the protocol own the round-cap stop

This commit is contained in:
2026-09-27 17:08:44 +02:00
parent 53438fd75d
commit 12170796d3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ Shorter is better, none is best — chat output, commit messages, comments, docs
- **premises** — the goals and audience under `## Goals` and `## Audience` in the project's `README.md`.
- **release** — a semver version the human cuts.
- **reviewer** — a reporter of findings: an agent under `~/.claude/agents/`, `/security-review` or a forge's auto-reviewer.
- **round cap** — the rounds one loop of a looping reviewer may take; a 🔴 or 🟡 open past it stops the loop on a question to the human.
- **round cap** — the rounds one loop of a looping reviewer may take.
- **session** — a Claude Code session: one id, what `claude --resume` continues.
- **trigger** — a sign that a change carries an architectural decision the decision log does not hold, so the architecture pass is warranted; `larv-review` §2 lists them.
- **worker** — the headless claude that runs the task in a cycle, in the chunk's session.
+1 -1
View File
@@ -24,7 +24,7 @@ A review's first line, derived mechanically from the findings:
- Surface everything in one round.
- From round 2 the prompt carries the previous round's findings verbatim and what changed since. Verify each previous 🔴 and 🟡 is resolved — re-run the scenario, don't trust the claim — then pass over what changed. A fix spawns a new finding only where the fix itself introduced a real problem.
- The loop exits on no 🔴 and no 🟡. The 🟢 and ❓ left then are addressed in that same round — fixed, answered, declined or filed in `todo.md` — and trigger no further round. A nit whose fix changes behaviour is a fresh finding and takes a round.
- Round cap: 3; when it stops the loop, list what is open. Systems-architect gets one scoped re-check; still `BLOCK` → ask the human.
- Round cap: 3; when it stops the loop, list what is open and ask the human. Systems-architect gets one scoped re-check; still `BLOCK` → ask the human.
## Declining
+3 -3
View File
@@ -19,8 +19,8 @@ terminal, or the interrupt ended without them typing anything. Rerunning resumes
Each project has one session, "A <path> loop-claude", <path> being the checkout relative to ~/code,
or to / outside it, deleted when the chunk finishes. Its transcript is archived under
$LOOP_CLAUDE_TRANSCRIPTS/<path>/ (default ~/.claude/loop-claude-transcripts) whenever the human is
asked and when the chunk finishes.
$LOOP_CLAUDE_TRANSCRIPTS/<path>/ (default ~/.claude/loop-claude-transcripts) at every interrupt and
when the chunk finishes.
Every claude it starts runs the project's model, saved per <path> in ~/.claude/loop-claude-models.json
and read each cycle; a project without an entry, as on its first run, is asked for one.
@@ -501,7 +501,7 @@ def judge(root, task, premises, transcript, chosen):
if not complete(verdict):
failure = proc.stderr.strip() or "the judge returned no verdict"
elif not grounded(verdict, transcript):
failure = f"the judge quoted {verdict['evidence']!r}, nothing in the transcript, asking: {verdict['question']}"
failure = f"the judge quoted {verdict['evidence']!r}, nothing in the transcript, interrupting with: {verdict['question']}"
else:
return verdict
if stop := strike("judge", failures, failure):