From 12170796d3d54646d8cb4a38473ff211c3313444 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 27 Sep 2026 17:08:44 +0200 Subject: [PATCH] Spell the interrupt one way in loop-claude's help and failures, and let the protocol own the round-cap stop --- CLAUDE.md | 2 +- agents/review-protocol.md | 2 +- bin/loop-claude | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 83c59bb8..89171077 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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. diff --git a/agents/review-protocol.md b/agents/review-protocol.md index 4b531421..6be4c363 100644 --- a/agents/review-protocol.md +++ b/agents/review-protocol.md @@ -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 diff --git a/bin/loop-claude b/bin/loop-claude index 4ac47b87..204199ba 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -19,8 +19,8 @@ terminal, or the interrupt ended without them typing anything. Rerunning resumes Each project has one session, "A loop-claude", being the checkout relative to ~/code, or to / outside it, deleted when the chunk finishes. Its transcript is archived under -$LOOP_CLAUDE_TRANSCRIPTS// (default ~/.claude/loop-claude-transcripts) whenever the human is -asked and when the chunk finishes. +$LOOP_CLAUDE_TRANSCRIPTS// (default ~/.claude/loop-claude-transcripts) at every interrupt and +when the chunk finishes. Every claude it starts runs the project's model, saved per 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):