Answer prose round 1: 1 🔴, 10 🟡 (0 misread); the --help sentence on the replay without CLAUDE.md, the decision's gate and tables, the report's wording, the changelog, the README line and item 341's text

This commit is contained in:
2026-11-12 14:57:40 +01:00
parent 59a8fe9f45
commit a4fc833b2b
8 changed files with 34 additions and 40 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
## Unreleased
- Five of the six reviewers start without `CLAUDE.md`: principles-auditor, stability-reviewer, prose-reviewer, product-owner-reviewer and systems-architect. `review-replay --omit-claude-md` replays each round three times unchanged and once without it, so a pass is held to the noise of an unchanged reviewer.
- larv-review skips stability round 2 where round 1 reported a 🔴 and every 🔴 and 🟡 asked only that a named mutant be killed or a named failing test pass, once the tests and the mutation command run clean on the fixes.
- `review-replay` now qualifies a rung whose share of a pass's archived findings is no more than 10 points below the mean of two replays on the project's rung, over at least 8 rounds, where it misses no 🔴 that both found. It used to demand every finding the project's rung found again, which the project's rung itself failed. It tries the project's model at each lower effort first, then the ladder below. Its run on the prose pass of Opus 5.5 projects qualified no rung: Opus 5.5 at low effort found 49% against a bar of 66%.
- loop-claude records beside each verdict, interrupt and quoted answer the claude-config release and commit that ran it, the tokens the worker, each subagent and the judge spent, by model and kind, with the list prices in force, and any typed answer of yours the judge quotes as reversing a choice the worker took on its own recommendation; `score-outcomes` counts those reversals per finished chunk.
@@ -14,7 +13,7 @@
- `bin/run-tests` runs this repo's test suite as README.md → Test says, prints each failing test with its error and pytest's summary line, and saves the whole log to a file whose path it prints.
- `command-patterns [<version>] --calls <file>` saves each Bash call of the release's chunks as a JSON line, with its chunk, pattern, seconds, sizes and text.
- `todo-item show <ID>` prints an item's table row and detail from `todo.md`.
- A reviewer under `agents/` can start without `CLAUDE.md`: `omitClaudeMd: true` in its frontmatter drops the file, a `SubagentStart` hook hands it the "Shared goal", "Prose" and "Vocabulary" sections, and `larv-review reviewer-header` names the project's principles file. `review-replay <pass> <model> --omit-claude-md` tests whether a pass's reviewer finds as much without it; principles-auditor is the first to pass.
- A reviewer under `agents/` can start without `CLAUDE.md`: `omitClaudeMd: true` in its frontmatter drops the file, a `SubagentStart` hook hands it the "Shared goal", "Prose" and "Vocabulary" sections, and `larv-review reviewer-header` names the project's principles file. `review-replay <pass> <model> --omit-claude-md` replays each round three times unchanged and once without `CLAUDE.md`, and a reviewer passes where it missed no more findings without the file than an unchanged replay missed. Five of the six reviewers pass and start without it: principles-auditor, stability-reviewer, prose-reviewer, product-owner-reviewer and systems-architect.
- Add `workflow-bench/advisor_bench.py`, a bench of the advisor tool on six archived L 1 and L 2 chunks. Sonnet 5.5 alone passed all six, as Opus 5.5 at medium did, for 41% less, and its advisor ran in one of six runs, so workers stay without it.
- loop-claude's judge on an Opus 5.5 project now runs on Opus 5.5 at xhigh in every chunk, never at medium: in replays medium sometimes closed a chunk whose worker had asked a question the README or records answer, where xhigh quoted the answer. The judge never runs on Fable 5.2 either, since each Fable 5.2 rung replayed missed an interrupt. `judge-replay` now also replays each rung above the project's that a review climbs to, and reports what each misses.
+1 -1
View File
@@ -110,7 +110,7 @@ Install puts only `loop-claude` and `loop-inbox` on `PATH`; call the others by t
- `mutate-changes [--base <ref>] [--prefix <shell text>] [--jobs <n>]` mutation-tests the lines a branch changes and prints each mutant its tests don't kill; `mutate-changes --help` says which tool it runs for each language.
- `rank_todo.py [--check] [todo.md]` scores and ranks a project's `todo.md`; `rank_todo.py --help` states the format.
- `reading-cost [--reset] [record]` appends a figure for each chunk `loop-claude` finished to a project's `docs/reading-cost.md`, and says whether the figures rise; `reading-cost --help` states the measure.
- `review-replay <pass> <model>` replays a review pass's archived rounds from the projects run on the model, on the code each reviewed, and prints the lowest rung below the project's that, like each rung above it, qualifies: it finds no less of the 🔴 and 🟡 findings than two replays on the project's rung find, within a margin, and misses no 🔴 that both found. The rungs tried start with the project's model at a lower effort. `review-replay --help` states the replay. With `--omit-claude-md` it tests instead whether the pass's reviewer may start without `CLAUDE.md`: it replays each round three times as archived and once without the instruction files, and prints how many findings each unchanged replay missed that the other two found, then each finding the last replay missed that the first two found. Each replayed reviewer skips every permission prompt, stability-reviewer has Bash, and an archived prompt may name paths on the host.
- `review-replay <pass> <model>` replays a review pass's archived rounds from the projects run on the model, on the code each reviewed, and prints the lowest rung below the project's that, like each rung above it, qualifies: it finds no less of the 🔴 and 🟡 findings than two replays on the project's rung find, within a margin, and misses no 🔴 that both found. The rungs tried start with the project's model at a lower effort. `review-replay --help` states the replay. With `--omit-claude-md` it tests instead whether the pass's reviewer may start without `CLAUDE.md`: it replays each round three times as archived and once without the instruction files, and prints whether the reviewer passes: whether the last replay missed no more findings than the most an unchanged replay missed, with each count and each finding it missed. Each replayed reviewer skips every permission prompt, stability-reviewer has Bash, and an archived prompt may name paths on the host.
- `rule-hook [overrides]` blocks a tool call that breaks a rule a program can check, unless the call overrides the rule; `settings.json` → `hooks` runs it before each Agent, Bash, Edit, MultiEdit, Read, Skill and Write call, and `rule-hook --help` states the rules and the override.
- `run-heavy <command>` runs a heavy command once it holds one of the machine's heavy slots, one per 4 CPUs, which every session shares; `run-heavy --help` states the slots, and the memory cap it gives a container that sets no limit.
- `run-tests [<pytest args>...]` runs this repo's test suite, as Test says.
+12 -17
View File
@@ -31,24 +31,19 @@ it missed, and the lowest rung that, like each rung above it, qualifies. That ru
for running the pass's reviewer on it; the decision above records each run.
With --omit-claude-md it tests instead whether the pass's reviewer may start without CLAUDE.md:
docs/decisions.md → `agents/: a reviewer starts without CLAUDE.md only where its replay missed no
more findings than the most an unchanged replay missed`. It replays every round four times on the
project's rung: three as archived, then once without the instruction files. The unchanged reviewer
does not find the same findings twice, so each unchanged replay is a control: the tool prints how
many findings it missed that the other two found. The replay without CLAUDE.md is held to the
findings the first two found, and passes where it missed no more than the most any unchanged replay
did. It prints how many findings each replay found, and each finding the last missed. A round that
any of the four replays failed on is left out, and where the first two share no finding the last
line says there is no evidence.
docs/decisions.md → `agents/: a reviewer starts without CLAUDE.md only where a replay of its pass
missed…`. It replays every round four times on the project's rung: three as archived, then once
without the instruction files. The unchanged reviewer does not find the same findings twice, so
each unchanged replay is a control: the tool prints how many findings it missed that both of the
other two found. The replay without CLAUDE.md is held to the findings both of the first two found,
and passes where it missed no more of them than the most any unchanged replay missed. It prints
how many findings each replay found, how many the replay without CLAUDE.md is held to, and each of
those it missed. A round that any of the four replays failed on is left out, and where the first
two share no finding the last line says there is no evidence.
Claude Code ignores an agent's `omitClaudeMd` where the agent runs the session, as it does in a
replay, and runs no SubagentStart hook there. So the third replay turns the instruction files off
in its settings and opens the prompt with what the hook hands a reviewer, and closes it with the
header's line on the project principles.
Like the loop, it tries claude three times running before it counts a reply as failed. A failed
review or match leaves its round out, except on a rung below the project's, where it finds
nothing. Exit 1, saying why, on bad arguments, an unreadable archive or models file, no archived
round to replay, or a usage limit.
replay, and runs no SubagentStart hook there. So the replay without CLAUDE.md turns the
instruction files off in its settings and opens the prompt with what the hook hands a reviewer, and
closes it with the header's line on the project principles.
"""
import dataclasses
import json
+2 -2
View File
@@ -127,8 +127,8 @@ def comparison(reviewed: str, reference: Rung, rounds: list[Round], with_it: tup
return "\n".join([
f"Replayed {len(rounds)} {reviewed} rounds of {reference.model} projects, which hold {sum(len(found_round.findings) for found_round in rounds)} 🔴 and 🟡 findings, four times on {reference}: three with CLAUDE.md, one without.",
*([f"Left out {left_out} more, which a replay failed on; stderr says why."] if left_out else []),
f"With CLAUDE.md the reviewer found {count(first)}, {count(second)} and {count(third)} of them. Each missed {control[0]}, {control[1]} and {control[2]} of the findings the other two found.",
*([f"Without CLAUDE.md it found {count(without)} of them, and missed {len(missed)} of the findings the first two found{':' if missed else '.'}"] if count(both) else [f"Without CLAUDE.md it found {count(without)} of them. No evidence: the first two replays with CLAUDE.md found none in common, so there is no finding to hold it to."]),
f"With CLAUDE.md the three replays found {count(first)}, {count(second)} and {count(third)} of them, and missed {control[0]}, {control[1]} and {control[2]} of the findings that both of the other two found.",
*([f"Without CLAUDE.md it found {count(without)} of them, and missed {len(missed)} of the {count(both)} findings that both of the first two found{':' if missed else '.'}"] if count(both) else [f"Without CLAUDE.md it found {count(without)} of them. No evidence: the first two replays with CLAUDE.md found none in common, so there is no finding to hold it to."]),
*(f" {found_round.root} {found_round.at}: {found_round.findings[index].splitlines()[0]}" for found_round, index in missed),
*([f"It {'passes' if passes else 'fails'}: {len(missed)} missed is {'no more' if passes else 'more'} than the most a replay with CLAUDE.md missed, {max(control)}."] if count(both) else []),
])
+4 -4
View File
@@ -255,8 +255,8 @@ class Main(unittest.TestCase):
self.assertEqual([prompt.startswith(context) for *_, prompt, _ in self.reviews], [False, False, False, True])
self.assertEqual(out, (
f"Replayed 1 stability rounds of claude-opus-5-5 projects, which hold 2 🔴 and 🟡 findings, four times on {REFERENCE}: three with CLAUDE.md, one without.\n"
"With CLAUDE.md the reviewer found 2, 1 and 2 of them. Each missed 0, 1 and 0 of the findings the other two found.\n"
"Without CLAUDE.md it found 1 of them, and missed 1 of the findings the first two found:\n"
"With CLAUDE.md the three replays found 2, 1 and 2 of them, and missed 0, 1 and 0 of the findings that both of the other two found.\n"
"Without CLAUDE.md it found 1 of them, and missed 1 of the 1 findings that both of the first two found:\n"
f" {self.checkout} 2026-10-14T10:00:00Z: 🔴 a.txt:1 wrong\n"
"It passes: 1 missed is no more than the most a replay with CLAUDE.md missed, 1.\n"
))
@@ -270,7 +270,7 @@ class Main(unittest.TestCase):
def test_without_claude_md_says_so_where_the_reviewer_missed_nothing(self):
code, out, err = self.run_main(["stability", "claude-opus-5-5", "--omit-claude-md"], lambda rung: {"found": [0]})
self.assertEqual((code, out.splitlines()[-2:]), (0, ["Without CLAUDE.md it found 1 of them, and missed 0 of the findings the first two found.", "It passes: 0 missed is no more than the most a replay with CLAUDE.md missed, 0."]))
self.assertEqual((code, out.splitlines()[-2:]), (0, ["Without CLAUDE.md it found 1 of them, and missed 0 of the 1 findings that both of the first two found.", "It passes: 0 missed is no more than the most a replay with CLAUDE.md missed, 0."]))
def test_without_claude_md_says_there_is_no_evidence_where_the_first_two_replays_share_no_finding(self):
finds = iter(([0], [1], [1], [1]))
@@ -290,7 +290,7 @@ class Main(unittest.TestCase):
self.assertEqual(out, (
f"Replayed 0 stability rounds of claude-opus-5-5 projects, which hold 0 🔴 and 🟡 findings, four times on {REFERENCE}: three with CLAUDE.md, one without.\n"
"Left out 1 more, which a replay failed on; stderr says why.\n"
"With CLAUDE.md the reviewer found 0, 0 and 0 of them. Each missed 0, 0 and 0 of the findings the other two found.\n"
"With CLAUDE.md the three replays found 0, 0 and 0 of them, and missed 0, 0 and 0 of the findings that both of the other two found.\n"
"Without CLAUDE.md it found 0 of them. No evidence: the first two replays with CLAUDE.md found none in common, so there is no finding to hold it to.\n"
))
self.assertIn(f" {self.checkout} 2026-10-14T10:00:00Z with the instruction files failed, so the round is left out: claude printed no json reply", err)
+1 -1
View File
@@ -1,4 +1,4 @@
"""What a reviewer under agents/ is handed in place of the instruction files: `omitClaudeMd` starts it without them, and most of `~/.claude/CLAUDE.md` is the worker's. docs/decisions.md → `agents/: a reviewer starts without CLAUDE.md only where a replay of its pass missed none…` says why, and which reviewers."""
"""What a reviewer under agents/ is handed in place of the instruction files: `omitClaudeMd` starts it without them, and most of `~/.claude/CLAUDE.md` is the worker's. docs/decisions.md → `agents/: a reviewer starts without CLAUDE.md only where a replay of its pass missed no more findings than the most an unchanged replay missed` says why, and which reviewers."""
import json
import pathlib
+12 -12
View File
@@ -540,35 +540,35 @@ Three choices in it:
- The header names the principles file and doesn't quote it, since the worker types the header into each reviewer's prompt.
- The frontmatter is the one switch. The hook and the header read it, so an agent that keeps `CLAUDE.md` is handed neither the sections nor the line.
The gate: `review-replay <pass> <model> --omit-claude-md` replays 10 archived rounds three times as archived and once without the instruction files. Each unchanged replay is a control: it misses some findings that the other two found, since an unchanged reviewer finds only about 70% of its own findings again. A pass's reviewer keeps `omitClaudeMd` only where the replay without the instruction files missed, of the findings the first two replays found, no more than the most any unchanged replay missed of the findings the other two found. Item 315 first held the replay to no miss at all; the table below shows five passes failing that, with the unchanged reviewers' own misses as large. A round that a replay fails on is left out of the comparison. Claude Code 2.1.322 ignores `omitClaudeMd` in a main session and fires no `SubagentStart` hook there, and a replay runs the reviewer as one. So the replay sets `CLAUDE_CODE_DISABLE_CLAUDE_MDS` and puts the hook's context and the header's line in the prompt itself.
The gate: `review-replay <pass> <model> --omit-claude-md` replays 10 archived rounds three times as archived and once without the instruction files. An unchanged reviewer finds only about 70% of its own findings again, at the median of the first table's replays, so each unchanged replay is a control: count the findings it missed that both of the other two found. The replay without the instruction files is held to the findings both of the first two replays found. A pass's reviewer keeps `omitClaudeMd` only where that replay missed no more of them than the highest of the three control counts. Item 315 first held the replay to no miss at all; the first table below shows four passes failing that, and the second shows unchanged replays missing as many. A round that a replay fails on is left out of the comparison. Claude Code 2.1.322 ignores `omitClaudeMd` in a main session and fires no `SubagentStart` hook there, and a replay runs the reviewer as one. So the replay sets `CLAUDE_CODE_DISABLE_CLAUDE_MDS` and puts the hook's context and the header's line in the prompt itself.
On 2026-11-12, first gate (two unchanged replays, no control):
On 2026-11-12, on claude-opus-5-5 at medium effort, first gate (two unchanged replays, no control):
| Pass | 🔴 and 🟡 archived | Found with `CLAUDE.md`, twice | Both times | Found without | Missed of those found both times |
|------|------|------|------|------|------|
| architecture | 54 | 32, 33 | 27 | 30 | 4 |
| overrides | no archived round | | | | |
| principles | 30 | 2, 9 | 2 | 3 | 0 |
| stability | 29 | 16, 13 | 11 | 18 | 1 |
| product-owner | 23 | 7, 4 | 4 | 8 | 1 |
| prose | 68 | 34, 36 | 24 | 39 | 1 |
| overrides | no archived round | | | | |
| stability | 29 | 16, 13 | 11 | 18 | 1 |
Only principles-auditor met the first gate. Its evidence is thin: two rounds of each replay failed, and two findings were found both times. Without `CLAUDE.md` each replayed reviewer found more findings than it found both times with it, and three of the five found more than in either replay with it. So the misses may be the reviewer's own noise, which the second gate measures.
On 2026-11-12, second gate, with the control (three unchanged replays, then one without), on claude-opus-5-5 at medium effort. Rounds a replay failed on are left out, so the counts differ from the first table's:
On 2026-11-12, second gate, with the control (three unchanged replays, then one without). Rounds a replay failed on are left out, so the counts differ from the first table's:
| Pass | Rounds kept of 10 | 🔴 and 🟡 archived | Found with `CLAUDE.md`, three replays | Each missed of what the other two found | Found without | Missed without, of what the first two found | Result |
| Pass | Rounds kept of 10 | 🔴 and 🟡 archived | Found with `CLAUDE.md`, three replays | Missed by each, of what the other two found | Found without | Missed without, of what the first two found | Result |
|------|------|------|------|------|------|------|------|
| stability | 6 | 16 | 6, 10, 8 | 3, 0, 2 | 6 | 2 | passes |
| principles | 8 | 19 | 4, 4, 2 | 1, 0, 1 | 4 | 0 | passes |
| prose | 9 | 54 | 39, 38, 41 | 4, 4, 0 | 40 | 3 | passes |
| product-owner | 8 | 21 | 7, 6, 11 | 1, 2, 0 | 7 | 1 | passes |
| architecture | 9 | 46 | 37, 29, 36 | 2, 8, 1 | 32 | 3 | passes |
| overrides | no archived round | | | | | | |
| principles | 8 | 19 | 4, 4, 2 | 1, 0, 1 | 4 | 0 | passes |
| product-owner | 8 | 21 | 7, 6, 11 | 1, 2, 0 | 7 | 1 | passes |
| prose | 9 | 54 | 39, 38, 41 | 4, 4, 0 | 40 | 3 | passes |
| stability | 6 | 16 | 6, 10, 8 | 3, 0, 2 | 6 | 2 | passes |
Every pass passes the second gate. The unchanged replays alone missed up to 8 findings the other two found, so the first gate's one miss in stability, prose and product-owner was noise. The second gate still rests on 6 to 9 rounds a pass, and one run each.
Every replayed pass passes the second gate. The unchanged replays alone missed up to 8 findings the other two found, so the first gate's one miss in stability, prose and product-owner is no more than an unchanged reviewer misses. The bar is the highest of the three controls. The third replay alone, which is held to the same findings as the replay without `CLAUDE.md`, missed 1 (architecture), 1 (principles), 0 (product-owner), 0 (prose) and 2 (stability); against it alone, architecture (3), product-owner (1) and prose (3) would fail.
2026-11-12, lilleman: every pass the second gate passed starts without `CLAUDE.md`, so principles-auditor, stability-reviewer, prose-reviewer, product-owner-reviewer and systems-architect have `omitClaudeMd`. override-reviewer keeps it: no archived round of its pass exists to replay. Rerun the gate for a pass whose reviewer starts to miss findings; each pass rests on 6 to 9 rounds and one run.
2026-11-12, lilleman: every pass the second gate passed starts without `CLAUDE.md`, so principles-auditor, stability-reviewer, prose-reviewer, product-owner-reviewer and systems-architect have `omitClaudeMd`. override-reviewer keeps `CLAUDE.md`: no archived round of its pass exists to replay. Rerun the gate for a pass whose reviewer starts to miss findings; each pass rests on 6 to 9 rounds and one run.
Valid while Claude Code honours `omitClaudeMd` for a subagent and passes `agent_type` to a `SubagentStart` hook.
+1 -1
View File
@@ -107,7 +107,7 @@ Raised by item 312's research round, 2026-11-12. Over the 53 chunks archived sin
loop-claude can hand it as it hands `CLAUDE_CODE_AUTO_COMPACT_WINDOW`, and subagents inherit it, the principles auditors included. The choice of 2026-10-27 that the principles audit reads the project whole holds as long as it pages through what it reads.
The replay: give `review-replay` a way to set the variable, then replay the archived prose, stability, product-owner and principles rounds at 5,000 tokens, beside two unchanged replays of the same rounds. Keeps quality where each pass finds every finding the two unchanged replays both find, or meets item 340's control where that has landed. Keep it only where the replays' Read characters also fall; item 311's stability replay can share the baseline runs.
The replay: give `review-replay` a way to set the variable, then replay the archived prose, stability, product-owner and principles rounds at 5,000 tokens, beside two unchanged replays of the same rounds. Keeps quality where each pass finds every finding the two unchanged replays both find, or misses no more than the most an unchanged replay misses, as `review-replay --omit-claude-md` counts it. Keep it only where the replays' Read characters also fall; item 311's stability replay can share the baseline runs.
### 310. Compact a waiting worker's session shortly before its prompt cache expires, only when the human has not answered an interrupt by then.