From dc81a295fa7e0798e257e8443a702ee709584fa4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:05:56 +0100 Subject: [PATCH 1/7] Have stability-reviewer flag a $-anchored whole-input regex, a check that precedes normalising, and a guard blind to a state --- agents/stability-reviewer.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index 5beafbc8..ca343c8b 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -74,6 +74,9 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness - Multibyte text (åäö): truncation, length checks, and comparisons must be mb-safe; encoding consistent end-to-end. - Where the change splits text on a separator or strips a suffix, look in the fixtures and a sample of the source data for a value where the separator or suffix also occurs as data, such as an address split on `,` whose last part holds a comma. Report a row the parse then misplaces or drops, silently or with only a log line. - Where the change builds a lookup key by joining path segments, look for two inputs that join to one key, such as a column named like its own table. Where it matches a key by prefix, look for a key that two prefixes match, such as `ns` and `ns.sub`. Report the input the lookup resolves to the wrong entry. +- Where the change validates a whole input with a regex anchored by `$`, report it: `$` also matches before a final newline, so `^…$` accepts `"value\n"` in PCRE (PHP's `preg_match`, Laravel's `regex:` rule) and in Python's `re.match`. Ask for `\z` (Python: `\Z`), PCRE's `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 use, check that each rule, such as a minimum length, holds for the value the code uses. Report an input that passes the check but reaches the code as something the check would refuse, such as a code that passes a minimum length and then loses its leading zeros. +- 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, an inbox, a retry and the finished location. Report each one the guard doesn't look at. - Are payload and collection sizes bounded at the boundary? ### 6. Concurrency & State Management From fa7a588a1da7a067390d5898b1d259d06b5a8ea3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:05:56 +0100 Subject: [PATCH 2/7] Record reading cost --- docs/reading-cost.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 6dfa2b13..eb2266a4 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -3700,3 +3700,14 @@ Read most (opens and searches): - `bin/task_bench/feature_tasks.py` 1 - `bin/task_bench/tasks.py` 1 - `todo.md` 1 + +## Reading cost, chunk f344ce83433c, finished 2026-11-27T14:05:18Z + +108886 new input tokens before the first commit. + +Read most (opens and searches): + +- `README.md` 3 +- `bin/release_plan/release_standing.py` 3 +- `CHANGELOG.md` 1 +- `bin/deploy_release/cut.py` 1 From 9cb8a05771ba8e440f1eebe6c3a3b6ce407bc562 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:06:23 +0100 Subject: [PATCH 3/7] =?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);=20no=20findin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 206c39b336b9f6e18245f843ef3c364afe8c6814 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:25:48 +0100 Subject: [PATCH 4/7] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20name=20the?= =?UTF-8?q?=20engines=20where=20$=20matches=20before=20a=20newline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/stability-reviewer.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index ca343c8b..b8ffcc60 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -74,9 +74,9 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness - Multibyte text (åäö): truncation, length checks, and comparisons must be mb-safe; encoding consistent end-to-end. - Where the change splits text on a separator or strips a suffix, look in the fixtures and a sample of the source data for a value where the separator or suffix also occurs as data, such as an address split on `,` whose last part holds a comma. Report a row the parse then misplaces or drops, silently or with only a log line. - Where the change builds a lookup key by joining path segments, look for two inputs that join to one key, such as a column named like its own table. Where it matches a key by prefix, look for a key that two prefixes match, such as `ns` and `ns.sub`. Report the input the lookup resolves to the wrong entry. -- Where the change validates a whole input with a regex anchored by `$`, report it: `$` also matches before a final newline, so `^…$` accepts `"value\n"` in PCRE (PHP's `preg_match`, Laravel's `regex:` rule) and in Python's `re.match`. Ask for `\z` (Python: `\Z`), PCRE's `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 use, check that each rule, such as a minimum length, holds for the value the code uses. Report an input that passes the check but reaches the code as something the check would refuse, such as a code that passes a minimum length and then loses its leading zeros. -- 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, an inbox, a retry and the finished location. Report each one the guard doesn't look at. +- 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 normalises it before use, by trimming, stripping or converting it, check that each rule, such as a minimum length, holds for the normalised value. Report an input that passes the check but reaches the rest of the code as something the check would refuse, such as an identifier that passes a minimum length and then, converted to an integer, loses its leading zeros. +- Where the change adds a guard that tests whether a file, row or record exists, trace each place or state the thing passes through from arrival to its end, such as an inbox, a queue, a retry's holding area and the finished location. Report each one the thing can be in when the guard runs and the guard doesn't look at. - Are payload and collection sizes bounded at the boundary? ### 6. Concurrency & State Management From fd6b9af1675fc37d78f36d1b6f0500df8da8cc9e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:25:56 +0100 Subject: [PATCH 5/7] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20reworded=20?= =?UTF-8?q?in=20the=20stability=20round's=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 5ee4965cb686d60e693fc8cb1fd39ea91afead11 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:26:41 +0100 Subject: [PATCH 6/7] =?UTF-8?q?Answer=20prose=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20no=20findin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 07006793d4bc4d0e8fa0c21ed3384e79b10f7b61 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:32:34 +0100 Subject: [PATCH 7/7] Finish item 537 in the plan --- CHANGELOG.md | 1 + todo.md | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ae61ec4..866e82e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- stability-reviewer now flags a regex that validates a whole input with `$`, which also matches before a final newline. - stability-reviewer checks that a guard on whether a file, row or record exists looks at every place the thing passes through. - stability-reviewer checks that a validation rule holds for the value the code uses after it trims, strips or converts the input. - stability-reviewer checks the setup steps a change writes for an outside service against the service's current documentation, and each command against it in every state the service may be in. diff --git a/todo.md b/todo.md index 54edb036..afb9d9ae 100644 --- a/todo.md +++ b/todo.md @@ -18,7 +18,6 @@ | 552 | 0.17.0 | | defect | **Ask for a review on `chunk-pr push` once the forge shows the pushed head on the pull request, and fail where no open pull request takes it, so a push never skips the review request without saying so.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.2 | | 542 | 0.17.0 | | | **Make chunk-preflight report a project whose code is space-indented with no `.editorconfig` or formatter setting that says so, and narrow the tabs principle to explicit overrides.** | 2 | 2 | 3 | 5 | 4 | 1.1 by 4 | 1.2 | | 523 | 0.17.0 | | | **Make the security pass and stability-reviewer check that a new secret's docs name its scope and its reach, such as the other repositories its account can use.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | -| 537 | 0.17.0 | | | **Flag regexes that use `$` to validate a whole input, since `$` also matches before a final newline.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | | 547 | 0.17.0 | | | **Add a technical principle: tell a failure's cause from a status code or a typed error, never from a tool's message text unless the tool documents that text as unique to the cause.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.9 | | 549 | 0.17.0 | | | **Run each claimed output from the state a fresh checkout leaves, without the ignored files earlier runs wrote, and check each claim about what a command writes.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | | 541 | 0.17.0 | | | **Find a Gitea pull request by its branch and head however many pull requests are newer, so `chunk-pr clean`, `chunk-pr merge` and `chunk-preflight` see an older one.** | 2 | 2 | 3 | 5 | 2 | 1 by 2 | 0.8 | @@ -166,13 +165,6 @@ Touches: An outside reviewer found it on a client project's PR that added a secret: a Gitea token documented as able to run Actions on one repository, "and nothing wider". The token reaches every repository its owning account can, so the docs had to require a dedicated account with access to that repository only. Neither `/security-review` nor stability-reviewer raised it. Where a change adds a secret or a token, ask each to check that the doc beside it states what the credential can reach, not only what the change uses it for. -### 537. Flag regexes that use `$` to validate a whole input, since `$` also matches before a final newline. - -An outside auto-reviewer found a validation regex anchored with `$` that accepted a value with a trailing newline; neither the stability standard nor any tool flags this. In PCRE (PHP's `preg_match`, Laravel's `regex:` rule) and in Python's `re.match`, `^…$` accepts `"value\n"`. Add a bullet to stability-reviewer's "Edge Cases & Input Validation": where a change validates a whole input with a regex anchored by `$`, report it and ask for `\z` (PCRE, Python's `\Z`), PCRE's `D` modifier, or a full-match call such as Python's `re.fullmatch`. A deterministic check doesn't fit: no tool in this setup scans a project's diff for code patterns, and the regex syntax differs by language. - -Touches: -- `agents/stability-reviewer.md`: `### 5. Edge Cases & Input Validation` (small) - ### 547. Add a technical principle: tell a failure's cause from a status code or a typed error, never from a tool's message text unless the tool documents that text as unique to the cause. An outside auto-reviewer found a fault that our passes missed. A script told a missing container image apart from one it couldn't read by matching the text a CLI printed on stderr. Older versions of that CLI print the same text for a missing image, a refused credential and a failed request. So the script read "no access" as "missing" and went on as if the image didn't exist. The stability and security passes both read the code and took the message at its word.