Answer product-owner round 1: 1 🔴, 1 🟡 (0 misread); label the named files' size apart from the lines changed, and file the S scale as question item 277
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- `score-outcomes` now shows, after each finished item's scores, the size of the files and folders its tagline or detail names in backticks: how many files, and how many lines, as they stood before its chunk.
|
||||
- `score-outcomes` now shows, beside what each finished item's chunk measured, the size of the files and folders its tagline or detail names in backticks: how many files, and how many lines, as they stood before its chunk.
|
||||
- `workflow-bench/bench.py` now prints a failed run, such as a failed clone, as a `<run>: FAILED: …` line beside the other runs' results, in place of stopping at the first failure.
|
||||
- A scoring run under the comprehension floor of 7.0 now leaves a plan item meant to reach it. `larv-review record-scoring` follows its `Floor:` line with a `Next:` line. It says to file one ambitious refactor aimed at the lowest dimension, or to refresh the one `todo.md` already holds. The item's tagline holds `comprehension floor`, so its own chunk runs a scoring run. It goes into the release after the chunk's, so the floor doesn't hold up any release (larv-review §3 → "Floor item"). An item already in `todo.md` whose tagline holds those words counts as the open one: drop or reword it if it isn't such a refactor.
|
||||
- `loop-claude` now interrupts you less. A worker takes its own recommendation on a choice no rule reserves for you, and records it, and the judge answers an ask that carries a recommendation by quoting the rule that says so. You are still asked about a goal, a release's planned items and its cut, a change to the routing ladder, and whatever another rule asks your approval for; `CLAUDE.md` → "Working loop", "Ask, don't guess" lists them.
|
||||
|
||||
@@ -47,8 +47,8 @@ first: the least mean squared difference over the scores both hold, so R and S a
|
||||
scored before L, E and I, the newest first among equals. Each line gives what the item's chunk
|
||||
measured, which items shipped with it, and its tagline. Where the item's tagline or detail names
|
||||
tracked files or folders in backticks, each by its path from the repository root such as
|
||||
`bin/rank_todo.py`, the line also gives their size after the item's scores: how many files they
|
||||
held before the chunk, and how many lines. A named folder counts the files it holds. This is the
|
||||
`bin/rank_todo.py`, the line also gives their size, after the later fixes: how many files they
|
||||
are, and how many lines they held before the chunk. A named folder counts the files it holds. This is the
|
||||
size of the code the item said it would change; the chunk's change may reach beyond it. Where the
|
||||
todo.md a chunk started from holds a ## Details section that cannot be read, it says so on stderr
|
||||
and sizes that chunk's items by their taglines alone.
|
||||
|
||||
@@ -152,12 +152,17 @@ def ranks(values: list[int]) -> list[float]:
|
||||
|
||||
def render(result: Result) -> str:
|
||||
scores = ", ".join(f"{name} {result.item.scores[name]}" for name in SHOWN if name in result.item.scores)
|
||||
if result.named:
|
||||
scores += f", naming code of {plural(result.named.lines, 'line')} in {plural(result.named.files, 'file')}"
|
||||
merged = {"merge": f"merged {result.merged} in {result.merge}", "rebase": f"merged {result.merged} by rebase in {result.merge}", "push": f"committed {result.merged} in {result.merge}, never replayed, so perhaps part of a pull request"}[result.landing]
|
||||
others = result.shipped_with
|
||||
together = f", with item{'s' if len(others) > 1 else ''} {', '.join(map(str, others))}" if others else ""
|
||||
return f"- Item {result.item.id}, {scores}: {plural(result.lines, 'line')} in {plural(result.files, 'file')}, {at_least(result)}{plural(result.rounds_past_first, 'round')} past each pass's first, {counted(result)}, {later(result)}; {merged}{together}. {result.item.tagline}"
|
||||
return f"- Item {result.item.id}, {scores}: {plural(result.lines, 'line')} in {plural(result.files, 'file')}, {at_least(result)}{plural(result.rounds_past_first, 'round')} past each pass's first, {counted(result)}, {later(result)}{named(result)}; {merged}{together}. {result.item.tagline}"
|
||||
|
||||
|
||||
def named(result: Result) -> str:
|
||||
"""The size of the code the item names, labelled apart from the lines its chunk changed, which S is checked against."""
|
||||
if result.named is None:
|
||||
return ""
|
||||
return f", and the {plural(result.named.files, 'file')} it names held {plural(result.named.lines, 'line')} before"
|
||||
|
||||
|
||||
def at_least(result: Result) -> str:
|
||||
|
||||
@@ -116,9 +116,9 @@ class Render(unittest.TestCase):
|
||||
self.assertEqual(render(result(4, 2, 3, 4, findings=(1, 2))), "- Item 4, R 2, S 3, C 4: 10 lines in 1 file, 1 round past each pass's first, 1 🔴, 2 🟡, 0 later fixes; merged 2026-10-13T10:00:00Z in aaaaaaa. **Item 4.**")
|
||||
self.assertIn("1 round past each pass's first, 0 🔴, 0 🟡, 0 later fixes; merged 2026-10-13T10:00:00Z in aaaaaaa, with item 5. ", render(result(4, 2, 3, 4, rounds=1, shipped_with=(5,))))
|
||||
|
||||
def test_gives_the_size_of_the_code_the_item_names_after_its_scores(self):
|
||||
self.assertTrue(render(result(4, 2, 3, 4, named=NamedCode(2, 40))).startswith("- Item 4, R 2, S 3, C 4, naming code of 40 lines in 2 files: 10 lines in 1 file,"))
|
||||
self.assertTrue(render(result(4, 2, 3, None, named=NamedCode(1, 1))).startswith("- Item 4, R 2, S 3, naming code of 1 line in 1 file: 10 lines"))
|
||||
def test_gives_the_size_of_the_code_the_item_names_after_what_its_chunk_measured(self):
|
||||
self.assertIn("- Item 4, R 2, S 3, C 4: 10 lines in 1 file, 1 round past each pass's first, 0 🔴, 0 🟡, 0 later fixes, and the 2 files it names held 40 lines before; merged ", render(result(4, 2, 3, 4, named=NamedCode(2, 40))))
|
||||
self.assertIn("0 later fixes, and the 1 file it names held 1 line before; merged ", render(result(4, 2, 3, None, named=NamedCode(1, 1))))
|
||||
|
||||
def test_counts_the_later_fixes_of_the_chunk_that_shipped_it(self):
|
||||
self.assertIn("0 🔴, 0 🟡, 1 later fix; merged", render(result(4, 2, 3, None, fixed_by=("bbbbbbb",))))
|
||||
@@ -333,7 +333,7 @@ class ScoreOutcomesTool(unittest.TestCase):
|
||||
self.git("merge", "-q", "--no-ff", "-m", "Merge chunk", "chunk")
|
||||
ran = self.run_tool("1", "2", "1", "3")
|
||||
self.assertEqual(ran.returncode, 0, ran.stderr)
|
||||
self.assertIn("- Item 4, R 2, S 3, C 10, naming code of 5 lines in 2 files: 1 line in 1 file, ", ran.stdout)
|
||||
self.assertIn("- Item 4, R 2, S 3, C 10: 1 line in 1 file, 0 rounds past each pass's first, findings unknown, 0 later fixes, and the 2 files it names held 5 lines before; merged ", ran.stdout)
|
||||
|
||||
def test_says_on_stderr_when_a_chunks_details_cannot_be_read_and_sizes_its_items_by_their_taglines(self):
|
||||
self.commit("Break the details", {"todo.md": todo(FIRST, SECOND) + "\n## Details\n\nloose text\n\n### 4. Do it.\n\nChange `a.py`.\n", "a.py": "1\n"})
|
||||
|
||||
@@ -6,12 +6,13 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 277`
|
||||
`Next ID = 278`
|
||||
|
||||
## Items
|
||||
|
||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 277 | 0.7.0 | | question | **Map the size of the code an item names onto S, on a scale the human picks, and have `score-outcomes` print that S for the item being scored and for each finished item it lists.** | 3 | 2 | 2 | 5 | 4 | 1.1 by 4, 1.4 by 3 | 2.4 |
|
||||
| 1 | 0.7.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 |
|
||||
| 263 | 0.7.0 | | | **Have the judge reject an interrupt that re-asks what the human answered earlier in the chunk, unless the ask quotes what that answer left open.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 6, 1.5 by 2 | 3.2 |
|
||||
| 162 | 0.7.0 | | owner | **Script each step that 0.2.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 4, 1.5 by 4 | 3.1 |
|
||||
@@ -62,6 +63,14 @@
|
||||
|
||||
## Details
|
||||
|
||||
### 277. Map the size of the code an item names onto S, on a scale the human picks, and have `score-outcomes` print that S for the item being scored and for each finished item it lists.
|
||||
|
||||
Item 113 shipped the figure: beside each finished item it lists, `score-outcomes` prints how many tracked files the item's tagline or detail names in backticks, as full paths from the repo root with a folder counting the files it holds, and how many lines they held before its chunk. It maps nothing onto S's 1 to 10 scale, prints nothing for the item being scored, and counts a unit named without its file, such as a function, as nothing.
|
||||
|
||||
Question for the human: which scale maps named lines to S? No published scale maps lines to S, so the threshold is yours (`CLAUDE.md` → "Web research"). One option, from this repo's data: give the S whose finished items' median lines changed sits nearest the named lines. On 2026-11-08 those medians were S 1 → 11, 2 → 36, 3 → 83, 4 → 219, 5 → 370, 6 → 848. A named file's size bounds a change only loosely: item 84 named files holding 2422 lines and changed 227, and item 132 named 385 and changed 2.
|
||||
|
||||
Find units named without their file too, such as a function in backticks, and count the lines of the file that defines each. Once `score-outcomes` prints the S, point `~/.claude/rules/todo-items.md`'s S rule (→ "Score L, E and I against the project's anchors") at it, so a scorer sets S from the figure.
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in New Issue
Block a user