diff --git a/CHANGELOG.md b/CHANGELOG.md index 99d3dee4..c5ccb837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- 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. ## 0.16.0 diff --git a/todo.md b/todo.md index 39bae3c3..85e73ef7 100644 --- a/todo.md +++ b/todo.md @@ -19,7 +19,6 @@ | 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 | -| 538 | 0.17.0 | | | **Flag validation that checks a value other than the one the code goes on to use, such as before trimming, stripping or converting it.** | 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 | | 550 | 0.17.0 | | | **Have stability-reviewer check a guard that tests where a thing is against every place the thing passes through in its life.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | @@ -175,13 +174,6 @@ An outside auto-reviewer found a validation regex anchored with `$` that accepte Touches: - `agents/stability-reviewer.md`: `### 5. Edge Cases & Input Validation` (small) -### 538. Flag validation that checks a value other than the one the code goes on to use, such as before trimming, stripping or converting it. - -An outside human reviewer found input validation that checked the value the client sent, while the code then searched with a normalised value, with its leading zeros stripped. A value passed the minimum-length rule, but the search ran on far fewer characters and matched broadly. Stability-reviewer didn't flag it. The implementer's unit test listed the bad value as accepted: its expected values came from the code, not the requirement, which the technical principles' test bullet already bans and section 11 already asks about. Add a bullet to stability-reviewer's "Edge Cases & Input Validation": where a 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, and report an input that passes the check but reaches the code as something the check would refuse. A deterministic check doesn't fit: whether two values are the same one is semantic, and no tool here scans a project's diff for code patterns. Kept apart from item 537, since the two catch different faults, though one chunk may take both. - -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.