Answer principles round 1: 1 🔴, 2 🟡; name the worker's rung on an interrupt and archive its step-up at once, step from the taken-in item, drop every escalation after the first step of a cycle, and state stepped's rules once
This commit is contained in:
@@ -82,10 +82,10 @@ scale counts as none. Every second unfinished verdict on a chunk steps it up one
|
||||
(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 with such a quote
|
||||
steps the rung as it comes in, before the human is asked, and the verdict after it steps nothing on
|
||||
the same quote (routing.stepped_by_interrupt). That step stops two rungs
|
||||
steps the rung as it comes in, before the human is asked, and no later ruling of that cycle steps it
|
||||
again (routing.stepped_by_interrupt). That step 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. Each finished or unfinished verdict, stop and step-up in the archive names the
|
||||
below that limit. Each finished or unfinished verdict, interrupt, stop and step-up in the archive names the
|
||||
worker's rung, with the item, L and E + I that routed the chunk, and any taken-in E + I that picks a
|
||||
higher review rung, which is archived as a step-up too. A rerun resumes an open chunk on the latest
|
||||
route named there, and counts its unfinished verdicts afresh. A rung no longer on the ladder, or
|
||||
@@ -226,9 +226,9 @@ def run_loop(argv: list[str], env: typing.Mapping[str, str], paths: Paths, launc
|
||||
concluded = run_cycle(Cycle(anchor=anchor, effects=effects, facts=facts, judge_model=models.judge, paths=paths, premises=premises, project_archive=archive_folder, records=records, root=loop_run.root, route=route, session=session, task=loop_run.task, unfinished_evidence=loop_run.unfinished_evidence))
|
||||
if isinstance(concluded, Stop):
|
||||
return concluded
|
||||
# A route the cycle stepped up as the judge interrupted counts as the one the verdict steps from.
|
||||
ended = dataclasses.replace(loop_run, route=concluded.route) if loop_run.route else loop_run
|
||||
before, loop_run = loop_run.route, after_verdict(ended, anchor, concluded.verdict)
|
||||
# The route the cycle ended on, which a step-up at an interrupt may have raised and archived, is the one the verdict steps from.
|
||||
ended = dataclasses.replace(loop_run, route=concluded.route if anchor else None)
|
||||
before, loop_run = ended.route, after_verdict(ended, anchor, concluded.verdict)
|
||||
if stop := archive_step(archive_folder, session, loop_run, before, effects):
|
||||
return stop
|
||||
if stop := check_routing(archive_root(paths.home, env), anchor or Rung(models.worker), paths, effects):
|
||||
|
||||
Reference in New Issue
Block a user