From d441c3e6a44720b5962c38e1d89e1f8cabecd0a5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 15:24:00 +0200 Subject: [PATCH 1/2] Plan scoring and planning on the project's rung or above, and escalation to a stronger rung --- todo.md | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 49503833..5f488841 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 141` +`Next ID = 145` | Goal | W | |---|---| @@ -26,9 +26,13 @@ Release 0.2.0 takes items 125, 114 and 124 first, whatever their scores: Shape i | ID | Release | Exempt | Item | R | S | C | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---|---| +| 141 | 0.1.0 | | **Score and reshape the plan only on the project's rung or above, and let a session below it only draft new items.** | 3 | 4 | 4 | 6 | 8 | 1.1 | 23.8 | | 90 | 0.1.0 | question | **Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the ๐Ÿ”ด and ๐ŸŸก findings on record.** | 4 | 5 | 8 | 6 | 7 | 1.4 | 20.2 | | 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 | +| 142 | 0.2.0 | | **Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the chunk's starting rung.** | 4 | 5 | 6 | 7 | 8 | 1.1, 1.4 | 24.6 | +| 144 | 0.2.0 | | **Let a reviewer or comprehension seat that rules the work below standard rerun its pass one rung up, outside the round cap, and escalate the worker too.** | 4 | 5 | 6 | 6 | 7 | 1.1 | 20.6 | | 105 | 0.2.0 | decision | **Compare review rounds per pass and reading cost for the five chunks before and after the `worker:` decision moved the principles out of the worker's context, and file an item if either rose.** | 1 | 2 | 3 | 5 | 6 | 1.4 | 20.0 | +| 143 | 0.2.0 | | **Resume a worker one rung up in the next cycle when its run ends asking for it, citing an escalation trigger the judge finds in the transcript.** | 5 | 5 | 7 | 6 | 7 | 1.1, 1.4 | 19.6 | | 112 | 0.2.0 | | **Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome.** | 2 | 3 | 5 | 5 | 6 | 1.1 | 19.1 | | 110 | 0.2.0 | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed R.** | 2 | 4 | 6 | 5 | 6 | 1.1, 1.4 | 18.9 | | 120 | 0.2.0 | | **Rewrite larv-review ยง3's "Round cap" and "Re-entry" as one table that says, for each kind of fix, which passes rerun and what a round reviews.** | 2 | 4 | 5 | 5 | 6 | 1.1, 1.2 | 18.9 | @@ -85,6 +89,22 @@ Release 0.2.0 takes items 125, 114 and 124 first, whatever their scores: Shape i ## Details +### 141. Score and reshape the plan only on the project's rung or above, and let a session below it only draft new items. + +The human set this rule on 2026-10-15. The project's rung is the cheapest rung of the model `loop-claude-models.json` pins, or of the session's own model outside loop-claude. Below that rung, a session may not: + +- score or re-score an item; +- move an item between releases; +- split a milestone into items; +- delete an item under the bar; +- rewrite an item's tagline or detail once it is filed. + +Removing a finished item's row is not planning, so any rung may do it. + +A worker below the project's rung drafts each new item's tagline and detail. Before its next commit, one subagent on the project's rung files and scores the drafts together and sets their release. That costs one subagent per batch, not one per finding. A security finding gets that subagent at once, since it is filed the moment it is found. + +Write the rule in `rules/todo-items.md`, which loads with `todo.md`. In `CLAUDE.md`'s delegation rule, a scoring or planning subagent runs on the rung `subagent-rung` prints, raised to the project's rung where it prints a lower one. For a worker below the project's rung, loop-claude's prompt (`bin/loop_claude/cycle/prompts.py`) adds scoring and planning to the subagents it launches on that rung. Three places carry the rule, so record it in `docs/decisions.md`. + ### 90. Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the ๐Ÿ”ด and ๐ŸŸก findings on record. larv-review passes the rung through the Agent tool's `model` and `effort`. A reviewer never steps down when the worker has stepped down on the same chunk, so a cheap worker always meets a reviewer on the project model or above. @@ -97,10 +117,35 @@ loop-claude routes on the first row of the next release, while the worker takes Once this lands, the judge follows the item the worker takes too, since `judge_rung` routes on the chunk's item. +### 142. Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the chunk's starting rung. + +The human asked for this on 2026-10-15. Four triggers mean a task is too hard for the worker's rung: + +1. A re-score of the item, made on the project's rung per item 141, picks a higher rung than the worker's. +2. The same failing test or finding survives two fix attempts. +3. A pass reports a ๐Ÿ”ด in round 2 or later, as the `Answer round :` commit titles show. +4. A reviewer or comprehension seat rules the work below standard, per item 144. + +When one fires, the worker hands the hard part to a subagent one rung above its own, and its prompt cites the trigger. The worker never steps down within a chunk. It goes at most two rungs above the chunk's starting rung without asking the human. loop-claude archives each step with its trigger, and `routing-figures.md` counts them. + +This revises `docs/decisions.md` โ†’ `routing: one ladder`, where the worker routes each subagent by its task's R + C alone, and the delegation rule in `CLAUDE.md`. + +### 144. Let a reviewer or comprehension seat that rules the work below standard rerun its pass one rung up, outside the round cap, and escalate the worker too. + +The human set this on 2026-10-15. A reviewer or comprehension seat rules the work below standard with an architect BLOCK or a breach of `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. The same ruling is trigger 4 of item 142, so the worker escalates too. The judge never escalates on request. + +This revises `docs/decisions.md` โ†’ `routing: one ladder`, which holds reviewers on the project's rung, and `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 it reads easier, or land it in item 120's table. + ### 105. Compare review rounds per pass and reading cost for the five chunks before and after the `worker:` decision moved the principles out of the worker's context, and file an item if either rose. The `worker:` decision is valid while review rounds per pass do not rise. Count the rounds from each PR's `Answer round :` commits, and take reading cost from `docs/reading-cost.md`. Run it once five chunks have merged after the one that recorded the decision. +### 143. Resume a worker one rung up in the next cycle when its run ends asking for it, citing an escalation trigger the judge finds in the transcript. + +The human asked for this on 2026-10-15. A worker may end its run asking for a stronger rung, citing a trigger of item 142. The judge looks for that trigger in the transcript. Where it finds it, the next cycle resumes the session one rung up; otherwise the rung holds. Item 142's limits apply: no step down within a chunk, and at most two rungs above the chunk's starting rung without asking the human. + +This adds a step to the one after two unfinished verdicts that `docs/decisions.md` โ†’ `routing: one ladder` records. It needs item 142, which defines the triggers. The comprehension seats found the judge's prompt, `bin/loop_claude/cycle/judge.py`'s `JUDGE_RULES`, hard to read; add the check so that it reads easier. + ### 112. Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome. `score-outcomes` counts every item a merge removed from `todo.md` as shipped. A merge that changed only the plan ships nothing, but one that built an item and also dropped another gives the dropped item the built one's outcome, as PR #253 did with item 69. Mark a dropped item in the change that drops it, such as by the commit or merge title, and leave it out. -- 2.52.0 From e57479c4a08041acf35da6df6fa26ed517816061 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 15:28:02 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=209=20=F0=9F=9F=A1;=20name=20who=20may=20not=20sc?= =?UTF-8?q?ore,=20word=20the=20changes=20as=20work=20to=20do,=20cite=20the?= =?UTF-8?q?=20hard=20places,=20define=20the=20starting=20rung=20and=20a=20?= =?UTF-8?q?seat's=20below-standard=20ruling,=20and=20move=20items=20142?= =?UTF-8?q?=E2=80=93144=20into=200.1.0=20after=20item=20141?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- todo.md | 72 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/todo.md b/todo.md index 5f488841..f510d677 100644 --- a/todo.md +++ b/todo.md @@ -22,17 +22,19 @@ ## Items +Release 0.1.0 takes item 141 first, whatever its score: item 142's first trigger needs its rule. + Release 0.2.0 takes items 125, 114 and 124 first, whatever their scores: Shape is the lowest dimension, per `docs/decisions.md` โ†’ `larv-review: a project lifting itself to the comprehension floor starts at the lowest dimension`. | ID | Release | Exempt | Item | R | S | C | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---|---| -| 141 | 0.1.0 | | **Score and reshape the plan only on the project's rung or above, and let a session below it only draft new items.** | 3 | 4 | 4 | 6 | 8 | 1.1 | 23.8 | +| 142 | 0.1.0 | | **Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the rung it started the chunk on without the human's yes.** | 4 | 5 | 6 | 7 | 8 | 1.1, 1.4 | 24.6 | +| 141 | 0.1.0 | | **Score and reshape the plan only on the project's rung or above, and let a worker or subagent below it only draft new items and remove finished ones.** | 3 | 4 | 4 | 6 | 8 | 1.1 | 23.8 | +| 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 let the worker escalate under item 142.** | 4 | 5 | 6 | 6 | 7 | 1.1 | 20.6 | | 90 | 0.1.0 | question | **Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the ๐Ÿ”ด and ๐ŸŸก findings on record.** | 4 | 5 | 8 | 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 | -| 142 | 0.2.0 | | **Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the chunk's starting rung.** | 4 | 5 | 6 | 7 | 8 | 1.1, 1.4 | 24.6 | -| 144 | 0.2.0 | | **Let a reviewer or comprehension seat that rules the work below standard rerun its pass one rung up, outside the round cap, and escalate the worker too.** | 4 | 5 | 6 | 6 | 7 | 1.1 | 20.6 | | 105 | 0.2.0 | decision | **Compare review rounds per pass and reading cost for the five chunks before and after the `worker:` decision moved the principles out of the worker's context, and file an item if either rose.** | 1 | 2 | 3 | 5 | 6 | 1.4 | 20.0 | -| 143 | 0.2.0 | | **Resume a worker one rung up in the next cycle when its run ends asking for it, citing an escalation trigger the judge finds in the transcript.** | 5 | 5 | 7 | 6 | 7 | 1.1, 1.4 | 19.6 | | 112 | 0.2.0 | | **Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome.** | 2 | 3 | 5 | 5 | 6 | 1.1 | 19.1 | | 110 | 0.2.0 | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed R.** | 2 | 4 | 6 | 5 | 6 | 1.1, 1.4 | 18.9 | | 120 | 0.2.0 | | **Rewrite larv-review ยง3's "Round cap" and "Re-entry" as one table that says, for each kind of fix, which passes rerun and what a round reviews.** | 2 | 4 | 5 | 5 | 6 | 1.1, 1.2 | 18.9 | @@ -89,9 +91,22 @@ Release 0.2.0 takes items 125, 114 and 124 first, whatever their scores: Shape i ## Details -### 141. Score and reshape the plan only on the project's rung or above, and let a session below it only draft new items. +### 142. Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the rung it started the chunk on without the human's yes. -The human set this rule on 2026-10-15. The project's rung is the cheapest rung of the model `loop-claude-models.json` pins, or of the session's own model outside loop-claude. Below that rung, a session may not: +The human asked for this on 2026-10-15. Four triggers mean a task is too hard for the worker's rung: + +1. A re-score of the item, made on the project's rung per item 141, picks a higher rung than the worker's. +2. The same failing test or finding survives two fix attempts. +3. A pass reports a ๐Ÿ”ด in round 2 or later, as the `Answer round :` commit titles show. +4. A reviewer or comprehension seat rules the work below standard, per item 144. + +When one fires, the worker hands the hard part to a subagent one rung above its own and cites the trigger in the subagent's prompt. Each later subagent on that task runs on the raised rung or higher. None runs more than two rungs above the rung the worker started the chunk on unless the human agrees. loop-claude archives each step with its trigger, and `routing-figures.md` counts them. + +This revises `docs/decisions.md` โ†’ `routing: one ladder`, where the worker routes each subagent by its task's R + C alone, and the delegation rule in `CLAUDE.md`. The comprehension seats found it hard to follow which model a subagent gets: `CLAUDE.md`'s delegation rule, `bin/loop_claude/cycle/prompts.py`'s `off_the_projects_rung` and `bin/model_routing/ladder.py`'s `Rung.agent_args` each hold part of it. Make it easier to read. + +### 141. Score and reshape the plan only on the project's rung or above, and let a worker or subagent below it only draft new items and remove finished ones. + +The human set this rule on 2026-10-15. The project's rung is the cheapest rung of the model `loop-claude-models.json` pins, or of the session's own model outside loop-claude. Below that rung, a worker or subagent may not: - score or re-score an item; - move an item between releases; @@ -101,15 +116,25 @@ The human set this rule on 2026-10-15. The project's rung is the cheapest rung o Removing a finished item's row is not planning, so any rung may do it. -A worker below the project's rung drafts each new item's tagline and detail. Before its next commit, one subagent on the project's rung files and scores the drafts together and sets their release. That costs one subagent per batch, not one per finding. A security finding gets that subagent at once, since it is filed the moment it is found. +A worker below the project's rung drafts each new item's tagline and detail. Before its next commit, one subagent on the project's rung files and scores the drafts together and sets their release. A security finding gets that subagent at once, since it is filed the moment it is found. -Write the rule in `rules/todo-items.md`, which loads with `todo.md`. In `CLAUDE.md`'s delegation rule, a scoring or planning subagent runs on the rung `subagent-rung` prints, raised to the project's rung where it prints a lower one. For a worker below the project's rung, loop-claude's prompt (`bin/loop_claude/cycle/prompts.py`) adds scoring and planning to the subagents it launches on that rung. Three places carry the rule, so record it in `docs/decisions.md`. +Write the rule in `rules/todo-items.md`, which loads with `todo.md`. Add to `CLAUDE.md`'s delegation rule: a scoring or planning subagent runs on the rung `subagent-rung` prints, or on the project's rung where that is higher. In `bin/loop_claude/cycle/prompts.py`'s `off_the_projects_rung`, add the scoring and planning subagent to those a worker below the project's rung launches on the project's rung. Three places carry the rule, so record it in `docs/decisions.md`. -### 90. Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the ๐Ÿ”ด and ๐ŸŸก findings on record. +The comprehension seats found it hard to follow which model a subagent gets: `CLAUDE.md`'s delegation rule, `off_the_projects_rung` and `bin/model_routing/ladder.py`'s `Rung.agent_args` each hold part of it. Make it easier to read. -larv-review passes the rung through the Agent tool's `model` and `effort`. A reviewer never steps down when the worker has stepped down on the same chunk, so a cheap worker always meets a reviewer on the project model or above. +### 144. Let a reviewer or comprehension seat that rules the work below standard rerun its review one rung up, outside the round cap, and let the worker escalate under item 142. -Question: drop this item, or say what it should route? Under `docs/decisions.md` โ†’ `routing:`, reviewers already run where this item would put them. Below the project's rung, the worker launches every reviewer on the project's rung. Above it, reviewers inherit the worker's rung, which the same R + C picks. The item would change only a chunk whose worker climbed past that rung, after two unfinished verdicts or on a taken-in item. None of the 3 routed chunks on record on 2026-10-15 did. +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 is trigger 4 of item 142. 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. + +### 143. 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. + +The human asked for this on 2026-10-15. A worker may end its run asking for a higher rung, citing a trigger of item 142. The judge looks for that trigger in the transcript. Where it finds it, the next cycle resumes the session one rung up; otherwise the rung holds. The worker never steps down within a chunk, and goes at most two rungs above the rung it started the chunk on unless the human agrees. + +This revises `docs/decisions.md` โ†’ `routing: one ladder`, where the worker steps up only after every second unfinished verdict or when the judge reports a taken-in item that picks a higher rung. This item adds a third way. It needs item 142, which defines the triggers. + +The comprehension seats found two places it touches hard to read. Word the new check so that `bin/loop_claude/cycle/judge.py`'s `JUDGE_RULES` gets easier to read. `bin/loop_claude/routing.py`'s `kept` and `stepped` use different floors, and `stepped` does two jobs; make them easier to read where the new step joins them. ### 136. Route a chunk on the item its worker says it takes, in place of the next release's first row. @@ -117,35 +142,10 @@ loop-claude routes on the first row of the next release, while the worker takes Once this lands, the judge follows the item the worker takes too, since `judge_rung` routes on the chunk's item. -### 142. Let a chunk's worker hand a task to a subagent one rung up when an escalation trigger fires, at most two rungs above the chunk's starting rung. - -The human asked for this on 2026-10-15. Four triggers mean a task is too hard for the worker's rung: - -1. A re-score of the item, made on the project's rung per item 141, picks a higher rung than the worker's. -2. The same failing test or finding survives two fix attempts. -3. A pass reports a ๐Ÿ”ด in round 2 or later, as the `Answer round :` commit titles show. -4. A reviewer or comprehension seat rules the work below standard, per item 144. - -When one fires, the worker hands the hard part to a subagent one rung above its own, and its prompt cites the trigger. The worker never steps down within a chunk. It goes at most two rungs above the chunk's starting rung without asking the human. loop-claude archives each step with its trigger, and `routing-figures.md` counts them. - -This revises `docs/decisions.md` โ†’ `routing: one ladder`, where the worker routes each subagent by its task's R + C alone, and the delegation rule in `CLAUDE.md`. - -### 144. Let a reviewer or comprehension seat that rules the work below standard rerun its pass one rung up, outside the round cap, and escalate the worker too. - -The human set this on 2026-10-15. A reviewer or comprehension seat rules the work below standard with an architect BLOCK or a breach of `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. The same ruling is trigger 4 of item 142, so the worker escalates too. The judge never escalates on request. - -This revises `docs/decisions.md` โ†’ `routing: one ladder`, which holds reviewers on the project's rung, and `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 it reads easier, or land it in item 120's table. - ### 105. Compare review rounds per pass and reading cost for the five chunks before and after the `worker:` decision moved the principles out of the worker's context, and file an item if either rose. The `worker:` decision is valid while review rounds per pass do not rise. Count the rounds from each PR's `Answer round :` commits, and take reading cost from `docs/reading-cost.md`. Run it once five chunks have merged after the one that recorded the decision. -### 143. Resume a worker one rung up in the next cycle when its run ends asking for it, citing an escalation trigger the judge finds in the transcript. - -The human asked for this on 2026-10-15. A worker may end its run asking for a stronger rung, citing a trigger of item 142. The judge looks for that trigger in the transcript. Where it finds it, the next cycle resumes the session one rung up; otherwise the rung holds. Item 142's limits apply: no step down within a chunk, and at most two rungs above the chunk's starting rung without asking the human. - -This adds a step to the one after two unfinished verdicts that `docs/decisions.md` โ†’ `routing: one ladder` records. It needs item 142, which defines the triggers. The comprehension seats found the judge's prompt, `bin/loop_claude/cycle/judge.py`'s `JUDGE_RULES`, hard to read; add the check so that it reads easier. - ### 112. Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome. `score-outcomes` counts every item a merge removed from `todo.md` as shipped. A merge that changed only the plan ships nothing, but one that built an item and also dropped another gives the dropped item the built one's outcome, as PR #253 did with item 69. Mark a dropped item in the change that drops it, such as by the commit or merge title, and leave it out. -- 2.52.0