diff --git a/todo.md b/todo.md index 0b4a3bdf..c7006d88 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 575` +`Next ID = 576` ## Items @@ -18,6 +18,7 @@ | 573 | 0.18.0 | | | **Have `larv-review` fetch each page a prose claim cites as its source, and hand it to the prose reviewer, which has no web access.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.0 | | 572 | 0.18.0 | | | **Have the pre-review sweep in `larv-review` §2 also find each "every" or "each" claim in the docs that the change adds an exception to.** | 1 | 2 | 3 | 4 | 1 | 1.1 by 2 | 0.7 | | 574 | 0.18.0 | | | **Have the pre-review sweep in `larv-review` §2 also check each documented input range of a changed builtin or option against a value just outside it, and fix what the docs leave unsaid.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 | +| 575 | 0.18.0 | | | **Have stability-reviewer report a value read after an `await` that was captured before it, where the awaited call returns the fresh one.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 2 | 0.7 | | 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 | | 482 | 0.19.0 | 481 | owner | **Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3, 2 by 6 | 1.6 | | 485 | 0.19.0 | 482 | owner | **Rename `loop-claude` to `build-release`, and keep `loop-claude` as an alias that warns, for one release.** | 2 | 2 | 3 | 5 | 4 | 1.3 by 2, 5 by 2 | 2.5 | @@ -151,6 +152,15 @@ An outside reviewer found, on a pull request that added an id builtin, two doc l Add to that sweep: for each builtin, flag or option the change adds, take each range or set of inputs the docs state, run the command once with a value just outside it, and where the output is empty, an error or a clamp, check that the docs name that result. Hand the runs to the product-owner reviewer through the claimed-output file, as §3 does for lines that claim what a command prints. +### 575. Have stability-reviewer report a value read after an `await` that was captured before it, where the awaited call returns the fresh one. + +An outside auto-reviewer caught this on a client chunk after every local pass was clean. A React component awaited a TanStack Query `refetch()`, kept the `data` it returned, but chose its error message from the hook's render-time `error`. That value was captured before the await, so a refetch that failed with a known reason showed the general message. The stability reviewer's checklist covers races and state mutation (`agents/stability-reviewer.md`, "Are there potential race conditions?"), but nothing points it at a stale read across one await in the same function. + +Add one bullet beside the race checks: where a function awaits a call that refreshes state and returns it, such as `refetch()` or a re-read, every value used after the await comes from what the call returned, not from a variable or closure captured before it. The finding is a 🟡, or a 🔴 where the stale value decides what a user is told or what is written. + +Touches: +- `agents/stability-reviewer.md`: `## Review Focus Areas` (small) + ### 561. Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window. Today a parked chunk whose pull request is no longer open (`gates.Unopened`, `bin/do_epic/gates.py`) gets news for its worker to remove the worktree (`parking.news_after`). That worker needs a running slot, so behind the epic's `**Max parallel chunks:**` cap or the repo's `parallel-chunks`, the chunk stays parked with "it may be merged or closed already, but the chunk stays parked", and its window lingers for days. On a team epic, the issue of one such chunk was already Done while its window still read "awaits a slot". The person reads that as stuck work, and once a slot frees, a whole worker run goes to `chunk-pr clean`.