diff --git a/todo.md b/todo.md index 734ac133..dad74be6 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 535` +`Next ID = 536` ## Items @@ -93,6 +93,7 @@ | 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 | +| 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.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 | @@ -695,6 +696,19 @@ Touches: - `agents/stability-reviewer.md`: `### 6. Concurrency & State Management` (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. + +An outside reviewer raised three findings on a client chunk that two stability rounds had passed. Each was real and was fixed. Add each as a check in `agents/stability-reviewer.md`: + +- **A timeout that doesn't bound the I/O it wraps.** A call was given a context with a deadline, but the library's blocking socket write doesn't watch the context, so a peer that stops reading holds the caller for good. For each timeout a change adds, the reviewer names the blocking call it is meant to bound and checks, in the library's source or docs, that the call honours it. +- **An error on the way that hides the answer's class.** A response's status said the failure was permanent, but an error while reading the body returned first, as retryable. Where code sorts an outcome into retry or give up, the reviewer follows each early error return between receiving the outcome and sorting it. +- **A test that times an event where it is observed, not where it happens.** A test asserted a minimum wait between two events from the times the test read them off a channel, so a slow reader passes or fails by scheduling. The reviewer checks that an assertion on elapsed time takes both timestamps where the events happen. + +The same chunk's own review found a fourth of this kind late, after two failed gate runs: a test disrupted the system once one state was visible, while the behaviour under test also needed a second state to have settled. Add it to the same list: before a test disrupts a system, it waits for every state the assertion depends on. + +Touches: +- `agents/stability-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.