diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 44ae8937..6d84d173 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -2872,3 +2872,29 @@ Inherited architect, decided by: - Self-sufficiency: `skills/larv-review/SKILL.md:78` "Cap": the ask, yes, one-more-round loop is gone, though the bullet now packs four ideas - Locality: `bin/git_repo.py:63` `default_ref`: `guarded=True` means both safe git options and never asking origin, kept at each call site; where it rots first - Locality: `bin/rule_hook/main.py:113` `bash_breaches`: round-cap sits apart from its sibling round-title-counts in `command_breaches`, a split no comment states + +## 2026-10-28T17:54:03Z, PR #391 at f1d749e, against 9014fd0 + +Ruling: better + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | same | better | same | same | better | +| Inherited architect | better | better | same | same | better | + +Mid A, decided by: + +- Locality, Overall: `bin/loop_claude/effects.py:93` `say`: every message goes through one function that adds the time, picks stderr or stdout and always flushes; before, each call site chose its own stream and flush, so the order of stdout and stderr lines depended on hidden buffering +- Locality: `bin/claude_code/trust.py:10` `trust`: reports through a `note` callable the caller passes, so the call shows where its output goes +- Locality: `bin/transcript_archive/write.py:14` `archive`: same, but its default `note` silently drops the `transcript: …` line for a caller that leaves it out +- Self-sufficiency: `bin/loop_claude/effects.py:40` `Effects.local_time`: the new comment gives the format and why it is local time +- Self-sufficiency: `bin/loop_claude/loop/main.py:289` `plan_item`: the new comment sends a cold reader to the plan, and "one injected effect" is unclear beside `say` +- Shape: `bin/loop_claude/cycle/run.py:85` `archived_stop`: the same `lambda text: say(text, effects)` is written out five times and `archive` grows to six parameters + +Inherited architect, decided by: + +- Navigation, Locality, Overall: `bin/loop_claude/effects.py:93` `say`: about 30 `print` calls over nine files, disagreeing on flushing and streams, now go through one function whose docstring states the contract +- Locality: `bin/claude_code/trust.py:10` `trust`: wrote to `sys.stderr` itself before; now takes a `note` callback, so the caller decides where its words go +- Locality: `bin/transcript_archive/write.py:14` `archive`: the same change, but its silent default `note` drops the `transcript: ` line for a new caller without a word +- Shape: `bin/loop_claude/cycle/run.py:85` `archived_stop`: the same lambda is copied seven times across `run.py`, `loop/main.py` and `cycle/interrupt.py`, which roughly cancels the cleaner output path +- Self-sufficiency: `bin/loop_claude/loop/main.py:289` `plan_item`: its comment sends the reader to the plan and reads oddly now that every message goes through `say` diff --git a/todo.md b/todo.md index 9568b5ec..d0132f66 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 244 | 0.4.0 | | owner | **Open every line loop-claude prints to its terminal with the machine's local time, as in `2026-10-28 11:46:01`.** | 2 | 2 | 1 | 3 | 3 | 1.5 by 2 | 1.9 | | 247 | 0.4.0 | | owner | **Count each finished chunk's escaped defects, the later commits that fix code it shipped, in `score-outcomes` and the routing figures.** | 3 | 2 | 1 | 4 | 5 | 1.1 by 4 | 1.7 | | 243 | 0.4.0 | | owner | **Show every loop-claude on the machine that waits for the human in one terminal app, and let the human answer each one there, `/talk` included.** | 4 | 2 | 3 | 7 | 6 | 1.5 by 4 | 0.9 | | 226 | 0.5.0 | | question | **Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 2, 1.5 by 2 | 4.0 | @@ -80,10 +79,6 @@ ## Details -### 244. Open every line loop-claude prints to its terminal with the machine's local time, as in `2026-10-28 11:46:01`. - -lilleman's call, 2026-10-28, who also chose the spelling: `YYYY-MM-DD HH:MM:SS` in the machine's local time, never UTC, so the human sees when each line happened, such as how long a question has waited. Today about 27 `print` calls across `bin/loop_claude/` write bare lines to stderr. Route them through one function that adds the stamp, taking the time from `Effects.now` so tests can fix it. A line of a multi-line message, such as a question, gets the stamp only on its first line. - ### 247. Count each finished chunk's escaped defects, the later commits that fix code it shipped, in `score-outcomes` and the routing figures. lilleman's call, 2026-10-28. Escaped defects are the counter-signal of goals 1 and 1.1, and nothing counts them, so nobody can tell whether review spending prevents defects or only polishes. A review costs about 56% of a chunk's dollars. Count, for each finished chunk, the later commits on the default branch that fix lines it added: a fix item's chunk, a `defect` item, or a 🔴 marked `[misread]` whose lines `git blame` traces to the earlier chunk. Show the count per chunk and its median per rung in `score-outcomes` and `routing-figures.md`, so a cheaper review pipeline can be judged against it. Measure on every project in loop-claude's archive.