Answer architecture round 1: 0 🔴, 12 🟡; break the import loop, share the interrupt hand-over and formats, measure under a lock 20 cycles past the last measurement, go on off a terminal, and add a reset

This commit is contained in:
2026-10-15 00:49:02 +02:00
parent 5e0816bd80
commit acdba1abf4
19 changed files with 333 additions and 200 deletions
+5 -1
View File
@@ -4,7 +4,11 @@ from markdown_text import quoted
from utc_stamp import STAMPED
FINISHED = "Verdict: finished"
UNFINISHED = "Verdict: unfinished"
FINISHED_AT = re.compile(rf"^({STAMPED}) {re.escape(FINISHED)}$", re.MULTILINE)
UNFINISHED_AT = re.compile(rf"^{STAMPED} {re.escape(UNFINISHED)}$", re.MULTILINE)
# A verdict closes each cycle the judge ruled on; an interrupt or a stop closes none.
VERDICT_AT = re.compile(rf"^{STAMPED} (?:{re.escape(FINISHED)}|{re.escape(UNFINISHED)})$", re.MULTILINE)
# An outcome opens with its UTC stamp; a verdict that closes a cycle, a stop, or a step up ends with the worker line.
OUTCOME_AT = re.compile(rf"^({STAMPED}) ", re.MULTILINE)
NAMES_A_WORKER = ("Verdict: finished\n", "Verdict: unfinished\n", "Stopped: ", "Stepped up\n")
@@ -16,7 +20,7 @@ def finished(worker: str, evidence: str) -> str:
def unfinished(worker: str, evidence: str) -> str:
return f"Verdict: unfinished\n\nEvidence:\n{quoted(evidence)}\n\n{WORKER}{worker}"
return f"{UNFINISHED}\n\nEvidence:\n{quoted(evidence)}\n\n{WORKER}{worker}"
def interrupted(question: str, evidence: str) -> str: