Answer architecture round 2: keep the judge's rules beside its verdicts, name record_ruling's steps, file HistoryChange with the history, give read_utf8 its own module, count a mis-cased round title, and repair the tracked_places docstring

This commit is contained in:
2026-10-09 14:49:34 +02:00
parent dde06fc465
commit b346a3572e
17 changed files with 197 additions and 101 deletions
+81
View File
@@ -809,3 +809,84 @@ Inherited architect, would restructure first:
- `bin/larv_review/base.py:1` the module: the ruling base, named like a base class
- `bin/larv_review/scoring.py:6` imports: one tool imports another tool's internals from `bin/rank_todo.py`
- `bin/loop_claude/loop/main.py:1` the docstring: restates constants it cannot keep true
## 2026-10-09T12:46:51Z, PR #234 at dde06fc, against 2157f59
Ruling: better
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Mid A | better | better | better | better | better |
| Inherited architect | better | better | better | better | better |
Mid A, decided by:
- Navigation, Locality, Shape: `bin/transcript_archive/location.py:7` `project_archive`: the archive's location lives in one shared package, where reading-cost reached into loop-claude's internals
- Locality, Shape, Self-sufficiency: `bin/loop_claude/cycle/run.py:83` `worker_start`: `worker_args` builds only flags and each prompt is a named function in `bin/loop_claude/cycle/prompts.py:41`
- Locality, Self-sufficiency: `bin/transcript_archive/outcomes.py:10` `finished`: the outcomes format's writer and reader sit in one file
- Shape: `bin/larv_review/ruling.py:42` `split`: `ruling` no longer returns None for a split
- Shape, Locality: `bin/larv_review/main.py:204` `record_ruling`: two plain checks in place of `fall_step`'s strings; plan logic in `bin/larv_review/plan.py:5`
- Navigation: `README.md:77` "Tools": states the import root and the shared packages
- Self-sufficiency: `bin/comprehension_history.py:74` `entries`: a worked example of an entry above the parser
- Self-sufficiency, Shape: `bin/metric_bench/bench.py:88` `tracked_places`: the rename garbled the docstring
- Locality: `bin/loop_claude/cycle/prompts.py:60` `quoted`: duplicates `bin/transcript_archive/outcomes.py:31` `quoted`
Inherited architect, decided by:
- Navigation, Locality: `bin/transcript_archive/outcomes.py:10` `finished`: every outcome line and `FINISHED_AT` sit in one module
- Navigation, Locality: `bin/reading_cost/main.py:35` imports: reading-cost no longer reaches into loop-claude's internals
- Navigation, Self-sufficiency: `README.md:77` "Tools": the layout is stated
- Shape, Locality: `bin/todo_table.py:27` `items`: the table format is its own module, not a CLI script used as a library
- Shape: `bin/larv_review/plan.py:5` `scoring_run_due`: the plan trigger with its why, apart from the floor arithmetic
- Locality, Shape: `bin/larv_review/ruling.py:42` `split`: split, ruling and lead are separate
- Locality, Shape: `bin/loop_claude/cycle/prompts.py:41` `fresh`: every prompt text in one module
- Shape: `bin/comprehension_history.py:67` `ScoringRun`: one name no longer covers two concepts
- Self-sufficiency: `bin/larv_review/main.py:5` the help: defines the ratchet, the paired ruling and the scoring run first
- Locality: `bin/loop_claude/cycle/states.py:75` `transition`: the past-the-cap case has its own guard
- Shape: `bin/metric_bench/bench.py:87` `tracked_places`: the docstring reads worse after the rename
## 2026-10-09T12:46:51Z, PR #234 at dde06fc
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6.5 | 6 | 6 | 6 |
| Mid A | 7.5 | 6.5 | 7 | 6.5 | 7 |
| Maintainability senior | 7 | 6.5 | 7 | 7 | 7 |
| Inherited architect | 7 | 6.5 | 6.5 | 7 | 7 |
| Mean | 7.13 | 6.50 | 6.63 | 6.63 | 6.75 |
Junior A, hardest first:
- `bin/larv_review/main.py:204` `record_ruling`: six outcomes, said against count, `[-1]` meaning Overall
- `bin/larv_review/ruling.py:8` `votes`: a parser that also enforces the seat-count rule
- `bin/larv_review/ruling_base.py:14` `measured_commit`: the docstring explains only after the code confused
- `bin/larv_review/plan.py:5` `scoring_run_due`: four ideas at once; `emptied` traced by hand
- `bin/metric_bench/bench.py:87` `tracked_places`: a garbled docstring
- `bin/loop_claude/cycle/states.py:69` `transition`: the quoted-answer cap across three files
Mid A, hardest first:
- `skills/larv-review/SKILL.md:55` "Round cap": four subsections pointing at each other
- `bin/larv_review/main.py:204` `record_ruling`: five outcomes; the duplicate check in two places
- `bin/loop_claude/cycle/judge.py:95` `run_judge`: many endings, two quote checks
- `bin/loop_claude/cycle/states.py:69` `transition`: the cap counter rides through three states
- `bin/larv_review/ruling_base.py:14` `measured_commit`: needs the history format and first-parent semantics
- `bin/reading_cost/measure.py:27` `measure`: string-compared timestamps and approximate shell parsing
Maintainability senior, hardest first:
- `bin/larv_review/main.py:204` `record_ruling`: five outcomes, competing local names
- `skills/larv-review/SKILL.md:55` "Round cap": a chain of cross-references
- `bin/comprehension_history.py:103` `seat_places`: depends unsaid on `sections` dropping blank lines
- `bin/larv_review/plan.py:5` `scoring_run_due`: four inputs; the rule restated in the help
- `bin/larv_review/ruling_base.py:14` `measured_commit`: why same is safe needs the skill
- `bin/metric_bench/bench.py:87` `tracked_places`: a garbled docstring
Inherited architect, would restructure first:
- `bin/larv_review/rounds.py:12` `round_counts`: the round cap lives in prose; a mis-cased title escapes the count
- `bin/loop_claude/cycle/judge.py:17` `Reply`: the judge contract spread over four files
- `bin/loop_claude/project/checkout.py:28` `read_utf8`: a generic reader under the checkout's name
- `bin/test_env.py:5` `isolated_env`: test support named like a test
- `bin/larv_review/git.py:6` imports: the git adapter depends on a domain type
- `bin/loop_claude/cycle/prompts.py:60` `quoted`: two copies, with `STAMP` and the git runner also duplicated