diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 6d84d173..38f140aa 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -2898,3 +2898,32 @@ Inherited architect, decided by: - 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` + +## 2026-10-28T21:50:16Z, PR #392 at 6e12ee9, against 77bc635 + +Ruling: better + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | better | better | better | same | better | +| Inherited architect | better | better | better | same | better | + +Mid A, decided by: + +- Locality, Shape: `bin/branch_chunks/cut.py:59` `cut_branch`: the older `score_outcomes/main.py` cut the branch with index arithmetic over raw log lines, each chunk a `(short, short, int, Landing)` tuple read as `chunks[-1][2]`, with three helpers agreeing on hash slices; the newer typed `Commit`, `Span` and `Branch` dataclasses make one pure cut, the landing rule sits in its own `landing`, and both tools share it +- Navigation: `README.md:128` the import-root paragraph: the older packed every package-to-package dependency into one long paragraph; the newer gives each package a bullet, sorted by name, so going from a package to what it serves and imports is one scan +- Shape, Locality: `bin/branch_chunks/read.py:7` `branch_chunks`: every git call sits in this short shell while `cut.py` and `fixes.py` stay pure, and `fixes.py`'s docstring says what fixed later means before any code; the two tools only see `BranchChunk.fixed_by` +- Shape: `bin/round_titles.py:34` `rounds_past_first`: the older computed rounds past the first in two places, one mixed into title extraction; the newer has one helper, and `measure.py:229` `commit_titles` does only what its name says +- Locality, Shape: `bin/loop_claude/effects.py:31` `Effects.git`: uses `git_repo.Git` instead of a narrower local protocol, so one definition says what a git runner is; a small cost is that `git_repo.Git` and `git_repo.Run` are two neighbouring types for something that runs git +- Self-sufficiency: `bin/routing_figures/measure.py:336` `fixes_per_chunk`: its comment says "A mean, where item 247 named the median", which only reads fully with `todo.md` open; the new docstrings in `fixes.py` and `score_outcomes/main.py:27` explain later fixes in place, and the two balance + +Inherited architect, decided by: + +- Shape, Locality: `bin/branch_chunks/cut.py:59` `cut_branch`: the older `chunk_log` returned a positional tuple read by index; the newer `Commit`, `Span` and `Branch` are frozen dataclasses with named fields, and `landing` and `label` are small functions each readable and changeable alone +- Shape: `bin/score_outcomes/results.py:40` `results_of`: the older took six positional arguments its caller built from rev-range strings such as `f"{first}^1..{first}^2"`; the newer takes one `BranchChunk` and the numstat, and `read_results` is a short loop without rev-range arithmetic +- Navigation, Locality: `bin/routing_figures/measure.py:229` `commit_titles`: the older wrote the rounds-past-first sum twice, once mixed with reading the transcript; the newer has one definition in `round_titles` used by both tools, and reading titles is its own unit +- Navigation: `README.md:128` the module list: the older described the module dependencies in one run-on paragraph; the newer gives one bullet per module, including `branch_chunks/` naming who uses it +- Shape: `bin/routing_figures/measure.py:257` `totals`: the older built `Figures` from eight positional arguments; the newer passes them by keyword, which matters now that it gained `unmatched` and `unread` +- Locality: `bin/git_repo.py:48` `Git`: the protocol moved out of `loop_claude/effects.py` into `git_repo`, and `default_ref` and `branch_chunks` take the runner as an injected `run`, so the guarded and timed path reads at the call site +- Locality: `bin/branch_chunks/fixes.py:50` `with_fixes`: `branch.owner[commit] > change.chunk` means a later chunk fixed an earlier one only because chunks are ordered newest first, which only `Branch`'s and `chunk_log`'s docstrings state; not enough to move the ruling +- Self-sufficiency: `bin/routing_figures/measure.py:336` `fixes_per_chunk`: explains its choice by pointing to "item 247" in the plan, while `later_fixes_of` and `fixes.py`'s docstring state their rules in full, so it is mixed