From 5effa0ed897399b3b1f60ba26b39c6b404ece1fc Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:40:28 +0200 Subject: [PATCH 01/10] Let a reviewer or seat that rules the work below standard rerun one rung up in its round, and make that ruling an escalation trigger --- AGENTS.md | 1 + CHANGELOG.md | 1 + CLAUDE.md | 3 ++- bin/loop_claude/cycle/prompts.py | 20 +++++++++++++++++--- bin/loop_claude/loop/main.py | 3 ++- bin/loop_claude/test_loop_claude.py | 19 +++++++++++++++---- docs/decisions.md | 16 ++++++++++++++-- skills/comprehension-panel/seat-prompts.md | 1 + skills/larv-review/SKILL.md | 8 +++++++- skills/larv-review/review-findings.md | 4 ++++ todo.md | 7 ------- 11 files changed, 64 insertions(+), 19 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index d5d465c8..05ce09f4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,7 @@ Decisions live in `docs/decisions.md`: - comprehension floor: every dimension and the overall at 7.0 or above is the target, and blocks no merge or release - loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes - review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human +- review: a reviewer or comprehension seat that rules the work below standard may ask to rerun once, one rung up, in the same round; the ruling that stands is an escalation trigger for the worker, never for the judge - review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it and each pass whose trigger names fixes like it; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none - review: the comprehension check records how hard a project is to read and blocks no merge: a paired ruling against the last measured commit where the architecture pass ran, and the four-seat scoring run when a release's items run out or an item names the floor - review: a project decision may suspend the comprehension check for the plan items it names diff --git a/CHANGELOG.md b/CHANGELOG.md index 758e2573..0b410cee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat that votes worse in a paired ruling. The worker reruns it once, on the rung `loop-claude`'s prompt names, and the rerun's report replaces the one that asked in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. - A `loop-claude` worker hands a task that proves too hard for its rung to a subagent one rung up, edits included, when a trigger fires: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a review pass reports a ๐Ÿ”ด in round 2 or later. Each further trigger climbs one more rung, to at most two rungs above the rung the chunk's `todo.md` item picks, unless you agree. `CLAUDE.md` states the rule, and `loop-claude`'s prompt names the rungs a trigger opens. The worker opens the subagent's prompt with `Escalation trigger :`, and `routing-figures.md` counts the escalations by trigger. Expect a chunk that gets stuck to spend more on the stuck part, and fewer unfinished verdicts. - A session or subagent below the project's rung, the cheapest rung of the project's model, no longer scores or reshapes `todo.md`: it drafts each new item and each change to a filed item, and before its next commit one subagent on the project's rung or above applies and scores the drafts and sets their release. It may still remove finished items. `rules/todo-items.md` states the rule. `CLAUDE.md` has a session launch a subagent that files or scores items on the rung the new `bin/subagent-rung --plan ` prints, never below the project's rung, and `loop-claude`'s prompt to a worker below that rung names the command. Expect one extra subagent in a chunk that files items while its worker runs below the project's rung. - `loop-claude` runs the judge of an Opus 5.5 project on the rung the chunk's `todo.md` item picks, never below Opus 5.5 at medium effort, the project's rung. Before, the judge ran at the effort `settings.json` sets, xhigh. A replay of 39 archived verdicts found every cheaper rung missing verdicts. The judge keeps its rung when the worker steps up or takes in another item, and runs on the project's rung when no item routed the chunk. A project on another model keeps its judge at its settings' effort. Each verdict in the archive now names the judge's rung on a `Judge:` line. The new `bin/judge-replay ` replays the judge on archived verdicts and prints the cheapest rung that returns them. Expect the judge to cost less on items of R + C 12 or less, and more on items of R + C 15 or more. diff --git a/CLAUDE.md b/CLAUDE.md index f24d586e..60722ce6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -57,10 +57,11 @@ The rules only reviewers apply, for quality, comments, READMEs and prose, live i 2. An escalated task, below: the rung loop-claude's prompt names for escalation, or case 3's rung where the subagent files or scores `todo.md` items and that rung is higher. 3. A subagent that files or scores `todo.md` items: what `~/.claude/bin/subagent-rung --plan ` prints, which is never below the project's rung. 4. Any other: what `~/.claude/bin/subagent-rung ` prints. -- Escalate a task that proves too hard for your rung. Three escalation triggers say so: +- Escalate a task that proves too hard for your rung. Four escalation triggers say so: 1. A re-score of the item, made on the project's rung or above, picks a rung above yours. 2. The same failing test or finding survives two fix attempts. 3. A pass reports a ๐Ÿ”ด in round 2 or later. + 4. A reviewer or comprehension seat rules the work below standard, per `larv-review` ยง3 โ†’ "Rung up". When one fires, hand the hard part, edits included, to a subagent on the rung loop-claude's prompt names, one above yours. Open the subagent's prompt with the marker loop-claude's prompt gives, then the trigger's evidence. Each later subagent on that task runs on that rung or higher, and each further escalation trigger moves the task one rung higher, up to the highest rung loop-claude's prompt names. Ask the human before going higher. Where loop-claude's prompt names no escalation, as on the ladder's top rung or off it, keep the task in your own thread. - Give a subagent only the access its job needs, and state the limits in its prompt. One that only reads, such as a prose review, gets no shell and no edits. One that probes a build tags the image as throwaway and removes it afterwards, writes only to the session scratchpad, and removes no image or file it did not create. diff --git a/bin/loop_claude/cycle/prompts.py b/bin/loop_claude/cycle/prompts.py index 67548098..039b8faa 100644 --- a/bin/loop_claude/cycle/prompts.py +++ b/bin/loop_claude/cycle/prompts.py @@ -17,13 +17,13 @@ ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could def fresh(task: str, premises: str, route: Route, anchor: Rung | None) -> str: - escalated = escalation(route, anchor).lstrip() + escalated = f"{escalation(route, anchor)}{reruns(route, anchor)}".lstrip() routed = f"{routed_by(route, anchor)}\n\n" if route.item else (f"{escalated}\n\n" if escalated else "") return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\n{routed}The chunk's todo.md items, or else the task above, set its scope. The goals below choose between ways to deliver that scope, and never widen it.\n\nFrom README.md:\n{premises}" def routed_by(route: Route, anchor: Rung | None) -> str: - return f"loop-claude runs you on {route.rung}, routed by item {route.item}'s R + C of {route.risk_and_complexity}. Name each todo.md item this chunk takes, with its R + C, whether or not it is item {route.item}.{off_the_projects_rung(route, anchor)}{escalation(route, anchor)}" + return f"loop-claude runs you on {route.rung}, routed by item {route.item}'s R + C of {route.risk_and_complexity}. Name each todo.md item this chunk takes, with its R + C, whether or not it is item {route.item}.{off_the_projects_rung(route, anchor)}{escalation(route, anchor)}{reruns(route, anchor)}" def off_the_projects_rung(route: Route, anchor: Rung | None) -> str: @@ -49,10 +49,24 @@ def escalation(route: Route, anchor: Rung | None) -> str: return f" When an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to {rungs[0]}, one rung above yours{further}; above that, ask the human first.{marked}" +def reruns(route: Route, anchor: Rung | None) -> str: + """The prompt's sentence naming the rung one above a reviewer's and a seat's, on which each reruns when it asks; empty off the ladder, and leaving out one already on the top rung.""" + if anchor is None or route.rung not in LADDER: + return "" + # The rungs off_the_projects_rung launches them on: the seats always on anchor, the other reviewers on anchor only while the worker runs below it. + reviewer = highest(route.rung, anchor) + rerun = {name: climbed(rung, 1) for name, rung in (("reviewer", reviewer), ("comprehension seat", anchor)) if rung != LADDER[-1]} + if not rerun: + return "" + if len(set(rerun.values())) == 1: + return f" A {' or '.join(rerun)} that asks for a rerun one rung up reruns with the Agent tool set to `{next(iter(rerun.values())).agent_args()}`." + return f" A reviewer that asks for a rerun one rung up reruns with the Agent tool set to `{rerun['reviewer'].agent_args()}`, and a comprehension seat with `{rerun['comprehension seat'].agent_args()}`." + + def resumed(unfinished_evidence: str, route: Route, anchor: Rung | None) -> str: """Names the project's rung again, since a step-up between cycles may have taken the worker above it.""" ruled = f" A judge ruled the chunk unfinished, quoting this passage of your transcript as the work remaining:\n\n{quoted(unfinished_evidence)}\n\n" if unfinished_evidence else " " - return f"Continue the task; the previous run ended before the chunk was finished.{ruled}The chunk is finished once it is merged, or nothing remains that you could do on your own. Even then, it is finished only once {ANSWERS_RECORDED}.{off_the_projects_rung(route, anchor)}{escalation(route, anchor)}" + return f"Continue the task; the previous run ended before the chunk was finished.{ruled}The chunk is finished once it is merged, or nothing remains that you could do on your own. Even then, it is finished only once {ANSWERS_RECORDED}.{off_the_projects_rung(route, anchor)}{escalation(route, anchor)}{reruns(route, anchor)}" def answered(question: str, answer: str) -> str: diff --git a/bin/loop_claude/loop/main.py b/bin/loop_claude/loop/main.py index b4cebef4..e6d175b8 100644 --- a/bin/loop_claude/loop/main.py +++ b/bin/loop_claude/loop/main.py @@ -50,7 +50,8 @@ prompt names the rung and the item, and asks the worker to name each item the ch R + C. When that rung is below the model's cheapest, the prompt also has the worker launch each reviewer, each comprehension seat and the security pass in subagents on the cheapest rung. When it is above, the prompt has the worker launch only each comprehension seat and the security pass on -the cheapest rung. The prompt after each unfinished verdict +the cheapest rung. Each prompt names the rung a reviewer or a seat reruns on when it asks, one +above its own. The prompt after each unfinished verdict says this again, since a step-up may have taken the worker above the cheapest rung. The judge reports the highest R + C the worker states, and the next cycle steps up to the rung that R + C picks, never down. Every second unfinished verdict on a chunk steps it up one rung. Each diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 0c15b997..438e0979 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -660,14 +660,25 @@ class WorkerArgs(unittest.TestCase): def test_names_the_rungs_an_escalation_trigger_lets_the_worker_hand_a_task_to_at_most_two_above_its_items(self): opus = Rung("claude-opus-5-5", "medium") fresh = prompts.fresh("Do it.", "## Goals", Route(opus, 3, 9), opus) - self.assertIn("whether or not it is item 3. When an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort high`, one rung above yours, and on each further trigger one rung higher, up to `model opus, effort xhigh`; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.\n\n", fresh) - self.assertTrue(prompts.resumed("", Route(Rung("claude-opus-5-5", "high"), 3, 9), opus).endswith(" When an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort xhigh`, one rung above yours; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.")) - self.assertTrue(prompts.resumed("", Route(Rung("claude-opus-5-5", "xhigh"), 3, 9), opus).endswith(" An escalation trigger in `~/.claude/CLAUDE.md` lets you hand the hard part of a task to a subagent with the Agent tool set to `model opus, effort max`, one rung above yours, only once the human agrees. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.")) + self.assertIn("whether or not it is item 3. When an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort high`, one rung above yours, and on each further trigger one rung higher, up to `model opus, effort xhigh`; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.", fresh) + self.assertIn(" When an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort xhigh`, one rung above yours; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.", prompts.resumed("", Route(Rung("claude-opus-5-5", "high"), 3, 9), opus)) + self.assertIn(" An escalation trigger in `~/.claude/CLAUDE.md` lets you hand the hard part of a task to a subagent with the Agent tool set to `model opus, effort max`, one rung above yours, only once the human agrees. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.", prompts.resumed("", Route(Rung("claude-opus-5-5", "xhigh"), 3, 9), opus)) self.assertNotIn("escalation", prompts.resumed("", Route(Rung("claude-fable-5-1", "max"), 3, 20), opus)) self.assertIn("hand the hard part of the task to a subagent with the Agent tool set to `model fable, effort max`, one rung above yours;", prompts.resumed("", Route(Rung("claude-opus-5-5", "max"), 3, 13), opus)) self.assertNotIn("escalation", prompts.resumed("", Route(Rung("m")), None)) self.assertNotIn("escalation", prompts.resumed("", Route(Rung("claude-opus-5-5", "low"), 3, 9), opus)) - self.assertIn("before creating a new one.\n\nWhen an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort high`, one rung above yours, and on each further trigger one rung higher, up to `model opus, effort xhigh`; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number.\n\nThe chunk's", prompts.fresh("Do it.", "## Goals", Route(opus), opus)) + self.assertIn("before creating a new one.\n\nWhen an escalation trigger in `~/.claude/CLAUDE.md` fires, hand the hard part of the task to a subagent with the Agent tool set to `model opus, effort high`, one rung above yours, and on each further trigger one rung higher, up to `model opus, effort xhigh`; above that, ask the human first. Open the subagent's prompt with `Escalation trigger :`, n the trigger's number. A reviewer", prompts.fresh("Do it.", "## Goals", Route(opus), opus)) + + def test_names_the_rung_a_reviewer_or_seat_reruns_on_one_above_its_own(self): + opus = Rung("claude-opus-5-5", "medium") + both = " A reviewer or comprehension seat that asks for a rerun one rung up reruns with the Agent tool set to `model opus, effort high`." + self.assertTrue(prompts.resumed("", Route(opus, 3, 9), opus).endswith(both)) + self.assertTrue(prompts.resumed("", Route(Rung("claude-sonnet-5-5", "high"), 3, 5), opus).endswith(both)) + self.assertIn(f"`Escalation trigger :`, n the trigger's number.{both}\n\nThe chunk's", prompts.fresh("Do it.", "## Goals", Route(opus), opus)) + self.assertTrue(prompts.resumed("", Route(Rung("claude-opus-5-5", "high"), 3, 11), opus).endswith(" A reviewer that asks for a rerun one rung up reruns with the Agent tool set to `model opus, effort xhigh`, and a comprehension seat with `model opus, effort high`.")) + self.assertTrue(prompts.resumed("", Route(Rung("claude-fable-5-1", "max"), 3, 20), opus).endswith(" A comprehension seat that asks for a rerun one rung up reruns with the Agent tool set to `model opus, effort high`.")) + self.assertNotIn("rerun", prompts.resumed("", Route(Rung("m")), None)) + self.assertNotIn("rerun", prompts.fresh("Do it.", "## Goals", Route(Rung("m", "high"), 3, 11), None)) def test_opens_a_fresh_session_by_name_and_resumes_an_open_one(self): opened = session.session_named("A proj loop-claude", pathlib.Path("/h/.claude/projects")) diff --git a/docs/decisions.md b/docs/decisions.md index cd972012..9f4438e4 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -58,6 +58,18 @@ 2026-10-13, lilleman through todo item 97, implemented by claude: the cap stays at three after later rounds were narrowed, since a lower cap would ask the human more often, against goal 1, and a third round reviews only the answers to round 2's findings, so it costs little. +2026-10-15, through todo item 144: a rerun one rung up belongs to the round it reruns, so it counts toward no cap: `review: a reviewer or comprehension seat that rules the work below standard`. + +## review: a reviewer or comprehension seat that rules the work below standard may ask to rerun once, one rung up, in the same round; the ruling that stands is an escalation trigger for the worker, never for the judge + +2026-10-15, lilleman asked for it through todo item 144, implemented by claude. Serves goal 1.1: a cheap reviewer that finds the work below standard can have a more capable one check that ruling, and work below standard gets a more capable rung to fix it. + +The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or a comprehension seat votes worse in a paired ruling. That reviewer or seat may ask, and the worker then reruns it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the other reviewers too while the worker runs below it. Off the ladder, or on its top rung, the prompt names none and the report stands. + +The rerun's report replaces the one that asked, in the same round, so it adds no round, and a rerun cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. + +Valid while the ladder orders its rungs by competence. + ## review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it and each pass whose trigger names fixes like it; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none 2026-10-08, lilleman, replacing the 2026-09-30 rule that every fix, a nit's included, re-enters review. Serves goal 1.4. An audit of the four costliest archived chunks (2026-10-08) found nearly every finding that mattered in a pass's first round; later rounds mostly re-checked the last fix, reworded what an earlier round wrote, or contradicted another round on the same line. A round 2 caught real bugs only where a fix changed behaviour, so stability still reruns on every fix that does, and security on every fix that opens an untrusted-input boundary or touches authn/authz, secrets or crypto. Valid while round-2 reviews of nit and prose fixes keep changing nothing a user would notice. @@ -188,7 +200,7 @@ A chunk's worker runs on the rung its item picks, below the project's rung too. The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, loop-claude measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked. -A model off the ladder routes nothing: claude runs it at the effort its settings give. R + C steps a task from the project's rung: 2โ€“4 three rungs down, 5โ€“6 two down, 7โ€“8 one down, 9โ€“10 none, 11โ€“12 one up, 13โ€“14 two up, 15โ€“16 three up, 17 and above four up. A step past either end stops there. The bands spread the R + C that `todo.md`'s items held on 2026-10-14, 2 to 12, across the rungs, so most tasks step down. S never moves a rung, so a huge task with low R and C runs cheap. While the worker runs above the project's rung, loop-claude's prompt has it launch the comprehension seats and the security pass's subagent on the project's rung too. So the seats score every chunk on one rung, and the security pass spends no more than the project chose. The prompt after each unfinished verdict repeats this, since a step-up may have taken the worker above the project's rung. The other reviewers inherit the worker's higher rung. On 2026-10-15 lilleman dropped routing them by R + C instead: a worker climbs because its chunk proved harder than its score said, which is when a cheaper reviewer is the bigger risk. `score-outcomes` had too few finished chunks to ground the bands, and a change to the ladder or the bands is lilleman's. +A model off the ladder routes nothing: claude runs it at the effort its settings give. R + C steps a task from the project's rung: 2โ€“4 three rungs down, 5โ€“6 two down, 7โ€“8 one down, 9โ€“10 none, 11โ€“12 one up, 13โ€“14 two up, 15โ€“16 three up, 17 and above four up. A step past either end stops there. The bands spread the R + C that `todo.md`'s items held on 2026-10-14, 2 to 12, across the rungs, so most tasks step down. S never moves a rung, so a huge task with low R and C runs cheap. While the worker runs above the project's rung, loop-claude's prompt has it launch the comprehension seats and the security pass's subagent on the project's rung too. So the seats score every chunk on one rung, and the security pass spends no more than the project chose. The prompt after each unfinished verdict repeats this, since a step-up may have taken the worker above the project's rung. The other reviewers inherit the worker's higher rung. A reviewer or seat that rules the work below standard may rerun one rung above its rung: `review: a reviewer or comprehension seat that rules the work below standard`. On 2026-10-15 lilleman dropped routing them by R + C instead: a worker climbs because its chunk proved harder than its score said, which is when a cheaper reviewer is the bigger risk. `score-outcomes` had too few finished chunks to ground the bands, and a change to the ladder or the bands is lilleman's. The worker delegates a task only when it needs just the task's conclusion: a search or read across many files, or work independent enough to run in parallel. Edits, and whatever it must check line by line, stay in its own thread, since it would read a delegated diff again to check it. Measured over archived worker transcripts, subagent reports cost a median 8% of the worker's peak context, and `sed -n` and `grep` output made up 41% of its Bash results, so delegated searches save the most context. It scores each delegated task's R and C as for an item, and `bin/subagent-rung` turns them into the Agent tool's model and effort, counted from the project's rung. The rule names both, because the Agent tool sets a subagent's effort only when instructions ask. `CLAUDE.md` states the rule, since it holds in every session. A task that proves too hard for the worker's rung goes one rung up instead: `routing: a worker hands a task one rung up`. @@ -200,7 +212,7 @@ Valid while the index ranks these models, and while no newer model joins the cat 2026-10-15, lilleman asked for it. Serves goals 1.1 and 1.4: a task too hard for a cheap rung gets a dearer one only once it proves hard, and only for the part that proved hard. -Three escalation triggers in `CLAUDE.md` โ†’ "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a pass reports a ๐Ÿ”ด in round 2 or later. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk started on: the rung its item picks, or the project's rung when no item routed it. A step-up between cycles raises the worker but not that limit: lilleman set the limit from the rung the chunk started on, so a worker that has stepped up may need a yes for its first escalation. +Four escalation triggers in `CLAUDE.md` โ†’ "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, a pass reports a ๐Ÿ”ด in round 2 or later, or, since todo item 144, a reviewer or seat rules the work below standard. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk started on: the rung its item picks, or the project's rung when no item routed it. A step-up between cycles raises the worker but not that limit: lilleman set the limit from the rung the chunk started on, so a worker that has stepped up may need a yes for its first escalation. loop-claude's prompt names the rungs a trigger opens, so the worker computes no rung positions, and tells the worker to open each escalated subagent's prompt with `Escalation trigger :`. `bin/loop_claude/routing.py` holds the limit and `bin/model_routing/route.py` the marker. The archive keeps the raw transcript, which holds the marked prompt, and `bin/routing_figures/` counts the escalations by trigger in `routing-figures.md`, per starting rung for routed chunks and in total for every chunk. diff --git a/skills/comprehension-panel/seat-prompts.md b/skills/comprehension-panel/seat-prompts.md index c65a8a0c..640b6217 100644 --- a/skills/comprehension-panel/seat-prompts.md +++ b/skills/comprehension-panel/seat-prompts.md @@ -91,4 +91,5 @@ Same means a reader of either version would find it as easy to understand and ch Report, in this shape: 1. Your rulings, each better, same or worse, in this shape: Navigation , Locality , Shape , Self-sufficiency , Overall 2. The places that decided them, most decisive first. Each opens with the names from your rulings line that it moves, joined by ", " and followed by ": ", such as `Locality, Shape: `. Then `path:line` and the unit's name, each in backticks, in the version the place is in, and one or two sentences on what reads easier or harder there than in the other version. A dimension's ruling that no place opens with counts as same, and the overall ruling does unless you name a place. +3. Where you ruled anything worse and want a more capable reader to check that ruling, the line `Rerun one rung up`. ``` diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index c8a5070f..2a28493a 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -62,7 +62,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Round cap.** -- **Round.** A round is one launch of a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). +- **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). A rerun one rung up ("Rung up" below) belongs to the round it reruns. - **Architecture round.** The architecture pass's first round is the architect (unless skipped) and the principles audit. A later round relaunches each reviewer whose ๐Ÿ”ด or ๐ŸŸก the previous round's fixes answer. Where those fixes carry an architectural decision, the architect and the principles audit run again. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก; โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, and `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported. Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก; flag a deleted test`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. `~/.claude/bin/larv-review round-count` prints each pass's count and marks a pass at the cap. The auto-reviewer's count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit. @@ -77,6 +77,12 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Rerun.** A round's fixes for ๐Ÿ”ด and ๐ŸŸก findings outside the prose pass re-enter together. Run, in table order, each pass whose ๐Ÿ”ด or ๐ŸŸก they answer, and each pass whose trigger has an "a fix, only where โ€ฆ" clause they meet, a done pass included. A pass at its cap gets "Round cap" โ†’ "Cap"'s ask instead. Then ยง4. - **No rerun.** A fix for a ๐ŸŸข, a โ“ or any prose finding reruns no pass. +**Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when it votes worse in a paired ruling. + +- **Ask.** Such a reviewer or seat may end its report asking for a rerun one rung up. Rerun it only on the rung loop-claude's prompt names for it; where the prompt names none, the report stands. +- **Rerun.** Relaunch it with the same prompt on that rung. Its report replaces the one that asked, in the same round. A seat's rerun replaces its line in the votes file before `record-ruling` runs. A rerun cannot ask again. +- **Escalate.** A below-standard ruling in the report that stands is escalation trigger 4 in `~/.claude/CLAUDE.md` โ†’ "Working with the codebase". + **Findings.** A reviewer rates each finding ๐Ÿ”ด must fix, ๐ŸŸก should fix, ๐ŸŸข nit, โ“ question, or ๐Ÿ”€ escalation naming the reviewer whose concern it is. - **Outside the chunk.** A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/rules/todo-items.md`. A ๐Ÿ”ด is marked `defect`. A ๐ŸŸก against a file under `~/.claude/principles/` is marked `principle`, its detail naming the principle, where no other reason fits. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index 3eef07fa..d743d30f 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -22,6 +22,10 @@ A review's first line, derived from the findings: - `APPROVE WITH NITS` โ€” only ๐ŸŸข and โ“ remain. - `APPROVE` โ€” nothing remains. +## Rung up + +Where your report holds a finding against `~/.claude/skills/larv-review/standards/quality.md`, or you are systems-architect and return BLOCK, you may end it with the line `Rerun one rung up` when you want a more capable reviewer to check that ruling. + ## Rounds - Handed neither earlier findings nor another pass's fix: surface everything. diff --git a/todo.md b/todo.md index 2e469a08..73e5be20 100644 --- a/todo.md +++ b/todo.md @@ -26,7 +26,6 @@ Release 0.3.0 takes items 125, 114 and 124 first, whatever their scores: Shape i | ID | Release | Exempt | Item | R | S | C | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---|---| -| 144 | 0.1.0 | | **Let a reviewer or comprehension seat that rules the work below standard rerun its review one rung up, outside the round cap, and make that ruling an escalation trigger for the worker.** | 4 | 5 | 6 | 6 | 7 | 1.1 | 20.6 | | 145 | 0.1.0 | | **Run the stability reviewer on the worker's rung while the worker runs below the project's rung, once a replay of past stability rounds on that rung finds the ๐Ÿ”ด and ๐ŸŸก findings on record.** | 4 | 5 | 6 | 6 | 7 | 1.4 | 20.2 | | 143 | 0.1.0 | | **Resume a worker one rung up in the next cycle when its run ends asking for a higher rung and the judge finds the escalation trigger it cites in the transcript.** | 5 | 5 | 7 | 6 | 7 | 1.1, 1.4 | 19.6 | | 136 | 0.1.0 | decision | **Route a chunk on the item its worker says it takes, in place of the next release's first row.** | 2 | 3 | 4 | 4 | 5 | 1.4 | 14.8 | @@ -87,12 +86,6 @@ Release 0.3.0 takes items 125, 114 and 124 first, whatever their scores: Shape i ## Details -### 144. Let a reviewer or comprehension seat that rules the work below standard rerun its review one rung up, outside the round cap, and make that ruling an escalation trigger for the worker. - -The human asked for this on 2026-10-15, and for the worker to escalate too. A reviewer rules the work below standard when it reports an architect BLOCK or a finding against `skills/larv-review/standards/quality.md`. It may then ask for its pass to rerun one rung up, and that rerun counts toward no round cap. A comprehension seat rules it below standard when it votes "worse" in a paired ruling. It may then ask for the ruling to rerun with its seat one rung up. Either ruling becomes a fourth escalation trigger in `CLAUDE.md` โ†’ "Working with the codebase". No ruling raises the judge's own rung. - -This revises `docs/decisions.md` โ†’ `routing: one ladder`, which launches the reviewers on the project's rung while the worker runs below it, and on the worker's rung otherwise. It also revises `review: a pass gets at most three rounds per chunk`. The comprehension seats found larv-review ยง3's "Round cap" hard to read; word the exception so "Round cap" gets easier to read, or land it in item 120's table. - ### 145. Run the stability reviewer on the worker's rung while the worker runs below the project's rung, once a replay of past stability rounds on that rung finds the ๐Ÿ”ด and ๐ŸŸก findings on record. On 2026-10-15 the human proposed running the stability reviewer on the worker's rung; the replay gate is the agent's proposal. Today a worker below the project's rung launches every reviewer on the project's rung. Under this item, the stability reviewer runs on the worker's rung instead. Every other reviewer, the comprehension seats and the security pass's subagent stay on the project's rung, so a change that fires their triggers is still reviewed on that rung. From 8ebefaf3aadb47e47b5cd9e6a9edb2294469bec6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:40:33 +0200 Subject: [PATCH 02/10] Append the reading cost of the last finished chunk --- docs/reading-cost.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 9a0ba951..e8482fae 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -367,3 +367,20 @@ Read most (opens and searches): - `bin/loop_claude/test_loop_claude.py` 1 - `bin/model_routing/ladder.py` 1 - `bin/subagent_rung/main.py` 1 + +## Reading cost, chunk 2a67ce43fe2b, finished 2026-10-15T17:35:27Z + +89158 new input tokens before the first commit. + +Read most (opens and searches): + +- `todo.md` 7 +- `README.md` 4 +- `CLAUDE.md` 3 +- `bin/loop_claude/cycle/prompts.py` 3 +- `bin/routing_figures/test_routing_figures.py` 3 +- `CHANGELOG.md` 2 +- `bin/loop_claude/test_loop_claude.py` 2 +- `AGENTS.md` 1 +- `bin/loop_claude/routing.py` 1 +- `bin/model_routing/ladder.py` 1 From 715e98438aef7b9b34ecf268ab2afa897196a3b8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:40:46 +0200 Subject: [PATCH 03/10] Say once that a rerun one rung up stays in its round --- skills/larv-review/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 2a28493a..7d4f8b1c 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -62,7 +62,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Round cap.** -- **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). A rerun one rung up ("Rung up" below) belongs to the round it reruns. +- **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). - **Architecture round.** The architecture pass's first round is the architect (unless skipped) and the principles audit. A later round relaunches each reviewer whose ๐Ÿ”ด or ๐ŸŸก the previous round's fixes answer. Where those fixes carry an architectural decision, the architect and the principles audit run again. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก; โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, and `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported. Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก; flag a deleted test`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. `~/.claude/bin/larv-review round-count` prints each pass's count and marks a pass at the cap. The auto-reviewer's count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit. From a22608a189d7c740a60de8ebb0afd674f16b62f4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:45:09 +0200 Subject: [PATCH 04/10] =?UTF-8?q?Answer=20stability=20round=201:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=204=20=F0=9F=9F=A1;=20hand=20the=20relaunch=20the?= =?UTF-8?q?=20report=20that=20asked,=20count=20only=20a=20backed=20worse?= =?UTF-8?q?=20vote,=20test=20the=20routed=20and=20top-rung=20prompts;=20wi?= =?UTF-8?q?th=20product-owner's=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- bin/loop_claude/test_loop_claude.py | 3 +++ docs/decisions.md | 4 ++-- skills/comprehension-panel/seat-prompts.md | 2 +- skills/larv-review/SKILL.md | 8 ++++---- skills/larv-review/review-findings.md | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b410cee..5eae0aee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat that votes worse in a paired ruling. The worker reruns it once, on the rung `loop-claude`'s prompt names, and the rerun's report replaces the one that asked in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. +- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat whose worse vote in a paired ruling counts. The worker relaunches it once, on the rung `loop-claude`'s prompt names, with the report that asked. The relaunch confirms or dismisses each of that report's findings and adds its own, and its report stands in place of the one that asked, in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. - A `loop-claude` worker hands a task that proves too hard for its rung to a subagent one rung up, edits included, when a trigger fires: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a review pass reports a ๐Ÿ”ด in round 2 or later. Each further trigger climbs one more rung, to at most two rungs above the rung the chunk's `todo.md` item picks, unless you agree. `CLAUDE.md` states the rule, and `loop-claude`'s prompt names the rungs a trigger opens. The worker opens the subagent's prompt with `Escalation trigger :`, and `routing-figures.md` counts the escalations by trigger. Expect a chunk that gets stuck to spend more on the stuck part, and fewer unfinished verdicts. - A session or subagent below the project's rung, the cheapest rung of the project's model, no longer scores or reshapes `todo.md`: it drafts each new item and each change to a filed item, and before its next commit one subagent on the project's rung or above applies and scores the drafts and sets their release. It may still remove finished items. `rules/todo-items.md` states the rule. `CLAUDE.md` has a session launch a subagent that files or scores items on the rung the new `bin/subagent-rung --plan ` prints, never below the project's rung, and `loop-claude`'s prompt to a worker below that rung names the command. Expect one extra subagent in a chunk that files items while its worker runs below the project's rung. - `loop-claude` runs the judge of an Opus 5.5 project on the rung the chunk's `todo.md` item picks, never below Opus 5.5 at medium effort, the project's rung. Before, the judge ran at the effort `settings.json` sets, xhigh. A replay of 39 archived verdicts found every cheaper rung missing verdicts. The judge keeps its rung when the worker steps up or takes in another item, and runs on the project's rung when no item routed the chunk. A project on another model keeps its judge at its settings' effort. Each verdict in the archive now names the judge's rung on a `Judge:` line. The new `bin/judge-replay ` replays the judge on archived verdicts and prints the cheapest rung that returns them. Expect the judge to cost less on items of R + C 12 or less, and more on items of R + C 15 or more. diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 438e0979..2a260730 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -679,6 +679,9 @@ class WorkerArgs(unittest.TestCase): self.assertTrue(prompts.resumed("", Route(Rung("claude-fable-5-1", "max"), 3, 20), opus).endswith(" A comprehension seat that asks for a rerun one rung up reruns with the Agent tool set to `model opus, effort high`.")) self.assertNotIn("rerun", prompts.resumed("", Route(Rung("m")), None)) self.assertNotIn("rerun", prompts.fresh("Do it.", "## Goals", Route(Rung("m", "high"), 3, 11), None)) + self.assertIn(f"{both}\n\nThe chunk's", prompts.fresh("Do it.", "## Goals", Route(opus, 3, 9), opus)) + fable = Rung("claude-fable-5-1", "max") + self.assertNotIn("rerun", prompts.resumed("", Route(fable), fable)) def test_opens_a_fresh_session_by_name_and_resumes_an_open_one(self): opened = session.session_named("A proj loop-claude", pathlib.Path("/h/.claude/projects")) diff --git a/docs/decisions.md b/docs/decisions.md index 9f4438e4..50419c4d 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -64,9 +64,9 @@ 2026-10-15, lilleman asked for it through todo item 144, implemented by claude. Serves goal 1.1: a cheap reviewer that finds the work below standard can have a more capable one check that ruling, and work below standard gets a more capable rung to fix it. -The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or a comprehension seat votes worse in a paired ruling. That reviewer or seat may ask, and the worker then reruns it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the other reviewers too while the worker runs below it. Off the ladder, or on its top rung, the prompt names none and the report stands. +The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or a comprehension seat's worse vote in a paired ruling counts. That reviewer or seat may ask, and the worker then relaunches it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the other reviewers too while the worker runs below it. Off the ladder, or on its top rung, the prompt names none and the report stands. -The rerun's report replaces the one that asked, in the same round, so it adds no round, and a rerun cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. +The relaunch gets the report that asked, confirms or dismisses each of its findings with a reason, and adds its own, so no finding goes unanswered. Its report stands in place of the one that asked, in the same round, so it adds no round, and a relaunch cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. Valid while the ladder orders its rungs by competence. diff --git a/skills/comprehension-panel/seat-prompts.md b/skills/comprehension-panel/seat-prompts.md index 640b6217..6ab2ca0b 100644 --- a/skills/comprehension-panel/seat-prompts.md +++ b/skills/comprehension-panel/seat-prompts.md @@ -91,5 +91,5 @@ Same means a reader of either version would find it as easy to understand and ch Report, in this shape: 1. Your rulings, each better, same or worse, in this shape: Navigation , Locality , Shape , Self-sufficiency , Overall 2. The places that decided them, most decisive first. Each opens with the names from your rulings line that it moves, joined by ", " and followed by ": ", such as `Locality, Shape: `. Then `path:line` and the unit's name, each in backticks, in the version the place is in, and one or two sentences on what reads easier or harder there than in the other version. A dimension's ruling that no place opens with counts as same, and the overall ruling does unless you name a place. -3. Where you ruled anything worse and want a more capable reader to check that ruling, the line `Rerun one rung up`. +3. Where a place you name backs a worse ruling and you want a more capable reader to check that ruling, the line `Rerun one rung up`. ``` diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 7d4f8b1c..947c1bbb 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -62,7 +62,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Round cap.** -- **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). +- **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). A relaunch one rung up ("Rung up" below) stays in its round. - **Architecture round.** The architecture pass's first round is the architect (unless skipped) and the principles audit. A later round relaunches each reviewer whose ๐Ÿ”ด or ๐ŸŸก the previous round's fixes answer. Where those fixes carry an architectural decision, the architect and the principles audit run again. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก; โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, and `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported. Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก; flag a deleted test`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. `~/.claude/bin/larv-review round-count` prints each pass's count and marks a pass at the cap. The auto-reviewer's count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit. @@ -77,10 +77,10 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Rerun.** A round's fixes for ๐Ÿ”ด and ๐ŸŸก findings outside the prose pass re-enter together. Run, in table order, each pass whose ๐Ÿ”ด or ๐ŸŸก they answer, and each pass whose trigger has an "a fix, only where โ€ฆ" clause they meet, a done pass included. A pass at its cap gets "Round cap" โ†’ "Cap"'s ask instead. Then ยง4. - **No rerun.** A fix for a ๐ŸŸข, a โ“ or any prose finding reruns no pass. -**Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when it votes worse in a paired ruling. +**Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when a worse vote of its counts, as `record-ruling` counts votes. - **Ask.** Such a reviewer or seat may end its report asking for a rerun one rung up. Rerun it only on the rung loop-claude's prompt names for it; where the prompt names none, the report stands. -- **Rerun.** Relaunch it with the same prompt on that rung. Its report replaces the one that asked, in the same round. A seat's rerun replaces its line in the votes file before `record-ruling` runs. A rerun cannot ask again. +- **Relaunch.** Relaunch it on that rung with the same prompt and the report that asked. It confirms or dismisses each finding of that report, with a reason, and adds its own. Its report stands in place of the one that asked, in the same round. A seat's relaunch replaces its line in the votes file before `record-ruling` runs. A relaunch cannot ask again. - **Escalate.** A below-standard ruling in the report that stands is escalation trigger 4 in `~/.claude/CLAUDE.md` โ†’ "Working with the codebase". **Findings.** A reviewer rates each finding ๐Ÿ”ด must fix, ๐ŸŸก should fix, ๐ŸŸข nit, โ“ question, or ๐Ÿ”€ escalation naming the reviewer whose concern it is. @@ -98,7 +98,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its Launch systems-architect: review the system as a whole entered through this change; the decision log carries previously accepted decisions to honor, the README the goals and Stage 0 artifacts. Give it the places per "Comprehension check" โ†’ "Places". Each of its other findings names a concrete later change the PR makes harder, such as "a second forge needs edits in four modules"; drop one that names none. - **Stage 0 questions returned**: relay them to the user, record the answers in the README, re-run once. -- **BLOCK** โ†’ confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. +- **BLOCK**, in the report that stands after any relaunch per "Rung up" โ†’ confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. Then the principles audit: one principles-auditor for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure โ†’ launch it. diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index d743d30f..32b99756 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -12,7 +12,7 @@ A reviewer reads and reports; it edits nothing. Read `docs/decisions.md` and `to - โ“ **question** for the author: a finding you could not confirm goes here, not above. - ๐Ÿ”€ **escalation** โ€” names the reviewer whose concern it is (`product-owner-reviewer`, `systems-architect` or `/security-review`) and why, in one line. -A finding against a technical principle names it and the file under `~/.claude/principles/` it lives in. +A finding against a technical principle names it and the file under `~/.claude/principles/` it lives in. A finding against `~/.claude/skills/larv-review/standards/quality.md` names that file and the rule it breaks. ## Verdict From a6202c2654a1facfaa047fcc182105154377404d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:45:16 +0200 Subject: [PATCH 05/10] =?UTF-8?q?Answer=20product-owner=20round=201:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=202=20=F0=9F=9F=A1;=20name=20quality.md=20in?= =?UTF-8?q?=20its=20findings,=20confirm=20only=20a=20standing=20BLOCK=20(f?= =?UTF-8?q?ixed=20in=20the=20stability=20round's=20commit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 7041c3e2fc4fdd7e6974192e953433c4d3195667 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:45:16 +0200 Subject: [PATCH 06/10] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From e02374fecefcfffc37016b1623f739dd69102163 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:47:22 +0200 Subject: [PATCH 07/10] =?UTF-8?q?Answer=20product-owner=20round=202:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20tell=20a=20relaunched=20?= =?UTF-8?q?reviewer=20what=20to=20do=20with=20the=20report=20it=20is=20han?= =?UTF-8?q?ded,=20and=20relaunch=20a=20seat=20afresh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- docs/decisions.md | 2 +- skills/larv-review/SKILL.md | 2 +- skills/larv-review/review-findings.md | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eae0aee..17fa5d45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat whose worse vote in a paired ruling counts. The worker relaunches it once, on the rung `loop-claude`'s prompt names, with the report that asked. The relaunch confirms or dismisses each of that report's findings and adds its own, and its report stands in place of the one that asked, in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. +- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat whose worse vote in a paired ruling counts. The worker relaunches it once, on the rung `loop-claude`'s prompt names. A relaunched reviewer gets the report that asked and confirms or dismisses each of its findings. The relaunch's report stands in place of the one that asked, in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. - A `loop-claude` worker hands a task that proves too hard for its rung to a subagent one rung up, edits included, when a trigger fires: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a review pass reports a ๐Ÿ”ด in round 2 or later. Each further trigger climbs one more rung, to at most two rungs above the rung the chunk's `todo.md` item picks, unless you agree. `CLAUDE.md` states the rule, and `loop-claude`'s prompt names the rungs a trigger opens. The worker opens the subagent's prompt with `Escalation trigger :`, and `routing-figures.md` counts the escalations by trigger. Expect a chunk that gets stuck to spend more on the stuck part, and fewer unfinished verdicts. - A session or subagent below the project's rung, the cheapest rung of the project's model, no longer scores or reshapes `todo.md`: it drafts each new item and each change to a filed item, and before its next commit one subagent on the project's rung or above applies and scores the drafts and sets their release. It may still remove finished items. `rules/todo-items.md` states the rule. `CLAUDE.md` has a session launch a subagent that files or scores items on the rung the new `bin/subagent-rung --plan ` prints, never below the project's rung, and `loop-claude`'s prompt to a worker below that rung names the command. Expect one extra subagent in a chunk that files items while its worker runs below the project's rung. - `loop-claude` runs the judge of an Opus 5.5 project on the rung the chunk's `todo.md` item picks, never below Opus 5.5 at medium effort, the project's rung. Before, the judge ran at the effort `settings.json` sets, xhigh. A replay of 39 archived verdicts found every cheaper rung missing verdicts. The judge keeps its rung when the worker steps up or takes in another item, and runs on the project's rung when no item routed the chunk. A project on another model keeps its judge at its settings' effort. Each verdict in the archive now names the judge's rung on a `Judge:` line. The new `bin/judge-replay ` replays the judge on archived verdicts and prints the cheapest rung that returns them. Expect the judge to cost less on items of R + C 12 or less, and more on items of R + C 15 or more. diff --git a/docs/decisions.md b/docs/decisions.md index 50419c4d..1842dc78 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -66,7 +66,7 @@ The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or a comprehension seat's worse vote in a paired ruling counts. That reviewer or seat may ask, and the worker then relaunches it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the other reviewers too while the worker runs below it. Off the ladder, or on its top rung, the prompt names none and the report stands. -The relaunch gets the report that asked, confirms or dismisses each of its findings with a reason, and adds its own, so no finding goes unanswered. Its report stands in place of the one that asked, in the same round, so it adds no round, and a relaunch cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. +A reviewer's relaunch gets the report that asked and confirms or dismisses each of its findings with a reason, so no finding goes unanswered; a seat's relaunch reads afresh, since a seat reports no findings. The relaunch's report stands in place of the one that asked, in the same round, so it adds no round, and a relaunch cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. Valid while the ladder orders its rungs by competence. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 947c1bbb..0624b702 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -80,7 +80,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when a worse vote of its counts, as `record-ruling` counts votes. - **Ask.** Such a reviewer or seat may end its report asking for a rerun one rung up. Rerun it only on the rung loop-claude's prompt names for it; where the prompt names none, the report stands. -- **Relaunch.** Relaunch it on that rung with the same prompt and the report that asked. It confirms or dismisses each finding of that report, with a reason, and adds its own. Its report stands in place of the one that asked, in the same round. A seat's relaunch replaces its line in the votes file before `record-ruling` runs. A relaunch cannot ask again. +- **Relaunch.** Relaunch a reviewer on that rung with the same prompt and the report that asked; its report stands in place of that one, in the same round. Relaunch a seat with the same prompt alone; its line replaces the one that asked in the votes file, before `record-ruling` runs. A relaunch cannot ask again. - **Escalate.** A below-standard ruling in the report that stands is escalation trigger 4 in `~/.claude/CLAUDE.md` โ†’ "Working with the codebase". **Findings.** A reviewer rates each finding ๐Ÿ”ด must fix, ๐ŸŸก should fix, ๐ŸŸข nit, โ“ question, or ๐Ÿ”€ escalation naming the reviewer whose concern it is. diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index 32b99756..87035f1b 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -30,4 +30,5 @@ Where your report holds a finding against `~/.claude/skills/larv-review/standard - Handed neither earlier findings nor another pass's fix: surface everything. - Handed an earlier round's findings, each with its fix or the reason it was dismissed: review only those answers. Check each fix โ€” re-run the scenario, never trust the claim โ€” and each dismissal's reason. Report only a fix or a dismissal that is plainly wrong, or worse than the change it answered; a fix you would have written differently is not a finding. +- Handed a report that asked to `Rerun one rung up`: confirm or dismiss each of its findings, with a reason, then surface everything else as a first round would. Do not ask again. - Handed a fix from another pass: review its diff as a first round would, limited to its lines. From 7000c6c677a1be097b69f22abd13e4b1848c227f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:47:26 +0200 Subject: [PATCH 08/10] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 5abffea5ea5d92b8ec6de5175300e275ee70d58b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:47:58 +0200 Subject: [PATCH 09/10] =?UTF-8?q?Answer=20product-owner=20round=203:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20scope=20a=20relaunch=20t?= =?UTF-8?q?o=20the=20round=20it=20reruns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/larv-review/review-findings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index 87035f1b..ed699a61 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -30,5 +30,5 @@ Where your report holds a finding against `~/.claude/skills/larv-review/standard - Handed neither earlier findings nor another pass's fix: surface everything. - Handed an earlier round's findings, each with its fix or the reason it was dismissed: review only those answers. Check each fix โ€” re-run the scenario, never trust the claim โ€” and each dismissal's reason. Report only a fix or a dismissal that is plainly wrong, or worse than the change it answered; a fix you would have written differently is not a finding. -- Handed a report that asked to `Rerun one rung up`: confirm or dismiss each of its findings, with a reason, then surface everything else as a first round would. Do not ask again. +- Handed a report that asked to `Rerun one rung up`: confirm or dismiss each of its findings, with a reason, then review the rest of what your prompt scopes, as the round you rerun would. Do not ask again. - Handed a fix from another pass: review its diff as a first round would, limited to its lines. From 1d2d51f4abcfdf2559e8c944b5c20142f47d91c2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 19:50:47 +0200 Subject: [PATCH 10/10] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=207=20=F0=9F=9F=A1;=20state=20trigger=204=20in=20?= =?UTF-8?q?place,=20count=20a=20seat's=20vote=20as=20record-ruling=20does,?= =?UTF-8?q?=20reorder=20the=20help=20and=20the=20changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- CLAUDE.md | 2 +- bin/loop_claude/cycle/prompts.py | 2 +- bin/loop_claude/loop/main.py | 6 +++--- docs/decisions.md | 8 ++++---- skills/larv-review/SKILL.md | 6 +++--- skills/larv-review/review-findings.md | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17fa5d45..416470a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ ## Unreleased -- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat whose worse vote in a paired ruling counts. The worker relaunches it once, on the rung `loop-claude`'s prompt names. A relaunched reviewer gets the report that asked and confirms or dismisses each of its findings. The relaunch's report stands in place of the one that asked, in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. - A `loop-claude` worker hands a task that proves too hard for its rung to a subagent one rung up, edits included, when a trigger fires: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a review pass reports a ๐Ÿ”ด in round 2 or later. Each further trigger climbs one more rung, to at most two rungs above the rung the chunk's `todo.md` item picks, unless you agree. `CLAUDE.md` states the rule, and `loop-claude`'s prompt names the rungs a trigger opens. The worker opens the subagent's prompt with `Escalation trigger :`, and `routing-figures.md` counts the escalations by trigger. Expect a chunk that gets stuck to spend more on the stuck part, and fewer unfinished verdicts. +- A reviewer that rules a chunk's work below standard, with systems-architect's BLOCK or a finding against larv-review's `standards/quality.md`, may ask to rerun one rung up, as may a comprehension seat whose vote in a paired ruling `record-ruling` counts as worse. The worker relaunches it once, on the rung `loop-claude`'s prompt names. A relaunched reviewer gets the report that asked and confirms or dismisses each of its findings. The relaunch's report stands in place of the one that asked, in the same round, so it adds no round. The ruling that stands is a fourth escalation trigger in `CLAUDE.md`. Expect a chunk whose work falls below standard to spend more on its review and its fix. - A session or subagent below the project's rung, the cheapest rung of the project's model, no longer scores or reshapes `todo.md`: it drafts each new item and each change to a filed item, and before its next commit one subagent on the project's rung or above applies and scores the drafts and sets their release. It may still remove finished items. `rules/todo-items.md` states the rule. `CLAUDE.md` has a session launch a subagent that files or scores items on the rung the new `bin/subagent-rung --plan ` prints, never below the project's rung, and `loop-claude`'s prompt to a worker below that rung names the command. Expect one extra subagent in a chunk that files items while its worker runs below the project's rung. - `loop-claude` runs the judge of an Opus 5.5 project on the rung the chunk's `todo.md` item picks, never below Opus 5.5 at medium effort, the project's rung. Before, the judge ran at the effort `settings.json` sets, xhigh. A replay of 39 archived verdicts found every cheaper rung missing verdicts. The judge keeps its rung when the worker steps up or takes in another item, and runs on the project's rung when no item routed the chunk. A project on another model keeps its judge at its settings' effort. Each verdict in the archive now names the judge's rung on a `Judge:` line. The new `bin/judge-replay ` replays the judge on archived verdicts and prints the cheapest rung that returns them. Expect the judge to cost less on items of R + C 12 or less, and more on items of R + C 15 or more. - Every 20 cycles across all projects, `loop-claude` measures every finished chunk in its archive, with no model run, and writes the figures to `routing-figures.md` at the archive's root: tokens by project, subagent type, rung and tool, and, for each chunk a `todo.md` item routed, grouped by the rung it started on: its review rounds past each pass's first, its unfinished verdicts and its subagents' rungs. It interrupts you, with `claude` on the project's model on the terminal in `~/.claude`, when chunks routed onto a rung took more review rounds or unfinished verdicts than chunks routed onto the next rung up, each rung with 5 chunks or more, or when 5 or more subagents of one type wrote reports longer than the tool results they read. Each call is raised once, then listed in `routing-calls-raised.md` beside the figures; the next chunk of this repo files a `todo.md` item for it. Off a terminal, the calls are said on stderr and the loop goes on. They are raised at the next measurement on a terminal. After a routing change, a `- Reset` line in that file makes the figures count only chunks finished after it, and lets its calls be raised again. Expect a pause of about ten seconds at each measurement. diff --git a/CLAUDE.md b/CLAUDE.md index 60722ce6..0bd1bcb9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -61,7 +61,7 @@ The rules only reviewers apply, for quality, comments, READMEs and prose, live i 1. A re-score of the item, made on the project's rung or above, picks a rung above yours. 2. The same failing test or finding survives two fix attempts. 3. A pass reports a ๐Ÿ”ด in round 2 or later. - 4. A reviewer or comprehension seat rules the work below standard, per `larv-review` ยง3 โ†’ "Rung up". + 4. A review rules the work below standard: systems-architect's BLOCK, a finding against larv-review's `standards/quality.md`, or a vote `record-ruling` counts as worse, in the report that stands after any relaunch one rung up (`larv-review` ยง3 โ†’ "Rung up"). When one fires, hand the hard part, edits included, to a subagent on the rung loop-claude's prompt names, one above yours. Open the subagent's prompt with the marker loop-claude's prompt gives, then the trigger's evidence. Each later subagent on that task runs on that rung or higher, and each further escalation trigger moves the task one rung higher, up to the highest rung loop-claude's prompt names. Ask the human before going higher. Where loop-claude's prompt names no escalation, as on the ladder's top rung or off it, keep the task in your own thread. - Give a subagent only the access its job needs, and state the limits in its prompt. One that only reads, such as a prose review, gets no shell and no edits. One that probes a build tags the image as throwaway and removes it afterwards, writes only to the session scratchpad, and removes no image or file it did not create. diff --git a/bin/loop_claude/cycle/prompts.py b/bin/loop_claude/cycle/prompts.py index 039b8faa..e58044ff 100644 --- a/bin/loop_claude/cycle/prompts.py +++ b/bin/loop_claude/cycle/prompts.py @@ -53,7 +53,7 @@ def reruns(route: Route, anchor: Rung | None) -> str: """The prompt's sentence naming the rung one above a reviewer's and a seat's, on which each reruns when it asks; empty off the ladder, and leaving out one already on the top rung.""" if anchor is None or route.rung not in LADDER: return "" - # The rungs off_the_projects_rung launches them on: the seats always on anchor, the other reviewers on anchor only while the worker runs below it. + # The rungs off_the_projects_rung launches them on: the seats always on anchor, the reviewers on anchor only while the worker runs below it. reviewer = highest(route.rung, anchor) rerun = {name: climbed(rung, 1) for name, rung in (("reviewer", reviewer), ("comprehension seat", anchor)) if rung != LADDER[-1]} if not rerun: diff --git a/bin/loop_claude/loop/main.py b/bin/loop_claude/loop/main.py index e6d175b8..3fb92058 100644 --- a/bin/loop_claude/loop/main.py +++ b/bin/loop_claude/loop/main.py @@ -50,9 +50,9 @@ prompt names the rung and the item, and asks the worker to name each item the ch R + C. When that rung is below the model's cheapest, the prompt also has the worker launch each reviewer, each comprehension seat and the security pass in subagents on the cheapest rung. When it is above, the prompt has the worker launch only each comprehension seat and the security pass on -the cheapest rung. Each prompt names the rung a reviewer or a seat reruns on when it asks, one -above its own. The prompt after each unfinished verdict -says this again, since a step-up may have taken the worker above the cheapest rung. The +the cheapest rung. The prompt after each unfinished verdict +says this again, since a step-up may have taken the worker above the cheapest rung. A reviewer or +seat that rules the work below standard may ask to rerun one rung up; each prompt names that rung. The judge reports the highest R + C the worker states, and the next cycle steps up to the rung that R + C picks, never down. Every second unfinished verdict on a chunk steps it up one rung. Each finished or unfinished verdict, stop and step-up in the archive names the worker's rung, with the diff --git a/docs/decisions.md b/docs/decisions.md index 1842dc78..46bfba4d 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -58,13 +58,13 @@ 2026-10-13, lilleman through todo item 97, implemented by claude: the cap stays at three after later rounds were narrowed, since a lower cap would ask the human more often, against goal 1, and a third round reviews only the answers to round 2's findings, so it costs little. -2026-10-15, through todo item 144: a rerun one rung up belongs to the round it reruns, so it counts toward no cap: `review: a reviewer or comprehension seat that rules the work below standard`. +2026-10-15, lilleman through todo item 144: a rerun one rung up belongs to the round it reruns, so it counts toward no cap: `review: a reviewer or comprehension seat that rules the work below standard`. ## review: a reviewer or comprehension seat that rules the work below standard may ask to rerun once, one rung up, in the same round; the ruling that stands is an escalation trigger for the worker, never for the judge 2026-10-15, lilleman asked for it through todo item 144, implemented by claude. Serves goal 1.1: a cheap reviewer that finds the work below standard can have a more capable one check that ruling, and work below standard gets a more capable rung to fix it. -The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or a comprehension seat's worse vote in a paired ruling counts. That reviewer or seat may ask, and the worker then relaunches it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the other reviewers too while the worker runs below it. Off the ladder, or on its top rung, the prompt names none and the report stands. +The work is below standard where systems-architect returns BLOCK, a reviewer reports a finding against larv-review's `standards/quality.md`, or `record-ruling` counts a comprehension seat's vote in a paired ruling as worse. That reviewer or seat may ask, and the worker then relaunches it on the rung loop-claude's prompt names, one above the rung it ran on. `bin/loop_claude/cycle/prompts.py`'s `reruns` names it: the seats run on the project's rung, and the reviewers too while the worker runs below it. Off the ladder, or for a reviewer or seat already on the top rung, the prompt names none, and its report stands. A reviewer's relaunch gets the report that asked and confirms or dismisses each of its findings with a reason, so no finding goes unanswered; a seat's relaunch reads afresh, since a seat reports no findings. The relaunch's report stands in place of the one that asked, in the same round, so it adds no round, and a relaunch cannot ask again. So the round cap still bounds a pass, and one round launches a reviewer at most twice. The ruling that stands is the fourth escalation trigger in `CLAUDE.md`. lilleman ruled that no ruling raises the judge's rung, which `routing: on a model judge-replay covered` sets. @@ -200,7 +200,7 @@ A chunk's worker runs on the rung its item picks, below the project's rung too. The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, loop-claude measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked. -A model off the ladder routes nothing: claude runs it at the effort its settings give. R + C steps a task from the project's rung: 2โ€“4 three rungs down, 5โ€“6 two down, 7โ€“8 one down, 9โ€“10 none, 11โ€“12 one up, 13โ€“14 two up, 15โ€“16 three up, 17 and above four up. A step past either end stops there. The bands spread the R + C that `todo.md`'s items held on 2026-10-14, 2 to 12, across the rungs, so most tasks step down. S never moves a rung, so a huge task with low R and C runs cheap. While the worker runs above the project's rung, loop-claude's prompt has it launch the comprehension seats and the security pass's subagent on the project's rung too. So the seats score every chunk on one rung, and the security pass spends no more than the project chose. The prompt after each unfinished verdict repeats this, since a step-up may have taken the worker above the project's rung. The other reviewers inherit the worker's higher rung. A reviewer or seat that rules the work below standard may rerun one rung above its rung: `review: a reviewer or comprehension seat that rules the work below standard`. On 2026-10-15 lilleman dropped routing them by R + C instead: a worker climbs because its chunk proved harder than its score said, which is when a cheaper reviewer is the bigger risk. `score-outcomes` had too few finished chunks to ground the bands, and a change to the ladder or the bands is lilleman's. +A model off the ladder routes nothing: claude runs it at the effort its settings give. R + C steps a task from the project's rung: 2โ€“4 three rungs down, 5โ€“6 two down, 7โ€“8 one down, 9โ€“10 none, 11โ€“12 one up, 13โ€“14 two up, 15โ€“16 three up, 17 and above four up. A step past either end stops there. The bands spread the R + C that `todo.md`'s items held on 2026-10-14, 2 to 12, across the rungs, so most tasks step down. S never moves a rung, so a huge task with low R and C runs cheap. While the worker runs above the project's rung, loop-claude's prompt has it launch the comprehension seats and the security pass's subagent on the project's rung too. So the seats score every chunk on one rung, and the security pass spends no more than the project chose. The prompt after each unfinished verdict repeats this, since a step-up may have taken the worker above the project's rung. The other reviewers inherit the worker's higher rung. On 2026-10-15 lilleman dropped routing them by R + C instead: a worker climbs because its chunk proved harder than its score said, which is when a cheaper reviewer is the bigger risk. `score-outcomes` had too few finished chunks to ground the bands, and a change to the ladder or the bands is lilleman's. A reviewer or seat that rules the work below standard may rerun one rung up: `review: a reviewer or comprehension seat that rules the work below standard`. The worker delegates a task only when it needs just the task's conclusion: a search or read across many files, or work independent enough to run in parallel. Edits, and whatever it must check line by line, stay in its own thread, since it would read a delegated diff again to check it. Measured over archived worker transcripts, subagent reports cost a median 8% of the worker's peak context, and `sed -n` and `grep` output made up 41% of its Bash results, so delegated searches save the most context. It scores each delegated task's R and C as for an item, and `bin/subagent-rung` turns them into the Agent tool's model and effort, counted from the project's rung. The rule names both, because the Agent tool sets a subagent's effort only when instructions ask. `CLAUDE.md` states the rule, since it holds in every session. A task that proves too hard for the worker's rung goes one rung up instead: `routing: a worker hands a task one rung up`. @@ -212,7 +212,7 @@ Valid while the index ranks these models, and while no newer model joins the cat 2026-10-15, lilleman asked for it. Serves goals 1.1 and 1.4: a task too hard for a cheap rung gets a dearer one only once it proves hard, and only for the part that proved hard. -Four escalation triggers in `CLAUDE.md` โ†’ "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, a pass reports a ๐Ÿ”ด in round 2 or later, or, since todo item 144, a reviewer or seat rules the work below standard. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk started on: the rung its item picks, or the project's rung when no item routed it. A step-up between cycles raises the worker but not that limit: lilleman set the limit from the rung the chunk started on, so a worker that has stepped up may need a yes for its first escalation. +Four escalation triggers in `CLAUDE.md` โ†’ "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, a pass reports a ๐Ÿ”ด in round 2 or later, or a reviewer or seat rules the work below standard. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk started on: the rung its item picks, or the project's rung when no item routed it. A step-up between cycles raises the worker but not that limit: lilleman set the limit from the rung the chunk started on, so a worker that has stepped up may need a yes for its first escalation. loop-claude's prompt names the rungs a trigger opens, so the worker computes no rung positions, and tells the worker to open each escalated subagent's prompt with `Escalation trigger :`. `bin/loop_claude/routing.py` holds the limit and `bin/model_routing/route.py` the marker. The archive keeps the raw transcript, which holds the marked prompt, and `bin/routing_figures/` counts the escalations by trigger in `routing-figures.md`, per starting rung for routed chunks and in total for every chunk. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 0624b702..d3a81c94 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -77,9 +77,9 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Rerun.** A round's fixes for ๐Ÿ”ด and ๐ŸŸก findings outside the prose pass re-enter together. Run, in table order, each pass whose ๐Ÿ”ด or ๐ŸŸก they answer, and each pass whose trigger has an "a fix, only where โ€ฆ" clause they meet, a done pass included. A pass at its cap gets "Round cap" โ†’ "Cap"'s ask instead. Then ยง4. - **No rerun.** A fix for a ๐ŸŸข, a โ“ or any prose finding reruns no pass. -**Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when a worse vote of its counts, as `record-ruling` counts votes. +**Rung up.** A reviewer rules the work below standard when its report holds systems-architect's BLOCK or a finding against `standards/quality.md`. A comprehension seat does when `record-ruling` counts one of its votes as worse. -- **Ask.** Such a reviewer or seat may end its report asking for a rerun one rung up. Rerun it only on the rung loop-claude's prompt names for it; where the prompt names none, the report stands. +- **Ask.** Such a reviewer or seat may end its report asking for a rerun one rung up. Relaunch it only on the rung loop-claude's prompt names for it; where the prompt names none, the report stands. - **Relaunch.** Relaunch a reviewer on that rung with the same prompt and the report that asked; its report stands in place of that one, in the same round. Relaunch a seat with the same prompt alone; its line replaces the one that asked in the votes file, before `record-ruling` runs. A relaunch cannot ask again. - **Escalate.** A below-standard ruling in the report that stands is escalation trigger 4 in `~/.claude/CLAUDE.md` โ†’ "Working with the codebase". @@ -98,7 +98,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its Launch systems-architect: review the system as a whole entered through this change; the decision log carries previously accepted decisions to honor, the README the goals and Stage 0 artifacts. Give it the places per "Comprehension check" โ†’ "Places". Each of its other findings names a concrete later change the PR makes harder, such as "a second forge needs edits in four modules"; drop one that names none. - **Stage 0 questions returned**: relay them to the user, record the answers in the README, re-run once. -- **BLOCK**, in the report that stands after any relaunch per "Rung up" โ†’ confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. +- **BLOCK** standing after any relaunch ("Rung up"): confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. Then the principles audit: one principles-auditor for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure โ†’ launch it. diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index ed699a61..d024ebd7 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -30,5 +30,5 @@ Where your report holds a finding against `~/.claude/skills/larv-review/standard - Handed neither earlier findings nor another pass's fix: surface everything. - Handed an earlier round's findings, each with its fix or the reason it was dismissed: review only those answers. Check each fix โ€” re-run the scenario, never trust the claim โ€” and each dismissal's reason. Report only a fix or a dismissal that is plainly wrong, or worse than the change it answered; a fix you would have written differently is not a finding. -- Handed a report that asked to `Rerun one rung up`: confirm or dismiss each of its findings, with a reason, then review the rest of what your prompt scopes, as the round you rerun would. Do not ask again. - Handed a fix from another pass: review its diff as a first round would, limited to its lines. +- Handed a report that asked to `Rerun one rung up`: confirm or dismiss each of its findings, with a reason, then review the rest of what your prompt scopes, as the round you rerun would. Do not ask again.