From 07aa4b9f8314e51bfd7a4cfcecf68ba12010c7d5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 12 Nov 2026 05:51:12 +0100 Subject: [PATCH] Spell the replay's flag --omit-claude-md, as a panel of three readers picked --- README.md | 2 +- bin/review_replay/main.py | 14 +++++++------- bin/review_replay/test_review_replay.py | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f3524368..515d9268 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Install puts only `loop-claude` and `loop-inbox` on `PATH`; call the others by t - `mutate-changes [--base ] [--prefix ] [--jobs ]` 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 ` 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, finds every 🔴 and 🟡 the project's rung finds again; `review-replay --help` states the replay. With `--without-claude-md` it tests instead whether the pass's reviewer may start without `CLAUDE.md`: it replays each round twice as archived and once without the instruction files, and prints each finding the last replay missed that both of the others found. Each replayed reviewer skips every permission prompt, stability-reviewer has Bash, and an archived prompt may name paths on the host. +- `review-replay ` 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, finds every 🔴 and 🟡 the project's rung finds again; `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 twice as archived and once without the instruction files, and prints each finding the last replay missed that both of the others found. 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 ` 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. - `score-outcomes [L E I S]` shows what each finished item's chunk measured beside the scores the item was guessed at, to score a new item by, and code health's two counter-signals per chunk, misread findings and later fixes; `score-outcomes --help` states the report. diff --git a/bin/review_replay/main.py b/bin/review_replay/main.py index af9ca60f..03b44544 100644 --- a/bin/review_replay/main.py +++ b/bin/review_replay/main.py @@ -1,6 +1,6 @@ """Replay a review pass's archived rounds on the rungs below the project's, to find which rungs may run its reviewer: docs/decisions.md → `routing: a review pass runs below the project's rung only on a rung that a replay of its rounds shows finding every 🔴 and 🟡 the project's rung finds`. -usage: review-replay [--without-claude-md] +usage: review-replay [--omit-claude-md] is one of architecture, principles, overrides, stability, product-owner or prose. is a project model on the routing ladder, such as claude-opus-5-5. The tool replays the @@ -25,7 +25,7 @@ and counts a finding only where the report raises it as 🔴 or 🟡. The tool p rung missed and the lowest rung that, like each rung above it, missed none. That rung is the evidence for running the pass's reviewer on it; the decision above records each run. -With --without-claude-md it tests instead whether the pass's reviewer may start without CLAUDE.md: +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`. It replays every round three times on the project's rung: twice as archived, then once without the instruction files. The unchanged reviewer does not find the same findings twice, so the reviewer without CLAUDE.md is held @@ -63,10 +63,10 @@ from review_rules.review_folder import REPORTS, review_folder from review_rules.review_passes import ReviewedPass, REVIEWERS TOOL = "review-replay" -WITHOUT = "--without-claude-md" +OMIT = "--omit-claude-md" # Starts claude without its instruction files, as `omitClaudeMd` starts a subagent. NO_CLAUDE_MD = ["--settings", json.dumps({"env": {"CLAUDE_CODE_DISABLE_CLAUDE_MDS": "1"}})] -USAGE = f"{TOOL} [{WITHOUT}], one of {', '.join(REVIEWERS)} and a model on the routing ladder" +USAGE = f"{TOOL} [{OMIT}], one of {', '.join(REVIEWERS)} and a model on the routing ladder" LATEST = 10 MATCH_SCHEMA = {"type": "object", "properties": {"found": {"type": "array", "items": {"type": "integer"}}}, "required": ["found"], "additionalProperties": False} @@ -123,12 +123,12 @@ def compared(reviewed: str, project: Rung, chosen: list[Round], found_on: typing def pass_and_model(argv: list[str]) -> tuple[ReviewedPass, Rung, bool] | None: - """The pass, the project's rung of the model, and whether WITHOUT follows, as argv names them in ` [--without-claude-md]`; None for any other argv.""" - if argv[2:] not in ([], [WITHOUT]) or len(argv) < 2: + """The pass, the project's rung of the model, and whether OMIT follows, as argv names them in ` [--omit-claude-md]`; None for any other argv.""" + if argv[2:] not in ([], [OMIT]) or len(argv) < 2: return None reviewed = next((kind for kind in REVIEWERS if kind == argv[0]), None) project = project_rung(argv[1]) - return (reviewed, project, argv[2:] == [WITHOUT]) if reviewed and project else None + return (reviewed, project, argv[2:] == [OMIT]) if reviewed and project else None def codes_found(rounds: list[Round], effects: Effects) -> dict[Round, Code]: diff --git a/bin/review_replay/test_review_replay.py b/bin/review_replay/test_review_replay.py index fc31fb9b..5346c35e 100644 --- a/bin/review_replay/test_review_replay.py +++ b/bin/review_replay/test_review_replay.py @@ -262,7 +262,7 @@ class Main(unittest.TestCase): def test_without_claude_md_replays_each_round_twice_with_it_and_once_without_on_the_project_rung(self): finds = iter(([0, 1], [0], [1])) - code, out, err = self.run_main(["stability", "claude-opus-5-5", "--without-claude-md"], lambda rung: {"found": next(finds)}) + code, out, err = self.run_main(["stability", "claude-opus-5-5", "--omit-claude-md"], lambda rung: {"found": next(finds)}) self.assertEqual(code, 0, err) self.assertEqual([rung for rung, *_ in self.reviews], [REFERENCE] * 3) context = reviewer_context(self.home) @@ -275,7 +275,7 @@ class Main(unittest.TestCase): )) def test_without_claude_md_stops_at_a_usage_limit(self): - code, out, _ = self.run_main(["stability", "claude-opus-5-5", "--without-claude-md"], lambda rung: {"type": "result", "api_error_status": 429, "result": "You've hit your limit"}) + code, out, _ = self.run_main(["stability", "claude-opus-5-5", "--omit-claude-md"], lambda rung: {"type": "result", "api_error_status": 429, "result": "You've hit your limit"}) self.assertEqual((code, out), (1, "")) self.assertEqual(len(self.reviews), 1) @@ -470,7 +470,7 @@ class Main(unittest.TestCase): def test_prints_the_help(self): code, out, _ = self.run_main(["-h"], unused) - self.assertEqual((code, out.splitlines()[2]), (0, "usage: review-replay [--without-claude-md]")) + self.assertEqual((code, out.splitlines()[2]), (0, "usage: review-replay [--omit-claude-md]")) self.assertIn(f"{', '.join(list(REVIEWERS)[:-1])} or {list(REVIEWERS)[-1]}.", " ".join(out.split())) def test_the_launcher_prints_the_help(self):