Put the README's Goals and Audience into every fresh worker prompt, under the item's scope
This commit is contained in:
@@ -13,8 +13,8 @@ ANSWER_DESTINATIONS = "README.md's Goals or Audience, " + ", ".join(RECORD_FILES
|
||||
ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could need is recorded in {ANSWER_DESTINATIONS} at the one place it governs"
|
||||
|
||||
|
||||
def fresh(task: str) -> str:
|
||||
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one."
|
||||
def fresh(task: str, premises: str) -> str:
|
||||
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\nThe item sets the chunk's scope; the goals choose between ways to meet it, and never widen it.\n\nFrom README.md:\n{premises}"
|
||||
|
||||
|
||||
def resumed(unfinished_evidence: str) -> str:
|
||||
|
||||
@@ -85,7 +85,7 @@ def worker_start(cycle: Cycle, answered: QuotedAnswer | None) -> list[str]:
|
||||
return worker_args(cycle.session, cycle.models.worker, prompts.answered(answered.question, answered.answer), resume=True)
|
||||
if session_open(cycle.session):
|
||||
return worker_args(cycle.session, cycle.models.worker, prompts.resumed(cycle.unfinished_evidence), resume=True)
|
||||
return worker_args(cycle.session, cycle.models.worker, prompts.fresh(cycle.task), resume=False)
|
||||
return worker_args(cycle.session, cycle.models.worker, prompts.fresh(cycle.task, cycle.premises), resume=False)
|
||||
|
||||
|
||||
def keep_answer(cycle: Cycle, answered: QuotedAnswer) -> Stop | None:
|
||||
|
||||
Reference in New Issue
Block a user