Weigh each achieve goal 0.97 times the one above it, so a goal far down a project's list counts almost as much as its first

This commit is contained in:
2026-10-18 11:17:32 +02:00
parent 0462980bd4
commit 80a90a803e
6 changed files with 221 additions and 214 deletions
+1
View File
@@ -21,6 +21,7 @@
- `score-outcomes` lists a project's score anchors: the shipped items its `docs/score-anchors.md` names for each level of L, E and I, each with what its chunk measured. `rules/todo-items.md` has a scorer compare a new item with them, and says how to choose two or three per level. Add the file to each project that merges with merge commits; elsewhere, score by the level descriptions in `rules/todo-items.md`.
- `loop-claude` archives each judge reply it rejects in the chunk's `<sha256>.outcomes.md`, with the reason and the reply as json. Before, such a reply reached only stderr, so a run that exited 1 overnight could not say what the judge had returned. stderr now prints only the reason; the reply is in outcomes.md. If archiving fails, `loop-claude` exits 1.
- `loop-claude` routes each chunk on `todo.md` as the default branch holds it, freshly fetched: merge a `todo.md` edit before the chunk it should route starts. Where `todo.md` holds no item for the next release, the earliest release it has named since the newest tag, no item routes the chunk, and the worker is told that release is finished and ready to cut, or, where no work has landed since the tag, to be planned first. Before routing, `loop-claude` runs the new `bin/chunk-preflight` and quotes what it prints in the worker's first prompt: the chunk's mechanical facts, which `chunk-preflight --help` lists. The preflight also makes the chunk's worktree, `<checkout>-item-<ID>` beside the checkout on the branch `item-<ID>`, or continues the one already there, and leaves an uncommitted figure in that worktree's `docs/reading-cost.md` for the chunk to commit. It stops a fetch, forge CLI or tool after 60 seconds, or after the seconds `CHUNK_PREFLIGHT_TIMEOUT` sets. The prompt also asks the worker to count the item's size again once it has read the code, and to have the item re-scored where its L would change. Expect the worker to start editing sooner.
- `rank_todo.py` weighs each achieve goal 0.97 times the one above it, in place of a fraction that fell with its rank, so a goal far down a README's list still counts almost as much as its first. The weights sum to 1: with 5 achieve goals the first weighs 0.212 and the last 0.188, with 15, 0.082 and 0.053. Scores change, so rerun `rank_todo.py` on every `todo.md` and check its bar still sits below each item to keep.
## 0.1.0