Plan a hook check that keeps reviewers, seats and the security pass at or above the project's rung #290

Merged
lilleman merged 1 commits from plan-163 into main 2026-10-16 05:12:08 +02:00
+8 -1
View File
@@ -6,13 +6,14 @@
`Bar = 0.1`
`Next ID = 163`
`Next ID = 164`
## Items
| ID | Release | Blocked by | Exempt | Item | R | S | C | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|
| 160 | 0.2.0 | | question | **Decide whether the principles audit runs on every chunk or only with the architecture pass, then make larv-review and its decisions say so.** | 2 | 2 | 2 | 1.1 by 4, 1.4 by 4 | 10.9 |
| 163 | 0.2.0 | | | **Have `rule-hook` block an Agent call that launches a reviewer, a comprehension seat or the security pass's subagent below the rung loop-claude names for them, so a worker below the project's rung cannot hand a review to its own cheaper model.** | 2 | 3 | 3 | 1.1 by 5 | 6.8 |
| 146 | 0.2.0 | | decision | **Score R as L + E + I − 2 from anchored levels, at least 7 at I5 and 5 at I4, with L, E and I in their own columns and `rank_todo.py` computing R, drop C, and route a task's model and effort on its R alone.** | 6 | 7 | 7 | 1.1 by 8, 1.2 by 8, 1.4 by 8 | 2.8 |
| 152 | 0.2.0 | 146 | decision | **Anchor each score level in `rules/todo-items.md` with words, and each project's with two or three items it shipped, and have a scorer compare a new item against them.** | 2 | 4 | 3 | 1.1 by 7 | 6.4 |
| 50 | 0.2.0 | | principle | **Grant the bench's runs only the tools a review needs, in place of skipping every permission.** | 2 | 2 | 3 | 1.1 by 3 | 5.5 |
@@ -83,6 +84,12 @@
`skills/larv-review/SKILL.md` §3 runs the principles audit only inside the architecture pass, which fires on an architectural decision, and the Audit bullets in §3 say the same. `docs/decisions.md`'s entry titled "review: a project decision may opt every chunk out of the architect, the product-owner pass or the comprehension check" says the audit judges every chunk, and so does CHANGELOG 0.1.0: "The principles audit always runs." Running the audit on every chunk adds a principles-auditor for the README's goals and one per principle file that applies, even to a chunk that changes no structure (goal 1.4). Running it only with the architect leaves a principle breach in a plain change unjudged (goal 1.1). The human picks one. Then whichever of `skills/larv-review/SKILL.md` §3 and that decision disagrees changes to match. If the audit stops running on every chunk, a bullet under `## Unreleased` corrects CHANGELOG 0.1.0's line.
### 163. Have `rule-hook` block an Agent call that launches a reviewer, a comprehension seat or the security pass's subagent below the rung loop-claude names for them, so a worker below the project's rung cannot hand a review to its own cheaper model.
`docs/decisions.md` → `routing: a chunk's worker runs on the rung its item picks…` keeps every reviewer, comprehension seat and the security pass's subagent at or above the project's rung. Only loop-claude's prompt holds that today. No agent under `agents/` sets `model:`, so an Agent call that names no model runs on the caller's: a Haiku worker that leaves out `model` once gets a Haiku review, and nothing reports it. On 2026-10-16, item 67's chunk passed `model=opus, effort=medium` on every such call, so no review has run low yet.
The hook sees only the tool call and its working directory, so loop-claude must hand it the project's rung and the worker's, such as in environment variables on the worker's `claude`. The hook then refuses an Agent call of a reviewer type in larv-review §3's table, or a seat or security launch, whose model and effort fall below the project's rung, counting a call that names no model as the worker's rung, and names the arguments to pass. A rerun one rung up, per `review: a reviewer or comprehension seat that rules the work below standard…`, passes, since it is higher. A subagent that is not a reviewer keeps routing by its own R + C.
### 146. Score R as L + E + I − 2 from anchored levels, at least 7 at I5 and 5 at I4, with L, E and I in their own columns and `rank_todo.py` computing R, drop C, and route a task's model and effort on its R alone.
Each level is about ×10 of a real quantity; `docs/decisions.md` → `todo.md: …` says why. The anchors, for `rules/todo-items.md`: