Answer stability round 1: 0 🔴, 1 🟡 (0 misread); drop the false 'every median reads 0' from the comment and the help

This commit is contained in:
2026-11-09 01:58:41 +01:00
parent 02b657cd34
commit 3bee7d5006
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -66,9 +66,8 @@ each pass's first and by 🔴 findings: Spearman's rank correlation, from -1 to
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. Where more than half of the chunks it counts for L hold no 🔴, it
gives L's rank correlation by review rounds alone, then the share of chunks with a 🔴 at each L, since
medians of 0 and a rank resting on the few chunks with a 🔴 tell a scorer little.
it counts hold it and its outcomes. Where more than half of the chunks it counts for L hold no 🔴, L's
line gives its rank correlation by review rounds alone. A second line gives the share of chunks with a 🔴 at each L.
Then, newest first, each finished chunk's 🔴 and 🟡 findings with its misread findings, for every
chunk whose round titles count them: code health's counter-signal in
+2 -2
View File
@@ -105,7 +105,7 @@ def report(results: list[Result]) -> list[str]:
continue
guesses, rounds, red = ([row[column] for row in rows] for column in range(3))
if name == "L" and red.count(0) * 2 > len(red):
# Where most chunks hold no 🔴 every median reads 0 and the rank rests on the few that have one, so L is read by how often a chunk has one.
# Where most chunks hold no 🔴, the rank by 🔴 findings rests on the few that have one, so L is read by how often a chunk has one.
lines.append(f"- {name}, by review rounds past each pass's first: rank correlation {correlations([rank_correlation(guesses, rounds)])} ({plural(len(rows), 'chunk')})")
lines.append(f"- {name}, by the share of chunks with a 🔴, since most of the {len(rows)} chunks hold none: " + ", ".join(f"{guess} → {sum(1 for at, count in zip(guesses, red) if at == guess and count)} of {plural(guesses.count(guess), 'chunk')}" for guess in sorted(set(guesses))))
continue
@@ -141,7 +141,7 @@ def too_few(held: int, name: str, what: str) -> str:
def correlations(found: list[float | None]) -> str:
"""Each rank correlation signed to two places, `none` where it is undefined, with the reason once after them."""
"""Each rank correlation as a signed number with two decimals, or `none` where it is undefined, then the reason a correlation is undefined once if any is."""
undefined = ", since every chunk held one value" if None in found else ""
return listed(["none" if value is None else f"{value:+.2f}" for value in found], "and") + undefined