Answer stability round 1: 0 🔴, 2 🟡 (0 misread); keep only what loop-claude owns in its preflight paragraph, say a bare run still fetches; this commit also holds prose round 1's fixes

This commit is contained in:
2026-10-31 01:34:45 +01:00
parent deddb39d86
commit 533b54c4bb
4 changed files with 27 additions and 26 deletions
+5 -6
View File
@@ -35,11 +35,10 @@ loop-inbox lists it too. While claude is open, Ctrl-C reaches it alone, and the
While it runs, loop-claude also lists itself in loop-inbox, with the todo.md items its chunk takes,
as bin/loop_claude/running_loops.py describes.
As a chunk starts, before it is routed, loop-claude runs bin/chunk-preflight --worktree
(bin/chunk_preflight/), which finds the chunk's facts and makes its worktree; chunk-preflight
--help lists them, and prompts.preflight_facts in bin/loop_claude/cycle/prompts.py quotes them in
the first prompt. A preflight that fails, or is still running after 600 s and is stopped, leaves
the worker to find the facts itself.
As a chunk starts, before it is routed, loop-claude runs bin/chunk-preflight --worktree and quotes
what it prints in the first prompt (prompts.preflight_facts in bin/loop_claude/cycle/prompts.py);
chunk-preflight --help says what it finds and makes. A preflight that fails, or is still running
after 600 s and is stopped, leaves the worker to find the facts itself.
Each project has one session, named "A <key> loop-claude", where <key> is the checkout's path
relative to ~/code, or to / outside it. The session is deleted when its chunk finishes. At every
@@ -295,7 +294,7 @@ def chunk_start(session: Session, preflight: pathlib.Path, root: str, effects: E
def chunk_facts(preflight: pathlib.Path, root: str, effects: Effects) -> str:
"""What chunk-preflight printed at the checkout root, its worktree made, for a fresh worker's prompt, or why it could not run."""
"""What `chunk-preflight --worktree` printed at the checkout root, for a fresh worker's prompt, or why it could not run."""
done = effects.python([str(preflight), "--worktree"], root)
if done.returncode:
return prompts.preflight_failed(done.stderr.strip() or f"it exited {done.returncode}")