Answer architecture round 1 (scoring run): record the run, list the floor's records as one set, inline the README's reason for the floor Python

This commit is contained in:
2026-10-08 14:53:27 +02:00
parent a58a0a8262
commit 894f99e55b
3 changed files with 58 additions and 5 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, tag that commit
- `rank_todo.py [--check] [todo.md]` scores and ranks a project's `todo.md`; `rank_todo.py --help` states the format.
- `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it.
Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'`
Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names, since the host's newer Python accepts code the floor rejects (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'`
## Tracking a new file
+51
View File
@@ -5,3 +5,54 @@
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Mean | 7.38 | 6.63 | 7.0 | 6.88 | 6.88 |
## 2026-10-08T12:50:49Z, PR #224 at a58a0a8
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6.5 | 7 | 6.5 | 7 |
| Mid A | 7.5 | 7 | 7 | 7 | 7 |
| Maintainability senior | 7.5 | 6.5 | 7 | 6.5 | 7 |
| Inherited architect | 7.5 | 7 | 7 | 7 | 7 |
| Mean | 7.38 | 6.75 | 7.0 | 6.75 | 7.0 |
Junior A:
- `skills/larv-review/SKILL.md:77` "Architecture": Ratchet, the history move, Fresh, Suspended
- `skills/larv-review/SKILL.md:51` "Round cap", with "Re-entry"
- `bin/loop_claude/cycle/judge_reply.py:90` `verdict_from`, `cycle/judge.py:31` `run_judge`, `cycle/states.py:69` `transition`
- `bin/loop_claude/cycle/states.py:9` the `quoted_answers` counter
- `bin/loop_claude/cycle/archive.py:14` `archive`
- `bin/loop_claude/claude_code/entries.py:28` `written_by_human`
- `bin/loop_claude/loop/reload.py:50` `exec_if_edited`
- `CLAUDE.md:22` (Todo items), with `bin/rank_todo.py:235` `check_citations`
Mid A:
- `skills/larv-review/SKILL.md:86` "Architecture"
- `bin/loop_claude/cycle/states.py:69` `transition`, with `cycle/run.py:55` `step`
- `bin/loop_claude/cycle/worker.py:41` `worker_args`
- `bin/loop_claude/cycle/judge.py:31` `run_judge`
- `bin/loop_claude/claude_code/entries.py:28` `written_by_human`
- `bin/loop_claude/cycle/archive.py:14` `archive`
- `bin/rank_todo.py:161` `rank`, `:408` `rank_details`
- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES`
Maintainability senior:
- `skills/larv-review/SKILL.md:77` "Architecture"
- `skills/larv-review/SKILL.md:56` "Round cap" → "Count"
- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES`
- `bin/loop_claude/cycle/states.py:69` `transition`, with `cycle/run.py:104` `question_for`
- `bin/loop_claude/cycle/archive.py:14` `archive`
- `bin/loop_claude/claude_code/entries.py:28` `written_by_human`
- `bin/loop_claude/loop/reload.py:50` `exec_if_edited`
- `bin/rank_todo.py:161` `rank`, `:408` `rank_details`
Inherited architect, would restructure first:
- `skills/larv-review/SKILL.md:51` "Round cap" and `:77` "Architecture"
- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES`
- `bin/` flat folder: tools, shared modules and repo checks
- `bin/loop_claude/project/checkout.py:32` `read_utf8`
- `bin/loop_claude/loop/main.py:127` `remaining`, `cycle/run.py:96` `ruling`
+6 -4
View File
@@ -85,20 +85,22 @@ Then the principles audit: one principles-auditor for the README's goals, and on
Then the comprehension floor, which the scoring run measures. Four simulated readers — Junior A, Mid A, the maintainability senior and the inherited architect — each read the whole project, not the diff, and score it from 1 to 10 overall and on four dimensions: Navigation, Locality, Shape and Self-sufficiency. A seat's overall may not exceed its lowest dimension by more than 1. Each score is the mean of the four seats, to two decimals. Launch the seats per `~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run".
The project's `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores.
Two files of the project keep the floor's records:
The project's `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## <UTC time, ISO 8601>, <PR or branch> at <commit>` heading naming when the seats finished and the commit they read, a table of each seat's five scores and their mean, and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name.
- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## <UTC time, ISO 8601>, <PR or branch> at <commit>` heading naming when the seats finished and the commit they read; a table of each seat's five scores and their mean; and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name.
- **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores.
- **Moved run.** An entry written before the history may still hold a line opening `The last scoring run`. While the history holds no run, that line is its last run. The chunk's first scoring run moves it into the history as its first run: `## <merge time>, <PR> merged at <merge commit>`, with the mean alone.
The chunk does not merge while either holds:
- **Floor.** Any dimension or the overall is below 7.0.
- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. Until the history holds a run, the entry's line opening `The last scoring run` stands in. An equal score passes, and so does every run while the default branch has neither.
- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. An equal score passes, and so does every run while the default branch has none.
Each score under the floor or the ratchet is a 🔴 of the scoring run. It is never filed, and stands until a later scoring run clears it or, for a score under the floor, a decision to ship answers it.
Fix the places the seats name under the lowest dimension and under each dimension that fell. When only the floor holds, the user may decide to ship instead. A decision that lets every chunk ship under the floor, held in the project's `docs/decisions.md` before the chunk began, counts as theirs while it stands. A decision to ship listed in the `comprehension floor:` entry covers only the chunk it names. No user reachable → fix. A fall never ships: after three rounds, "Round cap" → "Cap" asks the user for another round.
Put each run's five scores in the summary, and append the run to the history on this branch. That line, where the entry still holds it, moves into the history ahead of every run there: `## <merge time>, <PR> merged at <merge commit>`, since the entry never named the commit the seats read, and a table with the mean alone. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`).
Put each run's five scores in the summary, and append the run to the history on this branch. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`).
**Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its run, appended to the history, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review.