From 4c552e0e588af9bd6f811440ab7856922c3cbaba Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 22:38:34 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20say=20which?= =?UTF-8?q?=20round=20commits=20count=20and=20that=20a=20recent=20chunk=20?= =?UTF-8?q?has=20had=20less=20time=20to=20gather=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- bin/score_outcomes/main.py | 11 ++++++----- bin/score_outcomes/test_score_outcomes.py | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96c433b2..cab74fbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `score-outcomes` now counts each finished chunk's later fixes: the later chunks on the default branch that fixed code it shipped, the defects review let through. A later chunk counts where it ships a `todo.md` item marked `defect` or `security`, or answers a 🔴 a reviewer marked `[misread]`, and its change rewrites or removes lines that `git blame` traces to the earlier chunk. Each finished item shows the count beside its guessed scores, and a new list, after the misread findings, names the chunks that fixed each one, newest first. `routing-figures.md` shows the median per rung in a new column of the routed-chunks table. To find it, loop-claude now reads each archived project's checkout, and the figures name each project whose default branch it could not read. +- `score-outcomes` now counts each finished chunk's later fixes: the later chunks on the default branch that fixed code it shipped, each a defect that review let through. A later chunk counts where a change of it rewrites or removes lines that `git blame` traces to the earlier chunk: its whole change where it ships a `todo.md` item marked `defect` or `security`, or one of its round commits whose title counts both a 🔴 and a finding a reviewer marked `[misread]`. Each finished item shows the count beside its guessed scores, and a new list, after the misread findings, names the chunks that fixed each one, newest first. `routing-figures.md` shows the mean per rung, over the chunks whose later fixes are known, in a new column of the routed-chunks table. To find them, loop-claude now reads each archived project's checkout, and the figures name each project whose default branch it could not read. - `loop-claude` now opens every message it prints with the machine's local time, as in `2026-10-28 11:46:01`, so you can see when each happened, such as how long a question has waited. A message of several lines, such as a question, carries the time on its first line only. The `retrying at …` time of a usage-limit wait now also shows seconds, and no longer names the zone. - larv-review now gives each review pass at most two rounds per chunk, where it gave three and then asked for more, and no longer asks: the fixes answering a pass's second round merge once the gate passes. rule-hook's new `round-cap` rule refuses a round commit that would take a pass past round 2, such as `Answer stability round 3: …`, and takes no override. It counts the pass's earlier round commits on the branch, so a third commit titled round 2 is refused too. `larv-review round-count` marks a pass at two rounds as at the cap. - rule-hook has a new rule, `repeat-read`, and now runs before each Read call too. It blocks a Read, or a Bash `cat`, `head` or `sed -n ',p'` of one file, when every line it asks for is already in the agent's context, and the block names those lines. The rule takes no override. diff --git a/bin/score_outcomes/main.py b/bin/score_outcomes/main.py index b6349810..ec68018c 100644 --- a/bin/score_outcomes/main.py +++ b/bin/score_outcomes/main.py @@ -28,10 +28,11 @@ holds R and S, and C too where its table also had A, G and Goals. The chunk meas it where a change of the later chunk removes or rewrites lines, outside todo.md and the records, that `git blame` traces to a commit this chunk brought to the default branch. The change is the later chunk's whole change where it ships a todo.md item whose Exempt cell is `defect` or - `security`, or one of its round commits whose title counts a 🔴 and a misread finding, since a - title counts misread 🔴 and 🟡 findings together. A fixing chunk that also ships other items - counts all of its change, so the count can run high; a fix that ships no such item, and answers - no such round, goes uncounted. + `security`, or one of its round commits that may answer a misread 🔴. A title counts misread 🔴 + and 🟡 findings together, so this takes each round commit whose title counts both a 🔴 and a + misread finding. A fixing chunk that also ships other items counts all of its change, so the + count can run high; a fix that ships no such item, and answers no such round, goes uncounted. A + recent chunk has had less time to gather any. A chunk is marked `by rebase` where a commit in it has a committer time apart from its author time, since a rebase replays a pull request's commits at once, and `never replayed` where none does, since @@ -129,7 +130,7 @@ def report_text(results: list[Result], anchored: Anchors | Failure, given: dict[ sections.append([f"Anchors in {ANCHORS_PATH}, each level's shipped items:", "", *anchor_lines(anchored, results)]) sections.append(["Median outcome at each guessed score, among chunks that shipped one item, never-replayed ones left out:", "", *report(results)]) sections.append(["🔴 and 🟡 findings, with how many a reviewer marked `[misread]`, per finished chunk whose round titles count them, newest first:", "", *misreads(results)]) - sections.append(["Later fixes, the later chunks that fixed code each finished chunk shipped, newest first:", "", *fixed_later(results)]) + sections.append(["Later fixes: the chunks that fixed code each finished chunk shipped, newest first:", "", *fixed_later(results)]) if any(result.landed != "merge" for result in results): sections.append(UNMERGED) return "\n\n".join("\n".join(section) for section in sections) diff --git a/bin/score_outcomes/test_score_outcomes.py b/bin/score_outcomes/test_score_outcomes.py index 18055ac3..bb22f83b 100644 --- a/bin/score_outcomes/test_score_outcomes.py +++ b/bin/score_outcomes/test_score_outcomes.py @@ -181,7 +181,7 @@ Median outcome at each guessed score, among chunks that shipped one item, never- - None: no chunk's round titles count them. -Later fixes, the later chunks that fixed code each finished chunk shipped, newest first: +Later fixes: the chunks that fixed code each finished chunk shipped, newest first: - None: no later chunk fixed code a finished chunk shipped.""") @@ -194,7 +194,7 @@ Later fixes, the later chunks that fixed code each finished chunk shipped, newes def test_lists_each_chunks_later_fixes_newest_first_once_per_chunk_then_counts_the_others(self): found = [result(1, 5, 3, None, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(2,), fixed_by=("ddddddd",)), result(2, 5, 3, None, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(1,), fixed_by=("ddddddd",)), result(3, 5, 3, None, merge="ccccccc", merged="2026-10-14T10:00:00Z", fixed_by=("eeeeeee", "ddddddd")), result(4, 5, 3, None), result(5, 5, 3, None, merge="fffffff")] - self.assertTrue(report_text(found, [], None).endswith("""Later fixes, the later chunks that fixed code each finished chunk shipped, newest first: + self.assertTrue(report_text(found, [], None).endswith("""Later fixes: the chunks that fixed code each finished chunk shipped, newest first: - 2026-10-14T10:00:00Z in ccccccc: 2 later fixes, by eeeeeee and ddddddd - 2026-10-12T10:00:00Z in bbbbbbb: 1 later fix, by ddddddd