Answer prose round 1: 0 🔴, 10 🟡; one claim per sentence in the CHANGELOG, the rule and Count, accurate comments, and a sorted Tools list

This commit is contained in:
2026-10-13 12:00:25 +02:00
parent 8f1a937005
commit 5b6c497256
12 changed files with 28 additions and 28 deletions
+2 -3
View File
@@ -9,14 +9,14 @@ reads origin as last fetched and says so on stderr.
Git history is the record. A chunk is a merge commit on the default branch's first-parent line
whose change removed items from todo.md, and changed more than todo.md and the records below; it
shipped those items. Each item's guess is its R, S and C in the todo.md the merge's first parent
held, when the chunk began; C only where that todo.md scored one. The chunk measures:
held; C only where that todo.md scored one. The chunk measures:
- lines changed: lines added plus lines deleted against the first parent, leaving out todo.md and
the records tools append to, docs/comprehension-history.md and docs/reading-cost.md;
- files: the files those lines are in;
- review rounds past each pass's first: among the branch's `Answer <pass> round <n>:` commit
titles, each pass's rounds as `larv-review round-count` counts them, less one, summed;
- 🔴 and 🟡 findings: summed over those titles, each opening `<n> 🔴, <n> 🟡` after the colon,
- 🔴 and 🟡 findings: summed over those titles, each opening `<k> 🔴, <m> 🟡` after the colon,
such as `Answer stability round 1: 1 🔴, 2 🟡; flag a deleted test`. Unknown where a round title
lacks the counts, or the branch has no round.
@@ -99,7 +99,6 @@ def measure(merge: str, short: str, merged: str) -> list[Outcome] | Failure:
if isinstance(after, Failure):
return after
items = shipped(before, after)
# Most merges ship nothing; this spares them two more git calls.
if not items:
return []
numstat = git("diff", "--numstat", f"{merge}^1", merge)
+3 -3
View File
@@ -7,7 +7,7 @@ from todo_table import Item, items
from reading_cost.figures import RECORD
from round_titles import round_counts, round_findings
# Least to be measured before a score's medians show: the count the reading-cost trend waits for, which no published standard sets either.
# Fewest single-item chunks a score needs before its medians print: the 10 figures the reading-cost trend waits for; no published standard sets either.
ENOUGH = 10
# The plan, and the records tools append to: none of their lines are the chunk's work.
NOT_WORK = ("todo.md", HISTORY, RECORD)
@@ -15,7 +15,7 @@ NOT_WORK = ("todo.md", HISTORY, RECORD)
@dataclasses.dataclass(frozen=True)
class Outcome:
"""What the merge that shipped an item measured. findings holds the 🔴 and 🟡 counts, None where a round title lacks them."""
"""What the merge that shipped an item measured. findings holds the 🔴 and 🟡 counts, None where a round title lacks them or the branch has no round."""
item: Item
merge: str
merged: str
@@ -26,7 +26,7 @@ class Outcome:
findings: tuple[int, int] | None
# Each score, and the outcome it predicts. Each pass takes a first round whatever the change, so only the rounds after it measure how hard the change was to get right.
# Each pass takes a first round whatever the change, so only the rounds after it measure how hard the change was to get right.
MEASURES: dict[str, tuple[str, typing.Callable[[Outcome], int | None]]] = {
"R": ("🔴 findings", lambda outcome: outcome.findings[0] if outcome.findings else None),
"S": ("lines changed", lambda outcome: outcome.lines),