Fix under the floor's Shape: interrupt means only the human, QuotedAnswer names the verdict, one owner for the record files, Limited beside its cycle

This commit is contained in:
2026-10-03 11:33:34 +02:00
parent fdc3bc38d4
commit 2d46aa3b8f
10 changed files with 68 additions and 59 deletions
+5 -1
View File
@@ -3,11 +3,15 @@ import pathlib
from loop_claude.project.checkout import read_checkout_file
from loop_claude.stop import Stop
RECORD_FILES = ("AGENTS.md", "docs/decisions.md")
# Where an answer the judge quotes comes from, as the human and the worker read it.
QUOTE_SOURCES = "README.md, " + " or ".join(RECORD_FILES)
def read_records(root: str) -> str | Stop:
"""AGENTS.md and docs/decisions.md, each headed by its path; a file the project lacks is left out."""
records = []
for name in ("AGENTS.md", "docs/decisions.md"):
for name in RECORD_FILES:
if not pathlib.Path(root, name).exists():
continue
text = read_checkout_file(root, name, "the judge cannot read the project's records")