Answer stability round 1: 0 🔴, 6 🟡; name no rung without evidence, test the prompt's task, premises and records and the replay's edges, and name a copy and its outcomes file in one module

This commit is contained in:
2026-10-15 09:16:11 +02:00
parent 5d49c24397
commit 015e39ae97
13 changed files with 94 additions and 36 deletions
+4 -3
View File
@@ -47,9 +47,10 @@ todo.md's top item in the next release, skipping an item marked question, picks
counts from the model's cheapest rung, and an R + C of 8 or less picks a rung below it; without
such an item, or with a C missing, the chunk runs on the model's cheapest rung. The worker's first
prompt names the rung and the item, and asks the worker to name each item the chunk takes, with its
R + C. On a model judge-replay has replayed, the judge runs on the rung that item's R + C picks from
the judge's model, never below that model's cheapest rung, whatever rung the worker steps to;
without such an item, on the cheapest rung. When the worker's rung is below the model's cheapest, the prompt also has the worker launch each
R + C. On a model listed in JUDGE_REPLAYED in bin/loop_claude/routing.py, which judge-replay found
returning every verdict on its cheapest rung, the judge runs on the rung that item's R + C picks from
the judge's model. It never runs below that model's cheapest rung, and keeps its rung when the
worker steps up or takes in another item; without such an item, it runs on the cheapest rung. When the worker's rung is below the model's cheapest, the prompt also has the worker launch each
reviewer, each comprehension seat and the security pass in subagents on the cheapest rung. When it
is above, the prompt has the worker launch only each comprehension seat and the security pass on
the cheapest rung. The prompt after each unfinished verdict
+4 -2
View File
@@ -29,12 +29,12 @@ def first_route(anchor: Rung, item: Item | None) -> Route:
def kept(route: Route, anchor: Rung) -> bool:
"""Whether a chunk keeps route: its rung is on the ladder at or above the rung its item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it."""
"""Whether a chunk keeps route: its rung is on the ladder at or above item_rung."""
return highest(route.rung, item_rung(anchor, route)) == route.rung
def item_rung(anchor: Rung, route: Route) -> Rung:
"""The rung the route's item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it."""
"""The rung the route's item's R + C picks from anchor, the project's rung, or anchor itself when no item routed it. The worker may run below anchor; judge_rung lifts it to anchor."""
return picked(anchor, route.risk_and_complexity) if route.item else anchor
@@ -51,6 +51,8 @@ def stepped(anchor: Rung, route: Route, bundled: int) -> Route:
def judge_rung(judge_model: str, route: Route) -> Rung:
"""The rung the route's item picks from the judge model's cheapest rung, never below that rung, whatever rung the worker stepped to.
An item the worker takes in moves the worker's rung but not the judge's, until todo.md item 136 routes the chunk on the item the worker takes.
A model judge-replay has not replayed runs alone, at its settings' effort, as does one off the ladder.
"""
anchor = project_rung(judge_model)
+2
View File
@@ -254,6 +254,8 @@ class Cycles(unittest.TestCase):
self.assertEqual(len(judge_prompts), 2)
self.assertNotIn("the second", judge_prompts[0])
self.assertIn("[human] the second", judge_prompts[1])
self.assertIn("From README.md:\n## Goals", judge_prompts[0])
self.assertIn("The task an agent was given:\nDo it.", judge_prompts[0])
def test_a_question_the_records_answer_resumes_the_worker_with_the_answer_three_times_a_cycle(self):
answered = judged("quoted", answer="Use *A*.")