State each routing rule once in the docstring of the code that enforces it, cut loop-claude --help's routing paragraph, and name the project's rung project in bin/loop_claude

This commit is contained in:
2026-10-22 22:42:01 +02:00
parent 545ab3ab37
commit 3b69ced357
10 changed files with 142 additions and 203 deletions
+1
View File
@@ -2,6 +2,7 @@
## Unreleased
- `loop-claude --help` now describes routing in one short paragraph for the person running the loop, and points to `bin/loop_claude/routing.py`, `bin/loop_claude/cycle/prompts.py` and `bin/routing_figures/measure.py` for the rules. The rules it used to repeat are now stated once, in the docstrings of the code that enforces them.
- loop-claude now archives the route on each `Worker:` line as a JSON record, such as `{"model": "claude-opus-5-5", "effort": "high", "item": 3, "likelihood": 4, "escape_and_impact": 5, "escalated_at": 12}`, and reads it back field by field. The line used to be a sentence, such as `claude-opus-5-5 at high effort, routed by item 3's L of 4 and E + I of 5`, which loop-claude parsed back word for word: rewording the sentence in the code would have made every archived line unreadable, and a rerun would have routed the open chunk afresh. A rerun and the routing figures still read the sentences archived since loop-claude routed on L. A rerun that finds a `Worker:` line it can't read now says so on stderr. The judge's reply now names the levels the worker took in `highest_likelihood_taken_in` and `highest_escape_and_impact_taken_in`, in place of `bundled` and `bundled_escape_and_impact`.
- A chunk now takes every unblocked item of its release that fires the same review passes, whatever its purpose: one PR title no longer has to state what the items achieve together. An item with R above 5 ships alone. `chunk-preflight` says so for such an item, and never lists one as an item that may join another.
- A branch whose name is not UTF-8 now shows no branch in the status line, in place of a name with replacement characters.