Answer prose round 1: 0 🔴, 8 🟡 (0 misread); reword the running loops' docstrings, help and decision, widen the decision's title, keep filed items out of items_taken_in

This commit is contained in:
2026-10-29 20:42:37 +01:00
parent 0a9fe07084
commit ac9d107066
16 changed files with 37 additions and 36 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ How it shows the loops and a question was picked on 2026-10-28 by a bench of thr
audience, as ~/.claude/CLAUDE.md → "Working loop" → "Bench a syntax with the people who write it." has it: a block per
loop with its checkout's path and how long it has waited, and an answer prompt saying that Enter alone doesn't stop the loop.
A second bench, on 2026-10-29, picked the running loops' section: below the waiting loops, a line per loop with its
checkout and the number it waits as, then a line per item its chunk takes, with its ID and tagline.
checkout and its number in the list above where it waits for an answer, then a line per item its chunk takes, with its ID and tagline.
"""
import dataclasses
import textwrap
@@ -27,7 +27,7 @@ NARROWEST = 20
@dataclasses.dataclass(frozen=True)
class Listing:
"""The waiting loops as they were when the human began typing a number, so a loop's number doesn't change while they type it, and the running loops."""
"""The waiting and running loops as they were when the human began typing a number, so a loop's number doesn't change while they type it."""
shown: tuple[Ask, ...] = ()
typed: str = ""
note: str = ""
@@ -116,7 +116,7 @@ def listing_lines(screen: Listing, now: float, local_time: typing.Callable[[floa
def running_lines(running: tuple[RunningLoop, ...], shown: tuple[Ask, ...], width: int) -> list[str]:
"""Each running loop's checkout, with the number it waits as, and a line per item its chunk takes."""
"""Each running loop's checkout, with its number in the waiting list where it waits for an answer, and a line per item its chunk takes."""
if not running:
return ["No loop runs."]
numbers = {ask.session: number for number, ask in enumerate(shown, 1)}
+3 -3
View File
@@ -21,9 +21,9 @@ loop-inbox running. A loop with claude open, for a release ready to cut, the rou
asking for its project's model, as on a project's first run, asks on its own terminal only. q quits
loop-inbox; the loops keep waiting.
Below the questions, each running loop shows its checkout, the number it waits as, if any, and a
line per todo.md item its chunk takes, with its tagline from the default branch. A loop whose
process is gone drops off this list too.
Below the questions, loop-inbox lists each running loop: its checkout, its number in the list
above where it waits for an answer, and a line per todo.md item its chunk takes, with the item's
tagline on the default branch. A loop whose process is gone drops off this list too.
The loops' questions are files in ~/.local/state/loop-claude, read and written as
bin/loop_claude/waiting.py describes; the running loops are files beside them, as
+1 -1
View File
@@ -450,7 +450,7 @@ class RunningLoops(unittest.TestCase):
self.assertEqual(list((self.folder / "unlisted").iterdir()), [])
def test_takes_the_lock_once_loop_inbox_lets_go_of_it(self):
# loop-inbox holds the lock for a moment as it looks whether the loop runs.
# loop-inbox holds the lock for a moment as it checks whether the loop runs.
looking = contextlib.ExitStack()
looking.enter_context(session_lock.held(self.folder, "s1"))
with running_loops.shown_running(self.folder, "s1", "/code/log", dataclasses.replace(self.effects, sleep=lambda seconds: looking.close())):