From 178fef961fe29558bd2804d82438b00c4aad7036 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 00:50:19 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20architecture=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20say=20what=20happens=20to?= =?UTF-8?q?=20calls=20off=20a=20terminal,=20mark=20a=20Reset=20as=20no=20c?= =?UTF-8?q?all=20written=20after=20the=20merge,=20and=20test=20a=20failed?= =?UTF-8?q?=20figures=20write?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 +- bin/loop_claude/loop/routing_check.py | 2 +- bin/loop_claude/test_loop_claude.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index ff634586..e3837703 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,7 @@ Decisions live in `docs/decisions.md`: ## Working rules -- When `routing-calls-raised.md`, at the root of loop-claude's archive (`$LOOP_CLAUDE_TRANSCRIPTS`, default `~/.claude/loop-claude-transcripts`), lists a call stamped after the latest stamp `todo.md` or `docs/decisions.md` → `routing:` cites from it, file one `todo.md` item to settle the calls stamped since, or refresh the one already filed. Its detail quotes those calls with their stamps, and the routed-chunks table of `routing-figures.md` beside it, never the project names its other tables hold. A change to the ladder, its bands or the delegation rule is the human's. The chunk that ships one appends `- Reset` to `routing-calls-raised.md`, so the figures count only chunks finished after it, and its calls may be raised again. +- When `routing-calls-raised.md`, at the root of loop-claude's archive (`$LOOP_CLAUDE_TRANSCRIPTS`, default `~/.claude/loop-claude-transcripts`), lists a call, any line but a `Reset`, stamped after the latest stamp `todo.md` or `docs/decisions.md` → `routing:` cites from it, file one `todo.md` item to settle the calls stamped since, or refresh the one already filed. Its detail quotes those calls with their stamps, and the routed-chunks table of `routing-figures.md` beside it, never the project names its other tables hold. A change to the ladder, its bands or the delegation rule is the human's. Once the chunk that ships one has merged, append `- Reset` to `routing-calls-raised.md`, so the figures count only chunks finished after it, and its calls may be raised again. - When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff first. When it holds a credential, such as a token in `env` or `mcpServers`, ask the human to move it out of the file, and commit only once it is gone. A token in `env` moves to the shell profile; a server in `mcpServers` moves to `~/.claude.json` with `claude mcp add --scope user`. ## Scoring run diff --git a/bin/loop_claude/loop/routing_check.py b/bin/loop_claude/loop/routing_check.py index 80a037f5..ec68f986 100644 --- a/bin/loop_claude/loop/routing_check.py +++ b/bin/loop_claude/loop/routing_check.py @@ -44,7 +44,7 @@ def new_calls(root: pathlib.Path, paths: Paths, effects: Effects) -> list[str] | def raise_calls(root: pathlib.Path, new: list[str], rung: Rung, paths: Paths, effects: Effects) -> Stop | None: - """Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and raised again at the next measurement; this repo's AGENTS.md files them meanwhile.""" + """Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and stay in the figures, raised at the next measurement on a terminal.""" listed = "".join(f"- {call}\n" for call in new) print(f"\nloop-claude's routing figures call for a routing change:\n{listed}The figures: {root / archive.FIGURES}", file=sys.stderr) if not effects.on_terminal(): diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index 49c38bd0..e9c8826d 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -437,10 +437,12 @@ class RoutingCheck(unittest.TestCase): def test_says_a_figure_it_cannot_write_and_goes_on(self): self.chunks(5, 4) - (self.root / "routing-figures.md").mkdir() + (self.root / "routing-figures.lock").touch() + self.root.chmod(0o555) + self.addCleanup(self.root.chmod, 0o755) stop, said = self.check(FakeEffects()) self.assertIsNone(stop) - self.assertIn("routing figures: could not read", said) + self.assertIn("routing figures: could not write", said) class ModelPrompt(unittest.TestCase):