Answer architecture round 2: merge the default branch in when the base is newer than the branch point, fall back to the first ruling's base, state the floor's trigger in the pass table, name the comprehension check once, and record the round's ruling of same

This commit is contained in:
2026-10-08 20:46:46 +02:00
parent 96aebc74a0
commit 51949a06dd
4 changed files with 55 additions and 6 deletions
+2 -2
View File
@@ -34,10 +34,10 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The
## Quality
Quality is proven by review. Every change is reviewed as a diff. The whole project is measured when a change carries an architectural decision, and before each release, because a project can drift from the principles one clean diff at a time. A project decision may suspend only the comprehension panel's runs (`larv-review` §3 → "Architecture" → "Suspended"). `larv-review` §3 says which review runs when. Quality has three parts. When two pull against each other, the earlier one wins.
Quality is proven by review. Every change is reviewed as a diff. The whole project is measured when a change carries an architectural decision, and before each release, because a project can drift from the principles one clean diff at a time. A project decision may suspend only the comprehension check, the comprehension panel's runs (`larv-review` §3 → "Architecture" → "Suspended"). `larv-review` §3 says which review runs when. Quality has three parts. When two pull against each other, the earlier one wins.
1. **Correct.** The work does what the goals and the plan say, and tests prove it.
2. **True to the technical principles** (`~/.claude/principles/technical-principles.md`). The `comprehension-panel` skill measures KISS (`larv-review` §3 → "Architecture"). **Comprehension never falls:** when readers comparing the chunk with the last measured commit rule that it reads worse, improve what they named and rule again. After three such rounds, stop and ask the human. Before each release, a score under the comprehension floor blocks a merge.
2. **True to the technical principles** (`~/.claude/principles/technical-principles.md`). The `comprehension-panel` skill measures KISS (`larv-review` §3 → "Architecture"). **Comprehension never falls:** when readers comparing the chunk with the last commit the panel measured rule that it reads worse, improve what they named and rule again. After three such rounds, stop and ask the human. Before each release, a score under the comprehension floor blocks a merge.
3. **Plainly written**, per "Prose".
## Prose
+49
View File
@@ -290,3 +290,52 @@ Inherited architect, decided by:
- `skills/comprehension-panel/scoring-run.md:1` "Paired ruling": the name no longer says what is inside
- `AGENTS.md:15`: the new decision title packs both mechanisms and the vote rule
- `skills/larv-review/SKILL.md:35` and `:64` "Re-entry", better: a rerun traces from the table alone
## 2026-10-08T18:46:12Z, PR #228 at fbe753e, against c7333c0
Ruling: same
| Seat | Vote |
|---|---|
| Mid A | worse |
| Inherited architect | better |
| Maintainability senior | same |
| Junior A | worse |
Mid A, decided by:
- `skills/larv-review/SKILL.md:89` "Architecture": two kinds of run under one umbrella, each with its own trigger, and a vote rule to work through by example
- `skills/larv-review/SKILL.md:93` "Base": the comparison point found by how earlier chunks appended to the history
- `skills/larv-review/SKILL.md:35` the Architecture row: a forward reference to the scoring run's trigger
- `CLAUDE.md:37` and `:40` "Quality": one concept under several names, and "the last measured commit" undefined
- `skills/comprehension-panel/SKILL.md:102` "The paired ruling": who votes is left to the caller
- `skills/comprehension-panel/seat-prompts.md:1`, better: the name tells the truth, and `{forbidden}` serves both briefs
- `skills/larv-review/SKILL.md:64` "Re-entry", better: the rerun rule is explicit
Inherited architect, decided by:
- `skills/larv-review/SKILL.md:64` "Re-entry", better: why a pass ran a fourth time is answered in one paragraph
- `skills/larv-review/SKILL.md:33` the pass table, better: each pass's rule for fixes sits in its own Trigger cell
- `skills/larv-review/SKILL.md:37` and `:123` "Security", better: when each security pass runs
- `skills/larv-review/SKILL.md:93` "Base": base selection depends at a distance on the wording of a line in the history format
- `skills/larv-review/SKILL.md:35` the Architecture row: a pointer 60 lines down
- `skills/larv-review/SKILL.md:95` "Ruling": the vote margin worked out by hand
- `CLAUDE.md:37` and `AGENTS.md:16`: one concept, three names
Maintainability senior, decided by:
- `skills/larv-review/SKILL.md:89` "Paired ruling": the base defined by an action, and the vote arithmetic
- `skills/larv-review/SKILL.md:35` and `:97`: a forward reference, though one definition
- `skills/larv-review/SKILL.md:64` "Re-entry", better: deterministic reruns
- `skills/larv-review/SKILL.md:59` "Later rounds", better: every rerun reviews only its diff
- `skills/comprehension-panel/seat-prompts.md:3`, better: the briefs cannot drift apart
- `AGENTS.md:35` "Scoring run": the heading no longer matches its use
- `CLAUDE.md:40`: "last measured commit" defined only in larv-review
Junior A, decided by:
- `skills/larv-review/SKILL.md:91` "Paired ruling": the base, the escalation and the vote rule in three rereads
- `skills/larv-review/SKILL.md:35` the Architecture row: a forward reference to a two-condition rule
- `skills/larv-review/SKILL.md:35`, `:51`, `:89`, `CLAUDE.md:37`: four names for the comprehension machinery
- `skills/larv-review/SKILL.md:36` the Full scan and Security rows: read together now
- `skills/comprehension-panel/seat-prompts.md:8`: placeholders nesting placeholders
+3 -3
View File
@@ -32,7 +32,7 @@ A pass is one kind of review, a row of the table, named by its first column. Its
| Pass | Reviewer | Trigger |
|------|----------|----------------------------------------|
| Architecture | systems-architect, then principles-auditor and the comprehension check | meets the scoring run's trigger ("Architecture"), or carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats, CLI flags and exit codes); a schema change beyond an additive column; a fix, only where it carries an architectural decision |
| Architecture | systems-architect, then principles-auditor and the comprehension check | leaves its release with no plan items, or ships an item naming the comprehension floor; or carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats, CLI flags and exit codes); a schema change beyond an additive column; a fix, only where it carries an architectural decision |
| Full scan | the `claude-security` plugin at high effort: `/claude-security scan this branch's changes at high` | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface |
| Security | `/security-review` | changes code or config, unless the full scan runs on the same change; a fix, only where it opens an untrusted-input boundary or touches authn/authz, secrets or crypto, and the full scan does not rerun on it |
| Stability | stability-reviewer | changes code, config or tests; a fix, only where it changes behaviour: what the code or its tests do |
@@ -90,9 +90,9 @@ Then the comprehension check: simulated readers, launched per `~/.claude/skills/
**Paired ruling**, in every architecture pass. Each seat votes whether the project reads better, the same or worse at this branch's head than at the base.
- **Base.** The last measured commit: the newest commit on `origin/<default branch>`, after a `git fetch`, whose change to the history (below) adds a scoring run or a `Ruling: better` line. Find it with `git log -p origin/<default branch> -- docs/comprehension-history.md`; with no remote, use `<default branch>`. A ruling of same leaves the base where it was, so small falls add up until one is seen. No such commit → the merge base of the head and the default branch.
- **Base.** The last measured commit: the newest commit on `origin/<default branch>`, after a `git fetch`, whose change to the history (below) adds a scoring run or a `Ruling: better` line. Find it with `git log -p origin/<default branch> -- docs/comprehension-history.md`; with no remote, use `<default branch>`. A ruling of same leaves the base where it was, so small falls add up until one is seen. No such commit → the base the history's first paired ruling names; no ruling either → the merge base of the head and the default branch. A base that is not an ancestor of the head → merge the default branch into this branch first, so the seats see only this branch's change on top of it.
- **Seats.** Mid A and the inherited architect. When their votes differ, the maintainability senior and Junior A vote too, launched together.
- **Ruling.** The ruling with two votes more than every other ruling; without one, same.
- **Ruling.** The ruling that leads every other ruling by two votes; without one, same.
**Scoring run**, when the chunk leaves `todo.md` with no item for a release that has work landed towards it, or ships an item whose tagline names the comprehension floor. Junior A, Mid A, the maintainability senior and the inherited architect each score the project at the head 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.
+1 -1
View File
@@ -122,7 +122,7 @@ The key names the project's session, archive folder and models entry. `project_k
### 84. Check, at each release's scoring run, that seats in a paired ruling agree more often than two absolute runs do, as the paired-ruling decision assumes.
Raised by the principles audit of PR #228: the `review: a paired ruling …` entry in `docs/decisions.md` is valid only while that holds, and `docs/comprehension-history.md` keeps every vote, yet nothing reads the agreement rate.
Raised by the principles audit of PR #228: the `review: a paired ruling …` entry in `docs/decisions.md` is valid only while that holds, and `docs/comprehension-history.md` keeps every vote, yet nothing reads the agreement rate. A release has one scoring run, so the absolute runs to compare with are those already in the history on near-identical code, such as PR #224's and PR #225's, or a second run made for the check.
### 67. Point stability-reviewer at the technical principles in place of its own restatement of them.