Answer product-owner round 1: 0 🔴, 2 🟡 (0 misread); let the planner compare Scores in the file, name finish --no-changelog for a dropped item, name the plan's path in every refusal and exit 2 on a bad --release

This commit is contained in:
2026-11-14 16:01:50 +01:00
parent 812badf8b4
commit 0cb2cbabcd
9 changed files with 72 additions and 64 deletions
+1 -5
View File
@@ -107,8 +107,4 @@ def plan_reasons(ref: str, ids: list[int] | None, home: pathlib.Path) -> list[st
def checkout_plan(plan: PlanStore) -> Plan | Failure:
"""The project's plan as it stands."""
read = plan.read()
if isinstance(read, NoItemsTable):
return Failure(f"the project's plan has no items table: {read.reason}")
if isinstance(read, Failure):
return Failure(f"the project's plan: {read.reason}")
return read
return Failure(f"the project's plan: {read.reason}") if isinstance(read, Failure) else read