Answer prose round 1: one list of places for an answer, plainer help and changelog, the todo.md premise named
This commit is contained in:
@@ -3,7 +3,7 @@ import typing
|
||||
|
||||
from failure import Failure
|
||||
|
||||
ANSWERS_RECORDED = "every answer the human typed in it that a later chunk could need is recorded in one of README.md's Goals or Audience, AGENTS.md, docs/decisions.md, todo.md or a comment at the one place it governs"
|
||||
ANSWERS_RECORDED = "every answer the human typed in it that a later chunk could need is recorded in README.md's Goals or Audience, AGENTS.md, docs/decisions.md, todo.md or a comment at the one place it governs"
|
||||
JUDGE_RULES = (
|
||||
"Decide whether the human must now be interrupted. interrupt=true when any of these appear:\n"
|
||||
"- the agent asks the human anything, seeks approval, or says a decision is the human's, and neither "
|
||||
@@ -30,8 +30,8 @@ JUDGE_RULES = (
|
||||
"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. Even then, it is finished only once {ANSWERS_RECORDED}. An answer counts as recorded "
|
||||
"where the files above hold it, ~/.claude/CLAUDE.md included, or where the transcript shows the "
|
||||
"agent writing it into one of those places. finished=false when work remains that a further run can continue: an open PR, a review "
|
||||
"where README.md or the records above hold it, or where the transcript shows the agent writing it "
|
||||
"into one of the places just listed, never ~/.claude/CLAUDE.md. 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."
|
||||
)
|
||||
|
||||
|
||||
@@ -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 complete 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 merged, or nothing remains that you could do on your own, 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)]
|
||||
|
||||
Reference in New Issue
Block a user