From 2fefab6b2e9cc61f8191ab8a3666abf9c46ed218 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:43:26 +0200 Subject: [PATCH 1/8] Read the status line's branch through git_repo.git, and state the comprehension-floor rule as it holds --- CHANGELOG.md | 1 + bin/statusline.py | 11 +++++------ bin/test_statusline.py | 8 +++++--- docs/decisions.md | 4 ++-- todo.md | 10 ---------- 5 files changed, 13 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e2212e1..1fda0e39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- The status line now reads the branch through the same git runner as the other tools. A branch whose name is not UTF-8 shows no branch, in place of a name with replacement characters. - A new technical principle, "About seven things per level", sets soft limits on what a reader takes in at once: the parameters and branches of a function, the methods of a class, the files and folders in a folder, the sections of a document and the components of a system. Aim for four or five of the things that act on each other, such as parameters. Things found by name, such as files named by locale, may run far past seven. Crossing a limit asks you to group the things or record why they stay. The systems-architect reviewer now reads its limits from this principle. It rates a unit that crosses a limit with no recorded reason a 🟑, where it used to be a πŸ”΄, and no longer asks for the limits as merge-gate rules. - The comprehension panel's base worktree and a build probe's output now go in a folder under the chunk's review folder in `~/.local/state/larv-review/`. Both used to go in a session scratchpad, which loop-claude's headless sessions don't have. diff --git a/bin/statusline.py b/bin/statusline.py index ba20be4b..104af09a 100755 --- a/bin/statusline.py +++ b/bin/statusline.py @@ -4,9 +4,11 @@ import datetime import json import math import os -import subprocess import sys +from failure import Failure +import git_repo + CYAN = "\033[36m" DIM = "\033[2m" GREEN = "\033[32m" @@ -141,11 +143,8 @@ def render(status: Status, branch: str, home: str, now: datetime.datetime) -> st def current_branch(where: str) -> str: if not where: return "" - try: - found = subprocess.run(["git", "-C", where, "branch", "--show-current"], errors="replace", stderr=subprocess.DEVNULL, stdout=subprocess.PIPE, text=True) - except OSError: - return "" - return found.stdout.strip() if found.returncode == 0 else "" + found = git_repo.git("branch", "--show-current", cwd=where) + return "" if isinstance(found, Failure) else found.strip() def main() -> str: diff --git a/bin/test_statusline.py b/bin/test_statusline.py index 79e59a4f..e2ae57b1 100644 --- a/bin/test_statusline.py +++ b/bin/test_statusline.py @@ -103,9 +103,11 @@ class Script(unittest.TestCase): ran = self.run_script(stdin) self.assertEqual((ran.returncode, ran.stdout, ran.stderr), (0, f"{RED}warning: statusline.py's input is not a JSON object{RESET}", "")) - def test_shows_a_branch_name_that_is_not_utf_8(self): - for branch, shown in ((b"trunk", "trunk"), (b"f\xe5", "f\ufffd")): + def test_shows_no_branch_where_git_fails(self): + # git_repo.git fails on text that is not UTF-8, so a branch named f\xe5 shows as none. + for branch, shown in ((b"trunk", "trunk"), (b"f\xe5", None)): with tempfile.TemporaryDirectory() as checkout: subprocess.run([b"git", b"init", b"-q", b"-b", branch, checkout.encode()], check=True) ran = self.run_script(json.dumps({"cwd": checkout})) - self.assertEqual((ran.stdout, ran.stderr), (SEP.join([f"{CYAN}{checkout}{RESET}", f"{DIM}{shown}{RESET}"]), "")) + row = [f"{CYAN}{checkout}{RESET}"] + ([] if shown is None else [f"{DIM}{shown}{RESET}"]) + self.assertEqual((ran.stdout, ran.stderr), (SEP.join(row), "")) diff --git a/docs/decisions.md b/docs/decisions.md index 552bf038..d0e4bb8a 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -4,9 +4,9 @@ 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. -2026-10-15, lilleman: an item that lifts the lowest dimension scores G 9, since the lowest dimension caps the overall and lifting it is worth the most to the floor. PR #257's scoring run found Shape lowest, at 6.25. The Shape items left are `todo.md` items 124 and 125. When PR #283 replaces G, the chunk that ships it carries this rule into the new score. +2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. PR #257's scoring run found Shape lowest, at 6.25. The Shape items left are `todo.md` items 124 and 125. -2026-10-16, PR #283: such an item moves each goal it cites by 9, in place of G 9. lilleman, answering that PR's review: such items compete with the others like any item, so they no longer rank first. +2026-10-16, PR #283: an item that lifts the lowest dimension moves each goal it cites by 9. lilleman, answering that PR's review: such items compete with the others like any item, so they don't rank first. ## loop-claude: a judge decides each interrupt and each quoted answer from the transcript, the README's premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; the worker's own account of which goal settles a choice decides nothing diff --git a/todo.md b/todo.md index 6e6ea370..42281228 100644 --- a/todo.md +++ b/todo.md @@ -12,13 +12,11 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 204 | 0.4.0 | | | **Read the status line's branch through `git_repo.git`, so no tool in `bin/` runs git outside it.** | 1 | 2 | 1 | 2 | 1 | code health by 3 | 21.6 | | 125 | 0.4.0 | | decision | **Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds.** | 3 | 1 | 3 | 5 | 5 | code health by 9, 1.4 by 9 | 19.7 | | 172 | 0.4.0 | | | **Name the project's rung `project` across `bin/loop_claude`, in place of `anchor`, as `bin/model_routing/ladder.py` names it.** | 2 | 1 | 3 | 4 | 3 | code health by 3, 1.4 by 3 | 16.5 | | 190 | 0.4.0 | | | **Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.** | 2 | 2 | 1 | 3 | 3 | code health by 3, 1.4 by 2 | 15.5 | | 82 | 0.4.0 | | principle | **Sort `AGENTS.md`'s decision titles and `docs/decisions.md`'s entries by title.** | 2 | 2 | 1 | 3 | 4 | code health by 4, 1.4 by 4 | 14.6 | | 137 | 0.4.0 | | | **Archive a chunk's route as a record loop-claude reads back field by field, in place of the `Worker:` prose `ROUTED` parses, and name `stepped` and the judge's `bundled` by what they do.** | 4 | 2 | 3 | 7 | 4 | code health by 4, 1.4 by 4 | 14.6 | -| 205 | 0.4.0 | | | **Rewrite the comprehension-floor decision's 2026-10-15 paragraph as the rule that holds, so it no longer scores G 9 after PR #283 replaced G.** | 1 | 2 | 1 | 2 | 1 | code health by 2 | 14.4 | | 170 | 0.4.0 | | decision | **Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 10 chunks have shipped under them, from how well L, E and I order their review rounds and πŸ”΄ findings.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 3, 1.4 by 5 | 10.9 | | 198 | 0.4.0 | | decision | **Count, per finished chunk, the findings that arose from misreading code that had already shipped, so code health's counter-signal shows.** | 3 | 2 | 2 | 5 | 5 | code health by 3, 1.1 by 2 | 6.2 | | 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 | @@ -74,10 +72,6 @@ ## Details -### 204. Read the status line's branch through `git_repo.git`, so no tool in `bin/` runs git outside it. - -`bin/statusline.py`'s `current_branch` runs git with its own contract: errors replaced, stderr dropped, no Failure. Every other tool in `bin/` runs git through `bin/git_repo.py`'s `git`; `workflow-bench/` runs git its own way on purpose. Keep the status line showing no branch where git fails. - ### 125. Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds. Shape is the lowest dimension, so this item moves code health by 9, per `docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything`. @@ -100,10 +94,6 @@ Found by the prose review of PR #312, which judged both entries to read as amend PR #262's paired ruling found the project reads worse: a rerun resumes on its rung only by parsing `Rung.__str__`'s and `Route.__str__`'s wording back with `bin/loop_claude/routing.py`'s `ROUTED`, a string contract over four files, where a reword silently routes afresh. Write the route as a structured line, such as JSON after `Worker:`, that `transcript_archive` reads into fields. `stepped` both raises to a bundled item's rung and counts towards a one-rung step; `Reply.bundled` names neither L nor highest. Make `bin/loop_claude/loop/main.py`'s `run_loop` easier to read where it threads the route. The structured line must keep the escalation's mark, archived today as `escalated at transcript entry N`: without it, a trigger that already stepped the worker could step it again. -### 205. Rewrite the comprehension-floor decision's 2026-10-15 paragraph as the rule that holds, so it no longer scores G 9 after PR #283 replaced G. - -`docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, …`: its 2026-10-15 paragraph says such an item scores G 9 and that PR #283 will replace G; the next paragraph says PR #283 did. A reader replays both to learn the rule. Item 190 rewrites two other entries this way. - ### 170. Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 10 chunks have shipped under them, from how well L, E and I order their review rounds and πŸ”΄ findings. `docs/decisions.md` β†’ `routing: one ladder…` calls the steps lilleman approved on 2026-10-16 a first guess. Once 10 chunks that each shipped one item scored with L, E and I have merged, read `score-outcomes`' rank correlations for L, E and I and the routed-chunks table of `routing-figures.md`, and propose new steps to lilleman, whose call they are. Only chunks merged since PR #339 set today's steps count: 7 so far, those of items 117, 126, 131, 122, 207, 130 and 154. Start this item when there are 10. -- 2.52.0 From 87f41071f2bac339aa713156af937b63b8379e6e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:50:09 +0200 Subject: [PATCH 2/8] =?UTF-8?q?Answer=20principles=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=206=20=F0=9F=9F=A1;=20cut=20the=20false=20status-?= =?UTF-8?q?line=20exception,=20split=20the=20branch=20test,=20and=20date?= =?UTF-8?q?=20the=20lowest-dimension=20rule=20without=20Shape's=20score?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/git_repo.py | 2 +- bin/metric_bench/main.py | 2 +- bin/test_statusline.py | 21 +++++++++++++-------- docs/decisions.md | 4 ++-- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/bin/git_repo.py b/bin/git_repo.py index b8a53b3d..1587140a 100644 --- a/bin/git_repo.py +++ b/bin/git_repo.py @@ -1,4 +1,4 @@ -"""Run git, in the current directory or a given one, and read the checkout, its default branch and its files.""" +"""Run git, in the current directory or a given one, as the one place in bin/ that starts it, and read the checkout, its default branch and its files.""" import os import re import subprocess diff --git a/bin/metric_bench/main.py b/bin/metric_bench/main.py index 631ca7b6..a0db6dce 100644 --- a/bin/metric_bench/main.py +++ b/bin/metric_bench/main.py @@ -111,7 +111,7 @@ def noted(notes: list[str]) -> str: def run_scores(run: Entry, top: str) -> tuple[RunScores | None, list[str]] | Failure: """The run's scores, and why each file left out was: git could not show it as UTF-8, or it does not parse.""" - # A tracked name that is not UTF-8 fails the run rather than reading with its bytes replaced: every tool in bin/ but the status line, item 204's, reads git's output through git_repo.git's one contract. + # A tracked name that is not UTF-8 fails the run rather than reading with its bytes replaced: every tool in bin/ reads git's output through git_repo.git's one contract. listed = git("ls-tree", "-r", "-z", "--name-only", run.commit, cwd=top) if isinstance(listed, Failure): return listed diff --git a/bin/test_statusline.py b/bin/test_statusline.py index e2ae57b1..3d99af01 100644 --- a/bin/test_statusline.py +++ b/bin/test_statusline.py @@ -103,11 +103,16 @@ class Script(unittest.TestCase): ran = self.run_script(stdin) self.assertEqual((ran.returncode, ran.stdout, ran.stderr), (0, f"{RED}warning: statusline.py's input is not a JSON object{RESET}", "")) - def test_shows_no_branch_where_git_fails(self): - # git_repo.git fails on text that is not UTF-8, so a branch named f\xe5 shows as none. - for branch, shown in ((b"trunk", "trunk"), (b"f\xe5", None)): - with tempfile.TemporaryDirectory() as checkout: - subprocess.run([b"git", b"init", b"-q", b"-b", branch, checkout.encode()], check=True) - ran = self.run_script(json.dumps({"cwd": checkout})) - row = [f"{CYAN}{checkout}{RESET}"] + ([] if shown is None else [f"{DIM}{shown}{RESET}"]) - self.assertEqual((ran.stdout, ran.stderr), (SEP.join(row), "")) + def run_on_branch(self, branch): + with tempfile.TemporaryDirectory() as checkout: + subprocess.run([b"git", b"init", b"-q", b"-b", branch, checkout.encode()], check=True) + ran = self.run_script(json.dumps({"cwd": checkout})) + return ran, checkout + + def test_shows_the_branch(self): + ran, checkout = self.run_on_branch(b"trunk") + self.assertEqual((ran.stdout, ran.stderr), (SEP.join([f"{CYAN}{checkout}{RESET}", f"{DIM}trunk{RESET}"]), "")) + + def test_shows_no_branch_where_git_fails_on_a_name_that_is_not_utf_8(self): + ran, checkout = self.run_on_branch(b"f\xe5") + self.assertEqual((ran.stdout, ran.stderr), (f"{CYAN}{checkout}{RESET}", "")) diff --git a/docs/decisions.md b/docs/decisions.md index d0e4bb8a..fff433b9 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -4,9 +4,9 @@ 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. -2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. PR #257's scoring run found Shape lowest, at 6.25. The Shape items left are `todo.md` items 124 and 125. +2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. -2026-10-16, PR #283: an item that lifts the lowest dimension moves each goal it cites by 9. lilleman, answering that PR's review: such items compete with the others like any item, so they don't rank first. +2026-10-16, PR #283: an item that lifts the lowest dimension moves each goal it cites by 9. lilleman, answering that PR's review: such items compete with the others like any item, so they don't rank first in the plan. ## loop-claude: a judge decides each interrupt and each quoted answer from the transcript, the README's premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; the worker's own account of which goal settles a choice decides nothing -- 2.52.0 From 919124eb0020532d938867e601635189abdccaec Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:50:09 +0200 Subject: [PATCH 3/8] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1;=20both=20fixed=20in=20the=20p?= =?UTF-8?q?rinciples=20round's=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 0b002b0d1078e0be864c5b42faa3d9076a44ca66 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:50:09 +0200 Subject: [PATCH 4/8] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20no=20vulnerabilities=20foun?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From c29f9e6fd107ede5c428cd1b544b44f2a597ef04 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:50:09 +0200 Subject: [PATCH 5/8] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20approved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From a8e669d683c4caa0fdce0bfac0f86441c4fb0ef2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:51:48 +0200 Subject: [PATCH 6/8] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20keep=20the=20cite=20of=20it?= =?UTF-8?q?ems=20124=20and=20125=20that=20their=20decision=20mark=20needs,?= =?UTF-8?q?=20file=20item=20209=20for=20their=20weight,=20and=20say=20the?= =?UTF-8?q?=20docstring=20means=20bin/'s=20tools?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/git_repo.py | 2 +- docs/decisions.md | 2 +- todo.md | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/git_repo.py b/bin/git_repo.py index 1587140a..393d67d7 100644 --- a/bin/git_repo.py +++ b/bin/git_repo.py @@ -1,4 +1,4 @@ -"""Run git, in the current directory or a given one, as the one place in bin/ that starts it, and read the checkout, its default branch and its files.""" +"""Run git, in the current directory or a given one, as the one place among bin/'s tools that starts it, and read the checkout, its default branch and its files.""" import os import re import subprocess diff --git a/docs/decisions.md b/docs/decisions.md index fff433b9..6cd1e206 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -4,7 +4,7 @@ 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. -2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. +2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. PR #257's scoring run found Shape lowest, at 6.25, and the items lifting it were `todo.md` items 124 and 125. 2026-10-16, PR #283: an item that lifts the lowest dimension moves each goal it cites by 9. lilleman, answering that PR's review: such items compete with the others like any item, so they don't rank first in the plan. diff --git a/todo.md b/todo.md index 42281228..e582eeb2 100644 --- a/todo.md +++ b/todo.md @@ -6,12 +6,13 @@ `Bar = 0.1` -`Next ID = 209` +`Next ID = 210` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| +| 209 | 0.4.0 | | | **Re-score items 124 and 125, which cite `code health by 9` as Shape-lowering items, so the weight of lifting the lowest dimension goes to the items that lift Locality, the dimension now lowest.** | 1 | 2 | 1 | 2 | 1 | code health by 3 | 21.6 | | 125 | 0.4.0 | | decision | **Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds.** | 3 | 1 | 3 | 5 | 5 | code health by 9, 1.4 by 9 | 19.7 | | 172 | 0.4.0 | | | **Name the project's rung `project` across `bin/loop_claude`, in place of `anchor`, as `bin/model_routing/ladder.py` names it.** | 2 | 1 | 3 | 4 | 3 | code health by 3, 1.4 by 3 | 16.5 | | 190 | 0.4.0 | | | **Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.** | 2 | 2 | 1 | 3 | 3 | code health by 3, 1.4 by 2 | 15.5 | @@ -72,6 +73,10 @@ ## Details +### 209. Re-score items 124 and 125, which cite `code health by 9` as Shape-lowering items, so the weight of lifting the lowest dimension goes to the items that lift Locality, the dimension now lowest. + +Items 124 and 125 move each goal they cite by 9 because PR #257's scoring run put Shape lowest, per `docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything`. Release 0.3.0's two scoring runs, PR #324 at c713910 in `docs/comprehension-history.md`, put Locality lowest, at 5.75 and 5.88, with Shape at 6.13 and 6.25. Score items 124 and 125 by their own value to code health and goal 1.4, without the 9, and drop the sentence in their details that claims Shape is lowest. Locality's only item is 132, at `code health by 5`: split it into one item per place PR #324's runs name for Locality, as its detail says to once 0.3.0's run has named them, and give those items the 9 the decision grants. + ### 125. Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds. Shape is the lowest dimension, so this item moves code health by 9, per `docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything`. -- 2.52.0 From bb6224bbb2825aebd117e0b0506f0e64a2da7793 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:51:48 +0200 Subject: [PATCH 7/8] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20approved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 9e08a2b5c6718d10cc45cd1ddbc811b612c26393 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 19:55:09 +0200 Subject: [PATCH 8/8] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=205=20=F0=9F=9F=A1;=20state=20the=20weight=20rule?= =?UTF-8?q?=20once=20with=20its=20date,=20reword=20item=20209,=20and=20kee?= =?UTF-8?q?p=20the=20changelog=20and=20comments=20to=20what=20a=20reader?= =?UTF-8?q?=20needs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- bin/git_repo.py | 4 +++- bin/metric_bench/main.py | 2 +- docs/decisions.md | 4 +--- todo.md | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fda0e39..4f2af1df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- The status line now reads the branch through the same git runner as the other tools. A branch whose name is not UTF-8 shows no branch, in place of a name with replacement characters. +- A branch whose name is not UTF-8 now shows no branch in the status line, in place of a name with replacement characters. - A new technical principle, "About seven things per level", sets soft limits on what a reader takes in at once: the parameters and branches of a function, the methods of a class, the files and folders in a folder, the sections of a document and the components of a system. Aim for four or five of the things that act on each other, such as parameters. Things found by name, such as files named by locale, may run far past seven. Crossing a limit asks you to group the things or record why they stay. The systems-architect reviewer now reads its limits from this principle. It rates a unit that crosses a limit with no recorded reason a 🟑, where it used to be a πŸ”΄, and no longer asks for the limits as merge-gate rules. - The comprehension panel's base worktree and a build probe's output now go in a folder under the chunk's review folder in `~/.local/state/larv-review/`. Both used to go in a session scratchpad, which loop-claude's headless sessions don't have. diff --git a/bin/git_repo.py b/bin/git_repo.py index 393d67d7..cd70db7b 100644 --- a/bin/git_repo.py +++ b/bin/git_repo.py @@ -1,4 +1,6 @@ -"""Run git, in the current directory or a given one, as the one place among bin/'s tools that starts it, and read the checkout, its default branch and its files.""" +"""Run git, in the current directory or a given one, and read the checkout, its default branch and its files. + +Every tool in bin/ starts git through `git` here.""" import os import re import subprocess diff --git a/bin/metric_bench/main.py b/bin/metric_bench/main.py index a0db6dce..20194ef0 100644 --- a/bin/metric_bench/main.py +++ b/bin/metric_bench/main.py @@ -111,7 +111,7 @@ def noted(notes: list[str]) -> str: def run_scores(run: Entry, top: str) -> tuple[RunScores | None, list[str]] | Failure: """The run's scores, and why each file left out was: git could not show it as UTF-8, or it does not parse.""" - # A tracked name that is not UTF-8 fails the run rather than reading with its bytes replaced: every tool in bin/ reads git's output through git_repo.git's one contract. + # A tracked name that is not UTF-8 fails the run rather than reading with its bytes replaced. listed = git("ls-tree", "-r", "-z", "--name-only", run.commit, cwd=top) if isinstance(listed, Failure): return listed diff --git a/docs/decisions.md b/docs/decisions.md index 6cd1e206..58365ba5 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -4,9 +4,7 @@ 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. -2026-10-15, lilleman: the lowest dimension caps the overall, so lifting it is worth the most to the floor. PR #257's scoring run found Shape lowest, at 6.25, and the items lifting it were `todo.md` items 124 and 125. - -2026-10-16, PR #283: an item that lifts the lowest dimension moves each goal it cites by 9. lilleman, answering that PR's review: such items compete with the others like any item, so they don't rank first in the plan. +2026-10-15, lilleman, set by PR #283 on 2026-10-16: an item that lifts the lowest dimension moves each goal it cites by 9, since the lowest dimension caps the overall and lifting it is worth the most to the floor. Within a chunk its work comes first; in the plan, lilleman answering that PR's review, such items compete with the others like any item and don't rank first. PR #257's scoring run found Shape lowest, at 6.25, and the items lifting it were `todo.md` items 124 and 125. ## loop-claude: a judge decides each interrupt and each quoted answer from the transcript, the README's premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; the worker's own account of which goal settles a choice decides nothing diff --git a/todo.md b/todo.md index e582eeb2..53ec0293 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,7 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 209 | 0.4.0 | | | **Re-score items 124 and 125, which cite `code health by 9` as Shape-lowering items, so the weight of lifting the lowest dimension goes to the items that lift Locality, the dimension now lowest.** | 1 | 2 | 1 | 2 | 1 | code health by 3 | 21.6 | +| 209 | 0.4.0 | | | **Move the `code health by 9` weight from items 124 and 125, which lift Shape, to items that lift Locality, the dimension release 0.3.0's scoring runs found lowest.** | 1 | 2 | 1 | 2 | 1 | code health by 3 | 21.6 | | 125 | 0.4.0 | | decision | **Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds.** | 3 | 1 | 3 | 5 | 5 | code health by 9, 1.4 by 9 | 19.7 | | 172 | 0.4.0 | | | **Name the project's rung `project` across `bin/loop_claude`, in place of `anchor`, as `bin/model_routing/ladder.py` names it.** | 2 | 1 | 3 | 4 | 3 | code health by 3, 1.4 by 3 | 16.5 | | 190 | 0.4.0 | | | **Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.** | 2 | 2 | 1 | 3 | 3 | code health by 3, 1.4 by 2 | 15.5 | @@ -73,9 +73,9 @@ ## Details -### 209. Re-score items 124 and 125, which cite `code health by 9` as Shape-lowering items, so the weight of lifting the lowest dimension goes to the items that lift Locality, the dimension now lowest. +### 209. Move the `code health by 9` weight from items 124 and 125, which lift Shape, to items that lift Locality, the dimension release 0.3.0's scoring runs found lowest. -Items 124 and 125 move each goal they cite by 9 because PR #257's scoring run put Shape lowest, per `docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything`. Release 0.3.0's two scoring runs, PR #324 at c713910 in `docs/comprehension-history.md`, put Locality lowest, at 5.75 and 5.88, with Shape at 6.13 and 6.25. Score items 124 and 125 by their own value to code health and goal 1.4, without the 9, and drop the sentence in their details that claims Shape is lowest. Locality's only item is 132, at `code health by 5`: split it into one item per place PR #324's runs name for Locality, as its detail says to once 0.3.0's run has named them, and give those items the 9 the decision grants. +Items 124 and 125 move code health by 9, and 1.4 by 9, because PR #257's scoring run put Shape lowest, per `docs/decisions.md` β†’ `larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything`. Release 0.3.0's two scoring runs, PR #324 at c713910 in `docs/comprehension-history.md`, put Locality lowest, at 5.75 and 5.88, with Shape at 6.13 and 6.25. Score items 124 and 125 by their own value to code health and goal 1.4, without the 9, and drop the sentence in their details that claims Shape is lowest. Item 132 holds Locality's lift at `code health by 5`; its detail says to split it into one item per place once 0.3.0's run named them. Do that for every dimension under the floor, and give the items that lift Locality the 9. ### 125. Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds. -- 2.52.0