From 58cbc9a5e33d2f2de6d52b476f84eea1a683dee9 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Tue, 24 Nov 2026 12:54:21 +0100 Subject: [PATCH] File item 534: have the reviewers follow three paths an outside reviewer found unchecked --- todo.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 7804377a..734ac133 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 534` +`Next ID = 535` ## Items @@ -92,6 +92,7 @@ | 193 | 0.23.0 | | | **Narrow `numbered`'s mark to `Mark` by a typed lookup in place of `typing.cast`, so a mark added to the regex but not the lookup fails at run time, and one added to the lookup but not `Mark` fails mypy.** | 1 | 1 | 3 | 3 | 1 | 1.1 by 2 | 0.9 | | 194 | 0.23.0 | | | **Make `test_waits_out_a_usage_limit_which_ends_a_run_of_failures` expect a usage-limit wait independent of the wall-clock time that passes during the run.** | 1 | 1 | 1 | 1 | 1 | 1.1 by 2 | 0.9 | | 519 | 0.23.0 | | | **Make stability-reviewer check that a test which runs git, or a script that runs git on another repository, isolates it from the caller's git environment.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | +| 534 | 0.23.0 | | | **Have the stability and product-owner reviewers follow three paths an outside reviewer found unchecked: the loser of a create race, a stored null reaching a typed parameter, and each documented outcome against the order of the code's branches.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | | 298 | 0.23.0 | | | **Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind.** | 3 | 3 | 3 | 7 | 4 | 1.4 by 2, 1.5 by 1 | 0.9 | | 265 | 0.23.0 | | | **Archive each wait that costs a chunk wall time, for a usage limit, low memory, a failed worker start or a heavy slot, with its start and end stamps, so goal 1.5's hours split waiting from work.** | 3 | 2 | 2 | 5 | 4 | 1.5 by 3 | 0.8 | | 475 | 0.23.0 | | | **Have stability-reviewer report, as a finding, each lookup that an input from outside the repo can make fail without an error naming what was missing.** | 1 | 1 | 2 | 2 | 2 | 1.1 by 2 | 0.8 | @@ -682,6 +683,18 @@ Add one check to the stability reviewer (`agents/stability-reviewer.md`), or to A finding names the test or script line and the variables it inherits. +### 534. Have the stability and product-owner reviewers follow three paths an outside reviewer found unchecked: the loser of a create race, a stored null reaching a typed parameter, and each documented outcome against the order of the code's branches. + +An outside auto-reviewer raised three findings on one chunk, after two rounds of the stability pass and two of the product-owner pass had cleared it. Each fell under a rule the reviewers already hold, read too narrowly: + +- `agents/stability-reviewer.md` asks whether a unique constraint wins a check-then-insert race. It doesn't ask what the losing request then does. The reviewer saw the constraint and stopped, and the loser answered with a server error instead of taking the path for a row that exists. Add: follow the loser, on every branch that inserts. +- The same file asks whether null inputs are handled. The reviewer checked the request's values, not the stored row's. A nullable column read into a typed parameter throws. Add: for each column the change newly reads, ask what a null in an existing row does. +- `agents/product-owner-reviewer.md` doesn't ask the reviewer to check each outcome the documentation promises against the branch that returns it. An early return for "nothing to change" answered before the branch the documentation promised. Add: for each documented outcome, name the input that reaches it and the branch that returns it, in the order the code tests them. + +Touches: +- `agents/stability-reviewer.md`: `### 6. Concurrency & State Management` (small) +- `agents/product-owner-reviewer.md` + ### 298. Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind. 153 `Judge cost:` entries total $109.76, a median of about $0.76 a verdict at every rung, and the cost follows the size of the records, not the transcript: about 76k characters in log and 188k in claude-config. In 224 of 251 recent verdicts (89%) the evidence sits in the worker's final message. A missed interrupt is the costly error, so the bar is zero changed interrupts and zero new rejections across the replay. The judge is about 4.5% of dollars, so the saving is small; each cycle also gets faster. -- 2.52.0