Start each reviewer without CLAUDE.md, hand it the prose rules, vocabulary and principles file, and replay a pass without it

This commit is contained in:
2026-11-12 05:48:19 +01:00
parent 348abfec59
commit 4c971a7cc4
15 changed files with 315 additions and 21 deletions
+17
View File
@@ -116,3 +116,20 @@ def report(reviewed: str, model: str, reference: Rung, rounds: list[Round], repl
lowest = replay.lowest or "none below the project's rung"
lines.append(f"Lowest rung that finds every finding the reference reviewer finds: {lowest}")
return "\n".join(lines)
def comparison(reviewed: str, reference: Rung, rounds: list[Round], with_it: tuple[list[set[int]], list[set[int]]], without: list[set[int]]) -> str:
"""What the two replays with CLAUDE.md and the one without found in rounds, and each finding the one without missed that both of the others found."""
first, second = with_it
both = [one & other for one, other in zip(first, second)]
missed = [(found_round, index) for found_round, held, found in zip(rounds, both, without) for index in sorted(held - found)]
def count(run: list[set[int]]) -> int:
return sum(len(found) for found in run)
return "\n".join([
f"Replayed {len(rounds)} {reviewed} rounds of {reference.model} projects three times on {reference}, holding {sum(len(found_round.findings) for found_round in rounds)} 🔴 and 🟡 findings.",
f"With CLAUDE.md the reviewer found {count(first)} and then {count(second)} of them, and {count(both)} both times.",
f"Without CLAUDE.md it found {count(without)} of them, and missed {len(missed)} that it found both times with it{':' if missed else '.'}",
*(f" {found_round.root} {found_round.at}: {found_round.findings[index].splitlines()[0]}" for found_round, index in missed),
])