Answer the prose pass's second round: the quote goes with the fourth question only, name the three files the human sees
This commit is contained in:
@@ -66,7 +66,7 @@ def step(cycle: Cycle, state: Active) -> Event | Stop:
|
||||
|
||||
def work(cycle: Cycle, answered: AnsweredFromRecords | None) -> WorkerRan | Stop:
|
||||
if answered is not None:
|
||||
print(f"\n=== README.md or the records answered: {answered.question} ===\n{answered.answer}", flush=True)
|
||||
print(f"\n=== README.md, AGENTS.md or docs/decisions.md answered: {answered.question} ===\n{answered.answer}", flush=True)
|
||||
# session_open runs inside the lambda: a failed attempt may have opened the session.
|
||||
if stop := retried("worker", lambda: run_worker(cycle.root, worker_args(cycle.task, cycle.session, cycle.models.worker, session_open(cycle.session), answered), cycle.effects), cycle.effects):
|
||||
return stop
|
||||
|
||||
@@ -72,7 +72,7 @@ def transition(state: State, event: Event) -> State:
|
||||
case Judging(_, records_answers), Ruled(AnsweredFromRecords() as answered) if records_answers < RECORDS_ANSWERS_PER_CYCLE:
|
||||
return Working(answered, records_answers + 1)
|
||||
case Judging(transcript_path, records_answers), Ruled(AnsweredFromRecords(question=question, answer=answer)):
|
||||
return Interrupting(transcript_path, f"{question}\n\nREADME.md or the project's records say:\n{answer}\n\nREADME.md or the records answered {records_answers} questions this cycle, so this one comes to you.", records_answers)
|
||||
return Interrupting(transcript_path, f"{question}\n\nREADME.md, AGENTS.md or docs/decisions.md say:\n{answer}\n\nREADME.md, AGENTS.md or docs/decisions.md answered {records_answers} questions this cycle, so this one comes to you.", records_answers)
|
||||
case Judging(transcript_path, records_answers), Ruled(Interrupt(question=question)):
|
||||
return Interrupting(transcript_path, question, records_answers)
|
||||
case Judging(transcript_path, _), Ruled(Finished() | Unfinished() as verdict):
|
||||
|
||||
@@ -9,8 +9,8 @@ where they exist. It rules whether the chunk, the work of one PR, is finished. A
|
||||
made that the premises or the records settle is not asked about. When the worker asks a question
|
||||
they answer, the judge quotes the answer, loop-claude prints it, and the worker resumes with it. A
|
||||
quote they do not hold word for word is dropped, and the question goes to the human. So does a
|
||||
question asked again after its answer, and the fourth question they answer in one cycle, with the
|
||||
quote.
|
||||
question asked again after its answer. The fourth question they answer in one cycle goes to the
|
||||
human too, with the quote.
|
||||
A question only the human can answer, or a release ready to cut, is an interrupt: `claude --resume`
|
||||
on the terminal, every worktree first marked trusted in ~/.claude.json. An unfinished chunk resumes
|
||||
its session next cycle; the next chunk starts a fresh session.
|
||||
|
||||
Reference in New Issue
Block a user