From 6e6fb88d77bb99fd35f9cec06e93431e1e1223dd Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 29 Oct 2026 21:02:50 +0100 Subject: [PATCH] Record the comprehension check: ruling same, overall 6.00 and 6.00 --- docs/comprehension-history.md | 135 ++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 1d81bec9..579b5c1b 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -3194,3 +3194,138 @@ Inherited architect, would restructure first: - `bin/rule_hook/reviewer_report.py:10` `REVIEWERS`: a second source of truth for who is a reviewer, beside review_passes.py's table of the same name - `bin/loop_claude/routing.py:76` `after_unfinished`: "routing" spans loop_claude/routing.py, model_routing, routing_check, routing_figures and rung_replay - `bin/loop_claude/loop/main.py:169` `run_loop`: a fan-in of about 25 modules + +## 2026-10-29T19:59:03Z, PR #397 at 1723469, against 77ab11e + +Ruling: same + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | same | worse | better | same | same | +| Inherited architect | same | worse | better | same | same | + +Mid A, decided by: + +- Locality: `bin/loop_claude/loop/main.py:182` `run_loop`: the line after `shown_running` rebinds `paths.waiting` to `listed.folder`, a private unlisted folder when the lock can't be taken; `interrupt` and `routing_check` read `paths.waiting` with no way to see the swap +- Locality: `bin/loop_claude/waiting.py:123` `listed`: works only when the caller passes the folder `running_loops.shown_running` yields; in the base the ask carried its own liveness check +- Locality: `bin/loop_claude/cycle/prompts.py:72` `review_launches`: types out the "Markdown no agent follows" list by hand instead of deriving it from `INSTRUCTION_FILES` and `INSTRUCTION_FOLDERS` in `bin/rule_hook/reviewer_rung.py:22` +- Shape: `bin/loop_claude/verdicts.py:6` `TakenIn`: three loose fields on each verdict become one named value, and `taken_in_from` in `bin/loop_claude/cycle/judge.py:139` takes the clamping out of `verdict_from` +- Navigation, Self-sufficiency: `bin/loop_claude/running_loops.py:1` module docstring: leads from "loop-inbox doesn't show my loop" to the mechanism as directly as the base's pointer to `waiting.py`; `session_lock.py` still sends the reader to `docs/decisions.md` for why lock files stay + +Inherited architect, decided by: + +- Locality: `bin/loop_claude/loop/main.py:182` `run_loop`: rebinds `paths.waiting` to `listed.folder`, a throwaway `unlisted/` folder where another loop holds the lock; `cycle/interrupt.py` and `loop/routing_check.py` write questions to a folder they can't see was swapped, explained only at `Listed.folder` +- Locality: `bin/loop_claude/running_loops.py:3` module docstring: liveness moved from one `Ask.pid` field to a flock shared by `session_lock.py`, `running_loops.py` and `waiting.py`, and `listed` has a precondition stated only in its docstring +- Locality: `bin/loop_claude/cycle/prompts.py:72` `review_launches`: its "Markdown only" list repeats `INSTRUCTION_FILES` and `INSTRUCTION_FOLDERS` in `bin/rule_hook/reviewer_rung.py:22` and the skill's "Markdown only" section, with nothing tying them together +- Locality: `bin/loop_claude/running_loops.py:83` `locked_soon`: the flock lapses for a moment when the reload execs into the edited script inside the `with` at `bin/loop_claude/loop/main.py:185`, and no comment says so; the nested `ExitStack` takes more than one read +- Shape: `bin/loop_claude/verdicts.py:6` `TakenIn`: one value replaces the `highest_*_taken_in` pair repeated across three verdicts, and `taken_in_from` checks the ranges in one place +- Shape: `bin/rule_hook/reviewer_rung.py:22` `prose`: the name hides "Markdown no agent follows", and `markdown_only` runs git inside a hook module that was pure +- Navigation: `bin/loop_claude/session_lock.py:1` module docstring: small, well-named modules lead to the protocol quickly, against liveness now spread over three files +- Self-sufficiency: `bin/loop_claude/session_lock.py:1` module docstring: a new pointer to `docs/decisions.md`, offset by the in-place explanations at `Listed.folder` and `fetched_todo` + +## 2026-10-29T20:01:40Z, PR #397 at 1723469 + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 5.5 | 6 | 6 | 6 | +| Mid A | 7 | 6 | 6 | 6 | 6 | +| Maintainability senior | 7 | 6 | 6 | 6 | 6 | +| Inherited architect | 6.5 | 6 | 5.5 | 7 | 6 | +| Mean | 6.88 | 5.88 | 5.88 | 6.25 | 6.00 | + +Junior A, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: eight names held at once to follow one call; the docstring resolves it only after `escalation_mark.py` and `rules/todo-items.md` +- `bin/rank_todo.py:568` `score`: every scoring step branches on SHAPE against OLD_SHAPE, so each function reads twice; nothing says when OLD_SHAPE can go +- `bin/loop_claude/cycle/run.py:56` `run_cycle`: the route swaps on a step-up outside `transition`, and `archive_stepped` and `ask` touch it too, so where the rung changes has three answers +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: a recursive reflection-based decoder with two sentinels and a duck-typed `fits`; the comments give the reason +- `bin/loop_claude/cycle/prompts.py:55` `review_launches`: six conditional sentences; checking one branch needs `ladder.py`'s `review_rungs` and `replay_applies` +- `bin/loop_claude/cycle/judge.py:185` `quotes_checked`: the misquote rule splits across `judge.py` and `escalation_mark.py`, and `grounded`'s fragment matching is subtle +- `bin/comprehension_history.py:164` `worse_places`: one nested comprehension to unroll by hand +- `skills/larv-review/SKILL.md:84` "Re-entry": a table plus exceptions across 🔴, 🟡, the cap and round 2 + +Mid A, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: five near-synonymous rung helpers held at once, and one docstring sentence packs five rules; resolved only across `escalation_mark.py`, `ladder.py` and `route.py` +- `bin/loop_claude/cycle/run.py:169` `ask`: `step_up` threads through three states, and which route each archived line names matters only for `routing_figures/measure.py`'s `rung_at` +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: a recursive decoder with two sentinels and duck-typed hooks that `Route` defines far away +- `bin/rank_todo.py:428` `place`: recursive with loop detection, in the largest module, which keeps two table shapes side by side +- `bin/chunk_pick.py:109` `next_release`: `Upcoming.landed` is `bool | Failure`, and "landed" has four meanings across modules +- `bin/loop_claude/cycle/prompts.py:55` `review_launches`: six conditional sentence kinds coupled to the routing rules +- `bin/comprehension_history.py:159` `scored`: two look-alike predicates that differ on history formats named only by PR numbers +- `bin/loop_claude/loop/main.py:1` module docstring: about 120 lines, every sentence a rule, restated again by the units + +Maintainability senior, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: four rules in one pass over four near-synonym callees; the docstring lists them, but they still had to be simulated by hand +- `bin/loop_claude/cycle/run.py:56` `run_cycle`: `cycle.route` is replaced inside the loop on a step-up, and a StepUp pair rides through the states so each archive line names the right rung +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: a recursive decoder with sentinels and a duck-typed `fits`; nothing at the call site says which LoopRun fields survive a reload +- `bin/loop_claude/cycle/prompts.py:55` `review_launches`: sentences branch on ladder positions, so checking one means computing rungs by hand +- `bin/routing_figures/measure.py:104` `measured`: nine locals, timestamps matched as strings cut to the second, and price rescaling on one screen +- `bin/rank_todo.py:332` `weigh`: the OLD_SHAPE compatibility is spread across many functions rather than cut at the boundary +- `bin/comprehension_history.py:159` `scored`: differs from `newest_scored` only by a carve-out dated by a PR number +- `bin/loop_claude/cycle/judge.py:185` `quotes_checked`: three quotes checked against three texts, each misquote with its own outcome; the exit-1 path takes four files + +Inherited architect, would restructure first: + +- `README.md:129` module map: names bin/'s 18 root modules only as a group, at a level of about 50 entries +- `bin/round_titles.py:8` `CAP`: the round cap lives here and in `bin/rule_hook/round_cap.py:8`, not in larv_review/, and nothing says it counts commit titles rather than launches +- `bin/loop_claude/routing.py:76` `after_unfinished`: step-up and escalation logic spans about eight files, from `cycle/run.py` to `loop/main.py`'s `stepped_route` +- `bin/loop_claude/running_loops.py:1` module docstring: the inbox file protocol sits inside loop_claude though loop-inbox imports it +- `bin/rule_hook/git.py:7` `git`: shadows `bin/git_repo.py:26` `git`, and `reviewer_rung.py` imports and calls both +- `bin/rung_replay/search.py:17` `Item`: TypeVars named `Item` and `Reply` collide with `todo_table.Item` and judge.py's `Reply` +- `bin/branch_chunks/cut.py:22` `Commit`: a second `Commit` dataclass with other fields than `bin/git_command.py:10`'s + +## 2026-10-29T20:02:43Z, PR #397 rerun at 1723469 + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 5.5 | 6 | 5.5 | 6 | +| Mid A | 7 | 6 | 6.5 | 6.5 | 6.5 | +| Maintainability senior | 6.5 | 5 | 6 | 5 | 5.5 | +| Inherited architect | 6.5 | 6 | 5.5 | 7 | 6 | +| Mean | 6.75 | 5.63 | 6.00 | 6.00 | 6.00 | + +Junior A, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: several conditions combine and hand off to six near-synonym rung helpers; the why sits behind `docs/decisions.md` +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: a recursive decoder with sentinels and an unwritten `fits` convention, followed only by tracing one call by hand +- `bin/routing_figures/measure.py:104` `measured`: many jobs in one function, coupled to `costed` and a long comprehension in `render` +- `bin/comprehension_history.py:130` `newest_scored`: a Markdown file parsed as a database, with back-compat notes dated by PR numbers +- `bin/chunk_pick.py:166` `named_releases`: "release" is split across `chunk_pick`, `todo_table` and `larv_review/plan.py` +- `bin/rank_todo.py:428` `place`: recursive, with OLD_SHAPE threaded through a 658-line file whose help text is the format spec +- `bin/loop_claude/cycle/judge.py:185` `quotes_checked`: quote checks layered across three functions and `escalation_mark.py` +- `bin/rule_hook/repeat_read.py:72` `shown_lines`: timestamps compared as text, and Read and Bash reads treated differently + +Mid A, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: folds five rules into one function, and the cap it enforces is spread across five files +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: a hand-written decoder with two sentinels, a union rule for RETIRED and a `fits` hook found by `getattr`; three passes to follow +- `bin/rank_todo.py:568` `score`: two table shapes run through scoring, weighing and validation, and nothing says which is leaving +- `bin/loop_claude/cycle/prompts.py:55` `review_launches`: six sentence groups from one `ReviewChoice`, with a replay branch that `ladder.py`'s empty `REPLAYED` leaves without data +- `bin/loop_claude/waiting.py:212` `claim_talk`: the `/talk` handshake runs between two programs through files and a flock, with deadlines and a compensating `ClaudeEnded` +- `bin/rule_hook/repeat_read.py:72` `shown_lines`: pairs transcript tool calls with results by id and handles truncation markers of a transcript format written down nowhere +- `bin/chunk_pick.py:109` `next_release`: renamed releases, the history since the last tag and landed work; the rename handling stayed unresolved +- `bin/shell_command.py:44` `segments`: a heuristic token loop with a redirect-target flag; its docstring lists what it doesn't parse + +Maintainability senior, hardest first: + +- `bin/loop_claude/routing.py:76` `after_unfinished`: combines the unfinished count, the escalation cap and whether a step already happened, with inputs built in `cycle/run.py`; three files open at once +- `bin/loop_claude/cycle/prompts.py:55` `review_launches`: about six conditional sentence kinds, with no example output beside the function +- `bin/loop_claude/loop/main.py:173` `run_loop`: the line rebinding `paths.waiting` to `listed.folder` quietly points every later question at another folder, explained only at `Listed.folder` +- `bin/model_routing/ladder.py:97` `review_rungs`: the Markdown-only exception that lowers a reviewer lives only in `bin/rule_hook/reviewer_rung.py:34`, and `REPLAYED` is empty +- `bin/loop_claude/loop/reload.py:47` `decoded_as`: sentinels, a duck-typed `fits` and recursion over type hints; which archived shapes decode needs `route.py` too +- `bin/rank_todo.py:558` `goal_term`: OLD_SHAPE and SHAPE run through nearly every function, selected by the string "W" or "V" +- `bin/loop_claude/waiting.py:212` `claim_talk`: a three-step handshake over three files, resolved only by holding the whole protocol +- `bin/loop_claude/cycle/judge.py:207` `grounded`: a misquote is handled three ways by what was quoted, with no single table of the outcomes + +Inherited architect, would restructure first: + +- `README.md:129` module map: bin/'s root holds about 64 ungrouped entries, mixing review, plan and infrastructure modules +- `bin/rule_hook/round_cap.py:8` `round_cap_breaches`: the cap counts round commit titles, while a third reviewer launch is governed only by `skills/larv-review/SKILL.md:76` "Round cap" +- `bin/round_titles.py:22` `round_counts`: any unknown pass name gets its own counter, so a misspelled pass never reaches the cap +- `bin/loop_claude/routing.py:76` `after_unfinished`: routing has four homes, from `model_routing/` to `loop/routing_check.py` +- `bin/loop_claude/loop/main.py:256` `after_verdict`: the hub of about 25 imports that every routing or judge feature edits, with `stepped_route` on the same path +- `bin/loop_claude/stop.py:1` `Stop`: documented as loop-claude's exit, but rung_replay exits through it and imports `cycle.retry` too +- `bin/rank_todo.py:71` `GOAL_STEP`: a separable formula evaluator inside a 658-line, 39-function module +- `bin/chunk_pick.py:1` module docstring: beside `bin/chunk_preflight/`, the names don't say which does what