From d4aebac6abe119a3b9283c1d07db3bc42413e238 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 09:27:19 +0200 Subject: [PATCH] Answer product-owner round 1: the scope line falls back to the task, and a loop worker skips rereading the premises --- CLAUDE.md | 2 +- bin/loop_claude/cycle/prompts.py | 2 +- bin/loop_claude/test_black_box.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6c6adf29..d3821297 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **When the next release has no items and no work has landed towards it, plan it as this chunk.** Move the highest-scoring items of later releases into it, and get the human's approval of that set before writing any code. - **When the next release has no items left and work has landed towards it, it is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix lands, into that release; never start a later release's items or plan a new one. - **Open every chunk with one line:** the last version cut, what is unreleased (`CHANGELOG.md` โ†’ `## Unreleased`, or else the log since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once. -- **Read the README's `## Goals` and `## Audience` before starting a chunk.** The item sets the chunk's scope; the goals choose between ways to meet it, and never widen it. +- **Read the README's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The item sets the chunk's scope; the goals choose between ways to meet it, and never widen it. - **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they name one release; and they fire the same review passes (`larv-review` ยง3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten that name one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md`. An item marked `question` waits for the human; take the next item. - **Ask, don't guess.** First check whether the goals already answer the question. If they nearly do, propose a change to the goals and show how it answers this case: an answer settles one question, a goal settles every question like it. Write every answer once, where it belongs, never only in chat: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in a comment at the one place it governs, or in `docs/decisions.md` once made in more than one place. When an answer holds a goal and a choice, write the goal in the README, and record as a choice only what the goal leaves open. - **Bench a syntax with the people who write it.** Before a new or changed spelling of something users read or write ships โ€” markdown, HTML, a config key, a CLI flag โ€” a panel of fresh-context readers, seated as those users from the README's `## Audience`, picks it. diff --git a/bin/loop_claude/cycle/prompts.py b/bin/loop_claude/cycle/prompts.py index 36426a48..f2b8d4df 100644 --- a/bin/loop_claude/cycle/prompts.py +++ b/bin/loop_claude/cycle/prompts.py @@ -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: diff --git a/bin/loop_claude/test_black_box.py b/bin/loop_claude/test_black_box.py index 24f5e610..c738ae87 100644 --- a/bin/loop_claude/test_black_box.py +++ b/bin/loop_claude/test_black_box.py @@ -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"))