Answer principles round 1: 0 🔴, 3 🟡; split the weight test, name the step as the implementer's pick, file the other findings

This commit is contained in:
2026-10-18 11:27:45 +02:00
parent 80a90a803e
commit 1a433205a6
4 changed files with 44 additions and 10 deletions
+29 -1
View File
@@ -6,12 +6,13 @@
`Bar = 0.1`
`Next ID = 191`
`Next ID = 195`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 191 | 0.2.0 | | question | **Decide whether an item marked `defect` keeps a clear lead over achieve goals now that their weights are nearly flat, and how `rank_todo.py` gives it one.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 3 | 5.1 |
| 180 | 0.2.0 | | | **Accept an escalation quote only from transcript entries after the worker's last step-up, so a trigger that fires after an interrupt or a quoted answer stepped the worker steps it again.** | 3 | 2 | 3 | 6 | 5 | 1.1 by 4 | 2.1 |
| 159 | 0.2.0 | | decision | **Run each review pass on the lowest rung that a replay of its archived rounds shows finding every 🔴 and 🟡 the project's rung finds, even below the worker's rung.** | 4 | 2 | 3 | 7 | 6 | 1.4 by 7 | 1.9 |
| 189 | 0.2.0 | | | **State one achieve goal for the health of a project's code in `~/.claude`, which every project's ranking weighs, most while its comprehension panel's overall is under 7.0, unless its README voids it.** | 4 | 2 | 3 | 7 | 6 | 1.1 by 6 | 1.7 |
@@ -43,6 +44,9 @@
| 190 | 0.3.0 | | | **Rewrite the `docs/decisions.md` entries `todo.md: one table …` and `loop-claude: a judge decides …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 3, 1.4 by 2 | 6.3 |
| 171 | 0.3.0 | | decision | **Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised.** | 3 | 2 | 2 | 5 | 4 | 1.2 by 3, 1.4 by 3 | 4.9 |
| 181 | 0.3.0 | | principle | **Have the test of a quoted answer's step-up assert the stepped rung's facts as literals, not through `prompts.rungs_held`.** | 1 | 1 | 1 | 1 | 1 | 1.1 by 2 | 4.1 |
| 192 | 0.3.0 | | | **Sort `.gitignore`'s allowlist block, from `!.claude/` to `!workflow-bench/test_review_git.py`, by code point, so rule-hook's `ignorefile-sorted` checks later edits to it again.** | 1 | 1 | 1 | 1 | 1 | 1.1 by 2 | 4.1 |
| 193 | 0.3.0 | | | **Narrow `readme_goals`'s mark to `Mark` by a checked lookup in place of `typing.cast`, so mypy catches a mark the regex gains but `goal_weights` does not handle.** | 1 | 1 | 3 | 3 | 1 | 1.1 by 2 | 4.1 |
| 194 | 0.3.0 | | | **Make `test_waits_out_a_usage_limit_which_ends_a_run_of_failures` expect a usage-limit wait that holds however much wall-clock time passes during the run.** | 1 | 1 | 1 | 1 | 1 | 1.1 by 2 | 4.1 |
| 187 | 0.3.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 | 3.6 |
| 165 | 0.3.0 | | | **Make this repo's tests assert the facts a prompt or help text carries in place of its sentences, and drop the tests that scan source or assert a constant.** | 3 | 2 | 1 | 4 | 5 | 1.1 by 4, 1.4 by 3 | 3.5 |
| 182 | 0.3.0 | | | **Let the human edit an interrupt's answer with the arrow keys, so Left moves the cursor instead of typing ^[[D into the answer.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 2 | 3.4 |
@@ -89,6 +93,18 @@
## Details
### 191. Decide whether an item marked `defect` keeps a clear lead over achieve goals now that their weights are nearly flat, and how `rank_todo.py` gives it one.
Found by review of PR #317, which set `rank_todo.py`'s goal weights to a geometric step of 0.97. A maintain goal that a defect restores still weighs as the heaviest achieve goal, as that PR kept. With 5 achieve goals that is 0.212, against 0.206 for the second goal; under the old weights it was 0.438 against 0.219. So the lead a defect had is gone: items 80 and 21, first and second in release 0.3.0 before, now rank 18th and 25th by score.
The question for lilleman: should a defect keep a clear lead over achieve goals, and if so, how?
- **Keep it as is.** A defect competes on its Moves like any item.
- **A multiple of the heaviest weight.** A maintain goal weighs, say, twice the heaviest achieve goal. One constant, but it says nothing about how far ahead a defect lands.
- **Rank defects ahead of the rest of their release,** after questions and security items, as those already are. The lead holds whatever the weights.
Recommendation: rank defects ahead, since a maintain goal vetoes rather than trades off, and a weight multiple only approximates that. The answer changes `rank_todo.py`, its `--help` and `rules/todo-items.md`.
### 180. Accept an escalation quote only from transcript entries after the worker's last step-up, so a trigger that fires after an interrupt or a quoted answer stepped the worker steps it again.
`docs/decisions.md` → `routing: a worker whose run ends asking for a higher rung…` says a trigger that fires after the human's answer waits for the next cycle. Today it doesn't step the worker: once an interrupt or a quoted answer has taken an escalation, `unspent` in `bin/loop_claude/cycle/run.py` drops the escalation of every later ruling of the cycle. The dropped request stays in the transcript, so in the next cycle the judge finds no trigger that fired since the worker's last request. A quoted answer resumes the worker headless up to three times a cycle, and so does an answer the human types at loop-claude's terminal, so the loss is reachable with no one watching. `unspent` exists because loop-claude cannot tell from the judge's quotes alone whether a trigger already bought a step. Instead, identify a trigger by where it sits in the transcript:
@@ -236,6 +252,18 @@ Raised by the goals audit of PR #296. `bin/routing_figures/measure.py` groups a
`bin/loop_claude/test_loop_claude.py`'s `test_a_quoted_answer_that_cites_an_escalation_trigger_steps_the_worker_up_before_it_resumes_and_archives_the_step` builds its expected prompt from `prompts.rungs_held`, the code under test, so a bug there passes it. The technical principles' test bullet bans that shape. Assert the new rung and one review launch as literals, as the typed answer's step-up test does. Raised by the principles audit of PR #308.
### 192. Sort `.gitignore`'s allowlist block, from `!.claude/` to `!workflow-bench/test_review_git.py`, by code point, so rule-hook's `ignorefile-sorted` checks later edits to it again.
Found by review of PR #317. `.gitignore:56-58` holds `!bin/rule-hook` above `!bin/routing_figures/` and `!bin/routing_figures/*.py`, but `o` sorts before `u`. `ignore_breaches` in `bin/rule_hook/rules.py` skips a block that was already unsorted before an edit, so while this one stays unsorted no later edit to it is checked.
### 193. Narrow `readme_goals`'s mark to `Mark` by a checked lookup in place of `typing.cast`, so mypy catches a mark the regex gains but `goal_weights` does not handle.
Found by review of PR #317. `bin/rank_todo.py`'s `readme_goals` writes `typing.cast(Mark, mark or None)`, which asserts the type `goal_weights` branches on without checking it. A lookup such as a dict from each regex mark to its `Mark` value lets mypy check it.
### 194. Make `test_waits_out_a_usage_limit_which_ends_a_run_of_failures` expect a usage-limit wait that holds however much wall-clock time passes during the run.
Found by review of PR #317. `bin/loop_claude/test_black_box.py:569-575` sets `resets_at` from the test's `time.time()` and expects the wait, rounded to tens, to be 3720. When more than about 5 s pass between that read and the loop's, the wait rounds to 3710 and the test fails with no bug. Item 102 covers only replacing the `time.sleep` swap; this item changes the expected value, for example by asserting the wait against `resets_at + 120` minus the time the loop read, or a bound on it.
### 187. 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.
Before PR #310, reports reached the worker as the Agent call's result, a median 19k tokens per chunk (2026-10-08, 68 archived transcripts). Now a reviewer returns its verdict and one line per finding, and the worker reads a 🔴 or 🟡 finding's entry from the report file. `reading-cost` counts only tracked files (`bin/reading_cost/measure.py`), and `routing-figures` counts only the Agent call's result (`bin/routing_figures/measure.py`), so neither sees the report reads. Found by the architecture review of PR #310.