Answer product-owner round 1: 0 🔴, 2 🟡 (0 misread); refuse to count a blocking report with no finding headings, and say to count by hand

This commit is contained in:
2026-11-17 08:26:17 +01:00
parent 8fa05d9551
commit b43f2242c5
4 changed files with 18 additions and 5 deletions
+6 -2
View File
@@ -44,10 +44,14 @@ def standing_report(folder: pathlib.Path, pass_: str, round_: int) -> pathlib.Pa
def findings_in(report: pathlib.Path) -> Findings | Failure:
"""The findings a round's report gives, as round_titles.reported counts them."""
"""The findings a round's report gives, as round_titles.reported counts them; a Failure where the report blocks yet heads no finding as review-findings.md → "Report" asks, since its count would then be wrong."""
try:
return reported(report.read_text(encoding="utf-8"))
text = report.read_text(encoding="utf-8")
except FileNotFoundError:
return Failure(f"no report at {report}")
except (OSError, UnicodeDecodeError) as failure:
return Failure(f"could not read {report}: {failure}")
findings = reported(text)
if text.lstrip().startswith("BLOCK") and findings.red + findings.yellow == 0:
return Failure(f"{report} says BLOCK but opens no finding with `### 🔴` or `### 🟡`; count its findings by hand")
return findings