diff --git a/CHANGELOG.md b/CHANGELOG.md index 868506b4..4ef09e68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- `loop-claude` now opens every message it prints with the machine's local time, as in `2026-10-28 11:46:01`, so you can see when each happened, such as how long a question has waited. A message of several lines, such as a question, carries the time on its first line only. The time a usage-limit wait ends at now also shows seconds, and no zone name. +- `loop-claude` now opens every message it prints with the machine's local time, as in `2026-10-28 11:46:01`, so you can see when each happened, such as how long a question has waited. A message of several lines, such as a question, carries the time on its first line only. The `retrying at …` time of a usage-limit wait now also shows seconds, and no longer names the zone. - larv-review now gives each review pass at most two rounds per chunk, where it gave three and then asked for more, and no longer asks: the fixes answering a pass's second round merge once the gate passes. rule-hook's new `round-cap` rule refuses a round commit that would take a pass past round 2, such as `Answer stability round 3: …`, and takes no override. It counts the pass's earlier round commits on the branch, so a third commit titled round 2 is refused too. `larv-review round-count` marks a pass at two rounds as at the cap. - rule-hook has a new rule, `repeat-read`, and now runs before each Read call too. It blocks a Read, or a Bash `cat`, `head` or `sed -n ',p'` of one file, when every line it asks for is already in the agent's context, and the block names those lines. The rule takes no override. - A line is in context when an earlier read's result in the agent's own transcript showed it since the last compaction, as the file holds it now. A subagent is judged on its own transcript, not its session's. diff --git a/bin/loop_claude/effects.py b/bin/loop_claude/effects.py index b4a2d3e0..72dacf83 100644 --- a/bin/loop_claude/effects.py +++ b/bin/loop_claude/effects.py @@ -37,7 +37,7 @@ class Effects: execv: typing.Callable[[str, list[str]], None] git: Git input: typing.Callable[[str], str] - # A time of day in the machine's zone, as `2026-10-28 11:46:01`. The spelling, and local time over UTC, is lilleman's call of 2026-10-28. + # A date and time in the machine's zone, as `2026-10-28 11:46:01`. lilleman chose this spelling and local time over UTC on 2026-10-28, since the human reads these on their own clock. local_time: typing.Callable[[float], str] # The machine's memory; None where it cannot be read. memory: typing.Callable[[], Memory | None] @@ -91,7 +91,7 @@ def run_python(args: list[str], cwd: str, timeout: float) -> subprocess.Complete def say(text: str, effects: Effects, *, stdout: bool = False) -> None: - """Prints text on stderr, or on stdout where stdout, opening its first line with the machine's local time, so the human sees when it happened. Blank lines before the text stay blank, and only its first line gets the time.""" + """Prints text on stderr, or on stdout where stdout, opening the first line of words with the machine's local time. Blank lines before those words stay blank, and later lines get no time.""" body = text.lstrip("\n") blanks = text[: len(text) - len(body)] print(f"{blanks}{effects.local_time(effects.now())} {body}", file=sys.stdout if stdout else sys.stderr, flush=True) diff --git a/bin/loop_claude/project/model_choice.py b/bin/loop_claude/project/model_choice.py index 79980c8e..d9f0dcc7 100644 --- a/bin/loop_claude/project/model_choice.py +++ b/bin/loop_claude/project/model_choice.py @@ -71,7 +71,7 @@ def ask_for_model(project_key: str, saved: pathlib.Path, folder: pathlib.Path, e try: answer = effects.input(f"{'A number, or any' if offered else 'A'} name claude --model takes: ") except EOFError: - print(file=sys.stderr) # Ends the prompt's line; it says nothing, so it gets no time. + print(file=sys.stderr) # Ends the prompt's line. It isn't a message, so it gets no time. return needs_human(f"pick {project_key}'s model", "the input ended") picked = model_picked(answer, offered) if isinstance(picked, Failure): diff --git a/todo.md b/todo.md index 55d7b7cc..9568b5ec 100644 --- a/todo.md +++ b/todo.md @@ -379,7 +379,7 @@ The key names the project's session, archive folder and models entry. `project_k ### 51. Hand loop-claude's terminal output to an injected effect, so no storage or retry function prints. -"Functional core, imperative shell", in `principles/technical-principles.md`: `archive`, `trust`, `retried`, the worker, `put_question` and `model_choice` print to stderr themselves, and the tests swap the global stream. +"Functional core, imperative shell", in `principles/technical-principles.md`: `retried`, the worker, `put_question`, `model_choice` and `say` print to stderr themselves, and the tests swap the global stream. ### 169. Have rule-hook's `todo-rank-check` catch a `todo.md` that the same Bash call edits and then commits.