File a finding and record a decision in a do-epic epic, and give the judge the epic's records beside the repo's
CI / tests (pull_request) Failing after 4m22s
CI / tests (pull_request) Failing after 4m22s
This commit is contained in:
@@ -141,6 +141,8 @@ class Brief(typing.NamedTuple):
|
||||
task: str
|
||||
premises: str
|
||||
records: str
|
||||
# What the records are, in their order, as WorkerPrompts.records_named has it.
|
||||
records_named: str
|
||||
# Where the worker may record an answer the human typed, as the entry point names it.
|
||||
answer_destinations: str
|
||||
entries: list[Entry]
|
||||
@@ -290,7 +292,7 @@ def judge_prompt(brief: Brief) -> tuple[str, Grounds]:
|
||||
"""The prompt, and what the judge's quotes are checked against."""
|
||||
head = (
|
||||
f"From the goals file, {brief.premises}\n\n"
|
||||
f"The records: the project's working rules and decisions, then the human's rules for every project:\n{brief.records or 'none'}\n\n"
|
||||
f"The records: {brief.records_named}:\n{brief.records or 'none'}\n\n"
|
||||
f"{TASK_HEADING}{brief.task}\n\n"
|
||||
f"{transcript_heading(brief.driver)}"
|
||||
)
|
||||
|
||||
@@ -156,6 +156,7 @@ def rule(cycle: Cycle, transcript_path: str, quoted_answers: int) -> Ruled | Sto
|
||||
task=cycle.task,
|
||||
premises=cycle.premises,
|
||||
records=cycle.records,
|
||||
records_named=cycle.prompts.records_named,
|
||||
answer_destinations=cycle.prompts.answer_destinations,
|
||||
entries=entries,
|
||||
escalated_at=cycle.route.escalated_at,
|
||||
|
||||
@@ -45,6 +45,8 @@ class WorkerPrompts:
|
||||
quote_sources: str
|
||||
# Where the worker may record an answer the human typed.
|
||||
answer_destinations: str
|
||||
# What the records the judge reads are, in the order it reads them.
|
||||
records_named: str
|
||||
|
||||
def answered(self, question: str, answer: str, route: Route, project: ProjectRung | None, stepped: bool) -> str:
|
||||
"""stepped is whether the answer's ruling stepped the worker up."""
|
||||
|
||||
Reference in New Issue
Block a user