Answer stability round 1: 0 🔴, 1 🟡 (0 misread); name the engines where $ matches before a newline
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user