Answer architecture round 1: 1 🔴, 6 🟡 (0 misread); open claude through one hand_over, route loop-inbox's /talk through the Talking state, give Ask one state

This commit is contained in:
2026-10-28 23:57:33 +01:00
parent a7fe878631
commit 3409ab3d07
17 changed files with 374 additions and 258 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ loop on the machine that waits for the human. The first answer counts, from eith
- Enter alone, on loop-claude's terminal: stops the loop.
A release ready to cut opens that session on the terminal at once, since only the human may cut it;
loop-inbox lists it too. Before claude opens, the checkout and each of its worktrees are marked
trusted in ~/.claude.json.
trusted in ~/.claude.json. While claude is open, Ctrl-C reaches it alone, and the loop goes on.
As a chunk starts, before it is routed, loop-claude runs bin/chunk-preflight (bin/chunk_preflight/),
which finds the chunk's facts and makes its worktree; chunk-preflight --help lists them, and
+3 -2
View File
@@ -3,9 +3,10 @@ import pathlib
from routing_figures import archive
from routing_figures.measure import calls, due, render, totals
from loop_claude.cycle.interrupt import claude_args, hand_over
from loop_claude.waiting import ClaudeCommand
from loop_claude.effects import Effects, say
from failure import Failure
from loop_claude.cycle.interrupt import hand_over
from loop_claude.paths import Paths
from model_routing.ladder import Rung
from loop_claude.stop import Stop
@@ -50,7 +51,7 @@ def raise_calls(root: pathlib.Path, new: list[str], rung: Rung, paths: Paths, ef
say("Not on a terminal: the calls are raised again at the next measurement.", effects)
return None
prompt = f"Put these calls for a routing change from loop-claude's figures to the human, and change nothing until they answer:\n{listed}The figures are in {root / archive.FIGURES}. The ladder, its steps and the delegation rule are docs/decisions.md → `routing:`, and a change to them is the human's. Record what they decide as ~/.claude/CLAUDE.md says; the next chunk of this repo files the plan item for these calls."
if unstarted := hand_over(rung, [prompt], str(paths.claude_dir), paths, {}, effects):
if unstarted := hand_over(ClaudeCommand(claude_args(rung, [prompt]), str(paths.claude_dir), {}), paths, effects):
return Stop(1, f"could not start claude for the routing calls: {unstarted.reason}")
# Raised once the human has seen them, answered or not: an unanswered call reaches the plan through AGENTS.md, so it is not asked twice.
if unmarked := archive.mark_raised(root, new, utc(effects.now())):