Have stability-reviewer flag a $-anchored whole-input regex, a check that precedes normalising, and a guard blind to a state

This commit is contained in:
2026-11-27 15:05:56 +01:00
parent 411819c38d
commit dc81a295fa
+3
View File
@@ -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