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

This commit is contained in:
2026-11-18 23:13:43 +01:00
parent 36dbddfa0b
commit d0ecdd6359
19 changed files with 334 additions and 47 deletions
+3 -1
View File
@@ -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)}"
)
+1
View File
@@ -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,
+2
View File
@@ -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."""