File item 601: stability-reviewer checks hand-made equivalent mutants and library boundaries #820
@@ -6,7 +6,7 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 601`
|
||||
`Next ID = 602`
|
||||
|
||||
## Items
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
| 5 | 0.23.0 | | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 4 | 2 | 3 | 7 | 5 | 1.1 by 6 | 1.1 |
|
||||
| 291 | 0.23.0 | | owner | **Let `principles/technical-principles.md` → "Sane defaults" allow a library whose README goals ask that it work with no config to default the clock and randomness in its public constructor, where a documented option overrides each.** | 1 | 2 | 3 | 4 | 1 | 1.2 by 3 | 1.0 |
|
||||
| 156 | 0.23.0 | | decision | **Drop `rank_todo.py`'s ranking of an old-shape table once no project under `~/code` holds one.** | 2 | 1 | 3 | 4 | 4 | 1.1 by 4 | 1.0 |
|
||||
| 601 | 0.23.0 | | | **Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.0 |
|
||||
| 388 | 0.23.0 | | | **Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.** | 1 | 1 | 3 | 3 | 2 | 1.2 by 3 | 1.0 |
|
||||
| 365 | 0.23.0 | | | **Have `score-outcomes` read the finished and dropped items of a plan outside the checkout, from the project repo's history or from Jira's issue changelogs.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
|
||||
| 368 | 0.23.0 | | | **Call a release review due, call a release ready to cut, and tell whether a chunk owes a scoring run, for a plan outside the checkout, from the project repo's history or from Jira.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
|
||||
@@ -610,6 +611,23 @@ The key names the project's session, archive folder and models entry. `project_k
|
||||
|
||||
While `rank_todo.py` ranks two shapes, projects follow two sets of scoring rules, against goal 1.3. Once every project has reshaped, drop `OLD_SHAPE`'s weighing from `bin/plan/ranking.py`, `RESHAPE`, and the old shape's lines in `rank_todo.py --help` and `rules/todo-items.md`. Keep `todo_table` reading old tables: `score_outcomes` reads every past merge's `todo.md`. PR #283's paired ruling found the old-shape path made `ranking.py`'s `score`, `Scoring.weights`, `unknown_columns` and `todo_table.py`'s `Moves` harder to read; leave each easier, with one shape and moves that are always moves, and the Moves cell's rules in one place. Release 0.3.0's seats named `ranking.py`'s `score`, `weigh` and `rank` and `todo_table.py`'s `OLD_SHAPE` for the same fork: "every rule exists twice for the old table shape" (Mid A). Make `weigh` and `rank` easier to read too.
|
||||
|
||||
### 601. Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.
|
||||
|
||||
An outside reviewer raised two findings on a pull request in another project, a PHP project with no mutation tool, that parses ISO date-times. Neither the implementer nor stability-reviewer had caught them.
|
||||
|
||||
First, a regex's range check on an offset's hour, 00 to 23, was deleted because a hand-made mutant of it survived. The mutant was judged equivalent after one input, an hour of 25, which the language's own parser refused anyway. Hour 24, which the parser accepts, was never tried. Second, a library call that converted a fraction of a second with 16 digits rounded it up into the next second, and so moved a timestamp across midnight in a time zone. Nobody ran the conversion at its limits.
|
||||
|
||||
Chosen: two rules in stability-reviewer's brief, and one sentence in larv-review §2's "Mutation tests" where the implementer runs mutants by hand.
|
||||
- Where mutants are made by hand, a surviving one counts as equivalent only where no input can tell the two programs apart, shown by a test or a short proof. Trying one input never shows it. Otherwise it is a 🟡 asking for the test that kills it.
|
||||
- Where the change parses or converts a date, a time or a number through a library call, the reviewer runs that call at the boundaries: each end of a range and one step past it, a long fraction that rounds, trailing characters, and overflow next to a day, hour or offset limit. It reports each boundary whose behaviour no test pins, as a 🟡, or as a 🔴 where the value then crosses a limit, such as a day.
|
||||
|
||||
A deterministic fix is better where one exists: a mutation tool for the language, which `mutate-changes` runs and §2 already asks to file an item for where none covers it. That catches the first finding only where the tool runs, so the rules above still close the gap for languages without one, and the second finding has no tool.
|
||||
|
||||
Touches:
|
||||
|
||||
- `agents/stability-reviewer.md`: `## First Steps` (small), `### 5. Edge Cases & Input Validation` (small)
|
||||
- `skills/larv-review/SKILL.md`: `## 2. Ship the branch (idempotent — skip whatever already exists)` (small)
|
||||
|
||||
### 388. Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.
|
||||
|
||||
Filed by PR #553, which made the routing ladder a file: `bin/model_routing/routing-ladder.json`, and a project's own `routing-ladder.json` in its config's folder. `CLAUDE.md` → "Working loop", "Ask, don't guess" reserves a change to the routing ladder for the human, and until PR #553 the ladder was code, which only a reviewed chunk changed. A worker can now write its project's file, and with it choose the rungs its own later cycles and reviews run on. The security pass of PR #553 noted that a ladder changed mid-cycle also makes rule-hook's `reviewer-rung` skip its check, since the rungs build-release handed are then off the ladder.
|
||||
|
||||
Reference in New Issue
Block a user