Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 75c9c2718a | |||
| 1a60de25ab | |||
| 304a2ea988 | |||
| 79f6334c7f | |||
| 4ab5b629ea | |||
| afcd6801a1 | |||
| 46803b7e81 | |||
| 042f48a0f4 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
|
||||
- loop-claude no longer runs the judge of an Opus 5.5 project on Fable 5.2: from an E + I of 5 the judge runs on Opus 5.5 at xhigh, since a replay found each Fable 5.2 rung it tried, at low, medium and high, missing an interrupt. `judge-replay` now also replays each rung above the project's that a review climbs to, and reports what each misses.
|
||||
|
||||
## 0.8.0
|
||||
|
||||
- The routing ladder now tops out at Fable 5.2, ordered by the Artificial Analysis Intelligence Index read 2026-11-11: Sonnet 5.5 at high, Opus 5.5 at medium, Fable 5.2 at low and medium, Opus 5.5 at xhigh, Fable 5.2 at high and max. On an Opus 5.5 project, L 4 workers, E + I 5 reviews and a worker's first escalation now run on Fable 5.2 at low, where they ran on Opus 5.5 at high; E + I 6 reviews on Fable 5.2 at medium, where they ran on Opus 5.5 at xhigh; E + I 7 on Opus 5.5 at xhigh, where they ran on Opus 5.5 at max; and E + I 8 on Fable 5.2 at high, where they ran on Fable 5.1 at max. On a Sonnet 5.5 project, E + I 6, 7 and 8 reviews now run on Fable 5.2 at low, Fable 5.2 at medium and Opus 5.5 at xhigh, where they ran on Opus 5.5 at high, xhigh and max. The judge climbs with the reviews. A Fable 5.2 project starts on Fable 5.2 at low. Update `~/.claude` while no loop is mid-chunk: a chunk that stepped up to Opus 5.5 at high or max, or Fable 5.1 at max, finds its rung gone and restarts on its item's rung.
|
||||
|
||||
@@ -101,7 +101,7 @@ Install puts only `loop-claude` and `loop-inbox` on `PATH`; call the others by t
|
||||
- `chunk-preflight` finds the mechanical facts a chunk starts from, and with `--worktree` makes its worktree; `loop-claude` runs it with `--worktree` before it routes each chunk, and `chunk-preflight --help` lists the facts.
|
||||
- `command-patterns [<version>]` prints a table of the shell command patterns a release's archived chunks ran, such as `tea pr create`, for an audit of the release; `command-patterns --help` states its columns.
|
||||
- `deploy-release [--cut] [<checkout>]` moves `~/.claude`, or the checkout named, to the newest release, as Update says; with `--cut`, run in the development clone, it first cuts the next release, as Release says.
|
||||
- `judge-replay <model>` replays loop-claude's judge on archived verdicts of the projects run on the model, and prints the lowest rung that, like each rung above it, returns them; `judge-replay --help` states the replay.
|
||||
- `judge-replay <model>` replays loop-claude's judge on archived verdicts of the projects run on the model, and prints what each rung a review climbs to misses, and the lowest rung below them that, like each candidate above it, returns them; `judge-replay --help` states the replay.
|
||||
- `larv-review <command>` holds larv-review's mechanical rules: the chunk's review folder, the paired ruling's base and vote count, each pass's round count, the scoring run's trigger; the comprehension history's format, its latest places and its count of how often seats agree; and each reviewer's prompt header. `larv-review --help` states them.
|
||||
- `loop-claude <task>` runs a project's next chunk cycle after cycle; `loop-claude --help` states its contract.
|
||||
- `loop-inbox` shows the interrupts of every loop-claude on the machine, oldest first, takes each one's answer, `/talk` included, and lists every running loop with the `todo.md` items its chunk takes; `loop-inbox --help` states how.
|
||||
|
||||
@@ -11,12 +11,18 @@ with the task, premises and records each project holds now.
|
||||
It first replays every verdict on the reference judge: the model at xhigh effort, the rung the
|
||||
judge ran on before loop-claude routed it. A verdict the reference judge returns another kind on
|
||||
may rest on records or judge rules that have changed since; either way no rung is held to it. It
|
||||
then replays the rest on each candidate rung, highest first: from the model's cheapest rung down
|
||||
to the lowest rung a worker routes to. It stops at the first rung that misses one. It prints each
|
||||
verdict the reference judge did not reproduce, each verdict a rung missed, and the lowest rung
|
||||
that, like each rung above it, missed none. A rung it names is the evidence to add the model to
|
||||
JUDGE_REPLAYED in bin/loop_claude/routing.py, which routes that model's judge, and to record the
|
||||
run in docs/decisions.md → `routing: on a model judge-replay covered`.
|
||||
then replays the rest on each rung above the model's cheapest that a chunk's E + I raises a
|
||||
review to, except the reference judge's rung. Then it replays them on each candidate rung,
|
||||
highest first: from the model's cheapest rung down to the lowest rung a worker routes to. It stops
|
||||
at the first candidate that misses one. It prints each verdict the reference judge did not
|
||||
reproduce, each verdict a rung missed, and the lowest candidate that, like each candidate above
|
||||
it, missed none.
|
||||
|
||||
Record each run in docs/decisions.md → `routing: on a model judge-replay covered`. Where the
|
||||
model's cheapest rung misses no interrupt, the run is the evidence to add the model to
|
||||
JUDGE_REPLAYED in bin/loop_claude/routing.py, which routes that model's judge. judge_rung there
|
||||
keeps the judge to its own model's rungs; a rung above them that misses no interrupt is the
|
||||
evidence to let the judge climb onto it.
|
||||
|
||||
Like the loop, it tries a judge three times running before it counts the reply as failed. A
|
||||
verdict whose project or transcript cannot be read replays as failed too. Exit 1, saying why, on
|
||||
@@ -36,7 +42,7 @@ from loop_effects.effects import Effects
|
||||
from failure import Failure
|
||||
from rung_replay.search import first_reply, replayed
|
||||
from claude_code.reply import Limited
|
||||
from model_routing.ladder import lowest_worker_rung, project_rung, 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.records import read_records
|
||||
from claude_code.transcript import read_transcript
|
||||
@@ -61,7 +67,7 @@ def main(argv: list[str], env: typing.Mapping[str, str], home: pathlib.Path, eff
|
||||
cases = sample(cases, PER_KIND)
|
||||
reference = Rung(project.model, REFERENCE_EFFORT)
|
||||
# The candidates stop at the lowest rung a worker routes to: no route uses a rung below it for the judge.
|
||||
replay = replayed(cases, reference, down_from(project, lowest_worker_rung(project)), lambda found, rung: rule(found, rung, home / ".claude", effects), reproduced, "verdicts")
|
||||
replay = replayed(cases, reference, down_from(project, lowest_worker_rung(project)), lambda found, rung: rule(found, rung, home / ".claude", effects), reproduced, "verdicts", climbs(project, reference))
|
||||
if isinstance(replay, Limited):
|
||||
return limited_exit(TOOL, replay)
|
||||
print(report(project.model, reference, cases, replay))
|
||||
@@ -73,6 +79,11 @@ def model_argument(argv: list[str]) -> Rung | None:
|
||||
return project_rung(argv[0]) if len(argv) == 1 else None
|
||||
|
||||
|
||||
def climbs(project: Rung, reference: Rung) -> list[Rung]:
|
||||
"""The rungs above the project's rung that an E + I raises a review to, except the reference's, lowest first."""
|
||||
return sorted({review_floor(project, score) for score in REVIEW_STEPS} - {project, reference}, key=position)
|
||||
|
||||
|
||||
def archived_cases(model: str, root: pathlib.Path, home: pathlib.Path) -> list[Case] | Failure:
|
||||
projects = projects_on(model, home)
|
||||
if isinstance(projects, Failure):
|
||||
|
||||
@@ -75,13 +75,15 @@ def report(model: str, reference: Rung, cases: list[Case], replay: Replay[Case,
|
||||
f"The reference judge, {reference}, reproduced {len(cases) - len(unreproduced)}{'. It returned another kind on:' if unreproduced else '.'}",
|
||||
*missed_lines(unreproduced),
|
||||
]
|
||||
for climb in replay.climbed:
|
||||
lines += [f"{climb.rung}, a rung a review climbs to, missed {len(climb.missed)}{':' if climb.missed else '.'}", *missed_lines([(miss.case, miss.reply) for miss in climb.missed])]
|
||||
for tried in replay.tried:
|
||||
lines += [f"{tried.rung} missed {len(tried.missed)}{':' if tried.missed else '.'}", *missed_lines([(miss.case, miss.reply) for miss in tried.missed])]
|
||||
if not replay.tried:
|
||||
lines.append("No rung tried: the reference judge reproduced no verdict to hold one to.")
|
||||
else:
|
||||
lowest = replay.lowest or "none, the project's rung misses one"
|
||||
lines.append(f"Lowest rung that, like each rung above it, returns every verdict the reference judge reproduces: {lowest}")
|
||||
lines.append(f"Lowest candidate that, like each candidate above it, returns every verdict the reference judge reproduces: {lowest}")
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
|
||||
@@ -77,13 +77,22 @@ class Report(unittest.TestCase):
|
||||
"claude-sonnet-5-5 at high effort missed 0.",
|
||||
"claude-haiku-5-5 at xhigh effort missed 1:",
|
||||
" /code/p 2026-10-14T10:00:01Z: archived Verdict: interrupt, replayed Verdict: finished",
|
||||
"Lowest rung that, like each rung above it, returns every verdict the reference judge reproduces: claude-sonnet-5-5 at high effort",
|
||||
"Lowest candidate that, like each candidate above it, returns every verdict the reference judge reproduces: claude-sonnet-5-5 at high effort",
|
||||
])
|
||||
missed_all = report("claude-opus-5-5", REFERENCE, cases, Replay([FINISHED, INTERRUPTED], [Tried(MIDDLE, [Miss(cases[1], INTERRUPTED, FINISHED)])], None)).splitlines()
|
||||
self.assertEqual(missed_all[1], "The reference judge, claude-opus-5-5 at xhigh effort, reproduced 2.")
|
||||
self.assertEqual(missed_all[-1], "Lowest rung that, like each rung above it, returns every verdict the reference judge reproduces: none, the project's rung misses one")
|
||||
self.assertEqual(missed_all[-1], "Lowest candidate that, like each candidate above it, returns every verdict the reference judge reproduces: none, the project's rung misses one")
|
||||
self.assertEqual(report("claude-opus-5-5", REFERENCE, cases, Replay([UNFINISHED, FINISHED], [], None)).splitlines()[-1], "No rung tried: the reference judge reproduced no verdict to hold one to.")
|
||||
|
||||
def test_names_each_miss_of_each_rung_the_judge_climbs_to_before_the_search_down(self):
|
||||
cases = [case("2026-10-14T10:00:00Z", FINISHED), case("2026-10-14T10:00:01Z", INTERRUPTED)]
|
||||
climbs = [Tried(Rung("claude-fable-5-2", "low"), [Miss(cases[1], INTERRUPTED, FINISHED)]), Tried(Rung("claude-fable-5-2", "high"), [])]
|
||||
self.assertEqual(report("claude-opus-5-5", REFERENCE, cases, Replay([FINISHED, INTERRUPTED], [Tried(MIDDLE, [])], MIDDLE, climbs)).splitlines()[2:5], [
|
||||
"claude-fable-5-2 at low effort, a rung a review climbs to, missed 1:",
|
||||
" /code/p 2026-10-14T10:00:01Z: archived Verdict: interrupt, replayed Verdict: finished",
|
||||
"claude-fable-5-2 at high effort, a rung a review climbs to, missed 0.",
|
||||
])
|
||||
|
||||
|
||||
def unused(*_):
|
||||
raise AssertionError("not called")
|
||||
@@ -126,16 +135,21 @@ class Main(unittest.TestCase):
|
||||
output = {"answer": "", "escalation": "", "evidence": evidence, "finished": not interrupt, "interrupt": interrupt, "question": "Which?" if interrupt else "", "answered_before": "", "left_open": "", "release_ready": False}
|
||||
return {"type": "result", "structured_output": output}
|
||||
|
||||
def test_replays_the_models_projects_on_the_reference_then_from_the_projects_rung_down_and_prints_the_lowest_that_returns_all(self):
|
||||
# Sonnet misses the interrupt; Opus returns both.
|
||||
def test_replays_the_models_projects_on_the_reference_then_on_each_rung_the_judge_climbs_to_then_from_the_projects_rung_down_and_prints_the_lowest_that_returns_all(self):
|
||||
# Sonnet and Fable at medium miss the interrupt; Opus returns both.
|
||||
def reply(rung, interrupted):
|
||||
return self.verdict(interrupted and rung.model != "claude-sonnet-5-5", f"said {INTERRUPTED if interrupted else FINISHED}")
|
||||
return self.verdict(interrupted and rung not in (MIDDLE, Rung("claude-fable-5-2", "medium")), f"said {INTERRUPTED if interrupted else FINISHED}")
|
||||
|
||||
code, out, err = self.run_main(["claude-opus-5-5"], reply)
|
||||
self.assertEqual(code, 0, err)
|
||||
self.assertEqual({cwd for _, _, cwd in self.calls}, {str(self.home / "code" / "proj")})
|
||||
self.assertEqual([(model, effort) for model, effort, _ in self.calls[::2]], [("claude-opus-5-5", "xhigh"), ("claude-opus-5-5", "medium"), ("claude-sonnet-5-5", "high")])
|
||||
self.assertEqual([(model, effort) for model, effort, _ in self.calls[::2]], [
|
||||
("claude-opus-5-5", "xhigh"),
|
||||
("claude-fable-5-2", "low"), ("claude-fable-5-2", "medium"), ("claude-fable-5-2", "high"),
|
||||
("claude-opus-5-5", "medium"), ("claude-sonnet-5-5", "high"),
|
||||
])
|
||||
self.assertIn("The reference judge, claude-opus-5-5 at xhigh effort, reproduced 2.", out)
|
||||
self.assertIn("claude-fable-5-2 at low effort, a rung a review climbs to, missed 0.\nclaude-fable-5-2 at medium effort, a rung a review climbs to, missed 1:", out)
|
||||
self.assertTrue(out.endswith("returns every verdict the reference judge reproduces: claude-opus-5-5 at medium effort\n"))
|
||||
for said in ("The task the worker was given:\nDo it.", "1. Ship.", "From ~/.claude/CLAUDE.md:\nBe kind."):
|
||||
with self.subTest(said=said):
|
||||
@@ -162,7 +176,8 @@ class Main(unittest.TestCase):
|
||||
def test_stops_at_the_projects_rung_and_names_none_when_it_misses(self):
|
||||
code, out, _ = self.run_main(["claude-opus-5-5"], lambda rung, interrupted: self.verdict(interrupted and rung == REFERENCE, f"said {INTERRUPTED if interrupted else FINISHED}"))
|
||||
self.assertEqual(code, 0)
|
||||
self.assertEqual({(model, effort) for model, effort, _ in self.calls[2:]}, {("claude-opus-5-5", "medium")})
|
||||
# The reference and the three rungs a review climbs to each replay both verdicts first.
|
||||
self.assertEqual({(model, effort) for model, effort, _ in self.calls[8:]}, {("claude-opus-5-5", "medium")})
|
||||
self.assertTrue(out.endswith(": none, the project's rung misses one\n"))
|
||||
|
||||
def test_replays_a_verdict_whose_transcript_is_gone_as_failed(self):
|
||||
|
||||
@@ -20,7 +20,7 @@ from model_routing.route import Route
|
||||
UNFINISHED_PER_STEP = 2
|
||||
# How many rungs above item_rung an escalation trigger takes the worker or a task without the human's yes, as escalation_cap counts them.
|
||||
ESCALATION_CAP = 2
|
||||
# The models `judge-replay` found returning, on their cheapest rung, every verdict the reference judge reproduced: docs/decisions.md → `routing: on a model judge-replay covered`.
|
||||
# The models whose cheapest rung, in a `judge-replay` run, returned every interrupt the reference judge reproduced: docs/decisions.md → `routing: on a model judge-replay covered`.
|
||||
JUDGE_REPLAYED = ("claude-opus-5-5",)
|
||||
|
||||
|
||||
@@ -138,11 +138,13 @@ def one_rung_up(route: Route, rung: Rung, escalated_at: int) -> Route:
|
||||
|
||||
|
||||
def judge_rung(judge_model: str, route: Route) -> Rung:
|
||||
"""The rung the route's reviewed_on E + I picks for a review, counted from the judge model's cheapest rung and never below it, whatever rung the worker stepped to.
|
||||
"""The lowest of the judge model's own rungs at or above the rung a review gets from the route's reviewed_on E + I, counted from the model's cheapest rung. Where that review rung is above all the model's rungs, the model's highest. The worker's rung doesn't change it.
|
||||
|
||||
A model off the ladder, or not in JUDGE_REPLAYED, gets no effort flag, so claude runs it at the effort its settings give.
|
||||
The judge keeps to its model's rungs, since every Fable 5.2 rung judge-replay tried missed an interrupt: docs/decisions.md → `routing: on a model judge-replay covered`. A model off the ladder, or not in JUDGE_REPLAYED, gets no effort flag, so claude runs it at the effort its settings give.
|
||||
"""
|
||||
cheapest = project_rung(judge_model)
|
||||
if cheapest is None or judge_model not in JUDGE_REPLAYED:
|
||||
return Rung(judge_model)
|
||||
return review_floor(cheapest, route.reviewed_on())
|
||||
floor = position(review_floor(cheapest, route.reviewed_on()))
|
||||
own = [rung for rung in LADDER if rung.model == judge_model]
|
||||
return next((rung for rung in own if position(rung) >= floor), own[-1])
|
||||
|
||||
@@ -551,13 +551,13 @@ class Cycles(unittest.TestCase):
|
||||
worker(say="next chunk"),
|
||||
])
|
||||
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"]
|
||||
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"))
|
||||
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('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):
|
||||
checkout = Checkout(self)
|
||||
|
||||
@@ -1133,18 +1133,21 @@ class Routing(unittest.TestCase):
|
||||
self.assertEqual(routing.next_route(self.OPUS, Route(Rung("claude-opus-5-5", "low")), unfinished()).rung, self.OPUS)
|
||||
self.assertEqual(routing.next_route(self.OPUS, Route(Rung("claude-opus-5-5", "low")), unfinished(2)).rung, self.OPUS)
|
||||
|
||||
def test_runs_the_judge_on_the_rung_its_chunks_items_e_plus_i_picks_never_below_the_projects(self):
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 5)), self.ONE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.TWO_UP, 3, 4, 5)), self.ONE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.SONNET, 3, 2, 7)), self.THREE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(Rung("claude-haiku-5-5", "max"), 3, 1, 3)), self.OPUS)
|
||||
def test_runs_the_judge_on_the_lowest_rung_of_its_model_at_or_above_the_one_its_chunks_items_e_plus_i_picks_never_below_the_projects(self):
|
||||
# E + I 5 and 6 pick Fable 5.2 at low and medium, so the judge runs on Opus 5.5 at xhigh, its model's next rung up.
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 5)), self.THREE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.TWO_UP, 3, 3, 6)), self.THREE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.SONNET, 3, 3, 7)), self.THREE_UP)
|
||||
# E + I 8 picks Fable 5.2 at high, above every Opus 5.5 rung, so the judge runs on Opus 5.5's highest.
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 8)), self.THREE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(Rung("claude-haiku-5-5", "max"), 3, 3, 4)), self.OPUS)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.ONE_UP)), self.OPUS)
|
||||
self.assertEqual(routing.judge_rung("judge-model", Route(self.ONE_UP, 3, 4, 5)), Rung("judge-model"))
|
||||
self.assertEqual(routing.judge_rung("claude-sonnet-5-5", Route(self.ONE_UP, 3, 4, 5)), Rung("claude-sonnet-5-5"))
|
||||
self.assertEqual(routing.judge_rung("judge-model", Route(self.ONE_UP, 3, 3, 5)), Rung("judge-model"))
|
||||
self.assertEqual(routing.judge_rung("claude-sonnet-5-5", Route(self.ONE_UP, 3, 3, 5)), Rung("claude-sonnet-5-5"))
|
||||
|
||||
def test_runs_the_judge_on_the_rung_the_highest_e_plus_i_taken_in_picks(self):
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 4, escape_and_impact_taken_in=6)), self.TWO_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, escape_and_impact_taken_in=5)), self.ONE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 4, escape_and_impact_taken_in=6)), self.THREE_UP)
|
||||
self.assertEqual(routing.judge_rung("claude-opus-5-5", Route(self.OPUS, 3, 3, 4)), self.OPUS)
|
||||
|
||||
def test_refuses_a_route_whose_item_has_levels_off_their_scales_or_levels_without_an_item(self):
|
||||
for item, likelihood, escape_and_impact in ((3, 0, 5), (3, 5, 5), (3, 4, 1), (3, 4, 9), (0, 4, 5), (0, 4, 0), (0, 0, 5)):
|
||||
|
||||
+41
-15
@@ -35,10 +35,11 @@ class Tried(typing.Generic[Case, Aim, Answer]):
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Replay(typing.Generic[Case, Aim, Answer]):
|
||||
"""on_reference holds the reference's reply on each case; tried, each candidate tried, highest first; lowest, the lowest rung that, like each candidate above it, missed nothing, or None."""
|
||||
"""on_reference holds the reference's reply on each case; tried, each candidate tried, highest first; lowest, the lowest candidate that, like each candidate above it, didn't miss anything, or None; climbed, each climb tried, in the order given."""
|
||||
on_reference: list[Answer]
|
||||
tried: list[Tried[Case, Aim, Answer]]
|
||||
lowest: Rung | None
|
||||
climbed: list[Tried[Case, Aim, Answer]] = dataclasses.field(default_factory=list)
|
||||
|
||||
|
||||
def replayed(
|
||||
@@ -48,31 +49,56 @@ def replayed(
|
||||
replay_one: typing.Callable[[Case, Rung], Answer | Limited],
|
||||
reproduced: typing.Callable[[Case, Answer], list[Aim]],
|
||||
what: str,
|
||||
climbs: typing.Sequence[Rung] = (),
|
||||
) -> Replay[Case, Aim, Answer] | Limited:
|
||||
"""Replays the cases on the reference rung, then each candidate, highest first, on the cases where the reference reproduced anything, until one misses an item it reproduced.
|
||||
"""Replays the cases on the reference rung, then on each climb and each candidate, on the cases where the reference reproduced anything.
|
||||
|
||||
Going down, every rung at or above the one named was tried and missed nothing, so the result needs no assumption that a higher rung does at least as well; and a miss high up spares the cheaper rungs their replays.
|
||||
A climb is a rung above the candidates, such as one a chunk's E + I raises a review to. The rungs a route picks there don't follow from one another, so each climb is tried whatever another misses.
|
||||
|
||||
The candidates are tried highest first, until one misses an item the reference reproduced. Going down, every candidate at or above the one named was tried and didn't miss anything, so the result needs no assumption that a higher rung does at least as well; and a miss high up spares the cheaper rungs their replays.
|
||||
"""
|
||||
on_reference = replayed_on(cases, reference, replay_one, what)
|
||||
if isinstance(on_reference, Limited):
|
||||
return on_reference
|
||||
held = [(case, aim) for case, reply in zip(cases, on_reference) if (aim := reproduced(case, reply))]
|
||||
# With nothing to hold a rung to, no rung would miss anything.
|
||||
if not held:
|
||||
return Replay(on_reference, [], None)
|
||||
climbed: list[Tried[Case, Aim, Answer]] = []
|
||||
for rung in climbs:
|
||||
climb = tried_on(held, rung, replay_one, reproduced, what)
|
||||
if isinstance(climb, Limited):
|
||||
return climb
|
||||
climbed.append(climb)
|
||||
tried: list[Tried[Case, Aim, Answer]] = []
|
||||
lowest = None
|
||||
# With nothing to hold a rung to, every rung would miss nothing.
|
||||
for rung in candidates if held else []:
|
||||
replies = replayed_on([case for case, _ in held], rung, replay_one, what)
|
||||
if isinstance(replies, Limited):
|
||||
return replies
|
||||
misses: list[Miss[Case, Aim, Answer]] = []
|
||||
for (case, aim), reply in zip(held, replies):
|
||||
got = reproduced(case, reply)
|
||||
misses += [Miss(case, item, reply) for item in aim if item not in got]
|
||||
tried.append(Tried(rung, misses))
|
||||
if misses:
|
||||
for rung in candidates:
|
||||
candidate = tried_on(held, rung, replay_one, reproduced, what)
|
||||
if isinstance(candidate, Limited):
|
||||
return candidate
|
||||
tried.append(candidate)
|
||||
if candidate.missed:
|
||||
break
|
||||
lowest = rung
|
||||
return Replay(on_reference, tried, lowest)
|
||||
return Replay(on_reference, tried, lowest, climbed)
|
||||
|
||||
|
||||
def tried_on(
|
||||
held: list[tuple[Case, list[Aim]]],
|
||||
rung: Rung,
|
||||
replay_one: typing.Callable[[Case, Rung], Answer | Limited],
|
||||
reproduced: typing.Callable[[Case, Answer], list[Aim]],
|
||||
what: str,
|
||||
) -> Tried[Case, Aim, Answer] | Limited:
|
||||
"""rung and each item, of those the reference reproduced in the held cases, that its replies missed."""
|
||||
replies = replayed_on([case for case, _ in held], rung, replay_one, what)
|
||||
if isinstance(replies, Limited):
|
||||
return replies
|
||||
misses: list[Miss[Case, Aim, Answer]] = []
|
||||
for (case, aim), reply in zip(held, replies):
|
||||
got = reproduced(case, reply)
|
||||
misses += [Miss(case, item, reply) for item in aim if item not in got]
|
||||
return Tried(rung, misses)
|
||||
|
||||
|
||||
def replayed_on(cases: list[Case], rung: Rung, replay_one: typing.Callable[[Case, Rung], Answer | Limited], what: str) -> list[Answer] | Limited:
|
||||
|
||||
@@ -18,7 +18,7 @@ CHEAP = Rung("claude-haiku-5-5", "max")
|
||||
LOWER = Rung("claude-haiku-5-5", "xhigh")
|
||||
|
||||
|
||||
def search(cases, candidates, replies):
|
||||
def search(cases, candidates, replies, climbs=()):
|
||||
"""replayed on cases named by strings, where replies[rung][case] is the set of items a rung reproduces in the case."""
|
||||
asked = []
|
||||
|
||||
@@ -28,7 +28,7 @@ def search(cases, candidates, replies):
|
||||
return reply if isinstance(reply, Limited) else reply[case]
|
||||
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
return replayed(cases, REFERENCE, candidates, replay_one, lambda _, reply: sorted(reply), "cases"), asked
|
||||
return replayed(cases, REFERENCE, candidates, replay_one, lambda _, reply: sorted(reply), "cases", climbs), asked
|
||||
|
||||
|
||||
class Replayed(unittest.TestCase):
|
||||
@@ -46,8 +46,17 @@ class Replayed(unittest.TestCase):
|
||||
replies = {REFERENCE: {"a": {0}, "b": {0}}, MIDDLE: {"a": set(), "b": {0}}}
|
||||
self.assertEqual(search(["a", "b"], [MIDDLE], replies)[0], Replay([{0}, {0}], [Tried(MIDDLE, [Miss("a", 0, set())])], None))
|
||||
|
||||
def test_holds_each_climb_to_what_the_reference_reproduced_whatever_another_climb_misses(self):
|
||||
high, higher = Rung("claude-fable-5-2", "low"), Rung("claude-fable-5-2", "high")
|
||||
replies = {REFERENCE: {"a": {0}, "b": set()}, high: {"a": set()}, higher: {"a": {0}}, MIDDLE: {"a": {0}}}
|
||||
replay, asked = search(["a", "b"], [MIDDLE], replies, [high, higher])
|
||||
self.assertEqual(replay, Replay([{0}, set()], [Tried(MIDDLE, [])], MIDDLE, [Tried(high, [Miss("a", 0, set())]), Tried(higher, [])]))
|
||||
self.assertNotIn(("b", high), asked)
|
||||
self.assertEqual(search(["a"], [MIDDLE], {REFERENCE: {"a": set()}}, [high]), (Replay([set()], [], None, []), [("a", REFERENCE)]))
|
||||
|
||||
def test_stops_at_a_usage_limit(self):
|
||||
limit = Limited(None, "limit")
|
||||
self.assertEqual(search(["a"], [MIDDLE], {REFERENCE: {"a": {0}}, MIDDLE: {"a": {0}}, CHEAP: limit}, [CHEAP])[0], limit)
|
||||
self.assertEqual(search(["a"], [MIDDLE], {REFERENCE: limit})[0], limit)
|
||||
self.assertEqual(search(["a"], [MIDDLE, CHEAP], {REFERENCE: {"a": {0}}, MIDDLE: limit})[0], limit)
|
||||
|
||||
|
||||
+6
-4
@@ -450,15 +450,17 @@ An item the chunk re-scores on its branch routes on its planned levels until the
|
||||
|
||||
Valid while workers write the line when asked, and while `todo.md` on the default branch scores each item a chunk takes.
|
||||
|
||||
## routing: on a model judge-replay covered, the judge runs on the rung a review would get from the highest E + I among its chunk's items, never below the project's rung
|
||||
## routing: on a model judge-replay covered, the judge runs on the lowest of its model's rungs at or above the rung a review would get from the highest E + I among its chunk's items, never below the project's rung
|
||||
|
||||
2026-10-15, lilleman's plan, settled by the replay below. Serves goals 1.2 and 1.4, under the ladder and steps of `routing: one ladder`.
|
||||
2026-10-15, lilleman's plan, settled by the replays below. Serves goals 1.2 and 1.4, under the ladder and steps of `routing: one ladder`.
|
||||
|
||||
On a model listed in `JUDGE_REPLAYED` in `bin/loop_claude/routing.py`, the judge runs on the rung a review would get from the highest E + I among its chunk's items: the routed item and those the worker takes in. It never runs below the project's rung, and keeps its rung when the worker steps up. Without an item, it runs on the project's rung. Each archived verdict names the judge's rung on a `Judge:` line.
|
||||
On a model listed in `JUDGE_REPLAYED` in `bin/loop_claude/routing.py`, the judge runs on the lowest of its model's own rungs at or above the rung a review would get from the highest E + I among its chunk's items: the routed item and those the worker takes in. Where that rung is above all its model's rungs, it runs on its model's highest. So on an Opus 5.5 project it runs on Opus 5.5 at medium below an E + I of 5, and at xhigh from 5. It never runs below the project's rung, and keeps its rung when the worker steps up. Without an item, it runs on the project's rung. Each archived verdict names the judge's rung on a `Judge:` line.
|
||||
|
||||
On 2026-10-15, `bin/judge-replay claude-opus-5-5` replayed the latest 15 archived verdicts of each kind from the Opus 5.5 projects, 39 in all. The reference judge, Opus 5.5 at the xhigh effort `settings.json` gave every judge before, reproduced 31 of them. The other 8 may rest on records or judge rules that have changed since; either way no rung is held to them. On the 31, Haiku 5.5 missed 7 at xhigh and 8 at max. That run tried each judge once. 4 of Haiku's misses, 1 at xhigh and 3 at max, misquoted the transcript, which the loop and `judge-replay` now retry; without them it missed 6 and 5. Sonnet 5.5 at high returned another kind on 3 interrupts, and Opus 5.5 at medium missed none. A missed interrupt lets the worker settle a decision that is lilleman's (goal 1.2), so the judge never runs below the project's rung.
|
||||
|
||||
Only Opus 5.5 was replayed, so the judge of a project on another model keeps the effort its settings give until `judge-replay` covers that model (goal 1.1). Every routed chunk on record had an item of R + C 9, so the replay could not show that the project's rung suffices for harder items, and the judge climbs with the routed item. Since 2026-10-16, lilleman's call, it climbs with the item's E + I, as a review does: the judge checks the worker's decisions as the reviewers check its code, and a decision the judge lets through reaches lilleman, as a defect that review lets through reaches the users (goal 1.2). It runs above the project's rung only on an E + I of 5 or more (goal 1.4). It counts a taken-in item from the next cycle on.
|
||||
Only Opus 5.5 was replayed, so the judge of a project on another model keeps the effort its settings give until `judge-replay` covers that model (goal 1.1). Every routed chunk on record had an item of R + C 9, so the 2026-10-15 replay could not show that the project's rung suffices for harder items, and the judge climbs with the routed item. Since 2026-10-16, lilleman's call, it climbs with the item's E + I, as a review does: the judge checks the worker's decisions as the reviewers check its code, and a decision the judge lets through reaches lilleman, as a defect that review lets through reaches the users (goal 1.2). It runs above the project's rung only on an E + I of 5 or more (goal 1.4). It counts a taken-in item from the next cycle on.
|
||||
|
||||
On 2026-11-12, `bin/judge-replay claude-opus-5-5` replayed 60 verdicts, 15 of each kind, and also tried each rung above the project's that a review climbs to by E + I. The reference judge reproduced 46. On those 46, Fable 5.2 missed 2 interrupts and 6 other verdicts at low, 1 interrupt and 4 others at medium, and 1 interrupt and 2 others at high. Every Fable 5.2 rung it tried misses an interrupt, so the judge keeps to its own model's rungs (goal 1.2). That rule also keeps it off Fable 5.2 at max, which no replay tried. Between Opus 5.5's two rungs it climbs to xhigh, not back to medium, since a chunk of E + I 5 or more needs a judge above the project's rung, as it needs reviewers above it. Opus 5.5 at medium missed no interrupt, but returned another kind on 4 quoted answers, 3 of them as finished; `todo.md` item 333 weighs that.
|
||||
|
||||
Valid while the archived verdicts show what a judge should return, and until a new model joins the ladder: replay then.
|
||||
|
||||
|
||||
@@ -1664,3 +1664,30 @@ Read most (opens and searches):
|
||||
- `agents/product-owner-reviewer.md` 1
|
||||
- `agents/systems-architect.md` 1
|
||||
- `bin/mutate-changes` 1
|
||||
|
||||
## Reading cost, chunk 171d7158e8ce, finished 2026-11-12T00:16:54Z
|
||||
|
||||
42878 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `docs/decisions.md` 2
|
||||
- `todo.md` 2
|
||||
- `bin/model_routing/ladder.py` 1
|
||||
|
||||
## Reading cost, chunk bb58cf91ab1f, finished 2026-11-12T01:03:54Z
|
||||
|
||||
162283 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `todo.md` 12
|
||||
- `README.md` 7
|
||||
- `docs/decisions.md` 7
|
||||
- `bin/judge_replay/test_judge_replay.py` 4
|
||||
- `bin/loop_claude/routing.py` 4
|
||||
- `bin/judge_replay/replay.py` 3
|
||||
- `bin/loop_claude/test_loop_claude.py` 3
|
||||
- `bin/model_routing/ladder.py` 3
|
||||
- `bin/rung_replay/search.py` 3
|
||||
- `CHANGELOG.md` 2
|
||||
|
||||
@@ -6,20 +6,20 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 333`
|
||||
`Next ID = 339`
|
||||
|
||||
## Items
|
||||
|
||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 331 | 0.9.0 | | question | **Reword four decisions to expire when the rungs their replays tested change, not whenever a model joins the ladder.** | 1 | 1 | 1 | 1 | 2 | 1.4 by 2 | 0.9 |
|
||||
| 330 | 0.9.0 | | | **Replay the judge on each Fable 5.2 rung an Opus 5.5 project's E + I climbs it to, and keep it off any rung that misses an interrupt.** | 3 | 3 | 2 | 6 | 3 | 1.2 by 4, 1.1 by 3 | 2.9 |
|
||||
| 328 | 0.9.0 | | owner | **Script each step that 0.8.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.** | 1 | 2 | 1 | 2 | 2 | 1.4 by 3, 1.5 by 3 | 2.6 |
|
||||
| 333 | 0.9.0 | | decision | **For an Opus 5.5 project's chunks under E + I 5, run the judge on a rung that returns every quoted answer the reference judge reproduces.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 3, 1.2 by 2 | 2.1 |
|
||||
| 320 | 0.9.0 | | | **Bench a worker below the project's rung with the advisor tool against the same worker alone and the project's rung, and file the switch if it wins.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3, 1.1 by 2 | 2.0 |
|
||||
| 315 | 0.9.0 | | | **Start each reviewer under `agents/` without `CLAUDE.md`, and hand it the vocabulary, the prose rules and the project's decision titles.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 6 | 2.0 |
|
||||
| 312 | 0.9.0 | | | **Research the tooling agents read, search and run commands with, and file an item for each tool that cuts tokens a replay shows keep quality.** | 1 | 2 | 1 | 2 | 3 | 1.4 by 3, 1.5 by 2 | 2.0 |
|
||||
| 325 | 0.9.0 | | | **Give this repo's test suite one command that runs it as README → Test says, prints the failing tests and pytest's summary line, and saves the whole log to a file whose path it prints.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3, 1.5 by 2 | 2.0 |
|
||||
| 305 | 0.9.0 | | | **Record with each archived verdict the claude-config commit that ran it, the raw tokens each model spent by kind, and each choice of the worker's that the human reversed, so a change to the setup can be judged before and after.** | 3 | 2 | 3 | 6 | 5 | 1.4 by 4, 1.2 by 3 | 1.8 |
|
||||
| 335 | 0.9.0 | | | **Print an item's row and detail with `todo-item show <ID>`.** | 1 | 1 | 2 | 2 | 2 | 1.4 by 3, 1.5 by 1 | 1.8 |
|
||||
| 318 | 0.9.0 | | | **Let `review-replay` qualify a rung whose recall is no lower than the project's rung's own replay, and replay Opus 5.5 at low effort on the prose pass.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 5 | 1.7 |
|
||||
| 308 | 0.9.0 | | | **Skip a stability round 2 whose every must-fix finding named a surviving mutant or a failing test, both of which the worker now checks before review.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3, 1.5 by 2 | 1.6 |
|
||||
| 295 | 0.9.0 | | | **Have `chunk-pr merge` wait for the forge's required checks itself, and give workers one command that waits for a background log or report file.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 2, 1.5 by 2 | 1.6 |
|
||||
@@ -31,13 +31,17 @@
|
||||
| 310 | 0.9.0 | | | **Compact a waiting worker's session shortly before its prompt cache expires, only when the human has not answered an interrupt by then.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3 | 1.0 |
|
||||
| 298 | 0.9.0 | | | **Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind.** | 3 | 3 | 3 | 7 | 4 | 1.4 by 2, 1.5 by 1 | 1.0 |
|
||||
| 326 | 0.9.0 | | | **Let `chunk-pr ready` take the pull request's final title and set it as it marks the pull request ready.** | 2 | 1 | 3 | 4 | 2 | 1.4 by 1, 1.5 by 1 | 0.9 |
|
||||
| 337 | 0.9.0 | | | **Write each Bash call of a release's chunks to a file of JSON lines with `command-patterns <version> --calls <file>`.** | 1 | 1 | 1 | 1 | 2 | 1.4 by 1, 1.5 by 1 | 0.9 |
|
||||
| 332 | 0.9.0 | | defect | **Let `deploy-release` move a checkout whose `settings.json` differs from the release only by a `/model` pick or the key order Claude Code writes.** | 2 | 2 | 2 | 4 | 2 | 1.5 by 2 | 0.9 |
|
||||
| 336 | 0.9.0 | | | **Bring a chunk's branch level with origin's default branch, and print the rank check, with one `chunk-pr sync`.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 1, 1.5 by 1 | 0.8 |
|
||||
| 334 | 0.9.0 | | | **Set up a scoring run with one `larv-review` command that makes the scoring worktree, writes each seat's prompt file, and removes both once `record-scoring` has run.** | 3 | 2 | 2 | 5 | 5 | 1.4 by 2, 1.5 by 1 | 0.7 |
|
||||
| 327 | 0.9.0 | | | **Have `larv-review` print a round commit's title prefix, counted from the round's report, and have rule-hook refuse a round title whose counts differ from it.** | 3 | 2 | 3 | 6 | 4 | 1.1 by 1, 1.4 by 1 | 0.7 |
|
||||
| 303 | 0.10.0 | | defect | **Archive each judge run's prompt and json reply beside the verdict it gave, so judge cost, replays and backups cover the judge as they cover the worker.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 3 by 2 | 4.8 |
|
||||
| 304 | 0.10.0 | 303 | defect | **Archive each review-replay and judge-replay run's transcript beside its result, so a replay that decided a rung can be checked and re-priced later.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 2, 3 by 2 | 4.4 |
|
||||
| 306 | 0.10.0 | | | **Set a strategy that keeps loop-claude's archive and larv-review's review folders backed up and small over the years, compressing older entries without losing any.** | 3 | 2 | 4 | 7 | 5 | 3 by 5 | 3.9 |
|
||||
| 302 | 0.10.0 | | | **Call a scoring run for an item whose tagline makes the comprehension floor its target, and not for one that only names the floor, such as in a quoted decision title.** | 2 | 2 | 3 | 5 | 3 | code health by 2 | 3.6 |
|
||||
| 287 | 0.10.0 | | | **Move the forge helpers `Forge`, `forge_of`, `runner`, `open_pull`, `merged_pull`, `pull_at` and `gitea` into one module that `chunk_preflight`, `chunk_pr`, `deploy_release` and `larv_review` all import from, so no tool imports another tool's internals for them.** | 3 | 1 | 3 | 5 | 5 | code health by 3 | 3.4 |
|
||||
| 338 | 0.10.0 | | owner | **Script each step that 0.9.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.** | 1 | 2 | 1 | 2 | 2 | 1.4 by 3, 1.5 by 3 | 2.6 |
|
||||
| 288 | 0.10.0 | | | **Point the two reading-cost decisions at code health and goal 1.4's counter-signal, in place of the goal 1.1 they cite.** | 1 | 2 | 1 | 2 | 1 | code health by 1, 1.4 by 1 | 2.6 |
|
||||
| 77 | 0.10.0 | | | **Teach `bin/metric-bench` Go and TypeScript, rerun it once two projects' comprehension histories name places, and bring into review only a metric that tracks the panel.** | 4 | 2 | 1 | 5 | 6 | 1.1 by 7, 1.4 by 7 | 2.4 |
|
||||
| 321 | 0.10.0 | 318 | | **Evaluate the review passes that run on a rung item 318 qualified, against the chunks before them, and revert any pass whose findings or later fixes worsened.** | 1 | 2 | 1 | 2 | 2 | 1.1 by 3, 1.4 by 2 | 2.3 |
|
||||
@@ -82,23 +86,17 @@ The architect's 🔀 answer on PR #493 (item 292): four decisions expire "when a
|
||||
- `review: each pass keeps a reviewer of its own`: the merge trials ran on Opus 5.5 at medium. Reword the "Valid" line to name that rung.
|
||||
- `review: the principles audit runs only in the release review…`: its trial ran on the project's rung. Reword the line to name that rung.
|
||||
- `routing: a review pass runs below the project's rung only on a rung that a replay…`: `review-replay` tests only rungs below the project's rung. Have the line expire when those rungs change, the event item 196 names ("until a cheaper model joins the ladder").
|
||||
- `routing: on a model judge-replay covered, the judge runs…`: the replay tested the project's rung and below, while the climb above rests on the ladder's order alone. Have the line name both, and point the climb at item 330.
|
||||
- `routing: on a model judge-replay covered, the judge runs…`: the replays tested the project's rung and below, and each rung above it that a review climbs to. Have the line expire when those rungs change.
|
||||
|
||||
Recommendation: reword all four as above. They are decisions the repo held before item 292, so the rewording is lilleman's call.
|
||||
|
||||
### 330. Replay the judge on each Fable 5.2 rung an Opus 5.5 project's E + I climbs it to, and keep it off any rung that misses an interrupt.
|
||||
### 333. For an Opus 5.5 project's chunks under E + I 5, run the judge on a rung that returns every quoted answer the reference judge reproduces.
|
||||
|
||||
Item 292 put Fable 5.2 on the routing ladder. On an Opus 5.5 project the judge now climbs with its chunk's E + I onto Fable 5.2 at low, medium and high, at E + I 5, 6 and 8. Fable 5.2 has never returned a judge verdict, and the 2026-10-15 replay showed that another model can miss an interrupt in kind, not only in strength. `routing: on a model judge-replay covered, the judge runs …` rests on that replay.
|
||||
The judge returns one verdict kind per cycle: finished, unfinished, interrupt, or quoted answer, which answers the worker's question from `README.md` or the records so the worker resumes without lilleman. `routing: on a model judge-replay covered` puts the judge of an Opus 5.5 project on Opus 5.5 at medium, the project's rung, below E + I 5, and at xhigh from 5. It rests on the 2026-10-15 replay, where Opus 5.5 at medium missed none of the 31 verdicts the reference judge, Opus 5.5 at xhigh, reproduced.
|
||||
|
||||
`bin/judge-replay` replays only the project's rung and the rungs below it (`down_from` in `judge_replay/main.py`), so as it stands it never runs a Fable 5.2 rung. Give it the rungs the judge climbs to as well, run `bin/judge-replay claude-opus-5-5`, and record the result in that decision. Where a Fable 5.2 rung misses an interrupt the reference judge returns, keep the judge off it until a decision says otherwise.
|
||||
On 2026-11-12, `bin/judge-replay claude-opus-5-5` replayed 60 archived verdicts, 15 of each kind, and the reference judge reproduced 46. On those, Opus 5.5 at medium missed no interrupt, but returned another kind on 4 quoted answers: as finished on adf-codec 2026-10-21T20:33:37Z, claude-config 2026-11-08T10:15:04Z and plainpages 2026-11-08T19:55:39Z, and as unfinished on fejkdata 2026-11-10T22:25:50Z. A quoted answer returned as finished closes a chunk whose worker was asking a question (goal 1.1). It is a quality miss, not a decision of lilleman's left unasked. The replay tried each judge call up to three times on failure, but ran once, so some misses may be noise.
|
||||
|
||||
The review passes need no replay: `review-replay` tests only rungs below the project's rung, which item 292 left as they were.
|
||||
|
||||
### 328. Script each step that 0.8.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.
|
||||
|
||||
lilleman asked, on 2026-10-16, for a standing audit each release, so the loop keeps moving work a program does as well from the model to scripts (goals 1.4 and 1.5). This audit reads the archived transcripts of the chunks that shipped release 0.8.0 for every step that chunks repeated by hand, before, during or after review. It keeps the steps whose answer a program computes the same way each time, such as a lookup, a check, a prompt assembled for a reviewer, a cleanup. File one item per such step, with the time and tokens it cost, into the next release with items left. Leave a step that needs judgement with the model. Run `command-patterns 0.8.0` first; its table names the patterns, and `read_threads` and `calls` in `bin/command_patterns/tally.py` open the calls of one pattern. The 0.7.0 audit found that most steps its chunks repeated were already scripted by that release's own tools, so a step a shipped item already covers is not filed.
|
||||
|
||||
The chunk that ships this item files a copy of this audit in release 0.10.0, the release after this item's own, to audit release 0.9.0, rewording "0.8.0" to "0.9.0", and marks the copy `owner`, so the audit recurs each release until lilleman drops it.
|
||||
Recommended order. First read the 4 cases, and check whether each archived quoted answer still holds against today's `README.md` and records: a quote the records no longer back explains the miss, and that case drops out. Then re-run the project's rung on the cases that remain, a few times each. Only where misses persist, raise the judge's floor below E + I 5 to Opus 5.5 at xhigh in `bin/loop_claude/routing.py`, and record the evidence in that decision. That costs more per cycle (goal 1.4), against the quality goal 1.1 the misses hurt. Moving the judge to another rung changes neither the ladder nor its steps, which `routing: one ladder` reserves for lilleman: that decision says the judge's rung is set by `routing: on a model judge-replay covered`.
|
||||
|
||||
### 320. Bench a worker below the project's rung with the advisor tool against the same worker alone and the project's rung, and file the switch if it wins.
|
||||
|
||||
@@ -136,6 +134,14 @@ Three records the archive lacks, asked for by lilleman on 2026-11-11 after the t
|
||||
|
||||
Build on item 303's archive layout for the judge's part.
|
||||
|
||||
### 335. Print an item's row and detail with `todo-item show <ID>`.
|
||||
|
||||
Found by item 328's audit of release 0.8.0. All 9 of its chunks looked items up in `todo.md` by hand: `grep -n '^### N'`, `awk '/^### N\./,/^### [0-9]+\./'` ranges, `sed -n` offsets computed from a grep, and several retries to find the `## Details` line first. About 29 calls did only that, costing 1.3k command tokens and 15.9k result tokens; a looser grep over the audit's calls finds 40 such calls in all 9 chunks, many of them compound with other reads. Most of the result tokens went on reading far more than the one item, such as `sed -n 1,140p todo.md`.
|
||||
|
||||
`todo-item show <ID>` prints the item's table row, under the table's header line, and its detail, from `### <ID>.` to the next heading, and fails, saying so, where the ID has no row. It reads only `todo.md`, so it fits beside `add` and `finish` in `bin/todo_item/main.py`. `CLAUDE.md` → "Working loop" tells a worker to read the details of the items its chunk takes; that line names the command once it ships.
|
||||
|
||||
Left with the model: reading the item and judging what it asks.
|
||||
|
||||
### 318. Let `review-replay` qualify a rung whose recall is no lower than the project's rung's own replay, and replay Opus 5.5 at low effort on the prose pass.
|
||||
|
||||
Today a rung qualifies only if it re-finds every finding the project's rung found. The project's rung itself re-finds only 69 to 73% of its own findings on a replay (29 of 40, 27 of 39, 20 of 29), so even a reviewer exactly as good would fail, and "no pass has such a rung" says less than it seems. Qualify a rung when its share of the archived findings is no lower than the project's rung's own replay share, within a margin, over enough rounds, and it misses no 🔴 that both project-rung runs found. Then replay Opus 5.5 at low effort on the prose pass first, the pass whose misses cost least; the `effort` frontmatter key sets it per reviewer.
|
||||
@@ -200,12 +206,38 @@ Let `chunk-pr ready` take an optional final title and set it as it marks the pul
|
||||
|
||||
Left with the model: wording the title.
|
||||
|
||||
### 337. Write each Bash call of a release's chunks to a file of JSON lines with `command-patterns <version> --calls <file>`.
|
||||
|
||||
Found by item 328's audit of release 0.8.0. `command-patterns <version>` prints only a table of patterns, so an audit that must read the calls behind a pattern writes its own script. This audit wrote a 20-line Python script over `read_threads` and `calls` to dump 0.8.0's 2,317 calls, one per line, with the chunk, the pattern, the seconds, the command's and the result's sizes, and the command's text. Item 284's chunk, the 0.7.0 audit, wrote `/tmp/audit284/calls.jsonl` the same way. Each audit pays for writing and checking that script again, and item 328 recurs every release.
|
||||
|
||||
`--calls <file>` writes one JSON object per Bash call to `<file>`, besides printing the table: the chunk's number in the window, the pattern `pattern` in `bin/command_patterns/tally.py` gives it, its seconds, its command's and its result's characters, and the command's text. It needs `Call` to carry its pattern and its chunk, or `main.py` to pair them as it tallies. `command-patterns --help` and item 328's recurring detail name the flag.
|
||||
|
||||
Left with the model: reading the calls and judging which steps a program computes the same way each time.
|
||||
|
||||
### 332. Let `deploy-release` move a checkout whose `settings.json` differs from the release only by a `/model` pick or the key order Claude Code writes.
|
||||
|
||||
On 2026-11-12, moving `~/.claude` from v0.7.0 to v0.8.0, `deploy-release` failed at `git checkout --quiet --detach v0.8.0`: "Your local changes to the following files would be overwritten by checkout: settings.json". Claude Code had rewritten the file with `"model": "opus"` and its keys in another order. The `settings` clean filter drops the model and sorts the keys, so `git diff` showed no change and the tool's own check passed, but checkout compares the file as it is on disk. `deploy-release --help` says a model picked with `/model` doesn't block the move.
|
||||
|
||||
The move worked after `git checkout -- settings.json`, with the model added back by hand. Have the tool set aside a change the clean filter removes, move, and restore the model pick, or tell the user to pick it again, as it already does when the move changes `settings.json`. Test it with a working file that differs from HEAD only by the model and the key order.
|
||||
|
||||
### 336. Bring a chunk's branch level with origin's default branch, and print the rank check, with one `chunk-pr sync`.
|
||||
|
||||
Found by item 328's audit of release 0.8.0. 8 of its 9 chunks synced with the default branch by hand before the merge, in 13 calls (about 2.4k tokens, 6 s): `git fetch -q origin && git merge-base --is-ancestor origin/main HEAD && echo holds-main`, then, where that failed, `git merge -q origin/main`, then `rank_todo.py --check todo.md`.
|
||||
|
||||
`chunk-pr sync` fetches origin, merges its default branch into the chunk's branch where the branch does not already hold it, and prints one line saying which it did. Then it runs `rank_todo.py --check` where the worktree has a `todo.md`, and prints its result. On a merge conflict it stops with the merge in progress and names the conflicted files. chunk-pr already finds origin's default branch for `open`, so `sync` reuses that; where the change touches `bin/chunk_pr/main.py:42` `forge`, which the comprehension seats found hard because its helpers live in other packages, make it easier to read. `chunk-pr --help` and `larv-review` §4 step 1, which merges origin's default branch in before the gate, name the command.
|
||||
|
||||
Left with the model: resolving a conflict, such as one in `todo.md`, and fixing what the rank check reports.
|
||||
|
||||
### 334. Set up a scoring run with one `larv-review` command that makes the scoring worktree, writes each seat's prompt file, and removes both once `record-scoring` has run.
|
||||
|
||||
Found by item 328's audit of release 0.8.0. Of its 9 chunks, only item 296's ran a scoring run, since scoring runs are rare, and it set the run up by hand in about 20 Bash calls: 7 reads of `skills/comprehension-panel/SKILL.md`, `seat-prompts.md` and the scoring-run values (ls, wc, sed; about 12k result tokens); `git worktree add --detach ../claude-config-scoring origin/main`, then `git checkout -b scoring-item-301`; one `mkdir /tmp/seat296` and three heredocs writing shared.txt, report-plain.txt and report-arch.txt (6.6k chars); two heredocs writing scores.md (4.5k and 3.6k chars); `larv-review record-scoring`; and `rm -rf /tmp/seat296`. About 16k tokens in all.
|
||||
|
||||
The prompt text is fixed: `seat-prompts.md` says to copy the opening, each seat's background, the shared brief and the report for its kind of seat verbatim, and lists each `{placeholder}`. A program fills most of them: `{checkout}`, `{branch}`, `{main}` and `{git}` from the worktree it makes, `{forbidden}` from fixed text, `{files}` from `git ls-files`, `{anchors}` and `{dimensions}` from `SKILL.md` → "The score", and `{language}`, `{kind}`, `{domain}`, `{domain docs}` and `{3am question}` from the project's scoring-run values (claude-config's in `seat-prompts.md` → "claude-config's values"). Where one needs judgement, such as `{preloaded}`, the command takes it as an argument. It refuses, writing nothing, where the project has no scoring-run values. Where the prompt files land, a folder under the chunk's review folder or the state folder, is the implementer's call.
|
||||
|
||||
The command makes the detached scoring worktree on origin's default branch, writes one prompt file per seat of the four `SKILL.md` → "The scoring run" names, and prints their paths. A second form, or `record-scoring` itself, removes the worktree and the prompt folder after recording.
|
||||
|
||||
Left with the model: launching the seats, reading their reports and writing the scores. Item 316 (the seats' own agent type) and item 309 (two seats in the second pass) change who reads these prompts and how many, not how they are built, so this item does not overlap them.
|
||||
|
||||
### 327. Have `larv-review` print a round commit's title prefix, counted from the round's report, and have rule-hook refuse a round title whose counts differ from it.
|
||||
|
||||
The 0.8.0 audit (item 284) measured, over the 35 chunks that shipped 0.7.0: 72 commit calls in 33 chunks titled `Answer <pass> round <n>: R 🔴, Y 🟡 (K misread); <what changed>`, about 11k command tokens, most of them the summary. Each worker counts R, Y and K by hand. All three are in the round's report, `<pass>-round-<n>.md` in the review folder: R and Y are its finding headings, and K counts the findings the reviewer marked `[misread]`, as `bin/review_rules/round_titles.py` says. That module parses the counts for `score-outcomes`, which reports them as goal 1.1's signal, and rule-hook's `round_cap.py` checks only the round number, so nothing checks today that the counts match the report. Of the 8 titles whose report the audit could match, none miscounted; one report wrote its markers at line start rather than in `###` headings, so the reports' format varies by reviewer.
|
||||
@@ -252,6 +284,14 @@ Both comprehension seats of PR #453's paired ruling (2026-11-09) named this web
|
||||
|
||||
Put the seven helpers in a folder named by what it holds, such as `bin/forge/`, and import them from there. Keep each helper's behaviour and its tests. `chunk_preflight/choices.py` keeps `pulls_command`, which is preflight's own. Check `docs/decisions.md` for a mention of where a helper lives, and update it.
|
||||
|
||||
### 338. Script each step that 0.9.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.
|
||||
|
||||
lilleman asked, on 2026-10-16, for a standing audit each release, so the loop keeps moving work a program does as well from the model to scripts (goals 1.4 and 1.5). This audit reads the archived transcripts of the chunks that shipped release 0.9.0 for every step that chunks repeated by hand, before, during or after review. It keeps the steps whose answer a program computes the same way each time, such as a lookup, a check, a prompt assembled for a reviewer, a cleanup. File one item per such step, with the time and tokens it cost, into the next release with items left. Leave a step that needs judgement with the model. Run `command-patterns 0.9.0` first; its table names the patterns, and `read_threads` and `calls` in `bin/command_patterns/tally.py` open the calls of one pattern, or `--calls <file>` dumps them once item 337 ships. The 0.7.0 audit found that most steps its chunks repeated were already scripted by that release's own tools, so a step a shipped item already covers is not filed.
|
||||
|
||||
The 0.8.0 audit filed four steps, items 334, 335, 336 and 337, and found most other repeated steps already covered by items 295, 312, 325, 326 and 327.
|
||||
|
||||
The chunk that ships this item files a copy of this audit in release 0.11.0, the release after this item's own, to audit release 0.10.0, rewording "0.9.0" to "0.10.0", and marks the copy `owner`, so the audit recurs each release until lilleman drops it.
|
||||
|
||||
### 288. Point the two reading-cost decisions at code health and goal 1.4's counter-signal, in place of the goal 1.1 they cite.
|
||||
|
||||
Both `docs/decisions.md` entries under `reading cost: a rise is …` and `reading cost: larv-review measures each finished chunk …` open "Serves goal 1.1: comprehension …". No goal says that any more: code health (`CLAUDE.md` → "Shared goal") holds comprehension, and since PR #455 a rising reading cost is goal 1.4's first counter-signal. Raised by the stability review of PR #455 as a 🟢 outside that change.
|
||||
|
||||
Reference in New Issue
Block a user