Answer architecture round 2: the shared modules and the judge's reply contract are named for what they hold

This commit is contained in:
2026-10-03 18:12:38 +02:00
parent d3613f45d4
commit 38c2e24f96
20 changed files with 70 additions and 59 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import pathlib
import sys
from failure import Failure
from files.writes import replace_json
from file_writes import replace_json
# A failure only warns: the interrupt still runs, and the human answers Claude Code's trust dialog.
+1 -1
View File
@@ -5,7 +5,7 @@ import sys
from failure import Failure
from loop_claude.claude_code.transcript import first_timestamped_line
from files.writes import make_private, replace_file
from file_writes import make_private, replace_file
from loop_claude.paths import Paths
from loop_claude.claude_code.session import session_files
+1 -1
View File
@@ -4,7 +4,7 @@ import re
from loop_claude.effects import Effects
from failure import Failure
from loop_claude.claude_code.entries import hit_limit, limit_said, parse_entry, structured_output
from loop_claude.cycle.verdicts import Interrupt, JUDGE_RULES, JUDGE_SCHEMA, QuotedAnswer, Verdict, verdict_from
from loop_claude.cycle.judge_reply import Interrupt, JUDGE_RULES, JUDGE_SCHEMA, QuotedAnswer, Verdict, verdict_from
from loop_claude.cycle.retry import Limited, retried
from loop_claude.stop import Stop
+1 -1
View File
@@ -6,7 +6,7 @@ from loop_claude.cycle.archive import archive
from loop_claude.claude_code.session import delete_session, Session, session_open, transcript_file
from loop_claude.effects import Effects
from failure import Failure
from loop_claude.cycle.verdicts import Finished, Interrupt, QuotedAnswer, Unfinished
from loop_claude.cycle.judge_reply import Finished, Interrupt, QuotedAnswer, Unfinished
from loop_claude.cycle.interrupt import interrupt
from loop_claude.cycle.judge import judge
from loop_claude.project.model_choice import Models
+1 -1
View File
@@ -1,6 +1,6 @@
import dataclasses
from loop_claude.cycle.verdicts import Finished, Interrupt, QuotedAnswer, Unfinished, Verdict
from loop_claude.cycle.judge_reply import Finished, Interrupt, QuotedAnswer, Unfinished, Verdict
# A backstop for what the judge misses, such as a reworded repeat, so the worker cannot loop unattended on answers quoted from README.md or the records.
QUOTED_ANSWERS_PER_CYCLE = 3
+1 -1
View File
@@ -4,7 +4,7 @@ from failure import Failure
from loop_claude.cycle.retry import Limited
from loop_claude.claude_code.transcript import part_line
from loop_claude.project.records import QUOTE_SOURCES
from loop_claude.cycle.verdicts import QuotedAnswer
from loop_claude.cycle.judge_reply import QuotedAnswer
from loop_claude.claude_code.session import Session
PRINTED_TOOL_INPUT = 160
+1 -1
View File
@@ -9,7 +9,7 @@ from loop_claude.effects import Effects
from failure import Failure
from loop_claude.stop import needs_human, needs_terminal, Stop
from loop_claude.paths import Paths
from files.writes import replace_json
from file_writes import replace_json
@dataclasses.dataclass(frozen=True)
+1 -1
View File
@@ -1,5 +1,5 @@
from loop_claude.project.checkout import read_checkout_file
from files.markdown import sections
from markdown_sections import sections
from loop_claude.stop import Stop