diff --git a/CHANGELOG.md b/CHANGELOG.md index 3989906b..5dd25f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 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. - 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/agents/product-owner-reviewer.md b/agents/product-owner-reviewer.md index f3ff28ab..03d7446f 100644 --- a/agents/product-owner-reviewer.md +++ b/agents/product-owner-reviewer.md @@ -47,7 +47,9 @@ 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 changed doc line that claims a measured result, a threshold drawn from one, or that a difference is noise against the figures the change or the repo reports.** One that no figure supports is a finding naming the sentence. One that a figure or the run-to-run spread contradicts is a finding naming the sentence and that figure or spread. A changed benchmark note that doesn't say what its setup leaves out, such as encoding or network I/O it never runs, is a finding naming the work. +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. + +9. **Check each changed doc line that claims a measured result, a threshold drawn from one, or that a difference is noise against the figures the change or the repo reports.** One that no figure supports is a finding naming the sentence. One that a figure or the run-to-run spread contradicts is a finding naming the sentence and that figure or spread. A changed benchmark note that doesn't say what its setup leaves out, such as encoding or network I/O it never runs, is a finding naming the work. ## Your Output Format diff --git a/principles/technical-principles.md b/principles/technical-principles.md index 6053f99e..feb9981b 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. + - 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. diff --git a/todo.md b/todo.md index 1199f16f..b857c21b 100644 --- a/todo.md +++ b/todo.md @@ -12,10 +12,8 @@ | 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 | -| 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 | @@ -111,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. @@ -146,16 +129,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.