From 2558a6ad7e3bd23b59471354a8e73a76f2e9db94 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:35:06 +0200 Subject: [PATCH 01/10] Record the last chunk's reading cost --- docs/reading-cost.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index ce7d8f41..2fe1084a 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -855,3 +855,11 @@ Read most (opens and searches): Read most (opens and searches): - `skills/larv-review/SKILL.md` 2 + +## Reading cost, chunk 68b123f977ca, finished 2026-10-23T12:33:45Z + +169569 new input tokens before the first commit. + +Read most (opens and searches): + +- `rules/decisions.md` 1 From 578de9231ff4fcf487d788112aac9fa3a59b0fb9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:35:06 +0200 Subject: [PATCH 02/10] Move the run-heavy rule's command parsing into its own module and pick docker's position without a nested conditional --- bin/rule_hook/heavy_command.py | 53 ++++++++++++++++++++++++++++++++++ bin/rule_hook/rules.py | 51 +------------------------------- todo.md | 5 ---- 3 files changed, 54 insertions(+), 55 deletions(-) create mode 100644 bin/rule_hook/heavy_command.py diff --git a/bin/rule_hook/heavy_command.py b/bin/rule_hook/heavy_command.py new file mode 100644 index 00000000..87951195 --- /dev/null +++ b/bin/rule_hook/heavy_command.py @@ -0,0 +1,53 @@ +"""Whether a simple command is a heavy one, for the `run-heavy` rule: a docker build, or a run of a mutation tool.""" +import posixpath +import re + +# Launchers that run the tool named later in their words, such as uvx --with pytest mutmut run. +LAUNCHERS = frozenset({"bunx", "env", "nice", "npx", "pipx", "pnpm", "time", "uvx", "yarn"}) +# Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; with no words, every call is one. +MUTATORS = {"cargo": {"mutants"}, "infection": set(), "mutmut": {"run"}, "stryker": {"run"}} +# Flags with which a tool only prints its help, version or list, so a call that carries one is light. Not -h, which docker run reads as the container's hostname. +LIGHT_FLAGS = frozenset({"--help", "--list", "--version"}) +# The options of docker and docker compose that take a value, so the value is not read as a subcommand. +DOCKER_VALUED = frozenset({"--ansi", "--config", "--context", "--env-file", "--file", "--host", "--log-level", "--parallel", "--profile", "--progress", "--project-directory", "--project-name", "-c", "-f", "-H", "-l", "-p"}) + + +def tool_name(word: str) -> str: + """The tool a word names, such as mutmut for `mutmut>=3,<4` or `.venv/bin/mutmut`; empty for a word that names none, such as a file name.""" + named = re.fullmatch(r"([A-Za-z_-]+)(?:[<>=!~@].*)?", posixpath.basename(word)) + return named.group(1) if named else "" + + +def heavy(words: list[str]) -> bool: + """Whether the simple command runs a docker build, or a mutation run directly, through a launcher or in a container, outside run-heavy.""" + names = [tool_name(word) for word in words] + if not names or "run-heavy" in names or LIGHT_FLAGS & set(words): + return False + # Past a launcher, the tool may follow the launcher's own options and assignments, as in nice -n 19 docker build or uvx --with pytest mutmut run; without one, the command itself is the tool. + launched = names[0] in LAUNCHERS + reachable = names if launched else names[:1] + docker = reachable.index("docker") if "docker" in reachable else None + if docker is not None: + subcommand = docker_subcommand(words[docker + 1:]) + return subcommand in (["build"], ["buildx", "build"], ["compose", "build"]) or (subcommand[-1:] in (["run"], ["exec"]) and mutation_run(names[docker + 1:])) + return (launched or names[0] in MUTATORS) and mutation_run(names) + + +def mutation_run(names: list[str]) -> bool: + return any(name in MUTATORS and (not MUTATORS[name] or MUTATORS[name] & set(names[i + 1:i + 3])) for i, name in enumerate(names)) + + +def docker_subcommand(words: list[str]) -> list[str]: + """The subcommand docker's words name, past its options: such as ["build"], ["compose", "run"] or ["buildx", "build"].""" + positional: list[str] = [] + skip = False + for word in words: + if skip: + skip = False + elif word.startswith("-"): + skip = word in DOCKER_VALUED + else: + positional.append(word) + if positional[0] not in ("buildx", "compose") or len(positional) == 2: + break + return positional diff --git a/bin/rule_hook/rules.py b/bin/rule_hook/rules.py index 6cd9d81c..971754c0 100644 --- a/bin/rule_hook/rules.py +++ b/bin/rule_hook/rules.py @@ -6,6 +6,7 @@ import typing from round_titles import CAP, lacks_counts, past_cap from git_command import commits from review_folder import REPORTS +from rule_hook.heavy_command import heavy from shell_command import Simple RuleName = typing.Literal["action-pin", "commit-one-line", "ignorefile-sorted", "image-pin", "no-ai-attribution", "reviewer-report", "reviewer-rung", "round-cap", "round-title-counts", "run-heavy", "todo-rank-check"] @@ -100,56 +101,6 @@ class Checked: overridden: list[tuple[Breach, str]] -# Launchers that run the tool named later in their words, such as uvx --with pytest mutmut run. -LAUNCHERS = frozenset({"bunx", "env", "nice", "npx", "pipx", "pnpm", "time", "uvx", "yarn"}) -# Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; with no words, every call is one. -MUTATORS = {"cargo": {"mutants"}, "infection": set(), "mutmut": {"run"}, "stryker": {"run"}} -# Flags with which a tool only prints its help, version or list, so a call that carries one is light. Not -h, which docker run reads as the container's hostname. -LIGHT_FLAGS = frozenset({"--help", "--list", "--version"}) -# The options of docker and docker compose that take a value, so the value is not read as a subcommand. -DOCKER_VALUED = frozenset({"--ansi", "--config", "--context", "--env-file", "--file", "--host", "--log-level", "--parallel", "--profile", "--progress", "--project-directory", "--project-name", "-c", "-f", "-H", "-l", "-p"}) - - -def tool_name(word: str) -> str: - """The tool a word names, such as mutmut for `mutmut>=3,<4` or `.venv/bin/mutmut`; empty for a word that names none, such as a file name.""" - named = re.fullmatch(r"([A-Za-z_-]+)(?:[<>=!~@].*)?", posixpath.basename(word)) - return named.group(1) if named else "" - - -def heavy(words: list[str]) -> bool: - """Whether the simple command runs a docker build, or a mutation run directly, through a launcher or in a container, outside run-heavy.""" - names = [tool_name(word) for word in words] - if not names or "run-heavy" in names or LIGHT_FLAGS & set(words): - return False - # Past a launcher, the tool may follow the launcher's own options and assignments, as in nice -n 19 docker build or uvx --with pytest mutmut run; without one, the command itself is the tool. - launched = names[0] in LAUNCHERS - docker = next((i for i, name in enumerate(names) if name == "docker"), None) if launched else (0 if names[0] == "docker" else None) - if docker is not None: - subcommand = docker_subcommand(words[docker + 1:]) - return subcommand in (["build"], ["buildx", "build"], ["compose", "build"]) or (subcommand[-1:] in (["run"], ["exec"]) and mutation_run(names[docker + 1:])) - return (launched or names[0] in MUTATORS) and mutation_run(names) - - -def mutation_run(names: list[str]) -> bool: - return any(name in MUTATORS and (not MUTATORS[name] or MUTATORS[name] & set(names[i + 1:i + 3])) for i, name in enumerate(names)) - - -def docker_subcommand(words: list[str]) -> list[str]: - """The subcommand docker's words name, past its options: such as ["build"], ["compose", "run"] or ["buildx", "build"].""" - positional: list[str] = [] - skip = False - for word in words: - if skip: - skip = False - elif word.startswith("-"): - skip = word in DOCKER_VALUED - else: - positional.append(word) - if positional[0] not in ("buildx", "compose") or len(positional) == 2: - break - return positional - - def overrides(written: str) -> tuple[dict[str, str], list[str]]: """The rules the text overrides with their reasons, and the markers that name no rule or give no reason; a marker for a rule that takes no override is neither.""" given = [(rule, reason.strip().removesuffix("-->").strip()) for rule, reason in OVERRIDE.findall(written)] diff --git a/todo.md b/todo.md index 7b2d06f5..6472e725 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 223 | 0.4.0 | | | **Move the `run-heavy` rule's command parsing out of `bin/rule_hook/rules.py` into a module of its own, as `reviewer_rung.py` holds its rule, and pick docker's position in `heavy` without a nested conditional.** | 2 | 1 | 2 | 3 | 2 | code health by 2 | 12.0 | | 59 | 0.4.0 | | | **Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.** | 2 | 1 | 3 | 4 | 3 | 1.4 by 6 | 6.0 | | 167 | 0.4.0 | | | **Refuse a `/security-review` or `/claude-security` Skill call below the project's rung, as rule-hook refuses such an Agent call.** | 3 | 2 | 3 | 6 | 2 | 1.1 by 4 | 5.6 | | 6 | 0.4.0 | | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 3 | 3 | 3 | 7 | 3 | 1.1 by 5 | 5.3 | @@ -70,10 +69,6 @@ ## Details -### 223. Move the `run-heavy` rule's command parsing out of `bin/rule_hook/rules.py` into a module of its own, as `reviewer_rung.py` holds its rule, and pick docker's position in `heavy` without a nested conditional. - -PR #366's paired ruling, at e05c54a against 4a0ba59, had Mid A and the inherited architect both rule Shape worse at `bin/rule_hook/rules.py:103` `heavy`. About 50 lines of command-word parsing (`LAUNCHERS`, `MUTATORS`, `DOCKER_VALUED`, `LIGHT_FLAGS`, `tool_name`, `heavy`, `mutation_run`, `docker_subcommand`) joined the module that holds the rule table, while the other non-trivial rules each have a sibling module. Both also named line 126, where a conditional nested in another picks docker's index. Make that place easier to read. - ### 59. Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end. Raised by the product-owner review of PR #211. The resumed worker gets the judge's quote of the work remaining, but a worker that still thinks the chunk done can answer each cycle the same way, and each cycle costs a worker and a judge run (goal 1.4). From ff3babef74b77356345c325ea09922830667be82 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:36:16 +0200 Subject: [PATCH 03/10] =?UTF-8?q?Answer=20architecture=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 6ea148bdf422c6385525a95d370a85b63c4f5ea6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:45:45 +0200 Subject: [PATCH 04/10] =?UTF-8?q?Answer=20principles=20round=201:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20sort=20the?= =?UTF-8?q?=20heavy=5Fcommand=20import=20before=20review=5Ffolder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/rule_hook/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rule_hook/rules.py b/bin/rule_hook/rules.py index 971754c0..178d00f4 100644 --- a/bin/rule_hook/rules.py +++ b/bin/rule_hook/rules.py @@ -5,8 +5,8 @@ import typing from round_titles import CAP, lacks_counts, past_cap from git_command import commits -from review_folder import REPORTS from rule_hook.heavy_command import heavy +from review_folder import REPORTS from shell_command import Simple RuleName = typing.Literal["action-pin", "commit-one-line", "ignorefile-sorted", "image-pin", "no-ai-attribution", "reviewer-report", "reviewer-rung", "round-cap", "round-title-counts", "run-heavy", "todo-rank-check"] From f94f23a3d7ae30c487a4e776d3c13552cb50f9d8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:45:45 +0200 Subject: [PATCH 05/10] =?UTF-8?q?Answer=20stability=20round=201:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20the=20impor?= =?UTF-8?q?t=20sort=20of=20the=20principles=20round=20answers=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From fc38e8059103247ef797d313330a99f8709974e7 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:45:45 +0200 Subject: [PATCH 06/10] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From bd00eee3ca0a8066f8e46d577fa3686c2c1c7ab0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:45:45 +0200 Subject: [PATCH 07/10] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20reword=20tw?= =?UTF-8?q?o=20comments,=20rename=20docker=5Fat,=20file=20the=20DOCKER=5FV?= =?UTF-8?q?ALUED=20gap=20as=20item=20225?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/rule_hook/heavy_command.py | 12 ++++++------ todo.md | 12 +++++++++++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/bin/rule_hook/heavy_command.py b/bin/rule_hook/heavy_command.py index 87951195..635e7c26 100644 --- a/bin/rule_hook/heavy_command.py +++ b/bin/rule_hook/heavy_command.py @@ -4,7 +4,7 @@ import re # Launchers that run the tool named later in their words, such as uvx --with pytest mutmut run. LAUNCHERS = frozenset({"bunx", "env", "nice", "npx", "pipx", "pnpm", "time", "uvx", "yarn"}) -# Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; with no words, every call is one. +# Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; where the set is empty, every call is one. MUTATORS = {"cargo": {"mutants"}, "infection": set(), "mutmut": {"run"}, "stryker": {"run"}} # Flags with which a tool only prints its help, version or list, so a call that carries one is light. Not -h, which docker run reads as the container's hostname. LIGHT_FLAGS = frozenset({"--help", "--list", "--version"}) @@ -19,17 +19,17 @@ def tool_name(word: str) -> str: def heavy(words: list[str]) -> bool: - """Whether the simple command runs a docker build, or a mutation run directly, through a launcher or in a container, outside run-heavy.""" + """Whether the simple command, run directly or through a launcher, is a docker build or a mutation run, or runs one in a container, and is not under run-heavy.""" names = [tool_name(word) for word in words] if not names or "run-heavy" in names or LIGHT_FLAGS & set(words): return False # Past a launcher, the tool may follow the launcher's own options and assignments, as in nice -n 19 docker build or uvx --with pytest mutmut run; without one, the command itself is the tool. launched = names[0] in LAUNCHERS reachable = names if launched else names[:1] - docker = reachable.index("docker") if "docker" in reachable else None - if docker is not None: - subcommand = docker_subcommand(words[docker + 1:]) - return subcommand in (["build"], ["buildx", "build"], ["compose", "build"]) or (subcommand[-1:] in (["run"], ["exec"]) and mutation_run(names[docker + 1:])) + docker_at = reachable.index("docker") if "docker" in reachable else None + if docker_at is not None: + subcommand = docker_subcommand(words[docker_at + 1:]) + return subcommand in (["build"], ["buildx", "build"], ["compose", "build"]) or (subcommand[-1:] in (["run"], ["exec"]) and mutation_run(names[docker_at + 1:])) return (launched or names[0] in MUTATORS) and mutation_run(names) diff --git a/todo.md b/todo.md index 6472e725..c5133e4c 100644 --- a/todo.md +++ b/todo.md @@ -6,15 +6,17 @@ `Bar = 0.1` -`Next ID = 225` +`Next ID = 227` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| +| 226 | 0.4.0 | | question | **Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 2, 1.5 by 2 | 4.0 | | 59 | 0.4.0 | | | **Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.** | 2 | 1 | 3 | 4 | 3 | 1.4 by 6 | 6.0 | | 167 | 0.4.0 | | | **Refuse a `/security-review` or `/claude-security` Skill call below the project's rung, as rule-hook refuses such an Agent call.** | 3 | 2 | 3 | 6 | 2 | 1.1 by 4 | 5.6 | | 6 | 0.4.0 | | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 3 | 3 | 3 | 7 | 3 | 1.1 by 5 | 5.3 | +| 225 | 0.4.0 | | | **Add the value-taking options of docker that `DOCKER_VALUED` lacks, so rule-hook's `run-heavy` rule reads their value as a value and not as the subcommand.** | 1 | 1 | 3 | 3 | 2 | 1.5 by 2 | 2.6 | | 1 | 0.5.0 | | question | **Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 1 | 2 | 1 | 2 | 1 | | 0.0 | | 219 | 0.5.0 | | | **Name the project's rung `project` in `bin/judge_replay/main.py`, `bin/subagent_rung/main.py` and `bin/review_replay/main.py`, in place of `anchor`, as `bin/model_routing/ladder.py` and `bin/loop_claude` name it.** | 1 | 1 | 3 | 3 | 2 | code health by 2 | 12.0 | | 224 | 0.5.0 | | | **Split `docs/decisions.md` → `todo.md: one table of items, …`'s 420-word scoring paragraph into one paragraph per choice, and drop the sentences that tell how the goal weights changed.** | 1 | 1 | 1 | 1 | 2 | code health by 2 | 12.0 | @@ -69,6 +71,10 @@ ## Details +### 226. Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording. + +Found by review of PR #370. Today `uv run mutmut run`, `poetry run mutmut run`, `python3 -m mutmut run`, `sudo docker build .`, `docker image build .` and `docker compose up --build` pass the rule, which `docs/decisions.md` → `machine load: …` and `RULES["run-heavy"]` describe as blocking docker builds and mutation runs. The rule's own text says a gate script isn't checked since no program can tell it from a light one, so the human decides where the line sits. Say what the rule's "checked" text promises either way. Where the answer widens the rule, the change touches `heavy` in `bin/rule_hook/heavy_command.py`, which the comprehension seats found hard: make it easier to read. + ### 59. Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end. Raised by the product-owner review of PR #211. The resumed worker gets the judge's quote of the work remaining, but a worker that still thinks the chunk done can answer each cycle the same way, and each cycle costs a worker and a judge run (goal 1.4). @@ -81,6 +87,10 @@ rule-hook checks Agent calls (item 163) but no Skill calls. A worker that invoke Claude Code owns that file and writes it. `trust` reads it, changes it and writes it back, so a write that lands in between is lost. +### 225. Add the value-taking options of docker that `DOCKER_VALUED` lacks, so rule-hook's `run-heavy` rule reads their value as a value and not as the subcommand. + +Found by review of PR #370, against code that moved unchanged into `bin/rule_hook/heavy_command.py`. `DOCKER_VALUED` there lacks `--tlscacert`, `--tlscert` and `--tlskey`, so `docker --tlscacert ca.pem build .` is not blocked outside run-heavy, although `RULES["run-heavy"]` in `bin/rule_hook/rules.py` says a docker build is. It also lacks buildx's `--builder`, so `docker buildx --builder x build` gets through. Test first in `bin/rule_hook/test_rule_hook.py`. Also no test checks the "within two words" limit of `mutation_run`: a mutant that widens it survives mutmut; add one. + ### 1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. From c70dda6bd93e4d311f279591f988683d4dd21922 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:46:30 +0200 Subject: [PATCH 08/10] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 686c1dc7a4408a91e5b77bd2f375345f9be86351 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:46:30 +0200 Subject: [PATCH 09/10] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 2249655796b15846ea58bbe910eb2e87e0894cef Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 23 Oct 2026 14:49:23 +0200 Subject: [PATCH 10/10] Record the comprehension check: PR #370 ruled better --- docs/comprehension-history.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 601da667..69942d9e 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -2666,3 +2666,24 @@ Inherited architect, decided by: - Shape: `bin/rule_hook/rules.py:103` `heavy`: argv parsing for docker and mutation tools joins the rule registry, breaking the pattern of a sibling module per non-trivial rule, and rules.py now mixes registry, file checks and a shell parser - Shape: `bin/rule_hook/rules.py:126` `heavy`: a conditional nested in another decides where docker sits in the words, which a 3am reader unpicks by hand + +## 2026-10-23T12:49:21Z, PR #370 at 686c1dc, against 64d4386 + +Ruling: better + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | better | better | better | same | better | +| Inherited architect | better | better | better | same | better | + +Mid A, decided by: + +- Navigation, Locality: `bin/rule_hook/heavy_command.py:1` `heavy_command`: the file name and docstring lead a cold reader to the code that decides the run-heavy rule, which sat in the middle of `rules.py:103-150` before +- Shape: `bin/rule_hook/rules.py:8` `rules`: the file drops from 256 to 207 lines and reaches the heavy-command logic through one import +- Shape, Locality: `bin/rule_hook/heavy_command.py:28` `heavy`: docker's position is two named steps, `reachable` and `docker_at`, where a nested conditional stood at `rules.py:126` + +Inherited architect, decided by: + +- Navigation, Shape: `bin/rule_hook/heavy_command.py:1` `heavy_command`: a file name in the `rule_hook/` listing points straight at the unit, which the base buried in the 256-line `rules.py:103-150` +- Locality: `bin/rule_hook/heavy_command.py:27` `heavy`: the rule "past a launcher docker can come anywhere, otherwise only first" reads from two plain lines, where the base held a nested conditional +- Locality, Shape: `bin/rule_hook/heavy_command.py:5` `LAUNCHERS`: the tables sit beside their only consumer, so extending them needs no search for other readers