From ef7066cf0390d7baf07b083a9b655e95d84a2004 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:08:03 +0200 Subject: [PATCH 1/9] Add principle, a fifth exempt reason, for a finding of the principles audit --- CHANGELOG.md | 1 + CLAUDE.md | 2 +- bin/rank_todo.py | 8 ++++---- bin/test_rank_todo.py | 1 + skills/larv-review/SKILL.md | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39056b6f..943df1c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- A `todo.md` item the principles audit files is marked `principle` and kept whatever its score; code-quality findings score low on audience value by nature. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. diff --git a/CLAUDE.md b/CLAUDE.md index d2774744..1d558c28 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites. Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a finding of the principles audit (`larv-review` ยง3). Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/bin/rank_todo.py b/bin/rank_todo.py index 5c2b2951..edff2d7e 100755 --- a/bin/rank_todo.py +++ b/bin/rank_todo.py @@ -41,9 +41,9 @@ A valid todo.md; ## Details and each item's detail are optional: - A new item takes Next ID, and Next ID then goes up by one; every ID stays below it. - The goal weights list README.md's numbered goals in order, a sub-goal such as 1.1 included. - An item's R, S, A and G are whole numbers from 1 to 10; Goals lists goal numbers, comma separated. -- An item's Exempt cell is empty, or names why the bar does not apply: decision, defect, question - or security. An item docs/decisions.md cites as "`todo.md` item N" must be exempt, and a row - marked decision must be cited there. +- An item's Exempt cell is empty, or names why the bar does not apply: decision, defect, + principle, question or security. An item docs/decisions.md cites as "`todo.md` item N" must be + exempt, and a row marked decision must be cited there. - An item's Item cell is one bold tagline; its detail, if any, sits under its ID in ## Details. Exit 1, saying why, on bad arguments, a file that cannot be read or written, a todo.md, README.md or @@ -62,7 +62,7 @@ from loop_claude.failure import Failure from loop_claude.file_writes import replace_file from loop_claude.project.premises import FENCE, sections -EXEMPTIONS = ("", "decision", "defect", "question", "security") +EXEMPTIONS = ("", "decision", "defect", "principle", "question", "security") ITEMS_HEADER = "| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |" LARGEST_FORMULA = 200 LONGEST_FORMULA = 4 * LARGEST_FORMULA diff --git a/bin/test_rank_todo.py b/bin/test_rank_todo.py index 1f967e48..2dde07f0 100644 --- a/bin/test_rank_todo.py +++ b/bin/test_rank_todo.py @@ -81,6 +81,7 @@ class Rank(unittest.TestCase): def test_names_each_item_under_the_bar_that_is_not_exempt(self): ranked = self.ranked(TODO.replace("`Bar = 9`", "`Bar = 11`")) self.assertEqual(ranked.under_bar, ["item 2 scores 10.3, under the bar 11; delete it and any item that needs it, or mark it with a reason the bar does not apply"]) + self.assertEqual(self.ranked(ranked.text.replace("| 2 | 0.1.0 | |", "| 2 | 0.1.0 | principle |")).under_bar, []) def test_reads_goals_and_sub_goals_in_reading_order(self): self.assertEqual(rank_todo.readme_goals(README), ["1", "2", "2.1"]) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 2ae6e941..e1945916 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -63,7 +63,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Findings.** -1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". +1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`, any other finding of the principles audit `principle`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". 2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable โ†’ filed, marked `question`, the goal or decision left as is. 3. A ๐Ÿ”ด is fixed, or shown factually wrong, and what disproved it recorded per `~/.claude/CLAUDE.md` โ†’ "Decisions: one home, each linked to a goal or a technical principle": in a comment at the code the finding concerns, or in `docs/decisions.md` when it concerns more than one place. Never declined. 4. A ๐ŸŸก is fixed, shown factually wrong like a ๐Ÿ”ด, or declined. Decline one only where the reason is sound, consistent with the goals and the technical principles, and confidence is very high; the decline and its reason are recorded the same way. A reason neither speaks to is a gap in the goals: fix the finding, or ask per `~/.claude/CLAUDE.md` โ†’ "Working loop", "Ask, don't guess"; no user reachable โ†’ fix. Never drop one silently, and never decline one for convenience or the size of the fix. -- 2.52.0 From 002fb5aede4d7dd248cc69ecf10e75f491798589 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:09:07 +0200 Subject: [PATCH 2/9] =?UTF-8?q?Answer=20the=20prose=20pass:=20scope=20prin?= =?UTF-8?q?ciple=20to=20the=20principles=20files,=20give=20a=20?= =?UTF-8?q?=F0=9F=94=B4=20defect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- CLAUDE.md | 2 +- skills/larv-review/SKILL.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 943df1c5..21cff5bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A `todo.md` item the principles audit files is marked `principle` and kept whatever its score; code-quality findings score low on audience value by nature. +- larv-review marks a `todo.md` item filed from a finding against `~/.claude/principles/` `principle`, which keeps it whatever its score. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. diff --git a/CLAUDE.md b/CLAUDE.md index 1d558c28..e4358731 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a finding of the principles audit (`larv-review` ยง3). Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for any other finding against a file under `~/.claude/principles/`. Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index e1945916..e7067f65 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -63,7 +63,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Findings.** -1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`, any other finding of the principles audit `principle`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". +1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. Any other finding against a file under `~/.claude/principles/` is marked `principle`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". 2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable โ†’ filed, marked `question`, the goal or decision left as is. 3. A ๐Ÿ”ด is fixed, or shown factually wrong, and what disproved it recorded per `~/.claude/CLAUDE.md` โ†’ "Decisions: one home, each linked to a goal or a technical principle": in a comment at the code the finding concerns, or in `docs/decisions.md` when it concerns more than one place. Never declined. 4. A ๐ŸŸก is fixed, shown factually wrong like a ๐Ÿ”ด, or declined. Decline one only where the reason is sound, consistent with the goals and the technical principles, and confidence is very high; the decline and its reason are recorded the same way. A reason neither speaks to is a gap in the goals: fix the finding, or ask per `~/.claude/CLAUDE.md` โ†’ "Working loop", "Ask, don't guess"; no user reachable โ†’ fix. Never drop one silently, and never decline one for convenience or the size of the fix. -- 2.52.0 From fb720b57e372c49dfbf6f133f0a115cff290e954 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:09:13 +0200 Subject: [PATCH 3/9] Name principle as the Exempt reason in the changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 21cff5bc..b2e25811 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- larv-review marks a `todo.md` item filed from a finding against `~/.claude/principles/` `principle`, which keeps it whatever its score. +- larv-review marks each `todo.md` item filed from a finding against `~/.claude/principles/` with the Exempt reason `principle`, which keeps it whatever its score. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. -- 2.52.0 From 3b416168e185f6c13d5bf4b612289b74f4c9e17d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:09:38 +0200 Subject: [PATCH 4/9] =?UTF-8?q?Answer=20the=20product=20pass:=20principle?= =?UTF-8?q?=20keeps=20a=20=F0=9F=9F=A1=20only,=20names=20its=20principle,?= =?UTF-8?q?=20and=20the=20earlier=20reason=20wins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- CLAUDE.md | 2 +- docs/decisions.md | 2 +- skills/larv-review/SKILL.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2e25811..aae023d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- larv-review marks each `todo.md` item filed from a finding against `~/.claude/principles/` with the Exempt reason `principle`, which keeps it whatever its score. +- larv-review marks each `todo.md` item filed from a ๐ŸŸก finding against `~/.claude/principles/` with the Exempt reason `principle`, which keeps it whatever its score. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. diff --git a/CLAUDE.md b/CLAUDE.md index e4358731..312c4cc6 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for any other finding against a file under `~/.claude/principles/`. Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle. Where two fit, the earlier listed wins. Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/docs/decisions.md b/docs/decisions.md index b2627f9f..e6cce60e 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -78,4 +78,4 @@ ## todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py` -2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. Valid while one human sets the bar and reads the ranking. +2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`: its audience value scores low by nature, so the bar would drop every such finding, while a ๐ŸŸข one is scored like any other. Valid while one human sets the bar and reads the ranking, and while the ๐ŸŸกs the principles audit files stay few enough to rank. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index e7067f65..99cc850b 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -63,7 +63,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Findings.** -1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. Any other finding against a file under `~/.claude/principles/` is marked `principle`. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". +1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. A ๐ŸŸก against a file under `~/.claude/principles/` is marked `principle`, its detail naming the principle. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". 2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable โ†’ filed, marked `question`, the goal or decision left as is. 3. A ๐Ÿ”ด is fixed, or shown factually wrong, and what disproved it recorded per `~/.claude/CLAUDE.md` โ†’ "Decisions: one home, each linked to a goal or a technical principle": in a comment at the code the finding concerns, or in `docs/decisions.md` when it concerns more than one place. Never declined. 4. A ๐ŸŸก is fixed, shown factually wrong like a ๐Ÿ”ด, or declined. Decline one only where the reason is sound, consistent with the goals and the technical principles, and confidence is very high; the decline and its reason are recorded the same way. A reason neither speaks to is a gap in the goals: fix the finding, or ask per `~/.claude/CLAUDE.md` โ†’ "Working loop", "Ask, don't guess"; no user reachable โ†’ fix. Never drop one silently, and never decline one for convenience or the size of the fix. -- 2.52.0 From 9465075d3eecb3d8fb43ad905c793b716bed2b43 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:10:37 +0200 Subject: [PATCH 5/9] Answer the stability pass: principle only where no other reason fits, and watch the items it marks --- CLAUDE.md | 2 +- docs/decisions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 312c4cc6..0de9efa7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle. Where two fit, the earlier listed wins. Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle, where no other reason fits. Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/docs/decisions.md b/docs/decisions.md index e6cce60e..a7974900 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -78,4 +78,4 @@ ## todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py` -2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`: its audience value scores low by nature, so the bar would drop every such finding, while a ๐ŸŸข one is scored like any other. Valid while one human sets the bar and reads the ranking, and while the ๐ŸŸกs the principles audit files stay few enough to rank. +2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`: its audience value scores low by nature, so the bar would drop every such finding, while a ๐ŸŸข one is scored like any other. Valid while one human sets the bar and reads the ranking, and while the items marked `principle` stay few enough to rank. -- 2.52.0 From aacd5e42c2bfc77ecd6f8bced906966fc01f8a36 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:11:23 +0200 Subject: [PATCH 6/9] Answer the product pass's second round: the skill's principle rule yields to any other reason --- CLAUDE.md | 2 +- skills/larv-review/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 0de9efa7..de1a83ee 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle, where no other reason fits. Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, and, where no other reason fits, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle. Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 99cc850b..12bbe9c0 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -63,7 +63,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Findings.** -1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. A ๐ŸŸก against a file under `~/.claude/principles/` is marked `principle`, its detail naming the principle. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". +1. A finding outside the chunk's change, whatever its pass or severity, is scored and filed in `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Todo items". A ๐Ÿ”ด is marked `defect`. A ๐ŸŸก against a file under `~/.claude/principles/` is marked `principle`, its detail naming the principle, where no other reason fits. One under the bar and not exempt is named in the summary with its score. A verified security HIGH is handled per "Security". 2. A fix that would change a goal, or a decision the repo held before the chunk began, is asked; no user reachable โ†’ filed, marked `question`, the goal or decision left as is. 3. A ๐Ÿ”ด is fixed, or shown factually wrong, and what disproved it recorded per `~/.claude/CLAUDE.md` โ†’ "Decisions: one home, each linked to a goal or a technical principle": in a comment at the code the finding concerns, or in `docs/decisions.md` when it concerns more than one place. Never declined. 4. A ๐ŸŸก is fixed, shown factually wrong like a ๐Ÿ”ด, or declined. Decline one only where the reason is sound, consistent with the goals and the technical principles, and confidence is very high; the decline and its reason are recorded the same way. A reason neither speaks to is a gap in the goals: fix the finding, or ask per `~/.claude/CLAUDE.md` โ†’ "Working loop", "Ask, don't guess"; no user reachable โ†’ fix. Never drop one silently, and never decline one for convenience or the size of the fix. -- 2.52.0 From 5e4f2a21a56504362f48b5d6c294232c6aaaeb34 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:11:31 +0200 Subject: [PATCH 7/9] Answer the prose pass's second round: name whose detail, one idea per sentence --- CLAUDE.md | 2 +- docs/decisions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index de1a83ee..36b8a3c4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **A** โ€” its value to the audience in `README.md` โ†’ `## Audience`. - **G** โ€” its value to the goals it cites in the Goals column; W is the weight of the heaviest of them. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. -- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, and, where no other reason fits, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, its detail naming the principle. Every item `docs/decisions.md` cites carries one of these reasons. +- **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, and, where no other reason fits, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, whose item's detail names that principle. Every item `docs/decisions.md` cites carries one of these reasons. - Open each item with a bold one-sentence tagline, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`. - A security finding โ€” a leaked credential, secret or PII, an auth bypass, an injection โ€” is filed the moment it is found, under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call โ€” say whether it is in the blast radius. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/docs/decisions.md b/docs/decisions.md index a7974900..b745e4db 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -78,4 +78,4 @@ ## todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py` -2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`: its audience value scores low by nature, so the bar would drop every such finding, while a ๐ŸŸข one is scored like any other. Valid while one human sets the bar and reads the ranking, and while the items marked `principle` stay few enough to rank. +2026-10-02, lilleman. Serves goal 4: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `CLAUDE.md` โ†’ "Todo items" says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's Round cap rule 5 counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 4.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`, because its audience value scores low and the bar would drop every one. A ๐ŸŸข against a principle is scored like any other finding. Valid while one human sets the bar and reads the ranking, and while the items marked `principle` stay few enough to rank. -- 2.52.0 From 5699eb931f53e71edf5dd5ef6dc54cd1a50ac748 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:11:59 +0200 Subject: [PATCH 8/9] Say in the changelog that another Exempt reason comes first --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aae023d7..a2d9582b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- larv-review marks each `todo.md` item filed from a ๐ŸŸก finding against `~/.claude/principles/` with the Exempt reason `principle`, which keeps it whatever its score. +- larv-review marks each `todo.md` item filed from a ๐ŸŸก finding against `~/.claude/principles/` with the Exempt reason `principle` unless another reason fits, which keeps it whatever its score. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. -- 2.52.0 From c42e6fe18f8ebe801e119d13e119b3eef5b72b6c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 01:12:06 +0200 Subject: [PATCH 9/9] Put the changelog's condition first --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2d9582b..f4602db7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- larv-review marks each `todo.md` item filed from a ๐ŸŸก finding against `~/.claude/principles/` with the Exempt reason `principle` unless another reason fits, which keeps it whatever its score. +- Unless another Exempt reason fits, larv-review marks a `todo.md` item filed from a ๐ŸŸก finding against `~/.claude/principles/` with `principle`, an Exempt reason that keeps it whatever its score. - `loop-claude` waits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due. - Add the official plugin marketplace and install every plugin `settings.json` enables (README โ†’ Install): `claude-security`, `code-review` and `rust-analyzer-lsp`, which needs `rust-analyzer` on `PATH` for Rust projects. With `claude-security`, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run. `settings.json` silences the plugin's scan tip after `git push`. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools. -- 2.52.0