Record the comprehension check: two scoring runs at 0aff7d39 and a refreshed floor item
CI / tests (pull_request) Successful in 5m49s

This commit was merged in pull request #799.
This commit is contained in:
2026-12-03 18:08:19 +01:00
parent 0aff7d39bf
commit a5807ab63c
2 changed files with 107 additions and 3 deletions
+85
View File
@@ -4708,3 +4708,88 @@ Inherited architect, decided by:
- Locality: `bin/task_bench/main.py:528` `planted_tasks`: the cached thunk is one more step of indirection than the base's inline read
- Locality: `bin/chunk_preflight/indentation.py:48` `space_indented`: one loop with a key-or-None marker is denser than the base's per-file loop
- Navigation: `README.md:314` task_bench entry: says what `task_bench` imports from `mutate_changes`
## 2026-12-03T16:38:23Z, PR #799 at 0aff7d39
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6 | 5.5 | 6 |
| Mid A | 7 | 5.5 | 6 | 5.5 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 6 | 6 |
| Inherited architect | 6.5 | 6 | 5 | 5.5 | 6 |
| Mean | 6.88 | 5.75 | 5.75 | 5.63 | 6.00 |
Junior A, hardest first:
- Locality: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` that handles parking, reopening and handing on together
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a queue loop over a flock with by-human, wait and park flags, and a side trip to `remeasure` at line 655
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs held at once, with the reasons in the decision log
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:109` "Re-entry": a table whose exceptions and the round cap must be read beside it
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: overlapping sets and an elif ladder whose order carries the meaning
Mid A, hardest first:
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: four overlapping sets and a five-way elif under a lock, with state also written by other processes
- Locality: `bin/do_epic/parking.py:26` `parked_through`: the park and resume order spans a file, a tmux window name and the scheduler, and `Told` mutates it
- Locality: `bin/chunk_pr/main.py:462` `merged`: a queue loop under a flock whose correctness depends on three other tools' exit codes
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs and caps whose reasons sit in the decision log
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields justified by a decision citation
Maintainability senior, hardest first:
- Locality, Shape: `bin/do_epic/parking.py:26` `parked_through`: six parameters, three outcomes types and a mutable `Told` that renames windows
- Locality: `bin/do_epic/scheduler.py:173` `start_chunks`: parked and waiting state lives in tmux window names that the function reads
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: the push-then-report order depends on lock order that is stated nowhere locally
- Shape: `bin/plan/ranking.py:144` `weigh`: the old and the new table shape are woven through the core path
- Locality: `bin/build_release/loop/reload.py:36` `decode_handed`: `LOOP_RUN_FIELDS` must be kept in sync with `LoopRun` by hand
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:261` "Packages under bin/": the groupings exist only in prose over a flat `bin/` of 86 entries
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over about ten places in six packages
- Shape: `bin/chunk_pr/main.py:462` `merged`: a 770-line module with 47 top-level definitions that bundles open, merge queue and cleanup
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap is enforced on commit titles only, and the launch-time check is advisory
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields defended by a decision citation rather than by the code
## 2026-12-03T16:42:14Z, PR #799 rerun at 0aff7d39
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 5.5 | 6.5 | 6 | 6 |
| Mid A | 7 | 6 | 5.5 | 6 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 5 | 6 |
| Inherited architect | 7 | 6.5 | 5.5 | 7 | 6 |
| Mean | 7.00 | 5.88 | 5.88 | 6.00 | 6.00 |
Junior A, hardest first:
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: orthogonal modes, a flock queue and git-config state, and a trip into `remeasure`, with no statement of how the modes combine
- Locality, Shape: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` with reopen, human-task and epic-finish branches
- Locality: `bin/do_epic/parking.py:26` `parked_through`: six parameters and an effect order that matters, with nested gate-polling loops
- Shape: `bin/task_bench/main.py:242` `Planner`: three layers of curried factories
- Self-sufficiency: `bin/agent_cycle/judge.py:301` `judge_prompt`: schema text filled in by string replacement and a heading wording coupled to another tool
Mid A, hardest first:
- Shape: `bin/task_bench/main.py:242` `Planner`: each alias is a callable that returns a callable that returns a callable
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: sentinels, parks, epic base against default base, and a flock queue, with the base stored in git config
- Self-sufficiency: `bin/larv_review/main.py:33` "needs-scoring-run": the rule for when a run is due and owed is visible only in a long docstring
- Shape: `bin/plan_store/jira_epic.py:200` `edit`: about 45 lines of `isinstance` early returns that hide the loop-filed against person-filed rule
- Shape: `bin/plan/ranking.py:144` `weigh`: two table shapes run through every function
Maintainability senior, hardest first:
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns
- Shape: `bin/task_bench/main.py:242` `Planner`: three levels of curried factories
- Locality: `bin/agent_cycle/run.py:160` `rule`: the archive order decides the figures written, and only a comment says so
- Locality: `bin/agent_cycle/judge.py:77` `TASK_HEADING`: a heading wording that judge-replay parses, held by a comment alone
- Self-sufficiency: `bin/plan/ranking.py:20` `MAINTAIN_WEIGHT`: the rationale sits in the decision log
- Locality: `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start`: `held_items` reads a worker's transcripts for a free-text line
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:264` "Packages under bin/": the only map of a flat `bin/` of about 80 entries
- Shape: `bin/do_epic/main.py:236` `chunk_run`: a 520-line main that holds help text, policy, the loop and printing, with about 30 imports
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap has four homes and fails open at `earlier_titles`
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over four homes
- Locality: `bin/transcript_archive/outcomes.py:11` `outcomes`: a line format parsed by regex in four readers
+22 -3
View File
@@ -6,7 +6,7 @@
`Bar = 0.1`
`Next ID = 580`
`Next ID = 581`
## Items
@@ -20,6 +20,7 @@
| 577 | 0.18.0 | 483, 486, 575 | owner | **Test in the gate that a container holding only a stock Claude Code runs a chunk from a clone, against a mock Messages API, and that the run leaves the container's own `~/.claude` as it was.** | 3 | 1 | 2 | 4 | 6 | 3 by 9, 2 by 5 | 5.2 |
| 576 | 0.18.0 | 575 | owner | **Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.** | 2 | 2 | 2 | 4 | 4 | 2 by 1, 6 by 1 | 0.4 |
| 578 | 0.18.0 | 576, 577 | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 |
| 580 | 0.19.0 | | | **Call no scoring run for a release already cut whose last item the chunk moved to a later release.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 1.5 by 3 | 1.6 |
| 487 | 0.20.0 | 483 | owner | **Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 |
| 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 |
| 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 |
@@ -44,7 +45,7 @@
| 499 | 0.23.0 | | defect | **Stop `todo-item add` and `edit` from waiting on a stdin that stays open without data, so a call without a heredoc ends at once.** | 2 | 2 | 2 | 4 | 2 | 1.5 by 3, 1.4 by 2 | 1.5 |
| 445 | 0.23.0 | | | **Refuse a plan that holds an item a `Finish item <ID>` commit already removed, so a merge resolution cannot bring a finished item back.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3, 1.1 by 2 | 1.4 |
| 171 | 0.23.0 | | decision | **Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised.** | 3 | 2 | 2 | 5 | 4 | 1.2 by 3, 1.4 by 3 | 1.4 |
| 300 | 0.23.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency, Locality and Shape first; today the second scoring run at add7c09d scored Navigation 6.75, Locality 5.63, Shape 5.75, Self-sufficiency 5.88 and Overall 5.88.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 |
| 300 | 0.23.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 |
| 264 | 0.23.0 | | | **Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 5 | 1.4 |
| 323 | 0.23.0 | | | **Count a release review as landed once its pull request has merged, whatever its commits are titled.** | 3 | 2 | 3 | 6 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 |
| 342 | 0.23.0 | | | **Research the tooling agents read, search and run commands with once more, and file an item for each tool that cuts tokens a replay shows keep quality.** | 1 | 2 | 1 | 2 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 |
@@ -411,6 +412,22 @@ Touches:
- `README.md`
### 580. Call no scoring run for a release already cut whose last item the chunk moved to a later release.
When a chunk's first change moves its plan item out of a release already cut into the next one, as `CLAUDE.md` → "Working loop" asks, `larv-review needs-scoring-run <ID>` and `scoring-run-owed` still say the chunk "leaves release 0.17.0 with no plan item". The chunk then owes two scoring runs: eight seat launches and a task-bench run, hours of work. Item 579, a one-line change to an agent file, ran the full scoring twice for this reason.
The cause is in `bin/larv_review/scoring_due.py`. `plan_reasons` reads the plan at the merge base, where the item still stands under the cut release. `owed.py`'s `owed_scoring_run` passes no IDs, so `plan_reasons` counts as shipped each item the merge base's plan holds and the branch's doesn't. `scoring_run_due` builds the shipped item from the merge base's row once the chunk has finished it, so the item carries the cut release. `emptied` then finds that release named by no kept item, and `work_landed` counts work as landed because a shipped item names it. `landed_towards` already returns None for a cut release; `work_landed` doesn't check that.
Fix it in one of two ways, recommended first: have `emptied` or `work_landed` leave out a release no later than the last cut, which `plan_reasons` can read from `held.cut`'s tag, since a cut release can't end unmeasured; or read a moved item's release from the branch's plan before its finish. Keep the deferral of an uncut release due a run, as `test_calls_a_scoring_run_for_a_deferred_release_and_none_for_one_the_checkouts_plan_marks_renamed` checks. Test both tools against a repo with a `v0.1.0` tag whose chunk moves 0.1.0's last item to 0.2.0 and ships it.
The comprehension seats found the needs-scoring-run paragraph of `larv-review --help` hard to follow, since the rule for when a run is due and owed is visible only in a long docstring (`bin/larv_review/main.py:33`). Where the item changes that paragraph, make it easier to read.
Touches:
- `bin/larv_review/scoring_due.py`: `scoring_run_due`, `work_landed`, `emptied`, `plan_reasons` (small)
- `bin/larv_review/test_larv_review.py`: `ScoringRunDue`, `LarvReviewTool`
- `bin/larv_review/main.py`: `(module)` (small)
### 487. Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.
Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules.
@@ -550,12 +567,14 @@ Have the gate, or `rank_todo.py --check` where it runs in a checkout, refuse a p
Raised by the goals audit of PR #296. `bin/routing_figures/calls.py` groups a chunk's review rounds by the rung its worker started on, and calls for a routing change when a lower rung took more of them. Since PR #296 the reviewers may run above the worker's rung, on the one their item's E + I picks, and no figure groups rounds by it, though the archived worker line names the E + I it follows from. A cheap worker on an item of high E + I gets stronger reviewers, who may raise more rounds, and a call could then blame the worker's rung for them: an interrupt of lilleman that settles nothing (goal 1.2).
### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency, Locality and Shape first; today the second scoring run at add7c09d scored Navigation 6.75, Locality 5.63, Shape 5.75, Self-sufficiency 5.88 and Overall 5.88.
### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.
Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, refreshed from the two runs of item 525's chunk at 68611733, and then from the two runs of item 565's chunk at 98c49021. The lowest mean of the second run at 98c49021 is Self-sufficiency at 5.75, with Locality at 5.88 and Shape at 6.13; the first run put Self-sufficiency lowest at 5.63, with Locality and Shape at 5.75. Self-sufficiency: the why behind code sits in `docs/decisions.md`, cited by title from about 120 places, and the review loop's rules live in `skills/larv-review/SKILL.md`, not beside the unit that enforces them; `bin/agent_cycle/routing.py:115` `unfinished_route` keeps its reasons in the decision log too. Locality: do-epic and chunk-pr run order-dependent steps and keep state in tmux window names and between loop passes (`start_chunks`, `resumed_news`, `merged`, `merge_turn`), and no code enforces the order; `bin/do_epic/main.py:236` `chunk_run` and `bin/do_epic/scheduler.py:172` `start_chunks` are the hardest do-epic places, and the round cap is counted three ways (`bin/rule_hook/round_cap.py:28` `earlier_titles`, `bin/larv_review/reviewer_header.py:83` `branch_summaries`, `bin/review_rules/round_titles.py:39` `named_counts`). Shape: `bin/` stays flat at about 86 entries at one level, long functions carry several flags at once, and the OLD_SHAPE fork in `bin/plan/ranking.py` doubles the paths through ranking. Refresh this item's places and aim from the newest run before the chunk starts; do not file a second floor item.
Newest run, two runs of item 569's chunk at add7c09d: Locality is lowest at 5.63. It adds these places to the list below: `bin/rule_hook/reviewer_rung.py:28` `reviewer_breaches` refuses a launch for its rung and never for its round count, so the round cap has a launch-time gap beside the three counters; `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start` is a near-twin of `bin/do_epic/scheduler.py:172` `start_chunks` with different rules and no stated reason for two; `bin/agent_cycle/tmux.py:92` `as_listed` keeps chunk state in window-name suffixes that other code matches on; `bin/plan/ranking.py:144` `weigh` checks the old table shape in every function; `bin/do_epic/__init__.py:1` has no map of its 25 modules.
Newest run, two runs of item 579's chunk at 0aff7d39: Locality and Shape are lowest, both at 5.88, with Self-sufficiency at 6.00 and Navigation at 7.00. It adds these places to the list below: `bin/chunk_pr/main.py:601` `levelled_and_finished` is an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns; `bin/agent_cycle/run.py:160` `rule` decides the figures written by the order of its archive calls, and only a comment says so; `bin/larv_review/main.py:33` "needs-scoring-run" holds the whole rule for when a run is due and owed only in a long docstring; `bin/plan_store/jira_epic.py:200` `edit` hides the loop-filed against person-filed rule among about 45 lines of early returns; `bin/transcript_archive/outcomes.py:11` `outcomes` is a line format that four readers parse by regex; `bin/do_epic/main.py:236` `chunk_run` sits in a 520-line main that also holds help text and the issue-move policy.
Aim: one ambitious refactor of the areas below, sized so every mean reaches 7.0 on the chunk's own scoring run. Where a place is already easier to read when the chunk starts, drop it.
Places the seats named in the two runs at 98c49021, hardest first (`larv-review places`), Self-sufficiency first: