Compare commits

..

2 Commits

Author SHA1 Message Date
Lilleman 3ec8bf9436 File an item: refuse to mark a pull request ready while its description predates the head
CI / tests (pull_request) Successful in 6m24s
2026-12-04 13:12:01 +01:00
Lilleman 3584890d71 File item 601: stability-reviewer checks hand-made equivalent mutants and library boundaries
CI / tests (pull_request) Successful in 6m17s
2026-12-04 12:06:27 +01:00
+26 -1
View File
@@ -6,7 +6,7 @@
`Bar = 0.1` `Bar = 0.1`
`Next ID = 601` `Next ID = 603`
## Items ## 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 | | 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 | | 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 | | 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 | | 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 | | 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 | | 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 |
@@ -79,6 +80,7 @@
| 201 | 0.23.0 | | owner | **Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly.** | 3 | 2 | 1 | 4 | 4 | 1.5 by 4 | 0.9 | | 201 | 0.23.0 | | owner | **Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly.** | 3 | 2 | 1 | 4 | 4 | 1.5 by 4 | 0.9 |
| 267 | 0.23.0 | | | **Keep waiting when an interrupt gets an empty answer, at the terminal or in the claude opened for it, in place of stopping the loop.** | 2 | 1 | 3 | 4 | 2 | 1.5 by 3 | 0.9 | | 267 | 0.23.0 | | | **Keep waiting when an interrupt gets an empty answer, at the terminal or in the claude opened for it, in place of stopping the loop.** | 2 | 1 | 3 | 4 | 2 | 1.5 by 3 | 0.9 |
| 4 | 0.23.0 | | | **Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.** | 3 | 2 | 3 | 6 | 3 | 1.1 by 3 | 0.9 | | 4 | 0.23.0 | | | **Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.** | 3 | 2 | 3 | 6 | 3 | 1.1 by 3 | 0.9 |
| 602 | 0.23.0 | | | **Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 3 | 0.9 |
| 324 | 0.23.0 | | | **Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2, 1.4 by 1 | 0.9 | | 324 | 0.23.0 | | | **Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2, 1.4 by 1 | 0.9 |
| 187 | 0.23.0 | | | **Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 | | 187 | 0.23.0 | | | **Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 |
| 266 | 0.23.0 | | | **Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 | | 266 | 0.23.0 | | | **Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 |
@@ -610,6 +612,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. 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. ### 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. 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.
@@ -708,6 +727,12 @@ Weigh the widely used tmux-resurrect and tmux-continuum plugins against a script
Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading-cost` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id `docs/reading-cost.md` holds, so give it a way to match a figure written under the old name. Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading-cost` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id `docs/reading-cost.md` holds, so give it a way to match a figure written under the old name.
### 602. Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.
An outside reviewer found a pull request whose description still claimed a change that the branch's last commit had reverted. No pass reads the description against the head: the prose pass reads the diff, and the description is written once, at `chunk-pr open`. A fix commit after the reviews leaves every claim in it unchecked.
Fix: in `chunk-pr ready` (and `push`, where it re-requests review), compare the time the description was last edited with the newest commit on the branch: GitHub's GraphQL `lastEditedAt`, or `createdAt` where it was never edited; Gitea's `updated_at` for the body. Where a commit is newer, refuse and name the commits, so the description is reread and edited, or accepted unchanged with a flag such as `--description-current`. A deterministic check, because a reviewer only catches this when it happens to read the description.
### 324. Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line. ### 324. Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.
`docs/decisions.md` → `routing: build-release reads the items a chunk takes …` holds only while workers write the line when asked, and nothing counts a chunk whose worker skipped it. There build-release scores no item beyond the one the chunk was routed on, so the route holds. Count in `bin/routing_figures/`, beside the chunks counted, those whose worker's transcript holds no such line, so the human sees when the decision's premise stops holding. `docs/decisions.md` → `routing: build-release reads the items a chunk takes …` holds only while workers write the line when asked, and nothing counts a chunk whose worker skipped it. There build-release scores no item beyond the one the chunk was routed on, so the route holds. Count in `bin/routing_figures/`, beside the chunks counted, those whose worker's transcript holds no such line, so the human sees when the decision's premise stops holding.