Answer prose round 1: split the record-scoring help into one idea per sentence, name the chunk's entries once, fold the changelog bullet into the bullets it changes, and give the decision's amendment its own paragraph

This commit is contained in:
2026-10-09 11:31:17 +02:00
parent c386163a5f
commit 6a8bbcfff9
9 changed files with 39 additions and 37 deletions
+19 -18
View File
@@ -1,6 +1,6 @@
"""Hold larv-review's mechanical rules: the paired ruling's base and vote count, each pass's rounds, the scoring run's trigger, and the comprehension history's format.
usage: larv-review ruling-base | round-count | needs-scoring-run [<item ID>...] | record-ruling <seats file> | record-scoring <seats file>
usage: larv-review ruling-base | round-count | needs-scoring-run [<item ID>...] | record-ruling <seats file> | record-scoring <seats file> [<item ID>...]
Run it inside a project checkout or one of its worktrees. Each command but record-ruling first
fetches origin, when the checkout has that remote, and takes origin's default branch, or else the
@@ -19,10 +19,11 @@ round-count prints each pass's count: the highest <n> among the titles opening
cap of {cap} rounds, and each name in such a title that is not a pass.
needs-scoring-run takes the IDs of the todo.md items the chunk ships, none when it ships none, and
prints why the chunk is due a scoring run, or `No scoring run due.` It is due when the chunk ships
an item whose tagline names the comprehension floor, when the checkout's history ends on a paired
ruling with a `Fell:` line, or when it leaves a release with no item in
the checkout's todo.md, less the shipped items, and work has landed towards that release. Work has
prints why the chunk is due a scoring run, or `No scoring run due.` The chunk's entries are those
the checkout's history holds and the default branch's lacks. It is due when the chunk ships an
item whose tagline names the comprehension floor, when the chunk's newest entry is a paired ruling
with a `Fell:` line, or when it leaves a release with no item in the checkout's todo.md, less the
shipped items, and work has landed towards that release. Work has
landed when the chunk ships one of the release's items, or when the release is the earliest the
default branch's todo.md names and the default branch has a commit after its newest v* tag, or has
no v* tag.
@@ -44,11 +45,12 @@ opens with its label, written exactly: `Junior A:`, `Mid A:`, `Maintainability s
- Locality: `bin/x.py:12` `run`: ...
record-ruling takes Mid A's and the inherited architect's votes on each dimension and overall,
each better, same or worse. Each place opens with the dimensions it moves, or Overall, spelled as
the seat's line spells them and joined by `, `, then `: `. A dimension's vote counts as same unless one of the seat's places in
backticks, `path:line`, names that dimension; the overall vote counts as same unless the seat names
any such place. The printed votes say so. When the two counted overall votes differ, it appends
nothing and prints `Split:`, saying to add the maintainability senior's and Junior A's lines.
each better, same or worse. Each place opens with the names from the seat's line that it moves,
joined by `, ` and followed by `: `. A dimension's vote counts as same unless one of the seat's
places opens with that dimension and holds a `path:line` in backticks; the overall vote counts as
same unless any place holds one. The printed votes say so. When the two counted overall votes
differ, it appends nothing and prints `Split:`, saying to add the maintainability senior's and
Junior A's lines.
Otherwise the ruling is the overall vote that leads each other vote by two or more, else same; it
prints `Ruling:` and appends the ruling. A dimension falls when its worse votes lead each other
vote by two or more. Unless the ruling is worse, it prints and records a `Fell:` line naming each.
@@ -60,13 +62,12 @@ Each line is `Navigation <n>, Locality <n>, Shape <n>, Self-sufficiency <n>, Ove
score from 1 to 10 and the overall at most 1 above the line's lowest dimension. Its first line
names no `, against`. It appends the seats' scores and their means, rounded half up to two
decimals, and prints the means and each one under the floor of {floor}. It exits 1 on a run with
seats that no plan item, release or fall calls. A `Floor:` line says the
means under the floor block the merge, as they do when needs-scoring-run would give a reason
besides a fall. When the history ends on a
paired ruling with a `Fell:` line, it says whether the ruling stands; when a dimension that fell is
under the floor, the ruling counts as worse, and it prints and records a `Ratchet:` line, which
needs-scoring-run repeats as `Still standing:` until a paired ruling follows it. Both read only the entries the default
branch's history lacks.
seats that no plan item, release or fall calls. A `Floor:` line says the means under the floor
block the merge, as they do when needs-scoring-run would give a reason besides a fall. It reads the
chunk's entries as needs-scoring-run does. When a fall is pending, it says whether the paired
ruling stands. When a fallen dimension's mean is under the floor, the ruling counts as worse, and
it prints and records a `Ratchet:` line. needs-scoring-run repeats that line as `Still standing:`
until a paired ruling follows it.
Each record is appended to the history, created when missing, under a heading of the current UTC
time and the seats file's first line. A file holding a `Mean:` line alone opens with the date or
@@ -226,7 +227,7 @@ def record_ruling(seats_file: pathlib.Path) -> Failure | None:
fell = fallen(count) if ruled != "worse" else []
print(f"Ruling: {ruled}. Overall votes as counted: {tally}.")
if fell:
print(f"Fell: {', '.join(fell)}. A scoring run is due; the ruling counts as worse if it puts {' or '.join(fell)} under the floor of {FLOOR}.")
print(f"Fell: {', '.join(fell)}. A scoring run is due; the ruling counts as worse if that run scores {' or '.join(fell)} under the floor of {FLOOR}.")
return append(ruling_entry(title, given.seats, said, count, ruled, fell))