Count, per finished chunk, the findings that arose from misreading code that had already shipped
This commit is contained in:
@@ -20,7 +20,11 @@ holds R and S, and C too where its table also had A, G and Goals. The chunk meas
|
||||
titles, each pass's rounds as `larv-review round-count` counts them, less one, summed;
|
||||
- 🔴 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.
|
||||
lacks the counts, or the branch has no round;
|
||||
- findings from misread shipped code: of those 🔴 and 🟡 findings, the ones a reviewer marked
|
||||
`[misread]`, because the implementer misread code that had already shipped, summed over the titles'
|
||||
`(<j> misread)` after the 🟡 count, such as `1 🔴, 2 🟡 (1 misread)`. Unknown where a round title
|
||||
lacks the count, as every title from before it does, or the branch has no round.
|
||||
|
||||
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
|
||||
@@ -48,6 +52,10 @@ that shipped one item, since a chunk measures all its items at once. It leaves o
|
||||
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.
|
||||
|
||||
Last, each finished chunk's findings from misread shipped code among its 🔴 and 🟡 findings, newest
|
||||
first, for every chunk whose round titles count them: code health's counter-signal in
|
||||
~/.claude/CLAUDE.md → "Shared goal".
|
||||
|
||||
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
|
||||
left out.
|
||||
@@ -57,7 +65,7 @@ import re
|
||||
import sys
|
||||
|
||||
from score_outcomes.anchors import anchor_lines, Anchors, ANCHORS_PATH, parse_anchors
|
||||
from score_outcomes.results import Chunk, Landing, nearest, render, report, Result, results_of, shipped
|
||||
from score_outcomes.results import Chunk, Landing, misreads, nearest, render, report, Result, results_of, shipped
|
||||
from git_repo import default_branch, file_at, full_history, git, top
|
||||
from failure import Failure
|
||||
from todo_table import LEVELS, risk, TOP_SCORE
|
||||
@@ -108,6 +116,7 @@ def report_text(results: list[Result], anchored: Anchors | Failure, given: dict[
|
||||
sections.append([f"Finished items nearest L {given['L']}, E {given['E']}, I {given['I']}, so R {r}, and S {given['S']}, closest first:", "", *near])
|
||||
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 from misread shipped code, per finished chunk whose round titles count them, newest first:", "", *misreads(results)])
|
||||
if any(result.landed != "merge" for result in results):
|
||||
sections.append(UNMERGED)
|
||||
return "\n\n".join("\n".join(section) for section in sections)
|
||||
|
||||
Reference in New Issue
Block a user