Answer architecture round 1: one module owns the judge's file lists, the reviewer agents read each principles file's Applies to line, logging applies to services; the audits' findings filed

This commit is contained in:
2026-10-04 17:47:47 +02:00
parent bed98f5306
commit b95f2c89cf
8 changed files with 65 additions and 12 deletions
+5 -1
View File
@@ -3,10 +3,14 @@ import pathlib
from loop_claude.project.checkout import read_utf8
from loop_claude.stop import Stop
# The records: the project's files the judge reads beside the README's premises and HUMAN_RULES.
RECORD_FILES = ("AGENTS.md", "docs/decisions.md")
HUMAN_RULES = "~/.claude/CLAUDE.md"
# The files a quoted answer comes from, named as the human and the worker see them; of README.md the judge sees only the premises.
# Where the judge may quote an answer from, named as the human and the worker see them; of README.md the judge sees only the premises.
QUOTE_SOURCES = "README.md's Goals and Audience, " + ", ".join(RECORD_FILES) + " or " + HUMAN_RULES
# Where the worker may write an answer the human typed, so it counts as recorded; HUMAN_RULES is the human's alone to write.
ANSWER_DESTINATIONS = "README.md's Goals or Audience, " + ", ".join(RECORD_FILES) + ", todo.md or a comment"
ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could need is recorded in {ANSWER_DESTINATIONS} at the one place it governs"
def read_records(root: str, claude_md: pathlib.Path) -> str | Stop: