Answer stability round 1: count an answer the transcript shows written, give worker and judge one finish rule, cite CLAUDE.md by its heading, test a quoted answer that cannot be archived

This commit is contained in:
2026-10-03 21:06:34 +02:00
parent 0d85574a98
commit a43ef188d3
9 changed files with 30 additions and 20 deletions
+4 -3
View File
@@ -29,9 +29,10 @@ JUDGE_RULES = (
"outranks finished.\n"
"The chunk is the piece of work the agent is on, shipped as one pull request. "
"finished=true when the chunk is complete: merged, or nothing remains that the agent could do on "
f"its own, and {ANSWERS_RECORDED}. Judge that from the files above; a comment counts only where the "
"transcript shows the agent writing it. finished=false when work remains that a further run can "
"continue: an open PR, a review not yet run, CI not yet reported, an answer not yet recorded."
f"its own. Even then, it is finished only once {ANSWERS_RECORDED}. An answer counts as recorded "
"where the files above hold it, or where the transcript shows the agent writing it in one of those "
"places. finished=false when work remains that a further run can continue: an open PR, a review "
"not yet run, CI not yet reported, an answer not yet recorded."
)
+1 -1
View File
@@ -43,7 +43,7 @@ def worker_args(task: str, session: Session, model: str, resuming: bool, answere
if answered is not None:
start = ["-p", f"Your question: {answered.question}\n\n{QUOTE_SOURCES} answers it:\n\n{answered.answer}\n\nContinue the task.", "--resume", str(session.id)]
elif resuming:
start = ["-p", f"Continue the task; the previous run stopped before it was finished. The chunk is finished once it is merged and {ANSWERS_RECORDED}.", "--resume", str(session.id)]
start = ["-p", f"Continue the task; the previous run stopped before it was finished. The chunk is finished once it is complete and {ANSWERS_RECORDED}.", "--resume", str(session.id)]
else:
# --session-id creates the session under the id loop-claude keeps; --resume continues that session.
start = ["-p", f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.", "--name", session.name, "--session-id", str(session.id)]