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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user