Answer product-owner round 1: the scope line falls back to the task, and a loop worker skips rereading the premises

This commit is contained in:
2026-10-13 09:27:19 +02:00
parent 1ff8adb331
commit d4aebac6ab
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could
def fresh(task: str, premises: str) -> str:
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\nThe item sets the chunk's scope; the goals choose between ways to meet it, and never widen it.\n\nFrom README.md:\n{premises}"
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\nThe chunk's todo.md item, or else the task above, sets its scope; the goals below choose between ways to meet it, and never widen it.\n\nFrom README.md:\n{premises}"
def resumed(unfinished_evidence: str) -> str:
+1 -1
View File
@@ -348,7 +348,7 @@ class Cycles(unittest.TestCase):
self.assertIsNone(argument(workers[1], "--name"))
self.assertEqual(argument(workers[2], "--session-id"), session)
self.assertTrue(argument(workers[0], "-p").startswith(f"{TASK}\n\nContinue any open draft PR"))
self.assertTrue(argument(workers[0], "-p").endswith("The item sets the chunk's scope; the goals choose between ways to meet it, and never widen it.\n\nFrom README.md:\n## Goals\n1. Work.\n\n## Audience\nMe."))
self.assertTrue(argument(workers[0], "-p").endswith("The chunk's todo.md item, or else the task above, sets its scope; the goals below choose between ways to meet it, and never widen it.\n\nFrom README.md:\n## Goals\n1. Work.\n\n## Audience\nMe."))
self.assertNotIn(TASK, argument(workers[1], "-p"))
self.assertIn("Even then, it is finished only once every answer the human typed in it", argument(workers[1], "-p"))
self.assertIn("as the work remaining:\n\n> started\n\n", argument(workers[1], "-p"))