From 9f35e983613df9da06e6c0470d37af9fdc3ccef7 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 4 Dec 2026 12:37:26 +0100 Subject: [PATCH] Add a browser test's response wait to item 534's unchecked paths --- todo.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/todo.md b/todo.md index 68a4c022..0cdf581b 100644 --- a/todo.md +++ b/todo.md @@ -90,7 +90,7 @@ | 181 | 0.23.0 | | principle | **Have the test of a quoted answer's step-up assert the stepped rung's facts as literals, not through `prompts.rungs_held`.** | 1 | 1 | 1 | 1 | 1 | 1.1 by 2 | 0.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.7 | | 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.7 | -| 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.7 | +| 534 | 0.23.0 | | | **Have the stability and product-owner reviewers follow four paths an outside reviewer found unchecked: the loser of a create race, a stored null reaching a typed parameter, each documented outcome against the order of the code's branches, and a browser test that waits for a response instead of the state its callback writes.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 535 | 0.23.0 | | | **Have stability-reviewer check four things an outside reviewer and two failed gate runs found unchecked: that a timeout bounds the I/O it wraps, that no early error hides an outcome's class, that a test takes its timestamps where the events happen, and that it waits for every state it depends on before it disrupts the system.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 557 | 0.23.0 | | | **Make stability-reviewer check that a fix which makes a text match exact bounds the match on both sides, with a test for each side.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | | 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.7 | @@ -808,16 +808,17 @@ 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. +### 534. Have the stability and product-owner reviewers follow four paths an outside reviewer found unchecked: the loser of a create race, a stored null reaching a typed parameter, each documented outcome against the order of the code's branches, and a browser test that waits for a response instead of the state its callback writes. -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: +An outside auto-reviewer raised three findings on one chunk, and later a fourth on another, after two rounds of the stability pass and two of the product-owner pass had cleared it. The first three 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. +- `agents/stability-reviewer.md`'s tests section doesn't ask when a browser test's wait ends. On another chunk, a helper typed into a field right after `waitForResponse`, while the page's jQuery callback on that response still wrote the field; the test passed by timing alone. Add: in a browser test, wait for the state the page's callback writes, not for the response. Touches: -- `agents/stability-reviewer.md`: `### 6. Concurrency & State Management` (small) +- `agents/stability-reviewer.md`: `### 6. Concurrency & State Management` (small), `### 11. Tests` (small) - `agents/product-owner-reviewer.md` ### 535. Have stability-reviewer check four things an outside reviewer and two failed gate runs found unchecked: that a timeout bounds the I/O it wraps, that no early error hides an outcome's class, that a test takes its timestamps where the events happen, and that it waits for every state it depends on before it disrupts the system.