List larv-review's passes in one place that round_titles and the ladder derive from, and check the pass table against it

This commit is contained in:
2026-10-22 20:25:37 +02:00
parent e2033abbaf
commit 6cff688951
5 changed files with 21 additions and 17 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
"""The titles of larv-review's round commits, `Answer <pass> round <n>: <k> 🔴, <m> 🟡; <summary>`: each pass's round count, and the findings the rounds reported."""
import re
from model_routing.ladder import PASSES
CAP = 3
PASSES = ("architecture", "principles", "full scan", "security", "overrides", "stability", "product-owner", "prose")
ROUND = re.compile(r"^Answer (.+?) round ([0-9]+):", re.IGNORECASE)
# What follows a round title's colon: the round's 🔴 and 🟡 counts, then `;` and its summary, if any.
FINDINGS = re.compile(r" ([0-9]+) 🔴, ([0-9]+) 🟡(?:;|$)")