From 243cbe83b9c59b689e19f613b14b4312e231df59 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 21 Oct 2026 18:17:40 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=203:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=201=20=F0=9F=9F=A1;=20the=20help's=20count=20of=2010=20names?= =?UTF-8?q?=20the=20chunks=20it=20counts,=20and=20the=20rewrapped=20paragr?= =?UTF-8?q?aphs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/score_outcomes/main.py | 19 ++++++++++--------- bin/score_outcomes/test_score_outcomes.py | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/bin/score_outcomes/main.py b/bin/score_outcomes/main.py index d23956f3..c809599c 100644 --- a/bin/score_outcomes/main.py +++ b/bin/score_outcomes/main.py @@ -26,8 +26,8 @@ A chunk is marked `by rebase` where a commit in it has a committer time apart fr since a rebase replays a pull request's commits at once, and `never replayed` where none does, since a pushed or fast-forwarded commit may be part of a pull request. A merge's titles are its branch's commits'; any other chunk's are its own. Two pull requests merged in the same second read as one -chunk. Rebase drops a round's commit that changed no file, so a rebase or push chunk gives its rounds and -findings as lower bounds, `at least`, and the report ends saying all this. +chunk. Rebase drops a round's commit that changed no file, so a rebase or push chunk gives its +rounds and findings as lower bounds, `at least`, and the report ends saying all this. Given L, E and I, on the levels ~/.claude/rules/todo-items.md defines, and S, it works out R from L, E and I, as rank_todo.py does, and lists the 5 finished items whose guesses sit closest, closest @@ -40,12 +40,13 @@ E and I, read from the checkout's working tree, each line as above, or that no c file that cannot be read, a row that does not hold a level on its scale and a list of IDs, or a level named twice leaves the anchors out, saying why. -Then the median of the outcome R and S each predict at each value they were guessed at: R against -🔴 findings, S against lines changed. And how well L, E and I each order chunks by review rounds -past each pass's first and by 🔴 findings: Spearman's rank correlation, from -1 to +1, where +1 -orders them exactly; none where every chunk held the same level, or the same outcome. It counts only chunks that -shipped one item, since a chunk measures all its items at once. It leaves out the chunks never replayed, which may -hold only part of a pull request. It reports a score only once 10 such chunks hold it and its outcomes. +Then the median of the outcome R and S each predict at each value they were guessed at: R against 🔴 +findings, S against lines changed. And how well L, E and I each order chunks by review rounds past +each pass's first and by 🔴 findings: Spearman's rank correlation, from -1 to +1, where +1 orders +them exactly; none where every chunk held the same level, or the same outcome. It counts only chunks +that shipped one item, since a chunk measures all its items at once. It leaves out the chunks never +replayed, which may hold only part of a pull request. It reports a score only once 10 of the chunks +it counts hold it and its outcomes. Exit 1, saying why, on bad arguments, when git cannot start, finds no checkout or reads a shallow clone, or the default branch cannot be read; or, after the rest of the report, when the anchors are @@ -71,7 +72,7 @@ UNMERGED = [ "", "- Each is the run of commits on the default branch that share one commit time, since a rebase merge replays a pull request's commits at once. Its guesses come from the todo.md before its first commit.", "- Two pull requests merged in the same second read as one chunk, so a pull request that shipped nothing adds its lines, files and rounds to the chunk it shares a time with.", - "- A run whose commits all kept their author time was never replayed: pushed or fast-forwarded as committed. It may hold only part of its pull request, so the medians and the rank correlations leave it out.", + "- A run whose commits all kept their author time was never replayed: it was pushed or fast-forwarded as committed. It may hold only part of its pull request, so the medians and the rank correlations leave it out.", "- Rebase drops a round's commit that changed no file, so their rounds and findings are at least what history shows, and the medians count the rebased ones as shown.", ] diff --git a/bin/score_outcomes/test_score_outcomes.py b/bin/score_outcomes/test_score_outcomes.py index 95c48edb..ad60f4ab 100644 --- a/bin/score_outcomes/test_score_outcomes.py +++ b/bin/score_outcomes/test_score_outcomes.py @@ -306,7 +306,7 @@ class ScoreOutcomesTool(unittest.TestCase): _, item_4, _, _, _ = self.run_on_rebased_history() self.assertTrue(item_4.startswith("- Item 4, R 1, S 3, C 10: "), item_4) - def test_leaves_the_reading_cost_record_out_of_a_rebase_chunk_lines(self): + def test_leaves_the_reading_cost_record_out_of_a_rebase_chunks_lines(self): _, item_4, _, _, _ = self.run_on_rebased_history() self.assertIn(": 3 lines in 1 file, ", item_4)