Answer principles round 1: 1 🔴, 2 🟡; file item 185 to let todo.md say renamed or deferred, cite it and the goal 1.1 cost in the decision, and revise the scoring-run decision

This commit is contained in:
2026-10-18 00:12:09 +02:00
parent 3f6f0456fb
commit 8ffe26a33d
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ from larv_review.git import landed_since_release
def scoring_run_due(before: list[Item], after: list[Item], ships: list[int], landed: bool) -> list[str] | Failure:
"""Why the plan calls a scoring run, empty when it does not. before is the default branch's plan, after the chunk's, ships the IDs it ships, and landed whether the default branch holds a commit after its newest release tag.
A chunk that ships an item naming the floor is due one, so it can prove the floor met. So is a chunk that empties a release after work has landed towards it, so no release ends unmeasured. Work has landed when the chunk ships one of the release's items, or when the release is the earliest one `before` names and `landed` holds. A release whose items all moved to other releases was renamed, as todo_table.renamed says, and is due none.
A chunk that ships an item naming the floor is due one, so it can prove the floor met. So is a chunk that empties a release after work has landed towards it, so no release ends unmeasured, short of one deferred as below. Work has landed when the chunk ships one of the release's items, or when the release is the earliest one `before` names and `landed` holds. A release whose last items all moved to other releases, renamed or deferred, reads as renamed, as todo_table.renamed says, and is due none.
"""
plan = {item.id: item for item in before + after}
if unknown := sorted(set(ships) - set(plan)):
+1 -1
View File
@@ -214,7 +214,7 @@ def named_releases(todos: list[str] | Failure) -> set[tuple[int, int, int]] | Fa
def renamed(before: list[Item], after: list[Item]) -> set[tuple[int, int, int]]:
"""Each release before names and after does not whose items after all holds: no item left the plan from it, so it was renamed, never finished, as `docs/decisions.md` → `todo.md: a release whose items all moved` says."""
"""Each release before names and after does not whose items after all holds: no item left the plan from it, so it was renamed, never finished, as `docs/decisions.md` → `todo.md: a release whose last items all move …` says."""
held = {item.id for item in after}
gone = {item.release for item in before} - {item.release for item in after}
return {release for release in gone if all(item.id in held for item in before if item.release == release)}