Answer stability round 1: 1 🔴, 1 🟡 (0 misread); refuse to count a report whose headings hold a mark in another form, and test the hook's report lookup
CI / tests (pull_request) Successful in 3m12s

This commit is contained in:
2026-11-17 08:30:22 +01:00
parent b43f2242c5
commit cb6dd6d3a7
5 changed files with 41 additions and 8 deletions
+2
View File
@@ -52,6 +52,8 @@ def findings_in(report: pathlib.Path) -> Findings | Failure:
except (OSError, UnicodeDecodeError) as failure:
return Failure(f"could not read {report}: {failure}")
findings = reported(text)
if isinstance(findings, Failure):
return Failure(f"{report} cannot be counted: {findings.reason}; count its findings by hand")
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