From aa0c7970bd7de664e85e9426ba151faa25a2a7fc Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 13 Nov 2026 23:34:24 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20move=20hand?= =?UTF-8?q?=5Fover=20into=20loop=5Fclaude=20and=20correct=20items=2051=20a?= =?UTF-8?q?nd=20197?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- bin/loop_claude/__init__.py | 2 +- bin/loop_claude/cycle/interrupt.py | 5 ++--- bin/{loop_state => loop_claude}/hand_over.py | 0 bin/loop_claude/loop/routing_check.py | 2 +- bin/loop_state/__init__.py | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) rename bin/{loop_state => loop_claude}/hand_over.py (100%) diff --git a/README.md b/README.md index 123c78c8..92509ee4 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a - `judge_replay` imports `loop_claude`'s judge, verdicts, premises and records. - `loop_claude` runs `chunk-preflight` as a process of its own. - `loop_effects/` holds `Effects`: the processes, terminal, clock and git a tool reaches, injected so its tests can script them. loop-claude, both replay tools and `reviewer-merge-trials`' driver use it. -- `loop_state/` holds where loop-claude keeps its files (`paths.py`), which `rung_replay` reads too, and `hand_over.py`, which opens claude on the terminal for `/talk`. +- `loop_state/` holds where loop-claude keeps its files (`paths.py`), which `rung_replay` reads too. - `machine_load/` takes the machine's heavy slots, its shared lock files, for `run_heavy`, and reads the memory share that loop-claude waits for. It also gives `mutate_changes` a slot's CPU count. - `mattermost_dm/` sends the human a Mattermost DM, for `mattermost-dm` and for loop-claude through `loop_effects`. - `model_routing/` holds the routing ladder, which loop-claude, `rule_hook`, both replay tools and `subagent-rung` read, and the list prices, which `routing_figures` and `transcript_archive` read. diff --git a/bin/loop_claude/__init__.py b/bin/loop_claude/__init__.py index 5cf83e0d..0dc6f534 100644 --- a/bin/loop_claude/__init__.py +++ b/bin/loop_claude/__init__.py @@ -1,4 +1,4 @@ """loop-claude: headless claude cycles, judged, that interrupt the human only for a decision that is theirs (loop/usage.py's help). -Its packages hold one concern each: cycle/ runs a cycle, loop/ runs the cycles, and project/ reads a checkout's files. Its paths and the way it opens claude for the human live in bin/loop_state/, and its effects in bin/loop_effects/. Each module at this level is imported by more than one package, or by a module at this level that is. A reader finds a module by its name, so the modules stay at one level. docs/decisions.md → `principles: about seven things per level, …` allows that. +Its packages hold one concern each: cycle/ runs a cycle, loop/ runs the cycles, and project/ reads a checkout's files. Its paths live in bin/loop_state/, and its effects in bin/loop_effects/. Each module at this level is imported by more than one package, or by a module at this level that is. A reader finds a module by its name, so the modules stay at one level. docs/decisions.md → `principles: about seven things per level, …` allows that. """ diff --git a/bin/loop_claude/cycle/interrupt.py b/bin/loop_claude/cycle/interrupt.py index af04aa3a..b012de19 100644 --- a/bin/loop_claude/cycle/interrupt.py +++ b/bin/loop_claude/cycle/interrupt.py @@ -3,7 +3,7 @@ import sys import typing import uuid -from loop_state.hand_over import claude_args, ClaudeCommand, hand_over +from loop_claude.hand_over import claude_args, ClaudeCommand, hand_over from loop_effects.effects import Effects, say from failure import Failure from claude_code.transcript import human_turns, read_transcript @@ -12,9 +12,8 @@ from model_routing.ladder import Rung from loop_claude.direct_message import tell ANSWER_QUESTION = "answer the question above" -# What the human types at loop-claude's terminal to open claude for the question; picked on 2026-10-17 by a bench of three readers seated as the README's audience. +# TALK, what the human types at loop-claude's terminal to open claude for the question, and ASK_ANSWER were picked on 2026-10-17 by a bench of three readers seated as the README's audience, as ~/.claude/CLAUDE.md → "Working loop" → "Bench a syntax with the people who write it." has it. TALK = "/talk" -# ASK_ANSWER was picked on 2026-10-17 by a bench of three readers seated as the README's audience, as ~/.claude/CLAUDE.md → "Working loop" → "Bench a syntax with the people who write it." has it. ASK_ANSWER = f"Answer ({TALK} opens claude, Enter stops the loop): " diff --git a/bin/loop_state/hand_over.py b/bin/loop_claude/hand_over.py similarity index 100% rename from bin/loop_state/hand_over.py rename to bin/loop_claude/hand_over.py diff --git a/bin/loop_claude/loop/routing_check.py b/bin/loop_claude/loop/routing_check.py index bac58308..4053a475 100644 --- a/bin/loop_claude/loop/routing_check.py +++ b/bin/loop_claude/loop/routing_check.py @@ -3,7 +3,7 @@ import pathlib from routing_figures import archive from routing_figures.calls import Call, calls, totals -from loop_state.hand_over import claude_args, ClaudeCommand, hand_over +from loop_claude.hand_over import claude_args, ClaudeCommand, hand_over from loop_effects.effects import Effects, say from failure import Failure from loop_claude.loop.this_loop import Loop diff --git a/bin/loop_state/__init__.py b/bin/loop_state/__init__.py index e8c7cbd5..3c4386b6 100644 --- a/bin/loop_state/__init__.py +++ b/bin/loop_state/__init__.py @@ -1,4 +1,4 @@ -"""What loop-claude and the tools that replay its runs share: where its files are (paths.py), and how it opens claude for the human on its terminal (hand_over.py). +"""Where loop-claude keeps its files (paths.py), which the tools that replay its runs read too. It doesn't import anything from loop_claude/. """