Answer architecture round 1: 0 🔴, 4 🟡; move verdicts out of cycle, derive RECORDED, type the archived worker as Record, drop stale help names
This commit is contained in:
@@ -94,26 +94,25 @@ The judge reports the highest L and the highest E + I the worker states for an i
|
||||
next cycle steps the worker up to the rung that L picks, never down, and the reviewers to the rung
|
||||
picked by the higher of two: that E + I, or the routed item's (Route.reviewed_on in
|
||||
bin/model_routing/route.py). A level off its scale counts as none. Every second unfinished verdict
|
||||
on a chunk steps it up one rung (routing.stepped). So does an unfinished verdict on a worker that
|
||||
ended its run asking for a higher rung, once the judge quotes the transcript showing that the
|
||||
escalation trigger it named fired (~/.claude/CLAUDE.md → "Working with the codebase" lists them). An
|
||||
interrupt or a quoted answer with such a quote steps the rung as it comes in, before the human is
|
||||
asked or the worker resumes (routing.stepped_by_ruling). Each such step marks how many transcript
|
||||
entries the session held, and from then on the judge must quote the worker's own lines after that
|
||||
mark, where it reads a [step] line. Each step on an escalation stops two rungs above the rung the
|
||||
chunk's item picks, and the worker's prompts offer it only while the worker is below that limit.
|
||||
on a chunk steps it up one rung (routing.after_unfinished). So does an unfinished verdict on a
|
||||
worker that ended its run asking for a higher rung, once the judge quotes the transcript showing
|
||||
that the escalation trigger it named fired (~/.claude/CLAUDE.md → "Working with the codebase" lists
|
||||
them). An interrupt or a quoted answer with such a quote steps the rung as it comes in, before the
|
||||
human is asked or the worker resumes (routing.after_ruling). Each such step marks how many
|
||||
transcript entries the session held, and from then on the judge must quote the worker's own lines
|
||||
after that mark, where it reads a [step] line. Each step on an escalation stops two rungs above the
|
||||
rung the chunk's item picks, and the worker's prompts offer it only while the worker is below that
|
||||
limit.
|
||||
|
||||
Routing: the archive and reruns
|
||||
|
||||
Each finished or unfinished verdict, interrupt, quoted answer, stop and step-up in the archive ends
|
||||
with a Worker: line, a JSON record of the route: the worker's rung as model and effort, the item, L
|
||||
and E + I that routed the chunk, any taken-in E + I that picks a higher review rung (archived as a
|
||||
step-up too), and the mark. A rerun resumes an open chunk on the latest route named there, and
|
||||
counts its unfinished verdicts afresh; it also reads the prose lines written before the record. A
|
||||
rung no longer on the ladder, or below the one its item's L picks, is dropped, and the chunk is
|
||||
routed afresh from todo.md. So is a chunk whose archived line names an R + C, as loop-claude wrote
|
||||
before it routed on L. A todo.md or an archive that cannot be read or parsed is said on stderr, and
|
||||
the chunk is routed without it.
|
||||
with a Worker: line, the route's JSON record (Route.record in bin/model_routing/route.py). A rerun
|
||||
resumes an open chunk on the latest route named there, and counts its unfinished verdicts afresh; it
|
||||
also reads the prose lines written before the record. A rung no longer on the ladder, or below the
|
||||
one its item's L picks, is dropped, and the chunk is routed afresh from todo.md. So is a chunk whose
|
||||
archived line names an R + C, as loop-claude wrote before it routed on L. A todo.md or an archive
|
||||
that cannot be read or parsed is said on stderr, and the chunk is routed without it.
|
||||
|
||||
Routing: the judge's rung
|
||||
|
||||
@@ -194,7 +193,7 @@ from chunk_pick import default_plan, DefaultPlan
|
||||
from git_repo import default_ref
|
||||
from loop_claude.effects import Effects
|
||||
from failure import Failure
|
||||
from loop_claude.cycle.verdicts import Finished
|
||||
from loop_claude.verdicts import Finished
|
||||
from loop_claude.project.model_choice import get_or_ask_models
|
||||
from todo_table import Item
|
||||
from transcript_archive.read import latest_worker
|
||||
|
||||
Reference in New Issue
Block a user