diff --git a/bin/test_rank_todo.py b/bin/test_rank_todo.py index 3a187ad1..46b0885c 100644 --- a/bin/test_rank_todo.py +++ b/bin/test_rank_todo.py @@ -125,7 +125,8 @@ class Rank(unittest.TestCase): goals = rank_todo.readme_goals("## Goals\n\n" + "".join(f"{number}. **Achieve:** G.\n" for number in range(1, count + 1))) weights = list(rank_todo.goal_weights(goals).values()) self.assertEqual((round(weights[0], 3), round(weights[-1], 3), round(sum(weights), 6)), (first, last, 1)) - self.assertTrue(str(first) in rank_todo.__doc__ and str(last) in rank_todo.__doc__) + for figure in (rank_todo.GOAL_STEP, first, last): + self.assertIn(str(figure), rank_todo.__doc__) def test_scores_an_item_by_the_weights_of_the_goals_it_moves(self): readme = "## Goals\n\n1. **Achieve:** A.\n 1. **Maintain:** B.\n 2. **Achieve:** C.\n2. **Achieve:** D.\n" diff --git a/todo.md b/todo.md index 6ec6a854..aff81f23 100644 --- a/todo.md +++ b/todo.md @@ -44,7 +44,7 @@ | 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 | +| 192 | 0.3.0 | | principle | **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 | @@ -254,7 +254,7 @@ Raised by the goals audit of PR #296. `bin/routing_figures/measure.py` groups a ### 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. +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. It breaches the technical principle "Deterministic order wherever order carries no meaning". ### 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.