Answer prose round 1: 0 🔴, 9 🟡 (0 misread); split the interrupt entry, unstack the decisions' lists, say why Cycle's fields and the package's modules stay at one level, name the import cycle, and say how the judge's quotes are checked

This commit is contained in:
2026-11-04 23:35:35 +01:00
parent c7e49983f7
commit 9fea1d8286
8 changed files with 15 additions and 13 deletions
+3 -3
View File
@@ -97,7 +97,7 @@ class Rejected(Failure):
class Grounds(typing.NamedTuple):
"""The texts quotes_checked holds the judge's quotes to, word for word, since stitched fragments can say what their source does not."""
"""The texts quotes_checked checks the judge's quotes against. A quote must appear in its text as written, since a quote reworded or stitched together can say what its source does not; only the evidence may join passages with an ellipsis, each passage in order."""
# The transcript as the judge saw it.
shown: str
# The worker's own lines after the escalation mark, as escalation_mark.since_step renders them.
@@ -192,7 +192,7 @@ def cost_of(reply: dict) -> float:
def quotes_checked(verdict: Verdict, grounds: Grounds) -> Verdict | Failure:
"""The verdict with each quote it makes held to the text that must hold it, word for word:
"""The verdict with each of its quotes checked against the text it must appear in, as written:
| Quote | Must be in | Where it isn't |
|---|---|---|
@@ -200,7 +200,7 @@ def quotes_checked(verdict: Verdict, grounds: Grounds) -> Verdict | Failure:
| a quoted answer | grounds.quotable | the question goes to the human as an interrupt, which keeps the escalation the answer carried |
| the escalation | grounds.shown and grounds.since_step | the escalation is dropped, so the worker's rung holds, as escalation_mark.checked says |
Only a misquoted evidence fails: the other two misquotes would otherwise exit an unattended loop.
Only a misquoted evidence fails. A Failure for either of the other two would exit an unattended loop, so each changes the verdict instead.
"""
if not grounded(verdict.evidence, grounds.shown):
return Failure(f"the judge quoted {verdict.evidence!r}, which is not in the transcript" + (f", for the question: {verdict.question}" if isinstance(verdict, Interrupt | QuotedAnswer) else ""))
+4 -1
View File
@@ -24,7 +24,10 @@ from model_routing import worker_rungs
@dataclasses.dataclass(frozen=True)
class Cycle:
"""What a cycle runs on, which no step changes but the route. Each step reads the few fields it needs by name, so they stay at one level: docs/decisions.md → `principles: about seven things per level, …`, more where a reader finds them by name."""
"""What a cycle runs on. run_cycle replaces the route on a ruling's step-up; nothing changes the other fields.
Each step reads the few fields it needs by name, so the fields stay at one level. docs/decisions.md → `principles: about seven things per level, …` allows more than seven where a reader finds them by name.
"""
effects: Effects
# What chunk-preflight found, or why it could not run, for a fresh worker's prompt; empty when the session was open as the cycle began.
facts: str