From dc81a295fa7e0798e257e8443a702ee709584fa4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 15:05:56 +0100 Subject: [PATCH] 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