Answer architecture round 1: move the base fallback, heading check and seat names into the pure modules, move legacy scores through record-scoring, and read origin as last fetched when a fetch fails

This commit is contained in:
2026-10-09 01:18:57 +02:00
parent 53ed5150be
commit 05efbb1d8a
10 changed files with 168 additions and 89 deletions
+30
View File
@@ -422,3 +422,33 @@ Inherited architect, decided by:
- `bin/metric_bench/places.py:7` `RUN`, `SEAT_PLACES`, `PLACE` and `:60` `resolved`: a regex reader of a prose format, and a historical quirk to know first
- `AGENTS.md:35` "Scoring run": the section's name no longer covers its use by paired rulings
- `skills/larv-review/SKILL.md:64` "Re-entry", better: which passes a fix reruns is explicit
## 2026-10-08T23:12:17Z, PR #231 at 53ed515, against 12d6d75
Ruling: better
| Seat | Vote |
|---|---|
| Mid A | better |
| Inherited architect | better |
Mid A, decided by:
- `bin/larv_review/rules.py:64` `round_counts`, with `:10` `CAP` and `bin/larv_review/main.py:118` `round_count`, better: a fourth round leads cold to one named function, where the base had only `skills/larv-review/SKILL.md:58` "Count" to carry out by hand
- `bin/larv_review/main.py:1` the module docstring, better: the base, round count, trigger, vote rule and seats file are written beside the code that carries them out
- `bin/larv_review/rules.py:41` `ruling` and `:27` `votes`, better: the vote rule is a short pure function, changeable without the skill text in mind
- `bin/larv_review/git.py:4` the import of `HistoryChange` from rules, with `:50` `history_changes`: the git layer takes its result type from the rules module, so the direction among the three modules is not obvious
- `bin/larv_review/history.py:85` `resolved` and `:56` `scoring_runs`: they serve only metric-bench, so old-history path logic sits in the review tool's module
- `bin/metric_bench/main.py:143` `git` against `bin/larv_review/git.py:9` `git`: two private git runners with different error handling
- `bin/larv_review/rules.py:106` `scoring_run_due`: the densest new unit, two plans, shipped IDs and a flag held at once
- `skills/larv-review/SKILL.md:93` "Paired ruling" and `:100` "Scoring run": more vocabulary, though each mechanical step now names a subcommand
Inherited architect, decided by:
- `bin/larv_review/rules.py:64` `round_counts`, with `bin/larv_review/main.py:118` `round_count`, better: the 3am question leads to `round-count` and one pure function, where the base's `skills/larv-review/SKILL.md:58` "Count" was prose to carry out against `git log`
- `bin/larv_review/rules.py:106` `scoring_run_due`, better: the trigger is a checkable function that prints its reason, though dense in its `and`/`or` binding and set arithmetic
- `bin/larv_review/main.py:1` the module docstring, better: the history format and ratchet have one tested home; `skills/larv-review/SKILL.md:42` now points at `--help` for the rules
- `bin/larv_review/history.py:85` `resolved`, `:56` `scoring_runs` and `:61` `seat_places`: a parser only metric-bench uses, under the review tool's name; where it rots first
- `bin/larv_review/git.py:4` the import of `HistoryChange` from rules, and `bin/metric_bench/main.py:143` `git`: a reversed dependency and two git runners
- `bin/larv_review/seats.py:7` `SCORING_SEATS` and `SEAT_LINE`, with `bin/larv_review/rules.py:11` `FIRST_SEATS`: seat names spelled in four places
- `bin/larv_review/main.py:164` `record` and `bin/larv_review/history.py:52` `entries`: positional regex groups that need `HEADING` open beside them