Answer stability round 1: 1 🔴, 6 🟡 (0 misread); read every title through both templates, hold a title to its template only on an item's branch, and fail on a config fault

This commit is contained in:
2026-11-14 01:47:41 +01:00
parent 1692679985
commit f98e8a84dd
42 changed files with 537 additions and 256 deletions
+5 -4
View File
@@ -161,7 +161,6 @@ import typing
from git_cli.git_repo import branch_titles, default_branch, git, top
from review_rules.round_titles import cap, CAP, RELEASE_REVIEW_CAP, round_counts
from project_config.main import commit_title
from failure import Failure
from review_rules.comprehension_history import FLOOR
from larv_review.history_changes import history_changes
@@ -175,7 +174,7 @@ from larv_review.plan import plan_reasons
from larv_review.scoring_setup import prepare_scoring
from larv_review.history_commands import read_agreement, read_places, record_ruling, record_scoring
from larv_review.reviewer_header import reviewer_header
from project_config import templates
from project_config.main import title_templates
class Command(typing.NamedTuple):
@@ -315,8 +314,10 @@ def round_count(default: str) -> Failure | None:
titles = branch_titles(default)
if isinstance(titles, Failure):
return titles
template = commit_title(None, pathlib.Path.home())
for name, count in round_counts([templates.summary_of(template, title) for title in titles]).items():
templates = title_templates(None, pathlib.Path.home())
if isinstance(templates, Failure):
return templates
for name, count in round_counts([templates.summary(title) for title in titles]).items():
print(f"{name}: {count}{cap_note(count, cap(name)) if name in PASSES else ', not a pass: check the commit title'}")
return None