Rank each todo.md blocker just above the first item it blocks, allow no other order in todo.md, and route loop-claude on the first item that waits on nothing

This commit is contained in:
2026-10-15 22:54:47 +02:00
parent 545f3c3478
commit 5b7da27a5a
12 changed files with 269 additions and 151 deletions
+1
View File
@@ -2,6 +2,7 @@
## Unreleased
- `todo.md`'s items table has a Blocked by column, right after Release, listing the IDs of the items that must be done before an item starts, such as `12, 14`. `rank_todo.py` moves each blocker just above the first item it blocks, drops an ID once that item leaves the table, and adds the column to a table without it; a project's plan takes the column the next time `rank_todo.py` runs on it. `rank_todo.py` now fails on text beside the table under `## Items`, such as a line naming items to take first: put an order in the scores or the column. `loop-claude` routes a chunk on the next release's first item that waits on nothing, which is the item the worker takes, so the first cycle runs on that item's rung.
- The new `bin/stability-replay <model>` replays archived stability reviews of the projects run on the model, each on the code it reviewed, first on the project's rung and then on each rung below, and prints the lowest rung that, like each rung above it, finds every 🔴 and 🟡 finding the project's rung finds. It shares its search with `judge-replay`, which now tries rungs from the project's rung down, where it tried them from the cheapest up. Its first run, on Opus 5.5 projects, found none: Sonnet 5.5 at high missed 13 of the 29 findings the project's rung found again. So the stability reviewer stays on the project's rung while the worker runs below it.
- A `todo.md` item you tell a session to keep is marked `owner` in its Exempt cell, and stays whatever its score.
- A `loop-claude` worker hands a task that proves too hard for its rung to a subagent one rung up, edits included, when a trigger fires: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a review pass reports a 🔴 in round 2 or later. Each further trigger climbs one more rung, to at most two rungs above the rung the chunk's `todo.md` item picks, unless you agree. `CLAUDE.md` states the rule, and `loop-claude`'s prompt names the rungs a trigger opens. The worker opens the subagent's prompt with `Escalation trigger <n>:`, and `routing-figures.md` counts the escalations by trigger. Expect a chunk that gets stuck to spend more on the stuck part, and fewer unfinished verdicts.