Answer architecture round 1: 0 🔴, 2 🟡; fail on a mark over a live release, pin the second run's reason wording, state the target is for the reader

This commit is contained in:
2026-10-18 09:35:44 +02:00
parent ac33c733c7
commit 28a3f9c5e9
6 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def scoring_run_due(before: list[Item], after: list[Item], ships: list[int], lan
next_release = min((item.release for item in before), default=None)
for release in emptied(before, after, shipped, renamed):
if any(item.release == release for item in shipped) or (release == next_release and landed):
# SKILL.md → "Second run" keys on this wording.
# SKILL.md → "Second run" keys on this wording; a test pins both.
reasons.append(f"leaves release {'.'.join(map(str, release))} with no plan item")
return reasons
+6
View File
@@ -293,6 +293,12 @@ class ScoringRunDue(unittest.TestCase):
before = [item(1, (0, 2, 1)), item(2, (0, 3, 0))]
self.assertEqual(scoring_run_due(before, [item(1, (0, 3, 0)), item(2, (0, 3, 0))], [], True, set()), ["leaves release 0.2.1 with no plan item"])
def test_words_the_emptied_release_reason_as_skill_md_s_second_run_quotes_it(self):
skill = (pathlib.Path(__file__).resolve().parents[2] / "skills" / "larv-review" / "SKILL.md").read_text()
self.assertIn("`leaves release … with no plan item`", skill)
reasons = scoring_run_due([item(1, (0, 1, 0))], [], [], True, set())
self.assertRegex(reasons[0], r"^leaves release [0-9.]+ with no plan item$")
def test_is_not_due_when_a_later_release_loses_its_last_item_unshipped(self):
before = [item(1, (0, 1, 0)), item(3, (0, 2, 0))]
self.assertEqual(scoring_run_due(before, before[:1], [], True, set()), [])