Answer architecture round 1: 0 🔴, 7 🟡 (0 misread); hold one lock per loop for its whole run, group the judge's readings of the items taken in, list them as given

This commit is contained in:
2026-10-29 20:23:07 +01:00
parent 9bcfaebb83
commit dcdb8b5868
16 changed files with 274 additions and 278 deletions
+14 -13
View File
@@ -2,17 +2,25 @@
import dataclasses
@dataclasses.dataclass(frozen=True)
class TakenIn:
"""What the judge read in the transcript about the todo.md items the worker took into the chunk, the one it was routed on included."""
# Their IDs; loop-inbox lists them.
items: tuple[int, ...] = ()
# The highest L among them, 0 for none: an escalation steps up from the rung that L picks, and an unfinished verdict also raises the worker to it.
highest_likelihood: int = 0
# The highest E + I among them, 0 for none: after an unfinished verdict, it routes the next cycle's judge and reviewers.
highest_escape_and_impact: int = 0
@dataclasses.dataclass(frozen=True)
class Interrupt:
evidence: str
question: str
# The judge's quote showing that the worker's cited escalation trigger fired; empty for none.
escalation: str = ""
# The highest L the judge saw the worker take into the chunk, 0 for none: an escalation steps up from the rung that L picks.
highest_likelihood_taken_in: int = 0
taken_in: TakenIn = TakenIn()
release_ready: bool = False
# The IDs of the todo.md items the judge saw the chunk take, the routed one included; loop-inbox lists them.
items_taken_in: tuple[int, ...] = ()
# How many transcript entries the judge read, which escalation_mark.stamped stamps. An escalation the verdict carries moves the route's mark there. None means it was never stamped, and then its escalation doesn't step the worker.
entries_read: int | None = None
@@ -25,8 +33,7 @@ class QuotedAnswer:
answer: str
# As on Interrupt.
escalation: str = ""
highest_likelihood_taken_in: int = 0
items_taken_in: tuple[int, ...] = ()
taken_in: TakenIn = TakenIn()
entries_read: int | None = None
@@ -38,15 +45,9 @@ class Finished:
@dataclasses.dataclass(frozen=True)
class Unfinished:
evidence: str
# As on Interrupt; the worker also rises to the rung that L picks.
highest_likelihood_taken_in: int = 0
# As on Interrupt.
escalation: str = ""
# The highest E + I the judge saw the worker take into the chunk, 0 for none.
highest_escape_and_impact_taken_in: int = 0
# As on Interrupt.
items_taken_in: tuple[int, ...] = ()
# As on Interrupt.
taken_in: TakenIn = TakenIn()
entries_read: int | None = None