From 03a63262ec78c2357207b99f484522cad5cc7545 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 1 Dec 2026 15:35:40 +0100 Subject: [PATCH 1/4] Plan a principle on waiting for another goroutine's work in a test --- todo.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 87ad5c48..00fd3817 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,14 @@ `Bar = 0.1` -`Next ID = 566` +`Next ID = 567` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 565 | 0.17.0 | | question | **Decide whether Install's backup step covers the agents' memory files under `~/.claude/projects/`, and whether the plan item that lists `~/.claude/rules/this-machine/` names a folder anything writes.** | 1 | 2 | 1 | 2 | 2 | | 0.0 | +| 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 | | 561 | 0.18.0 | | | **Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.** | 2 | 2 | 2 | 4 | 3 | 1.5 by 2 | 0.5 | @@ -120,6 +121,16 @@ Recommendation: drop it from item 484's detail, unless the human keeps files the Touches: - `README.md`: `## Install` (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 c8cf50c540a490d91706072e8ab67d2f816230fc Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 1 Dec 2026 15:51:18 +0100 Subject: [PATCH 2/4] File item 567: make product-owner-reviewer report claims no code makes true yet --- todo.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 00fd3817..504de14b 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,14 @@ `Bar = 0.1` -`Next ID = 567` +`Next ID = 568` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 565 | 0.17.0 | | question | **Decide whether Install's backup step covers the agents' memory files under `~/.claude/projects/`, and whether the plan item that lists `~/.claude/rules/this-machine/` names a folder anything writes.** | 1 | 2 | 1 | 2 | 2 | | 0.0 | +| 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 | | 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 | @@ -121,6 +122,21 @@ Recommendation: drop it from item 484's detail, unless the human keeps files the Touches: - `README.md`: `## Install` (small) +### 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, a log record that correlates to its span, 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) + ### 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. From 5dedca303d28a59c177625868c13a440a7fb05c8 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 1 Dec 2026 15:51:28 +0100 Subject: [PATCH 3/4] Describe item 567 without the project's feature --- todo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 504de14b..7f5107ef 100644 --- a/todo.md +++ b/todo.md @@ -124,7 +124,7 @@ Touches: ### 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, a log record that correlates to its span, 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. +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. From abe1f52ff8256b6a741042048646e05de15e886d Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 1 Dec 2026 16:05:35 +0100 Subject: [PATCH 4/4] Flag unsupported number, threshold and noise claims in docs, and benchmark notes that omit what they leave out --- todo.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 7f5107ef..14e90f93 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 568` +`Next ID = 569` ## Items @@ -14,6 +14,7 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 565 | 0.17.0 | | question | **Decide whether Install's backup step covers the agents' memory files under `~/.claude/projects/`, and whether the plan item that lists `~/.claude/rules/this-machine/` names a folder anything writes.** | 1 | 2 | 1 | 2 | 2 | | 0.0 | | 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 | +| 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 | @@ -137,6 +138,18 @@ Why the setup missed it: the reviewer's own scope line allows a finding only for Touches: - `agents/product-owner-reviewer.md`: `## Your Review Method` (small) +### 568. 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. + +A change that publishes benchmark figures drew two outside-reviewer findings our passes missed: a rule of thumb ("differences under 10% are noise") that the table's own rows contradicted, and a note that called work "background" when the exporters had simply discarded it, so encoding and network I/O were absent rather than hidden. Both are claims about a measurement, written without the data to hold them. + +A finding names the sentence, the figure or run-to-run spread that contradicts it, or the work the setup leaves out. Add it to `agents/prose-reviewer.md` and `agents/product-owner-reviewer.md` as one line each: a number, threshold or "noise" claim in docs must follow from figures the change reports, and a benchmark note must say what the setup leaves out. + +Why the setup missed it: the reviewers read the sentence for style and plain meaning, and no tool compares a claim in prose with the figures beside it. + +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.