Answer principles round 1: 0 🔴, 3 🟡 (0 misread); hand the home folder, the clock and the output to larv-review's commands from their wiring

This commit is contained in:
2026-11-13 03:04:44 +01:00
parent 87d5023773
commit e6da7b0b9c
22 changed files with 155 additions and 131 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ from release_plan.release_standing import Cut, default_plan, held_at, LastCut, n
from failure import Failure
from larv_review.scoring import is_floor_item
from release_plan.todo_table import Item, items, NoItemsTable, renames
from project_config.main import located
from release_plan.goals_file import OPTED_OUT
from project_config.main import project
from release_plan.release import Release, version
from larv_review.unmeasured import unmeasured_cut
@@ -63,9 +63,9 @@ def emptied(before: list[Item], after: list[Item], shipped: list[Item], renamed:
return sorted(named - {item.release for item in kept} - renamed)
def plan_reasons(ref: str, ids: list[int] | None) -> list[str] | Failure:
def plan_reasons(ref: str, ids: list[int] | None, home: pathlib.Path) -> list[str] | Failure:
"""Why the plan calls a scoring run, from todo.md at ref and the checkout's, each file where the project's config puts it; empty where the project opts out of the comprehension check. ref is the default branch, or the commit where the chunk began. Where ids is None, the chunk ships each item the plan at ref holds and the checkout's does not."""
config = project()
config = located(None, home)
if isinstance(config, Failure):
return config
checkout = str(config.top)