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
+4 -3
View File
@@ -12,6 +12,7 @@ from transcript_archive.outcomes import judge_costs, UNFINISHED_AT, workers
from review_rules.round_titles import rounds_past_first
from model_routing.ladder import Rung
from command_lines.shell_command import simple_commands
from project_config.templates import Titles
ESCALATION = re.compile(rf"{ESCALATION_MARKER} ([0-9]+):")
@@ -59,8 +60,8 @@ class ChunkFigures:
fixed_later: int | None = None
def chunk_figures(chunk: Chunk, home: str, history: list[BranchChunk] | None = None) -> ChunkFigures:
"""history is the chunks on the project's default branch, None where it could not be read."""
def chunk_figures(chunk: Chunk, home: str, titles: Titles, history: list[BranchChunk] | None = None) -> ChunkFigures:
"""titles holds the project's title templates, which each commit title is read through. history is the chunks on the project's default branch, None where it could not be read."""
cycles = sorted((cycle for kept in chunk.outcomes for cycle in workers(kept)), key=lambda cycle: cycle[0])
launches = agent_calls(chunk.worker)
reported = results(chunk.worker)
@@ -70,7 +71,7 @@ def chunk_figures(chunk: Chunk, home: str, history: list[BranchChunk] | None = N
return ChunkFigures(
dollars=dollars,
start=start.rung if start and start.item else None,
rounds_past_first=rounds_past_first(commit_titles(chunk.worker, home)),
rounds_past_first=rounds_past_first([titles.summary(title) for title in commit_titles(chunk.worker, home)]),
unfinished=sum(len(UNFINISHED_AT.findall(kept)) for kept in chunk.outcomes),
delegated=collections.Counter(one.rung for one in delegated),
reports=reports_by_type(delegated),