Compare commits

...

2 Commits

Author SHA1 Message Date
Lilleman c0d820a0de File item 575: report a stale read across an await
CI / tests (pull_request) Successful in 4m3s
2026-12-03 10:43:20 +01:00
lilleman fb72809989 Plan item 574: check each documented input range's edge in the pre-review sweep
CI / tests (pull_request) Successful in 3m53s
2026-12-02 21:20:33 +01:00
+18 -1
View File
@@ -6,7 +6,7 @@
`Bar = 0.1`
`Next ID = 574`
`Next ID = 576`
## Items
@@ -17,6 +17,8 @@
| 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 |
| 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 |
@@ -144,6 +146,21 @@ An outside reviewer found, on a pull request that added a locale with no phone n
Add to that search each sentence of the project's Markdown, help text and comments that claims something of every or each member of a set the change adds a member to, such as every locale, every command or every format, and fix each one the new member makes false.
### 574. 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.
An outside reviewer found, on a pull request that added an id builtin, two doc lines that left out what the builtin prints when its date operand falls outside the years it supports, such as under a `--today` far in the past or future. Our review did not raise them: the reviewers that read docs have no shell, so none ran the command with an input just outside the range the docs state, and §2's search covers only names the change renames or removes.
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`.