Render the human's typed turns for the judge, so an answered question is not asked again
This commit is contained in:
+6
-3
@@ -59,8 +59,8 @@ JUDGE_RULES = (
|
|||||||
"rule the rejected one out - and the choice materially changes the deliverable\n"
|
"rule the rejected one out - and the choice materially changes the deliverable\n"
|
||||||
"ask=false otherwise. A sensible preference is not a derivation. Bookkeeping the agent settled "
|
"ask=false otherwise. A sensible preference is not a derivation. Bookkeeping the agent settled "
|
||||||
"silently - what to document, wording, where a note goes - is not on its own a reason to "
|
"silently - what to document, wording, where a note goes - is not on its own a reason to "
|
||||||
"interrupt. The human may have replied inside the transcript: judge only what is still open, "
|
"interrupt. The human may have replied inside the transcript, on a [human] line: judge only what "
|
||||||
"never a question they already answered there.\n"
|
"is still open, never a question they already answered there.\n"
|
||||||
"The question must be one the agent itself raised. Never construct a question from facts the agent "
|
"The question must be one the agent itself raised. Never construct a question from facts the agent "
|
||||||
"stated. When ask=true, quote the agent's own wording where it already framed the question.\n"
|
"stated. When ask=true, quote the agent's own wording where it already framed the question.\n"
|
||||||
"finished=true when the chunk is complete: merged, or nothing remains that the agent could do on "
|
"finished=true when the chunk is complete: merged, or nothing remains that the agent could do on "
|
||||||
@@ -171,6 +171,9 @@ def render(entries):
|
|||||||
for entry in entries:
|
for entry in entries:
|
||||||
if entry.get("type") == "assistant":
|
if entry.get("type") == "assistant":
|
||||||
lines += [line for part in entry.get("message", {}).get("content", []) if (line := said(part))]
|
lines += [line for part in entry.get("message", {}).get("content", []) if (line := said(part))]
|
||||||
|
elif typed(entry):
|
||||||
|
content = entry["message"]["content"]
|
||||||
|
lines.append("[human] " + (content if isinstance(content, str) else "".join(part["text"] for part in content)))
|
||||||
return "\n\n".join(lines)
|
return "\n\n".join(lines)
|
||||||
|
|
||||||
|
|
||||||
@@ -286,7 +289,7 @@ def judge_prompt(task, premises, transcript):
|
|||||||
f"From README.md:\n{premises}\n\n"
|
f"From README.md:\n{premises}\n\n"
|
||||||
f"The task an agent was given:\n{task}\n\n"
|
f"The task an agent was given:\n{task}\n\n"
|
||||||
# The tail, where an ask or a finish lands; the session's transcript grows cycle over cycle.
|
# The tail, where an ask or a finish lands; the session's transcript grows cycle over cycle.
|
||||||
f"What the agent then did and said, latest last:\n{transcript[-40000:]}\n\n"
|
f"What the agent did and said, and what the human typed on [human] lines, latest last:\n{transcript[-40000:]}\n\n"
|
||||||
f"{JUDGE_RULES}"
|
f"{JUDGE_RULES}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
Bar the reload item, ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) named the place; each is one chunk.
|
Bar the reload item, ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) named the place; each is one chunk.
|
||||||
|
|
||||||
- Render the human's typed turns into the transcript the judge reads, today `render` keeps only assistant entries, so a question the human answered at an interrupt is asked again and the loop exits 2 when they leave that second session untouched.
|
|
||||||
- Carry the reload state of `bin/loop-claude` as one JSON argument, and exit naming the reload when it arrives without a task, today a new argument shifts the task out and an older running loop reloads into `usage` and exit 1.
|
- Carry the reload state of `bin/loop-claude` as one JSON argument, and exit naming the reload when it arrives without a task, today a new argument shifts the task out and an older running loop reloads into `usage` and exit 1.
|
||||||
- Name `end_session` for what it does, today it deletes the session's transcript files.
|
- Name `end_session` for what it does, today it deletes the session's transcript files.
|
||||||
- Define looping reviewer and round cap under `CLAUDE.md` → "Vocabulary", today inline at `agents/review-protocol.md`.
|
- Define looping reviewer and round cap under `CLAUDE.md` → "Vocabulary", today inline at `agents/review-protocol.md`.
|
||||||
|
|||||||
Reference in New Issue
Block a user