Expect the judge on Opus 5.5 at xhigh at E + I 6, and sort judge-replay's imports
This commit is contained in:
@@ -39,7 +39,7 @@ from loop_effects.effects import Effects
|
|||||||
from failure import Failure
|
from failure import Failure
|
||||||
from rung_replay.search import first_reply, replayed
|
from rung_replay.search import first_reply, replayed
|
||||||
from claude_code.reply import Limited
|
from claude_code.reply import Limited
|
||||||
from model_routing.ladder import lowest_worker_rung, position, project_rung, REVIEW_STEPS, review_floor, Rung
|
from model_routing.ladder import lowest_worker_rung, position, project_rung, review_floor, REVIEW_STEPS, Rung
|
||||||
from loop_claude.project.premises import read_premises
|
from loop_claude.project.premises import read_premises
|
||||||
from loop_claude.project.records import read_records
|
from loop_claude.project.records import read_records
|
||||||
from claude_code.transcript import read_transcript
|
from claude_code.transcript import read_transcript
|
||||||
|
|||||||
@@ -551,13 +551,13 @@ class Cycles(unittest.TestCase):
|
|||||||
worker(say="next chunk"),
|
worker(say="next chunk"),
|
||||||
])
|
])
|
||||||
self.assertEqual(run.code, 130)
|
self.assertEqual(run.code, 130)
|
||||||
self.assertEqual([(argument(call, "--model"), argument(call, "--effort")) for call in run.calls if call["role"] == "judge"], [("claude-opus-5-5", "medium"), ("claude-fable-5-2", "medium"), ("claude-opus-5-5", "medium")])
|
self.assertEqual([(argument(call, "--model"), argument(call, "--effort")) for call in run.calls if call["role"] == "judge"], [("claude-opus-5-5", "medium"), ("claude-opus-5-5", "xhigh"), ("claude-opus-5-5", "medium")])
|
||||||
workers = [call for call in run.calls if call["role"] == "worker"]
|
workers = [call for call in run.calls if call["role"] == "worker"]
|
||||||
self.assertEqual({argument(call, "--effort") for call in workers}, {"high"})
|
self.assertEqual({argument(call, "--effort") for call in workers}, {"high"})
|
||||||
self.assertIn("Launch each reviewer with the Agent tool set to model fable, effort medium, the rung picked by an item of E + I 6 taken into the chunk.", argument(workers[1], "-p"))
|
self.assertIn("Launch each reviewer with the Agent tool set to model fable, effort medium, the rung picked by an item of E + I 6 taken into the chunk.", argument(workers[1], "-p"))
|
||||||
outcomes = "".join(checkout.archived().values())
|
outcomes = "".join(checkout.archived().values())
|
||||||
self.assertIn('<UTC> Stepped up\n\nWorker: {"model": "claude-sonnet-5-5", "effort": "high", "item": 4, "likelihood": 2, "escape_and_impact": 3, "escape_and_impact_taken_in": 6}\n', outcomes)
|
self.assertIn('<UTC> Stepped up\n\nWorker: {"model": "claude-sonnet-5-5", "effort": "high", "item": 4, "likelihood": 2, "escape_and_impact": 3, "escape_and_impact_taken_in": 6}\n', outcomes)
|
||||||
self.assertIn('Judge: claude-fable-5-2 at medium effort\nWorker: {"model": "claude-sonnet-5-5", "effort": "high", "item": 4, "likelihood": 2, "escape_and_impact": 3, "escape_and_impact_taken_in": 6}\n', outcomes)
|
self.assertIn('Judge: claude-opus-5-5 at xhigh effort\nWorker: {"model": "claude-sonnet-5-5", "effort": "high", "item": 4, "likelihood": 2, "escape_and_impact": 3, "escape_and_impact_taken_in": 6}\n', outcomes)
|
||||||
|
|
||||||
def test_a_rerun_resumes_an_open_chunk_on_the_rung_it_last_ran(self):
|
def test_a_rerun_resumes_an_open_chunk_on_the_rung_it_last_ran(self):
|
||||||
checkout = Checkout(self)
|
checkout = Checkout(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user