Answer principles round 1: 1 🔴, 1 🟡 (0 misread); count a fixed finding at the cap as done, and keep the Stage 0 rerun in its round

This commit is contained in:
2026-10-28 17:54:03 +01:00
parent 865f5b0306
commit 4f831316d2
4 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ def round_cap_breaches(commit: Commit) -> list[Breach]:
if not any(ROUND.match(message) for message in commit.messages):
return []
earlier = earlier_titles(commit.directory, commit.amends)
return [Breach("round-cap", f"the pass has had its {CAP} rounds; merge once the gate passes, with no round after them", commit.directory)] if any(past_cap(message, earlier) for message in commit.messages) else []
if not any(past_cap(message, earlier) for message in commit.messages):
return []
return [Breach("round-cap", f"the pass has had its {CAP} rounds; merge once the gate passes, with no round after them", commit.directory)]
def earlier_titles(directory: str, amends: bool) -> list[str]: