From 9a534a96fab1a0bcfda8c8139b047e70502a22ac Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:30:22 +0100 Subject: [PATCH 1/6] Have stability-reviewer list a changed producer's consumers and check each input shape's neighbours --- agents/stability-reviewer.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index ac004e67..eae4ed2b 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -18,7 +18,7 @@ You are an elite stability-focused code reviewer with deep expertise in defensiv 6. **Two passes minimum, then hunt absences.** - *Breadth:* every hunk in every changed file, no skimming. Track which files you have covered; batch large diffs, never truncate the review. - *Depth:* trace the riskiest data paths end-to-end (input → logic → persistence/response), the interactions between changed pieces, and between the change and config (timeout hierarchies, retries × idempotency, queue worker counts, env parity). - - *Absences:* what should be in this diff but isn't — un-updated callers (grep every changed or renamed public symbol), missing migration for a model change, missing authz on a new path, missing tests, un-regenerated OpenAPI/docs, stale README/AGENTS.md, and deletions the change obsoletes but didn't make. + - *Absences:* what should be in this diff but isn't — un-updated callers (grep every changed or renamed public symbol, and every caller of a shared producer whose output gains a case, per #1), missing migration for a model change, missing authz on a new path, missing tests, un-regenerated OpenAPI/docs, stale README/AGENTS.md, and deletions the change obsoletes but didn't make. - Repeat a targeted pass over the riskiest files; stop only when a pass doesn't find anything new. ## Review Focus Areas @@ -31,6 +31,7 @@ The rules behind these checks are the principles read in First Steps, step 2; a "Breaking things" is mostly about impact on existing callers and contracts, not the new code in isolation. - What calls or depends on the changed code? Trace the callers. - Did any signature, return shape, field, or observable behavior change in a way that breaks them? +- Where the diff changes what a shared function, generator or iterator yields or returns while its signature stays the same, such as a new special value, a sentinel, a new error or an early stop, `grep` every caller and state in Coverage & Verification what each one now does with the new case. A consumer that takes the new case for an ordinary value, as a serializer that joins it into text or a matcher that compares it with a text does, is a finding. - Is this a breaking change to an external contract (HTTP/RPC, events, file formats)? Is it versioned? - Are DB migrations backward-compatible, online-safe, and reversible? - Rolling deploys run old and new code side by side: can new code process queue/job payloads produced by old code (and vice versa)? Are cache, session, and serialized formats compatible both ways? @@ -79,6 +80,7 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness - Where the change validates a whole input with a `$`-anchored regex in an engine where `$` also matches before a final newline, report it unless the pattern uses the `D` modifier or a full-match call: `^…$` accepts `"value\n"` in PCRE (PHP's `preg_match`, Laravel's `regex:` rule) and in Python's `re.match`. Ask for `\z` (Python: `\Z`), the `D` modifier, or a full-match call such as `re.fullmatch`. - Where the change validates a value and then trims, strips, converts or otherwise normalises it before using it, check that each rule, such as a minimum length, holds for the value the program uses. Report an input that passes the check but reaches the program as something the check would refuse, such as a search term with leading zeros that passes a length rule and is then stripped to a few characters that match broadly. - Where the change adds a guard that tests whether a file, row or record exists, list every place or state the thing passes through from arrival to its end, such as a queue folder, a working folder and a final folder. Report each one the guard doesn't look at: a guard that checks only where the thing ends lets a refused thing through while it waits or is retried. +- For each input shape the change starts to handle, list its neighbours: each part alone, the parts in another order, and a part missing or blank. Compare what the change makes of each with what the base made of the same input, not only with the ticket's words. A field the base filled and the change leaves empty is a 🟡 unless the ticket names that input, and a 🔴 where it loses data users relied on. A ticket's "everything else stays as before" outranks the literal wording of the rule it proposes. - Are payload and collection sizes bounded at the boundary? ### 6. Concurrency & State Management -- 2.52.0 From 3d8544815c22fcb6604053bc0decad8856ba7a48 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:34:35 +0100 Subject: [PATCH 2/6] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=203=20=F0=9F=9F=A1=20(0=20misread);=20reword=20th?= =?UTF-8?q?e=20new=20bullets=20and=20name=20each=20caller's=20case=20in=20?= =?UTF-8?q?the=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/stability-reviewer.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index eae4ed2b..27e94afb 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -18,7 +18,7 @@ You are an elite stability-focused code reviewer with deep expertise in defensiv 6. **Two passes minimum, then hunt absences.** - *Breadth:* every hunk in every changed file, no skimming. Track which files you have covered; batch large diffs, never truncate the review. - *Depth:* trace the riskiest data paths end-to-end (input → logic → persistence/response), the interactions between changed pieces, and between the change and config (timeout hierarchies, retries × idempotency, queue worker counts, env parity). - - *Absences:* what should be in this diff but isn't — un-updated callers (grep every changed or renamed public symbol, and every caller of a shared producer whose output gains a case, per #1), missing migration for a model change, missing authz on a new path, missing tests, un-regenerated OpenAPI/docs, stale README/AGENTS.md, and deletions the change obsoletes but didn't make. + - *Absences:* what should be in this diff but isn't — un-updated callers (grep every changed or renamed public symbol, and every caller of a shared function, generator or iterator whose output the diff changes (#1)), missing migration for a model change, missing authz on a new path, missing tests, un-regenerated OpenAPI/docs, stale README/AGENTS.md, and deletions the change obsoletes but didn't make. - Repeat a targeted pass over the riskiest files; stop only when a pass doesn't find anything new. ## Review Focus Areas @@ -31,7 +31,7 @@ The rules behind these checks are the principles read in First Steps, step 2; a "Breaking things" is mostly about impact on existing callers and contracts, not the new code in isolation. - What calls or depends on the changed code? Trace the callers. - Did any signature, return shape, field, or observable behavior change in a way that breaks them? -- Where the diff changes what a shared function, generator or iterator yields or returns while its signature stays the same, such as a new special value, a sentinel, a new error or an early stop, `grep` every caller and state in Coverage & Verification what each one now does with the new case. A consumer that takes the new case for an ordinary value, as a serializer that joins it into text or a matcher that compares it with a text does, is a finding. +- Where the diff changes what a shared function, generator or iterator yields or returns, such as a new special value, a new error or an early stop, and its signature stays the same, `grep` every caller. In Coverage & Verification, state what each caller now does with the new case. A caller that treats the new case as an ordinary value is a finding, such as a serializer that joins it into text or a matcher that compares it with text. - Is this a breaking change to an external contract (HTTP/RPC, events, file formats)? Is it versioned? - Are DB migrations backward-compatible, online-safe, and reversible? - Rolling deploys run old and new code side by side: can new code process queue/job payloads produced by old code (and vice versa)? Are cache, session, and serialized formats compatible both ways? @@ -80,7 +80,7 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness - Where the change validates a whole input with a `$`-anchored regex in an engine where `$` also matches before a final newline, report it unless the pattern uses the `D` modifier or a full-match call: `^…$` accepts `"value\n"` in PCRE (PHP's `preg_match`, Laravel's `regex:` rule) and in Python's `re.match`. Ask for `\z` (Python: `\Z`), the `D` modifier, or a full-match call such as `re.fullmatch`. - Where the change validates a value and then trims, strips, converts or otherwise normalises it before using it, check that each rule, such as a minimum length, holds for the value the program uses. Report an input that passes the check but reaches the program as something the check would refuse, such as a search term with leading zeros that passes a length rule and is then stripped to a few characters that match broadly. - Where the change adds a guard that tests whether a file, row or record exists, list every place or state the thing passes through from arrival to its end, such as a queue folder, a working folder and a final folder. Report each one the guard doesn't look at: a guard that checks only where the thing ends lets a refused thing through while it waits or is retried. -- For each input shape the change starts to handle, list its neighbours: each part alone, the parts in another order, and a part missing or blank. Compare what the change makes of each with what the base made of the same input, not only with the ticket's words. A field the base filled and the change leaves empty is a 🟡 unless the ticket names that input, and a 🔴 where it loses data users relied on. A ticket's "everything else stays as before" outranks the literal wording of the rule it proposes. +- Where the change starts to handle an input made of several parts, such as two structured fields, list its neighbours: each part alone, the parts in another order, and a part missing or blank. Compare what the change makes of each with what the base made of the same input, not only with the ticket's words. Where the change leaves empty a field the base filled, report a 🟡, or a 🔴 where users relied on that data; don't report it where the ticket asks for that field to be empty for that input. Where a ticket says everything else stays as before, that outranks the literal wording of the rule it proposes. - Are payload and collection sizes bounded at the boundary? ### 6. Concurrency & State Management @@ -145,7 +145,7 @@ Every PR gets at least this sweep. Report only a defect; a requirement that the change breaks, of the plan in the file your prompt's `Plan:` line names, of the goals in the file your prompt's `Goals and audience:` line names, or of code health (`~/.claude/CLAUDE.md` → "Shared goal", unless that file voids it); a breach of a technical principle, or of a coding convention, which counts as one; and the places the prompt hands you. A finding that is none of these is noise, however true: leave it out. -Verdict, severities and rounds: ~/.claude/skills/larv-review/review-findings.md. After the verdict, a short **Coverage & Verification** block: what you ran (tests, static analysis, mutation — and their results), what you could not verify and why, and any files that got a lighter pass — never let silence imply coverage. Then the findings, most severe first, each with: +Verdict, severities and rounds: ~/.claude/skills/larv-review/review-findings.md. After the verdict, a short **Coverage & Verification** block: what you ran (tests, static analysis, mutation — and their results), what each caller of a changed producer does with the new case (#1), what you could not verify and why, and any files that got a lighter pass — never let silence imply coverage. Then the findings, most severe first, each with: - **Location**: File and line/function - **Issue**: Clear description of the problem - **Risk**: What could go wrong in production -- 2.52.0 From f05b24b8eac36389adcd9cfcb01ee6993547880b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:34:35 +0100 Subject: [PATCH 3/6] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From b8e0e924147d6d7bd23374ea8ae95a2c8bb41af3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:34:35 +0100 Subject: [PATCH 4/6] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20nothing=20t?= =?UTF-8?q?o=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From f83c462b32e440c27f15f7079fc03a49fea3eb35 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:37:28 +0100 Subject: [PATCH 5/6] Finish item 554 in the plan --- CHANGELOG.md | 1 + todo.md | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdae6ffb..168bf326 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- stability-reviewer lists every caller of a shared function, generator or iterator whose output the diff changes, and states what each does with the new case. - task-bench leaves out of a fix a change Haiku makes to a PHP test named `*Test.php` or a JavaScript or TypeScript test that `node --test` finds by a name such as `*-test.js`, and plants no bug in such a file. - `chunk-preflight` names the next release's items that have no `Touches:` list, where the release holds other items, and the worker of the next item's chunk has one subagent write the lists before its chunk, so other chunks can start beside it. `rank_todo.py --check` warns of such items, still exiting 0. - Technical principles: a function keeps a copy of an argument it retains, and a size limit counts every cell the code allocates, empty ones too. diff --git a/todo.md b/todo.md index f11b7259..58e1e43a 100644 --- a/todo.md +++ b/todo.md @@ -14,7 +14,6 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 477 | 0.17.0 | | question | **Rewrite `## Goals` and `## Audience` for a setup others install and run apart from their own `~/.claude`.** | 1 | 1 | 2 | 2 | 2 | | 0.0 | | 478 | 0.17.0 | | question | **Name the project, its repo and its two commands, today proposed as `do-release` and `do-epic`.** | 1 | 1 | 2 | 2 | 1 | | 0.0 | -| 554 | 0.17.0 | | | **Make stability-reviewer list every consumer of a shared producer whose yield or return value the diff changes, and state what each does with the new case.** | 1 | 2 | 3 | 4 | 1 | 1.1 by 3 | 1.3 | | 555 | 0.17.0 | | | **Have stability-reviewer check, for each input shape a change starts to handle, its neighbours: each part alone, the parts in another order, and a part missing, each compared with what the base made of the same input.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | | 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 2.4 | | 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, code health by 2 | 1.6 | @@ -114,15 +113,6 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. `do-release Part of the standalone-install plan lilleman approved on 2026-11-20. Later items say `do-release` and `do-epic` for the names this item picks. The names set the install folders, such as `~/.config/do-release/`, so items 482, 485 and 496, and every item they block, wait for them. -### 554. Make stability-reviewer list every consumer of a shared producer whose yield or return value the diff changes, and state what each does with the new case. - -An outside reviewer found a defect our stability pass missed. A change made a shared generator yield a special value to signal an over-limit case. Three consumers read that generator: a joiner that checks the limit, a serializer that joins without checking, and a matcher that compares the pieces against a text. Over two rounds the stability pass found the serializer's defect, on an engine whose strings outgrow the limit, but not that the matcher also takes the special value as ordinary text. - -Today the reviewer greps callers only of a changed or renamed public symbol. Nothing makes it enumerate the consumers of a producer whose signature stays the same but whose output gains a case. No deterministic tool can find this, so it goes in the reviewer's instructions: where the diff changes what a shared function, generator or iterator yields or returns, such as a new special value, a sentinel, a new error or an early stop, the reviewer lists every caller with `grep` and states, in Coverage & Verification, what each one now does with the new case. A consumer that treats the new case as an ordinary value is a finding. - -Touches: -- `agents/stability-reviewer.md`: `## First Steps` (small), `### 1. Backward Compatibility, Blast Radius & Rollout` (small) - ### 555. Have stability-reviewer check, for each input shape a change starts to handle, its neighbours: each part alone, the parts in another order, and a part missing, each compared with what the base made of the same input. An outside reviewer found two defects our review passed, in a parser change that read a party's address from structured fields beside free-text lines: -- 2.52.0 From 836e40cd740238f40e294f55355cf6f4b49bba68 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 28 Nov 2026 17:37:29 +0100 Subject: [PATCH 6/6] Finish item 555 in the plan --- CHANGELOG.md | 1 + todo.md | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 168bf326..0536d57a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- stability-reviewer checks the neighbours of each input shape a change starts to handle against what the base made of them. - stability-reviewer lists every caller of a shared function, generator or iterator whose output the diff changes, and states what each does with the new case. - task-bench leaves out of a fix a change Haiku makes to a PHP test named `*Test.php` or a JavaScript or TypeScript test that `node --test` finds by a name such as `*-test.js`, and plants no bug in such a file. - `chunk-preflight` names the next release's items that have no `Touches:` list, where the release holds other items, and the worker of the next item's chunk has one subagent write the lists before its chunk, so other chunks can start beside it. `rank_todo.py --check` warns of such items, still exiting 0. diff --git a/todo.md b/todo.md index 58e1e43a..dcbc4789 100644 --- a/todo.md +++ b/todo.md @@ -14,7 +14,6 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 477 | 0.17.0 | | question | **Rewrite `## Goals` and `## Audience` for a setup others install and run apart from their own `~/.claude`.** | 1 | 1 | 2 | 2 | 2 | | 0.0 | | 478 | 0.17.0 | | question | **Name the project, its repo and its two commands, today proposed as `do-release` and `do-epic`.** | 1 | 1 | 2 | 2 | 1 | | 0.0 | -| 555 | 0.17.0 | | | **Have stability-reviewer check, for each input shape a change starts to handle, its neighbours: each part alone, the parts in another order, and a part missing, each compared with what the base made of the same input.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | | 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 2.4 | | 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, code health by 2 | 1.6 | | 482 | 0.19.0 | 478, 481 | owner | **Install the setup with `uv tool install` from a release tag, with `do-release` and `do-epic` on `PATH`, and replace `deploy-release` with `do-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3 | 1.3 | @@ -113,18 +112,6 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. `do-release Part of the standalone-install plan lilleman approved on 2026-11-20. Later items say `do-release` and `do-epic` for the names this item picks. The names set the install folders, such as `~/.config/do-release/`, so items 482, 485 and 496, and every item they block, wait for them. -### 555. Have stability-reviewer check, for each input shape a change starts to handle, its neighbours: each part alone, the parts in another order, and a part missing, each compared with what the base made of the same input. - -An outside reviewer found two defects our review passed, in a parser change that read a party's address from structured fields beside free-text lines: - -- The change handled "both structured fields present" and "both missing", and the ticket said to split the free text only when both were missing. With only one present, the new code lost a value the base had filled. The stability reviewer saw the case, since tests pinned it, but checked it against the ticket's words, not against the base's output. -- A rule that left out a free-text line repeating the structured fields matched only the one order seen in the data, not either field alone or the other order. - -Add to `agents/stability-reviewer.md`: for each input shape a change starts to handle, list its neighbours (each part alone, the parts in another order, a part missing or blank) and compare what the change makes of each with what the base made. A field the base filled and the change leaves empty is a 🟡 unless the ticket names that input, and a 🔴 where it loses data users relied on. Before acting, a ticket's acceptance criterion "everything else stays as before" outranks its proposed rule's literal wording. - -Touches: -- `agents/stability-reviewer.md`: `### 5. Edge Cases & Input Validation` (small) - ### 480. Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`. Part of the standalone-install plan lilleman approved on 2026-11-20. `do-release` and `do-epic` stand for the names item 478 picks. Today about 160 references in some 40 modules name `~/.claude`; `bin/loop_state/paths.py` holds a few. This item changes no behaviour. -- 2.52.0