Answer architecture round 1: 0 🔴, 7 🟡; move the reports to a durable review folder under ~/.local/state, carry the yardstick, the named reviewer and the test status in each reply line, read an entry by Grep, name the folder once, print which rules take no override, and file items 185 and 186

This commit is contained in:
2026-10-18 00:20:13 +02:00
parent 9207566328
commit 8df46e3a85
11 changed files with 42 additions and 28 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ A comment is prose, not code. Passes run in this order: line-level polish on cod
Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone.
**Reports.** Name in each prompt to an agent under `~/.claude/agents/` the file its full report goes to: `/tmp/larv-review/<the worktree's folder name>/<pass>-round-<n>.md`, with the yardstick's name after the pass's for a principles-auditor, and `-rerun` before `.md` for a relaunch one rung up. It writes the report there and returns only its verdict and one line per finding. Read the report's entry for each 🔴 and 🟡 before you answer it. rule-hook refuses a reviewer's write anywhere else.
**Reports.** The chunk's review folder is `~/.local/state/larv-review/<the worktree's path relative to ~, or to / outside it>/`. Name in each prompt to an agent under `~/.claude/agents/` the file there that its full report goes to: `<pass>-round-<n>.md`, with the yardstick's name after the pass's for a principles-auditor, and `-rerun` before `.md` for a relaunch one rung up. It writes the report there and returns only its verdict and one line per finding. Before you answer a 🔴 or 🟡, read its entry: Grep the report for the finding's place, with the lines after it, rather than Read the whole report. rule-hook refuses a reviewer's write anywhere else.
`~/.claude/bin/larv-review` holds this section's mechanical rules: the round count, the paired ruling's base and vote count, the scoring run's trigger, and the history's format and latest places, and its count of how often seats agree. Run it in the chunk's worktree; `~/.claude/bin/larv-review --help` states each rule. On exit 1, repair what its message names and run it again; when you cannot, ask the user.
@@ -112,7 +112,7 @@ The comprehension check records how hard the project is to read, and blocks no m
- **Base.** The last measured commit, which `~/.claude/bin/larv-review ruling-base` prints.
- **Head.** The head holds `origin/<default branch>`, merged in at §4 step 1, so it differs from the default branch only by this branch's change.
- **Seats.** Mid A and the inherited architect. Write what they read and their replies into a votes file in your scratchpad, in the shape `~/.claude/bin/larv-review --help` shows, and run `~/.claude/bin/larv-review record-ruling <votes file>`. On `Split:`, launch the maintainability senior and Junior A together, add their lines, and run it again.
- **Seats.** Mid A and the inherited architect. Write what they read and their replies into a votes file in the chunk's review folder, in the shape `~/.claude/bin/larv-review --help` shows, and run `~/.claude/bin/larv-review record-ruling <votes file>`. On `Split:`, launch the maintainability senior and Junior A together, add their lines, and run it again.
**Scoring run**, when `~/.claude/bin/larv-review needs-scoring-run <the IDs of the items the chunk ships, if any>` prints `Scoring run due:`. Run `needs-scoring-run` before removing the chunk's items from `todo.md`.
@@ -163,7 +163,7 @@ Launch prose-reviewer with what the diff touched and every section this review c
1. Read the finished PR against the README goals: does anything in it work against one? It breaks a maintain goal → do not merge; redesign the change or drop its item. It works against an achieve goal → do not merge; ask the human, stating the conflict.
2. Run the comprehension check (§3) where it runs; it runs once. When `origin/<default branch>` moves after that, return to §4, and keep the ruling and scoring run already recorded.
3. Aligned, every pass done and everything green → **merge**. Follow the repo's merge method (`AGENTS.md`; ff-only where that is the convention). A repo withholds this in its `AGENTS.md` → leave the PR ready and unmerged, and say which line withheld it.
4. Merged → remove the chunk's items from `todo.md` per `~/.claude/CLAUDE.md` → "Working loop", and the chunk's folder under `/tmp/larv-review/`.
4. Merged → remove the chunk's items from `todo.md` per `~/.claude/CLAUDE.md` → "Working loop", and the chunk's review folder.
5. Stop. The next chunk gets a fresh session.
## 6. Wrap up
+3 -2
View File
@@ -16,10 +16,11 @@ A finding against a technical principle names it and the file under `~/.claude/p
## Report
Write your full report with the Write tool to the file your prompt names, under `/tmp/larv-review/`: the verdict, then every finding with its place, its evidence and its fix, as your agent file shapes them. Then return only:
Write your full report with the Write tool to the file your prompt names: the verdict, then every finding with its place, its evidence and its fix, as your agent file shapes them. Then return only:
- the verdict line
- one line per finding: its severity mark, its place, and what is wrong in one sentence, such as `🟡 bin/rank_todo.py:311 place: a cycle among blockers recurses forever`
- one line per finding: its severity mark, its place, what is wrong in one sentence, and the file it breaks where that is `standards/quality.md` or a file under `~/.claude/principles/`, or for a 🔀 the reviewer it names, such as `🟡 bin/rank_todo.py:311 place: a cycle among blockers recurses forever (technical-principles.md)`
- for stability-reviewer, whether the tests passed, and at which commit
- `Rerun one rung up`, where your report ends with it
- the report's path