Answer principles round 1: 0 🔴, 2 🟡; drop the stale clause from item 174, point --help at review_choice.py, and tidy the new module's docstring, imports and comments

This commit is contained in:
2026-10-23 03:45:46 +02:00
parent 061118be0b
commit 061b32dd66
5 changed files with 15 additions and 14 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
"""Where a chunk's reviews run: the choice loop_claude/cycle/prompts.py tells the worker in sentences."""
"""Where a chunk's reviews run, chosen from its route and the project's rung."""
import dataclasses
from model_routing.route import HIGHEST_ESCAPE_AND_IMPACT, Route
from model_routing.ladder import review_rungs, ReviewedPass, reviewers_rung, Rung
from review_passes import REVIEWERS
from model_routing.ladder import review_rungs, reviewers_rung, Rung
from review_passes import ReviewedPass, REVIEWERS
@dataclasses.dataclass(frozen=True)
@@ -14,7 +14,7 @@ class ReviewChoice:
lowered: dict[ReviewedPass, Rung]
seat: Rung
security: Rung
# Each rung that a higher E + I than the route's picks for the reviewers, with the lowest E + I that picks it, so a worker that takes in such an item reviews it on that rung in the same run.
# Each rung that a higher E + I than the route's picks for the reviewers, with the lowest E + I that picks it, lowest E + I first, so a worker that takes in such an item reviews it on that rung in the same run.
higher: dict[Rung, int]
+1 -1
View File
@@ -29,7 +29,7 @@ class Chosen(unittest.TestCase):
self.assertEqual(chosen(OPUS, Route(OPUS, 3, 3, 4)).higher, {OPUS_HIGH: 5, OPUS_XHIGH: 6, OPUS_MAX: 7, FABLE: 8})
def test_names_no_higher_rung_on_the_top_one(self):
self.assertEqual(chosen(OPUS, Route(FABLE, 3, 4, 8)).higher, {})
self.assertEqual(chosen(OPUS, Route(FABLE, 3, 4, 5)).higher, {})
def test_puts_a_pass_a_replay_lowered_on_the_rung_the_replay_chose_while_no_e_plus_i_lifts_a_review(self):
with unittest.mock.patch.dict(ladder.REPLAYED, {("prose", "claude-opus-5-5"): HAIKU}):