From 3a5977f63aa7a27a30813376ff7da00135d8f051 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 09:29:58 +0200 Subject: [PATCH] Answer prose round 1: one referent per pronoun, and a chunk's items set its scope --- CHANGELOG.md | 2 +- CLAUDE.md | 2 +- bin/loop_claude/cycle/prompts.py | 2 +- bin/loop_claude/loop/main.py | 7 +++---- bin/loop_claude/test_black_box.py | 2 +- todo.md | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2723104..d27a4348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `loop-claude` puts the README's Goals and Audience into each new worker session's prompt, under a line saying that the item sets the chunk's scope and the goals choose between ways to meet it, never widening it. A session outside the loop reads them before starting a chunk, as `CLAUDE.md` now says. +- Each new `loop-claude` worker session's prompt now quotes the README's Goals and Audience. A line above them says that the chunk's `todo.md` items, or else the task, set its scope, and that the goals only choose how to deliver it. A session outside the loop reads Goals and Audience before starting a chunk, as `CLAUDE.md` now says. - A session no longer reads the technical principles before writing code. It writes the simplest change that solves its item, test first wherever a test can check the change, and reads a principle only when the item changes it, a finding names it, or a decision or `todo.md` item it writes cites it. larv-review's reviewers hold the change to the principles, and a finding against one names it. Expect more findings from the prose and stability reviewers, since sessions no longer load the rules for comments and READMEs. - The rules for comments and READMEs, "Quality" and the examples behind "Prose" moved to `skills/larv-review/standards/`, which the prose and stability reviewers and `loop-claude`'s judge read. `CLAUDE.md` keeps a short core of "Prose"; sorting where order carries no meaning lives only in the technical principles. - A session no longer points out a preference you have repeated or asks you to write it up, and no longer restructures `CLAUDE.md` and `rules/` after changing them. diff --git a/CLAUDE.md b/CLAUDE.md index d3821297..45f6fba2 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, unless your prompt quotes them.** 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 chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. - **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 f2b8d4df..a391d202 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 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}" + 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 items, or else the task above, set its scope. The goals below choose between ways to deliver that scope, and never widen it.\n\nFrom README.md:\n{premises}" def resumed(unfinished_evidence: str) -> str: diff --git a/bin/loop_claude/loop/main.py b/bin/loop_claude/loop/main.py index 2d5f0cee..410039b8 100644 --- a/bin/loop_claude/loop/main.py +++ b/bin/loop_claude/loop/main.py @@ -3,10 +3,9 @@ usage: loop-claude Run it anywhere inside a project checkout whose README.md has ## Goals and ## Audience, the -premises; the task runs at the checkout root. Each cycle a worker runs the task, and a fresh session's -prompt adds the premises, which choose between ways to meet the chunk's todo.md item and never -widen its scope. A judge then reads -the transcript's end, the premises, and the records: the project's AGENTS.md and docs/decisions.md, +premises; the task runs at the checkout root. Each cycle a worker runs the task. A chunk's first +worker prompt also quotes the premises, which choose between ways to deliver the chunk's todo.md +items, or else the task, and never widen them. A judge then reads the transcript's end, the premises, and the records: the project's AGENTS.md and docs/decisions.md, and the human's ~/.claude/CLAUDE.md, ~/.claude/rules/*.md and ~/.claude/skills/larv-review/standards/*.md, where they exist. It rules whether the chunk, the work of one PR, is finished. A chunk stays unfinished until each answer the human typed in it that a diff --git a/bin/loop_claude/test_black_box.py b/bin/loop_claude/test_black_box.py index c738ae87..38723244 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 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.assertTrue(argument(workers[0], "-p").endswith("The chunk's todo.md items, or else the task above, set its scope. The goals below choose between ways to deliver that scope, 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")) diff --git a/todo.md b/todo.md index 301a57b7..c80332c3 100644 --- a/todo.md +++ b/todo.md @@ -103,7 +103,7 @@ From its second round on, a pass reviews only how the chunk answered the round b ### 109. Lower the reading cost of the files a chunk reads most before its first commit. -`bin/reading-cost` found a rise: the last 5 chunks' median is 106562 new input tokens before their first commit, the 5 before them 62197. Read most over the last 5 (opens and searches): `CLAUDE.md` 17, `todo.md` 13, `docs/decisions.md` 11, `README.md` 10, `skills/larv-review/SKILL.md` 9, `CHANGELOG.md` 8, `bin/loop_claude/loop/main.py` 8, `.gitignore` 5, `agents/stability-reviewer.md` 5, `AGENTS.md` 4. The chunk that ships this item runs `reading-cost --reset`. +`bin/reading-cost` found a rise: the last 5 chunks' median is 106562 new input tokens before their first commit, the 5 before them 62197. Files read most in those 5 chunks (opens and searches): `CLAUDE.md` 17, `todo.md` 13, `docs/decisions.md` 11, `README.md` 10, `skills/larv-review/SKILL.md` 9, `CHANGELOG.md` 8, `bin/loop_claude/loop/main.py` 8, `.gitignore` 5, `agents/stability-reviewer.md` 5, `AGENTS.md` 4. The chunk that ships this item runs `reading-cost --reset`. ### 93. Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model.