From db2f38749cf5741efd38b924f9d763126fa0c41b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 18:04:06 +0200 Subject: [PATCH] Answer prose round 1: the later-round rule in two sentences, the last-item trigger first, items 60 and 62-65 and 70 reworded; the records comment kept for the seats --- bin/loop_claude/cycle/judge_reply.py | 2 +- bin/loop_claude/project/records.py | 2 +- skills/larv-review/SKILL.md | 6 +++--- todo.md | 28 ++++++++++++++-------------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/bin/loop_claude/cycle/judge_reply.py b/bin/loop_claude/cycle/judge_reply.py index 7b3bec81..322d8bcc 100644 --- a/bin/loop_claude/cycle/judge_reply.py +++ b/bin/loop_claude/cycle/judge_reply.py @@ -6,7 +6,7 @@ from loop_claude.project.records import HUMAN_RULES, RECORD_FILES # Where the judge may quote an answer from, named as the human and the worker see them; of README.md the judge sees only the premises. QUOTE_SOURCES = "README.md's Goals and Audience, " + ", ".join(RECORD_FILES) + " or " + HUMAN_RULES -# Where the worker may write an answer the human typed, so it counts as recorded; HUMAN_RULES is the human's alone to write. +# Where the worker may write an answer the human typed, so it counts as recorded. ANSWER_DESTINATIONS = "README.md's Goals or Audience, " + ", ".join(RECORD_FILES) + ", todo.md or a comment" ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could need is recorded in {ANSWER_DESTINATIONS} at the one place it governs" JUDGE_RULES = ( diff --git a/bin/loop_claude/project/records.py b/bin/loop_claude/project/records.py index b1dd553a..395a9210 100644 --- a/bin/loop_claude/project/records.py +++ b/bin/loop_claude/project/records.py @@ -3,7 +3,7 @@ import pathlib from loop_claude.project.checkout import read_utf8 from loop_claude.stop import Stop -# The records: these project files and HUMAN_RULES, which the judge reads beside the README's premises. +# The records: these project files and HUMAN_RULES; the judge reads them beside the README's premises. RECORD_FILES = ("AGENTS.md", "docs/decisions.md") HUMAN_RULES = "~/.claude/CLAUDE.md" diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 766ebc0f..a93dcda5 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -30,7 +30,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 scoring run | 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; or ships its release's last item | +| Architecture | systems-architect, then principles-auditor and the scoring run | ships its release's last item, 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 | | Security | `/security-review` | changes code or config; a fix, only where it opens an untrusted-input boundary or touches authn/authz, secrets or crypto | | 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 | | Stability | stability-reviewer | changes code, config or tests; a fix, only where it changes behaviour: what the code or its tests do | @@ -51,7 +51,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Round cap.** - **Round.** A round is one launch of a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). -- **Architecture round.** The architecture pass's first round is the architect (unless skipped), the principles audit and the scoring run. A later round relaunches the scoring run and each reviewer whose ๐Ÿ”ด or ๐ŸŸก its fixes answer, or the whole round, the architect included, where the fixes carry an architectural decision. +- **Architecture round.** The architecture pass's first round is the architect (unless skipped), the principles audit and the scoring run. A later round relaunches the scoring run and each reviewer whose ๐Ÿ”ด or ๐ŸŸก the previous round's fixes answer. Where those fixes carry an architectural decision, the whole round runs again, the architect included. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes and is titled `Answer round : โ€ฆ`, `` being the pass's name in lower case, such as `full scan`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. A pass's count is the highest `` among titles holding `Answer round :` in `git log origin/..HEAD` after a `git fetch`, or in `git log ..HEAD` with no remote. The auto-reviewer's count is the number of its reviews on the PR. - **Later rounds.** From round 2, prompt an agent under `~/.claude/agents/` with its own last round's findings verbatim and what changed since: `git diff HEAD`, since the fixes may be unpushed. @@ -81,7 +81,7 @@ Launch systems-architect: review the system as a whole entered through this chan - **Stage 0 questions returned**: relay them to the user, record the answers in the README, re-run once. - **BLOCK** โ†’ confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. -Then the principles audit, each auditor over the whole project: one principles-auditor for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure โ†’ launch it. +Then the principles audit: one principles-auditor for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure โ†’ launch it. 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". diff --git a/todo.md b/todo.md index 21449353..b2c2d369 100644 --- a/todo.md +++ b/todo.md @@ -24,13 +24,13 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| -| 64 | 0.1.0 | security | **Check the `settings.json` diff for secrets before the first push under `AGENTS.md`'s working rule.** | 2 | 2 | 6 | 7 | 3 | 20.4 | +| 64 | 0.1.0 | security | **Check the `settings.json` diff for secrets before `AGENTS.md`'s working rule pushes it.** | 2 | 2 | 6 | 7 | 3 | 20.4 | | 1 | 0.1.0 | question | **Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | -| 63 | 0.1.0 | | **Give README โ†’ Install a command that checks the repo out into the `~/.claude` Claude Code already created.** | 2 | 2 | 7 | 8 | 1 | 27.5 | -| 60 | 0.1.0 | | **Rerun the scoring run before merge whenever a fix landed after the last one, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด.** | 3 | 3 | 6 | 7 | 4.1 | 16.1 | -| 62 | 0.1.0 | defect | **Lift Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 8 | 4.1 | 15.5 | +| 63 | 0.1.0 | | **Give README โ†’ Install a command that checks the repo out into the `~/.claude` that Claude Code has already created.** | 2 | 2 | 7 | 8 | 1 | 27.5 | +| 60 | 0.1.0 | | **Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด.** | 3 | 3 | 6 | 7 | 4.1 | 16.1 | +| 62 | 0.1.0 | defect | **Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 8 | 4.1 | 15.5 | | 70 | 0.1.0 | question | **Record whether `settings.json`'s `"defaultMode": "auto"` with the dangerous-mode prompt skipped is deliberate.** | 2 | 1 | 4 | 5 | 3 | 13.6 | -| 65 | 0.1.0 | | **Archive each judge reply the loop rejects, not only the last.** | 3 | 4 | 4 | 5 | 2 | 12.9 | +| 65 | 0.1.0 | | **Archive each judge reply the loop rejects.** | 3 | 4 | 4 | 5 | 2 | 12.9 | | 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 4.3 | 12.9 | | 49 | 0.1.0 | principle | **Check that `AGENTS.md` lists exactly the titles of `docs/decisions.md`.** | 1 | 2 | 5 | 6 | 4.3 | 12.5 | | 12 | 0.1.0 | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 2 | 4 | 4 | 6 | 4.1 | 11.7 | @@ -49,9 +49,9 @@ ## Details -### 64. Check the `settings.json` diff for secrets before the first push under `AGENTS.md`'s working rule. +### 64. Check the `settings.json` diff for secrets before `AGENTS.md`'s working rule pushes it. -Goal 3, raised by the principles audit of PR #215. Exposure: Claude Code writes `env` and `mcpServers` into `settings.json`, where a token lands. Path: `AGENTS.md` โ†’ "Working rules" commits uncommitted changes to that file on a branch, and larv-review ยง2 pushes it and opens the PR before `/security-review` runs, so a token reaches the remote unchecked. +Goal 3, raised by the principles audit of PR #215. Exposure: Claude Code writes `env` and `mcpServers` into `settings.json`, where a token can land. Path: `AGENTS.md` โ†’ "Working rules" commits uncommitted changes to that file on a branch, and larv-review ยง2 pushes it and opens the PR before `/security-review` runs, so a token reaches the remote unchecked. ### 1. Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. @@ -61,23 +61,23 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 2). -### 63. Give README โ†’ Install a command that checks the repo out into the `~/.claude` Claude Code already created. +### 63. Give README โ†’ Install a command that checks the repo out into the `~/.claude` that Claude Code has already created. Goal 1, raised by the principles audit of PR #215: Claude Code creates `~/.claude` on its first run, `git clone` refuses a directory that is not empty, and Install names neither the remote nor another way in. -### 60. Rerun the scoring run before merge whenever a fix landed after the last one, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด. +### 60. Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด. -Raised by the systems-architect review of PR #215. A stability, product-owner, prose or auto-reviewer fix that neither carries an architectural decision nor answers an architecture ๐Ÿ”ด or ๐ŸŸก merges after the last scoring run, so the `comprehension floor:` entry records scores for an earlier commit, and the next chunk's ratchet inherits a fall it did not cause. "Round cap" โ†’ "Done" and "Re-entry" โ†’ "Rerun" count only ๐Ÿ”ด and ๐ŸŸก, and nothing makes a score under the floor one. Exempt a commit that only writes records into `docs/decisions.md`, `todo.md` or `CHANGELOG.md`. +Raised by the systems-architect review of PR #215. A stability, product-owner, prose or auto-reviewer fix reruns no scoring run unless it carries an architectural decision or answers an architecture ๐Ÿ”ด or ๐ŸŸก. It merges unscored, so the `comprehension floor:` entry records scores for an earlier commit, and the next chunk's ratchet inherits a fall it did not cause. "Round cap" โ†’ "Done" and "Re-entry" โ†’ "Rerun" count only ๐Ÿ”ด and ๐ŸŸก, and nothing makes a score under the floor one. A commit that only writes records into `docs/decisions.md`, `todo.md` or `CHANGELOG.md` needs no rerun. -### 62. Lift Self-sufficiency and the overall to the comprehension floor, at the places the seats name. +### 62. Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name. -Raised by the principles audit of PR #215 against KISS, in `principles/technical-principles.md`, and goal 4.1: the `comprehension floor:` entry in `docs/decisions.md` lists seven ships under the floor and 0.1.0 waits on it, yet no item names the places to fix. PR #215's seats named, under Self-sufficiency: `skills/larv-review/SKILL.md`, which needs `CLAUDE.md` โ†’ "Vocabulary" open beside it; the archive layout, defined only in `bin/loop_claude/loop/main.py`'s docstring and not at `cycle/archive.py`; `JUDGE_RULES`' precedence in `cycle/judge_reply.py`, restated by `verdict_from`'s branch order and the `Reply` field descriptions; the `sys.path` insert in `bin/loop-claude` that the `from failure import` lines rely on, unstated at the import sites. +Raised by the principles audit of PR #215 against KISS, in `principles/technical-principles.md`, and goal 4.1: the `comprehension floor:` entry in `docs/decisions.md` lists seven decisions to ship under the floor and 0.1.0 waits on it, yet no item names the places to fix. PR #215's last run put Locality at 6.63 and Self-sufficiency and the overall at 6.88. Its seats named, under Locality: the judge's contract spread over `cycle/judge_reply.py`, `cycle/worker.py` and `cycle/run.py`; `remaining`, which is `Unfinished.evidence` under another name, threaded through `loop/main.py`, `loop/reload.py`'s `LoopRun`, `cycle/run.py` and `worker_args`; the `quoted_answers` cap held by case order in `cycle/states.py`'s `transition` and restated in `run.py`'s `question_for`; the four outcome texts `run.py` builds inline for `archive`. Under Self-sufficiency: `skills/larv-review/SKILL.md`, which needs `CLAUDE.md` โ†’ "Vocabulary" open beside it; the archive layout, defined only in `bin/loop_claude/loop/main.py`'s docstring and not at `cycle/archive.py`; `JUDGE_RULES`' precedence in `cycle/judge_reply.py`, restated by `verdict_from`'s branch order and the `Reply` field descriptions; the `sys.path` insert in `bin/loop-claude` that the `from failure import` lines rely on, unstated at the import sites. ### 70. Record whether `settings.json`'s `"defaultMode": "auto"` with the dangerous-mode prompt skipped is deliberate. -"Always grant explicit access to data", in `principles/technical-principles.md`: a classifier grants tool access across `~/code` with no explicit allow list, and no decision records why. +"Always grant explicit access to data", in `principles/technical-principles.md`: auto mode's classifier grants tool access across `~/code` with no explicit allow list, and no decision records why. -### 65. Archive each judge reply the loop rejects, not only the last. +### 65. Archive each judge reply the loop rejects. Goal 2, raised by the principles audit of PR #215: the judge runs with `--no-session-persistence`, and the first two rejected replies reach only stderr, so the archive cannot answer the 3am question of why the loop rejected a verdict.