Answer stability round 1: 1 🔴, 6 🟡 (0 misread); read the owed runs against the merge base and committed history, skip a project with no plan table, cover the surviving mutants

This commit is contained in:
2026-11-10 23:59:10 +01:00
parent 1c6e04c8b8
commit e69eb982bc
7 changed files with 133 additions and 47 deletions
+9 -3
View File
@@ -2,14 +2,15 @@ import pathlib
from release_plan.release_standing import Cut, default_plan, LastCut, next_release, Unknown
from failure import Failure
from git_cli.git_repo import file_at, top
from larv_review.scoring import FLOOR_ITEM
from release_plan.todo_table import Item, items, NoItemsTable, renames
from release_plan.ranking import OPTED_OUT
from release_plan.release import Release, version
from git_cli.git_repo import top
from larv_review.unmeasured import unmeasured_cut
# What a reason that a chunk empties a release ends with; such a chunk is due two scoring runs, any other reason one.
# The words that end the reason a chunk empties a release. Such a chunk is due two scoring runs; a chunk with any other reason, one.
EMPTIED_WORDS = "with no plan item"
@@ -63,10 +64,15 @@ def emptied(before: list[Item], after: list[Item], shipped: list[Item], renamed:
def plan_reasons(default: str, ids: list[int] | None) -> list[str] | Failure:
"""Why the plan calls a scoring run, from the default branch's todo.md and the checkout's. Where ids is None, the chunk ships each item the default branch's plan holds and the checkout's does not."""
"""Why the plan calls a scoring run, from the default branch's todo.md and the checkout's; empty where the project opts out of the comprehension check. Where ids is None, the chunk ships each item the default branch's plan holds and the checkout's does not."""
checkout = top()
if isinstance(checkout, Failure):
return checkout
decisions = file_at(default, "docs/decisions.md", checkout)
if isinstance(decisions, Failure):
return decisions
if OPTED_OUT.search(decisions):
return []
held = default_plan(checkout, default)
before = held.todo
if isinstance(before, Failure):