From 6632ceb3d3ae026bba9c8b8f64ca77e61dcda5e0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:04:05 +0100 Subject: [PATCH 1/9] Add a test-waits-on-a-signal bullet to the technical principles --- docs/reading-cost.md | 11 +++++++++++ principles/technical-principles.md | 1 + 2 files changed, 12 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index b3ba5b08..8ecf4cff 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -3874,3 +3874,14 @@ Read most (opens and searches): - `docs/decisions.md` 18 - `todo.md` 12 - `README.md` 4 + +## Reading cost, chunk 4740420b79e6, finished 2026-12-01T16:03:35Z + +61467 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/loop_claude/test_black_box.py` 3 +- `README.md` 2 +- `bin/agent_cycle/retry.py` 1 +- `bin/claude_code/entries.py` 1 diff --git a/principles/technical-principles.md b/principles/technical-principles.md index 6053f99e..b4f7f273 100644 --- a/principles/technical-principles.md +++ b/principles/technical-principles.md @@ -62,6 +62,7 @@ - Every escaped bug becomes a test that fails without its fix. - Write no test that no real bug could fail: a constant's value, a list's length, the framework's own behaviour. - A test neither sleeps nor asserts on the wall clock, and seeds any randomness. + - A test that reads state another goroutine, process or queue sets waits on a signal that the code under test or its fake sends, such as a channel or a callback, with a timeout that only fails the test. Reading the state straight after the call races with the other side, and a sleeping poll breaks the rule above. BANNED: `assert len(server.connections) == 3` right after the client calls. GOOD: the fake sends on a channel per connection, and the test receives three times, with a timeout. - For pure logic over many inputs, prefer a property test: a round trip, an invariant. - Changing tests and changing other code are two separate processes โ€” be very careful about doing both at once. - Use properly randomised UUID v7s โ€” never `aaaa-0000`-style placeholders. From 60f85c52a65a1c213d7ecc437438decea28052f6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:04:15 +0100 Subject: [PATCH 2/9] Make product-owner-reviewer report each sentence the change promises that no shipped code makes true --- agents/product-owner-reviewer.md | 2 ++ docs/reading-cost.md | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/agents/product-owner-reviewer.md b/agents/product-owner-reviewer.md index ff2455ab..4e604be2 100644 --- a/agents/product-owner-reviewer.md +++ b/agents/product-owner-reviewer.md @@ -47,6 +47,8 @@ Before anything else, **read the technical principles** in the folder your promp 7. **Check each claim about output against its run.** A changed doc line that says what a command, flag or error prints, or what a command writes, is true only if the real output or the written file says so. Where your prompt has a `Claimed output:` line, that file holds each such claim's command and real output, or the lines it wrote. Report a claim the output or the written lines don't bear out, such as an error said to name the fix that doesn't, and name the missing words. Never settle one by reading code. A claim marked `not run`, or one you find that the prompt doesn't hand you a run of, is a โ“ naming the command that would run it. +8. **Check each behaviour the change's own text promises against the code it ships.** Where text the change adds or edits, in docs, help or error text, states a behaviour, check that the shipped code makes it true everywhere the text says it holds, such as for each output, flag or input. A plan item that will make it true later doesn't remove the finding: report it as a ๐ŸŸก whose fix qualifies the sentence to what holds today, or ships the item first. Name the sentence and the output or case where it doesn't hold. Text the change didn't touch that is false for the same reason stays unreported. + ## Your Output Format Report only a defect a persona hits; a requirement that the change breaks, of the plan in the file your prompt's `Plan:` line names, of the goals in the file your prompt's `Goals and audience:` line names, or of code health (`~/.claude/CLAUDE.md` โ†’ "Shared goal", unless that file voids it); or a breach of a technical principle, or of a coding convention, which counts as one. Friction that is none of these is not a finding. diff --git a/docs/reading-cost.md b/docs/reading-cost.md index b3ba5b08..8ecf4cff 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -3874,3 +3874,14 @@ Read most (opens and searches): - `docs/decisions.md` 18 - `todo.md` 12 - `README.md` 4 + +## Reading cost, chunk 4740420b79e6, finished 2026-12-01T16:03:35Z + +61467 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/loop_claude/test_black_box.py` 3 +- `README.md` 2 +- `bin/agent_cycle/retry.py` 1 +- `bin/claude_code/entries.py` 1 From 83f9e8f2b4c4b3c64fc4d9c5762076af4659e4b3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:06:00 +0100 Subject: [PATCH 3/9] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20lead=20with?= =?UTF-8?q?=20the=20condition,=20split=20off=20the=20timeout,=20name=20eac?= =?UTF-8?q?h=20example's=20parts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- principles/technical-principles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/principles/technical-principles.md b/principles/technical-principles.md index b4f7f273..feb9981b 100644 --- a/principles/technical-principles.md +++ b/principles/technical-principles.md @@ -62,7 +62,7 @@ - Every escaped bug becomes a test that fails without its fix. - Write no test that no real bug could fail: a constant's value, a list's length, the framework's own behaviour. - A test neither sleeps nor asserts on the wall clock, and seeds any randomness. - - A test that reads state another goroutine, process or queue sets waits on a signal that the code under test or its fake sends, such as a channel or a callback, with a timeout that only fails the test. Reading the state straight after the call races with the other side, and a sleeping poll breaks the rule above. BANNED: `assert len(server.connections) == 3` right after the client calls. GOOD: the fake sends on a channel per connection, and the test receives three times, with a timeout. + - When another goroutine, process or queue sets the state a test reads, the test waits for a signal that the code under test or its fake sends, such as a message on a channel or a callback. Give the wait a timeout whose only effect is to fail the test when the signal never comes. Reading the state straight after the call that starts the work races with that work, and polling with sleeps breaks the rule above. BANNED: `assert len(server.connections) == 3` right after the client opens three connections. GOOD: the fake server sends on a channel each time it accepts a connection, and the test receives from that channel three times, each receive with a timeout. - For pure logic over many inputs, prefer a property test: a round trip, an invariant. - Changing tests and changing other code are two separate processes โ€” be very careful about doing both at once. - Use properly randomised UUID v7s โ€” never `aaaa-0000`-style placeholders. From 442c6bc117562a31ac2b575012b3d68598842817 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:06:00 +0100 Subject: [PATCH 4/9] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20approved,?= =?UTF-8?q?=20nothing=20to=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 21c10ef0ec8f4c3982e4614ef61fcca5c146dc5d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:06:15 +0100 Subject: [PATCH 5/9] Finish item 566 in the plan --- CHANGELOG.md | 1 + todo.md | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3989906b..807d0298 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- The technical principles now say that a test waits on a signal the code or its fake sends when it reads state another goroutine, process or queue sets, never on a count read straight after the call. - Added the project config folder and the models file to the install's backup step, and worded goal 3 to point at that list. - Worded goal 1 for any agent harness and model, and goal 3 for the setup's files with this repo as their copy. - Added a goal that the setup doesn't depend on any one model vendor or agent harness, and worded goals 1, 1.2 and 3 for whoever runs the setup. diff --git a/todo.md b/todo.md index 1199f16f..fde7922f 100644 --- a/todo.md +++ b/todo.md @@ -15,7 +15,6 @@ | 567 | 0.17.0 | | | **Make product-owner-reviewer report each sentence of the change that states a behaviour no code makes true yet, including one a later plan item will make true.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 569 | 0.17.0 | | | **Rerun the stability pass on a fix for a ๐ŸŸก that adds a new unit of behaviour, such as a guard or shared state; today no pass reads it.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 568 | 0.17.0 | | | **Make the prose and product-owner reviewers flag a number, threshold or "noise" claim in a README that no measurement in the change supports, and a measurement note that omits what it leaves out.** | 1 | 2 | 1 | 2 | 2 | 1.1 by 2 | 0.7 | -| 566 | 0.17.0 | | | **Add to `technical-principles.md` that a test waits for work another goroutine or process does on a signal the code or its fake sends, never on a count read straight after the call.** | 1 | 2 | 1 | 2 | 1 | 1 by 1 | 0.4 | | 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 1.9 | | 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, 2 by 2, code health by 2 | 1.5 | | 571 | 0.18.0 | | | **Make `task-bench` run a project's tests that call git, such as `git ls-files` and `git show :settings.json`, when started from a chunk's worktree, or fail before its first run with a message naming the cause.** | 2 | 1 | 1 | 2 | 3 | 1.1 by 3, 1.4 by 2 | 1.4 | @@ -146,16 +145,6 @@ Touches: - `agents/prose-reviewer.md`: `## Your Review Method` (small) - `agents/product-owner-reviewer.md`: `## Your Review Method` (small) -### 566. Add to `technical-principles.md` that a test waits for work another goroutine or process does on a signal the code or its fake sends, never on a count read straight after the call. - -An outside reviewer found a test that counted the connections a fake server had accepted straight after the calls that made them. The server's accept loop runs on its own goroutine, so the count can lag, and the test could fail with nothing wrong. Our stability review passed it twice, and the fix I first reached for was a sleeping poll, which the principle "A test neither sleeps nor asserts on the wall clock" bans. The principle names the sleep but gives no way to wait without one. - -Add one bullet beside it under "Most, if not all, code should have automated tests": a test that reads state another goroutine, process or queue sets waits on a signal that the code under test or its fake sends, such as a channel or a callback, with a timeout that only fails the test. BANNED: `assert len(server.connections) == 3` right after the client calls. GOOD: the fake sends on a channel per connection, and the test receives three times, with a timeout. - -Touches: - -- `principles/technical-principles.md` - ### 480. Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`. Part of the standalone-install plan lilleman approved on 2026-11-20. Today about 160 references in some 40 modules name `~/.claude`; `bin/loop_state/paths.py` holds a few. This item changes no behaviour. From b85854aca4c1e88a64dc9ada0be43068886d4c74 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:08:55 +0100 Subject: [PATCH 6/9] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 84a024e2cc48938ca1ee5f70c68495a3c372e9d9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:10:41 +0100 Subject: [PATCH 7/9] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20leave=20ste?= =?UTF-8?q?p=207's=20claims=20to=20step=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/product-owner-reviewer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/product-owner-reviewer.md b/agents/product-owner-reviewer.md index 4e604be2..d3ca493a 100644 --- a/agents/product-owner-reviewer.md +++ b/agents/product-owner-reviewer.md @@ -47,7 +47,7 @@ Before anything else, **read the technical principles** in the folder your promp 7. **Check each claim about output against its run.** A changed doc line that says what a command, flag or error prints, or what a command writes, is true only if the real output or the written file says so. Where your prompt has a `Claimed output:` line, that file holds each such claim's command and real output, or the lines it wrote. Report a claim the output or the written lines don't bear out, such as an error said to name the fix that doesn't, and name the missing words. Never settle one by reading code. A claim marked `not run`, or one you find that the prompt doesn't hand you a run of, is a โ“ naming the command that would run it. -8. **Check each behaviour the change's own text promises against the code it ships.** Where text the change adds or edits, in docs, help or error text, states a behaviour, check that the shipped code makes it true everywhere the text says it holds, such as for each output, flag or input. A plan item that will make it true later doesn't remove the finding: report it as a ๐ŸŸก whose fix qualifies the sentence to what holds today, or ships the item first. Name the sentence and the output or case where it doesn't hold. Text the change didn't touch that is false for the same reason stays unreported. +8. **Check each behaviour the change's own text promises against the code it ships.** Where text the change adds or edits, in docs, error text or help, states a behaviour other than what step 7 checks against a run, check that the shipped code makes it true everywhere the text says it holds, such as for each flag, input or output. Report each sentence the code doesn't make true as a ๐ŸŸก, even where a plan item will make it true later. Its fix qualifies the sentence to what holds today, or ships the item first. Name the sentence and the output or case where it doesn't hold. Text the change didn't touch that is false for the same reason stays unreported. ## Your Output Format From a98412da4f1ed23bcfd794b732f82439341a9d5c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:10:41 +0100 Subject: [PATCH 8/9] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20same=20fix,?= =?UTF-8?q?=20plus=20reorder=20two=20lists=20and=20reword=20the=20finding?= =?UTF-8?q?=20sentence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 29c91748731f80e85cdd9263a3633b17c0bb70a8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 1 Dec 2026 17:16:35 +0100 Subject: [PATCH 9/9] Finish item 567 in the plan --- CHANGELOG.md | 1 + todo.md | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 807d0298..5dd25f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- The product-owner reviewer reports each sentence of a change that promises a behaviour the shipped code doesn't make true, even where a plan item will make it true later. - The technical principles now say that a test waits on a signal the code or its fake sends when it reads state another goroutine, process or queue sets, never on a count read straight after the call. - Added the project config folder and the models file to the install's backup step, and worded goal 3 to point at that list. - Worded goal 1 for any agent harness and model, and goal 3 for the setup's files with this repo as their copy. diff --git a/todo.md b/todo.md index fde7922f..b857c21b 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 567 | 0.17.0 | | | **Make product-owner-reviewer report each sentence of the change that states a behaviour no code makes true yet, including one a later plan item will make true.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 569 | 0.17.0 | | | **Rerun the stability pass on a fix for a ๐ŸŸก that adds a new unit of behaviour, such as a guard or shared state; today no pass reads it.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 568 | 0.17.0 | | | **Make the prose and product-owner reviewers flag a number, threshold or "noise" claim in a README that no measurement in the change supports, and a measurement note that omits what it leaves out.** | 1 | 2 | 1 | 2 | 2 | 1.1 by 2 | 0.7 | | 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 1.9 | @@ -110,21 +109,6 @@ ## Details -### 567. Make product-owner-reviewer report each sentence of the change that states a behaviour no code makes true yet, including one a later plan item will make true. - -An outside reviewer caught what our review missed. A chunk added a doc paragraph that promised an effect, which held for one output and not for another. The product-owner reviewer had seen the gap and left it out of its report because a plan item already covers the missing half. The plan item makes the promise true later; until it ships, the paragraph the chunk adds is false for a reader who relies on it. - -Add one rule to `agents/product-owner-reviewer.md` โ†’ `## Your Review Method`: -- Where the change's own new or edited text, in docs, help or error text, states a behaviour, check that the code the change ships makes it true everywhere the text says it holds. -- A plan item that will make it true later doesn't remove the finding. The finding is a ๐ŸŸก, and its fix qualifies the sentence to what holds today, or the chunk ships the item first. Text the change didn't touch that is false for the same reason stays unreported. - -A finding names the sentence and the output or case where it doesn't hold. - -Why the setup missed it: the reviewer's own scope line allows a finding only for a plan requirement the change breaks, and read the plan as a reason to stay silent. No tool checks a doc claim against behaviour. - -Touches: -- `agents/product-owner-reviewer.md`: `## Your Review Method` (small) - ### 569. Rerun the stability pass on a fix for a ๐ŸŸก that adds a new unit of behaviour, such as a guard or shared state; today no pass reads it. A chunk's product-owner round raised a ๐ŸŸก: a callback could recurse. The fix added a new mechanism, a shared counter that guards the callback. `larv-review` ยง3 โ†’ "Re-entry" reruns no pass for a ๐ŸŸก fix unless it loosens a test, so no reviewer of ours read the mechanism. The forge's auto-reviewer then found that a second entry point bypassed the guard.