Answer architecture round 1: give loop-claude's prompt text one home, split larv-review's plan trigger and ruling base out, share todo.md's table and the project key, and name the scoring run, the checkout roots and the test env for what they are

This commit is contained in:
2026-10-09 14:43:19 +02:00
parent b1913ed65d
commit dde06fc465
38 changed files with 406 additions and 259 deletions
+77
View File
@@ -732,3 +732,80 @@ Inherited architect, would restructure first:
- `bin/larv_review/git.py:10` `git`, `bin/metric_bench/main.py:143` `git` and `bin/reading_cost/main.py:113` `located`: one git runner
- `bin/loop_claude/project/checkout.py:32` `read_utf8`: a generic reader under a lying name
- `bin/larv_review/main.py:101` `main`: an if/elif dispatch where the next command lands
## 2026-10-09T12:31:47Z, PR #234 at b1913ed, against 2157f59
Ruling: better
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Mid A | better | better | same | better | better |
| Inherited architect | better | better | better | better | better |
Mid A, decided by:
- Locality, Navigation: `bin/transcript_archive/outcomes.py:4` `FINISHED_AT` and `finished`: one module now writes and parses the outcome lines, which `bin/loop_claude/cycle/run.py:83` built inline and another file parsed
- Locality, Navigation: `bin/reading_cost/main.py:35` imports: reading-cost depends only on the shared `transcript_archive`, no longer on loop-claude's internals
- Locality: `bin/loop_claude/paths.py:15` `paths_from`: no longer reads the environment; `LOOP_CLAUDE_TRANSCRIPTS` has one home in `bin/transcript_archive/location.py:5` `project_archive`
- Navigation, Self-sufficiency: `README.md:77` "Tools": states the import root, the shared packages and where tests live
- Self-sufficiency: `bin/transcript_archive/write.py:13` `archive`: states the archive's layout at the write
- Shape: `bin/loop_claude/loop/main.py:86` `run_loop`: imports `project_key`, which names the session and the models entry, from the archive package; `bin/loop_claude/cycle/worker.py:7` takes `quoted` from the archive's outcomes
- Shape: `bin/loop_claude/cycle/judge.py:15` `JUDGE_RULES`: judge_reply merged in, 183 lines
Inherited architect, decided by:
- Navigation, Shape: `bin/reading_cost/main.py:35` `main`: imports one shared package named for what it holds, in place of loop-claude's private packages
- Locality, Self-sufficiency: `bin/transcript_archive/outcomes.py:10` `finished`: the outcome texts sit beside `FINISHED_AT`, the regex that reads them back
- Shape: `bin/claude_code/session.py:21` `session_named`: the Claude Code package depends on nothing in loop-claude
- Locality: `bin/loop_claude/cycle/judge.py:15` `JUDGE_RULES` and `:93` `verdict_from`: in one file with `run_judge`
- Locality: `bin/loop_claude/cycle/states.py:75` `transition`: the cap no longer depends on case order
- Navigation, Self-sufficiency: `README.md:77` "Tools": states the layout and puts each test beside its package
- Self-sufficiency: `bin/loop_claude/cycle/run.py:34` `Cycle.unfinished_evidence`: the name says what `remaining` needed a comment for
- Shape: `bin/loop_claude/loop/main.py:86` `run_loop`, `bin/loop_claude/cycle/worker.py:7` `worker_args` and `bin/host_env.py:5` `host_env`: small seams against the decoupling
## 2026-10-09T12:32:00Z, PR #234 at b1913ed
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6.5 | 6 | 6.5 |
| Mid A | 7 | 6 | 6.5 | 6 | 6.5 |
| Maintainability senior | 7 | 6.5 | 7 | 6.5 | 7 |
| Inherited architect | 7 | 6.5 | 6 | 6.5 | 6.5 |
| Mean | 7.00 | 6.25 | 6.50 | 6.25 | 6.63 |
Junior A, hardest first:
- `skills/larv-review/SKILL.md:55` "Round cap": the counting rule spread across Round cap, Re-entry, Fresh and Suspended
- `bin/larv_review/main.py:197` `record_ruling`: split, fell, refuse and stand branches; `ruling` returns None for a split and `fallen` reuses it
- `bin/larv_review/scoring.py:54` `scoring_run_due`: why the next-release fallback holds is stated nowhere
- `bin/larv_review/base.py:14` `measured_commit`: mechanics without purpose
- `bin/loop_claude/cycle/judge.py:126` `run_judge`: the prompt assembled from `records.py` constants; two texts, two matchers
- `bin/reading_cost/measure.py:21` `Checkout`: `root` and `top` read as synonyms
Mid A, hardest first:
- `bin/larv_review/main.py:197` `record_ruling`: said and counted, None as split, three fall steps
- `bin/comprehension_history.py:74` `entries`: the history format is defined only by its writer
- `bin/loop_claude/cycle/judge.py:126` `run_judge`: elided evidence fails, a misquoted answer becomes an interrupt
- `bin/larv_review/scoring.py:54` `scoring_run_due`: one dense sentence over two plans; the module also parses the plan
- `bin/larv_review/base.py:14` `measured_commit`: the why lives in the help and the skill
- `bin/loop_claude/cycle/states.py:69` `transition`: `quoted_answers` threaded through three states and two files
Maintainability senior, hardest first:
- `bin/larv_review/main.py:197` `record_ruling`: said and count, ruled reassigned, a silent fall-through; `ruling`'s None means two things
- `bin/larv_review/base.py:14` `measured_commit`: a three-step fallback across three files, ordered by an ISO string unsaid
- `bin/comprehension_history.py:74` `entries`: the format is never stated in one place
- `bin/loop_claude/cycle/judge.py:15` `JUDGE_RULES`: the prompt interpolates four constants from another module
- `bin/larv_review/scoring.py:54` `scoring_run_due`: five inputs; `scoring` also parses the plan
- `bin/rank_todo.py:416` `rank_details`: regex surgery in a script larv-review imports as a library
Inherited architect, would restructure first:
- `bin/loop_claude/project/records.py:6` `QUOTE_SOURCES`: prompt fragments spliced into the judge, worker and interrupt texts
- `bin/transcript_archive/location.py:10` `project_key`: the project's identity filed under the archive
- `bin/host_env.py:5` `host_env`: a test helper among the production modules
- `bin/larv_review/rounds.py:8` `round_counts`: only counts; the cap lives in the skill
- `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