From af0bcc9cb96c14eda78aaf75ec88696b22ca4dbc Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 19:59:58 +0100 Subject: [PATCH 1/6] Make the security pass and stability-reviewer check a new secret's docs for its reach --- agents/stability-reviewer.md | 1 + skills/larv-review/SKILL.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index f101df8e..b82bd514 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -112,6 +112,7 @@ Every PR gets at least this sweep. - Injection: SQL via raw/concatenated queries, shell/command, XSS via unescaped output. - Does every new read and write path authorize access? - Secrets: none hardcoded; none leaked into logs, error responses, or stack traces; PII sanitized before logging. +- A new secret or token: the doc beside it states what the credential can reach, such as the other repositories or tenants its owning account can use, not only what the change uses it for. A doc that says "nothing wider" without naming the account's reach is 🟡. - Mass assignment/over-posting on model-bound input; uploaded files and paths validated (traversal); user-supplied URLs constrained (SSRF). - Crypto: vetted primitives only, constant-time comparison for secrets, CSPRNG for tokens. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 33a64fd9..82e0b88a 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -206,6 +206,8 @@ The comprehension check records how hard the project is for its contributor to r `/security-review` over the branch diff is the pass of record, except where the full scan runs on the same change and replaces it. Where the full scan fires but does not run — skipped on a precedent, declined at its cost prompt, or unavailable — `/security-review` runs. Launch a general-purpose subagent that invokes it through the Skill tool, doesn't edit anything, and replies with the skill's report, or that the skill is unavailable. Invoked in your own context, the skill ends your turn on that report. Open this subagent's prompt, and that of any subagent that runs the full scan, with `You are the security pass for this chunk.`: rule-hook reads that sentence as a security launch. +Where the diff adds a secret or a token, end the prompt by asking the subagent to also check that the doc beside it names what the credential can reach, such as the other repositories its account can use, not only what the change uses it for, and to report a gap as a finding beside the skill's report. + A verified HIGH inside this chunk's blast radius is fixed here, outside it on its own branch and PR with this chunk waiting behind it. Say which. Only the user may answer `claude-security`'s cost prompt. `/security-review` or `claude-security` unavailable, the plugin's cost prompt unanswered, or no file scanned → say so in the summary; never substitute a hand-rolled pass. -- 2.52.0 From bef52a1439b8833cac92e86c6bc3193bcf6a18c4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 19:59:58 +0100 Subject: [PATCH 2/6] Record the reading cost of the latest chunks --- docs/reading-cost.md | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index aadcccc3..086697c5 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -3741,3 +3741,67 @@ Read most (opens and searches): - `skills/larv-review/SKILL.md` 2 - `agents/product-owner-reviewer.md` 1 - `agents/prose-reviewer.md` 1 + +## Reading cost, chunk c5ea6bdee1e7, finished 2026-11-27T15:18:08Z + +76314 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/chunk_pr/main.py` 12 +- `bin/chunk_pr/test_chunk_pr.py` 10 +- `bin/forge/pulls.py` 3 +- `skills/larv-review/SKILL.md` 3 +- `README.md` 2 +- `docs/decisions.md` 2 + +## Reading cost, chunk a047df083958, finished 2026-11-27T15:27:16Z + +90056 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/chunk_preflight/main.py` 9 +- `bin/chunk_preflight/test_chunk_preflight.py` 6 +- `README.md` 3 +- `principles/technical-principles.md` 3 +- `bin/chunk_preflight/facts.py` 2 +- `bin/chunk_preflight/gathered.py` 2 +- `bin/chunk_preflight/test_indentation.py` 1 +- `bin/git_cli/git_repo.py` 1 +- `bin/larv_review/scoring_setup.py` 1 +- `docs/decisions.md` 1 + +## Reading cost, chunk a1dcc662fffc, finished 2026-11-27T17:52:26Z + +93627 new input tokens before the first commit. + +Read most (opens and searches): + +- `bin/task_bench/test_task_bench.py` 10 +- `bin/task_bench/main.py` 9 +- `bin/task_bench/runs.py` 4 +- `bin/task_bench/rust_test_modules.py` 3 +- `CHANGELOG.md` 2 +- `bin/task_bench/tasks.py` 2 +- `bin/task_bench/test_rust_test_modules.py` 2 +- `README.md` 1 +- `bin/task_bench/features/shipped_features.py` 1 +- `docs/decisions.md` 1 + +## Reading cost, chunk 98395ef3dcc3, finished 2026-11-27T18:59:22Z + +59101 new input tokens before the first commit. + +Read most (opens and searches): + +- `skills/larv-review/SKILL.md` 6 +- `bin/forge/test_forge.py` 4 +- `README.md` 3 +- `bin/forge/commands.py` 2 +- `bin/forge/pulls.py` 2 +- `docs/decisions.md` 2 +- `CHANGELOG.md` 1 +- `bin/run-tests` 1 +- `ci.sh` 1 +- `todo.md` 1 -- 2.52.0 From 1f42774e5c7c54cc39aa88e03066a26a23b7aa23 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 20:09:56 +0100 Subject: [PATCH 3/6] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20name=20the?= =?UTF-8?q?=20full=20scan's=20prompt=20and=20a=20MEDIUM=20severity,=20and?= =?UTF-8?q?=20the=20reach=20rule's=20cases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/stability-reviewer.md | 2 +- skills/larv-review/SKILL.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index b82bd514..ac004e67 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -112,7 +112,7 @@ Every PR gets at least this sweep. - Injection: SQL via raw/concatenated queries, shell/command, XSS via unescaped output. - Does every new read and write path authorize access? - Secrets: none hardcoded; none leaked into logs, error responses, or stack traces; PII sanitized before logging. -- A new secret or token: the doc beside it states what the credential can reach, such as the other repositories or tenants its owning account can use, not only what the change uses it for. A doc that says "nothing wider" without naming the account's reach is 🟡. +- A new secret or token: the doc beside it names what the credential can reach, such as the other repositories or tenants its owning account can use, and not only what the change uses it for. A doc that names only the use, or claims "nothing wider" without the account's reach, is 🟡: someone grants the token on that claim. That the doc is missing counts only where this holds. - Mass assignment/over-posting on model-bound input; uploaded files and paths validated (traversal); user-supplied URLs constrained (SSRF). - Crypto: vetted primitives only, constant-time comparison for secrets, CSPRNG for tokens. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 82e0b88a..63a2d54d 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -206,7 +206,7 @@ The comprehension check records how hard the project is for its contributor to r `/security-review` over the branch diff is the pass of record, except where the full scan runs on the same change and replaces it. Where the full scan fires but does not run — skipped on a precedent, declined at its cost prompt, or unavailable — `/security-review` runs. Launch a general-purpose subagent that invokes it through the Skill tool, doesn't edit anything, and replies with the skill's report, or that the skill is unavailable. Invoked in your own context, the skill ends your turn on that report. Open this subagent's prompt, and that of any subagent that runs the full scan, with `You are the security pass for this chunk.`: rule-hook reads that sentence as a security launch. -Where the diff adds a secret or a token, end the prompt by asking the subagent to also check that the doc beside it names what the credential can reach, such as the other repositories its account can use, not only what the change uses it for, and to report a gap as a finding beside the skill's report. +Where the diff adds a secret or a token, end the prompt of each such subagent, the full scan's included, by asking it to check that the doc beside the secret names what the credential can reach, such as the other repositories or tenants its owning account can use, and not only what the change uses it for. A gap is a MEDIUM finding. A verified HIGH inside this chunk's blast radius is fixed here, outside it on its own branch and PR with this chunk waiting behind it. Say which. -- 2.52.0 From ada358fcba92af3857a2c1c86fe3f06bcc493f5c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 20:09:56 +0100 Subject: [PATCH 4/6] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20fixed=20in?= =?UTF-8?q?=20the=20stability=20round's=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 4278a4d1839eeb6e82826bdc60c2104db3e278b3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 20:09:56 +0100 Subject: [PATCH 5/6] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20no=20findin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 72a1c921bb3074e5163364958b16af503cc26d20 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 27 Nov 2026 20:18:22 +0100 Subject: [PATCH 6/6] Finish item 523 in the plan --- CHANGELOG.md | 1 + todo.md | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e74d5d82..ebdb0b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- larv-review's security pass and stability-reviewer now check that the doc beside a new secret or token names what the credential can reach, such as the other repositories its owning account can use, not only what the change uses it for. - `chunk-pr` and `chunk-preflight` find a Gitea pull request however many newer ones exist, so `chunk-pr clean` and `chunk-pr merge` no longer miss an old one. - task-bench leaves out of a fix a change Haiku makes to a Rust test kept in a file of its own, `#[cfg(test)] mod name;` and the file it names, and plants no bug in that file. - The technical principles ask code to read why a call failed from a status code, a documented exit code or a typed error, and not from message text. diff --git a/todo.md b/todo.md index cfba5def..45616d27 100644 --- a/todo.md +++ b/todo.md @@ -14,7 +14,6 @@ |---|---|---|---|---|---|---|---|---|---|---|---| | 477 | 0.17.0 | | question | **Rewrite `## Goals` and `## Audience` for a setup others install and run apart from their own `~/.claude`.** | 1 | 1 | 2 | 2 | 2 | | 0.0 | | 478 | 0.17.0 | | question | **Name the project, its repo and its two commands, today proposed as `do-release` and `do-epic`.** | 1 | 1 | 2 | 2 | 1 | | 0.0 | -| 523 | 0.17.0 | | | **Make the security pass and stability-reviewer check that a new secret's docs name its scope and its reach, such as the other repositories its account can use.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | | 553 | 0.17.0 | | | **Add to the technical principles that a function keeps a copy of what its caller passes, and that a limit counts every entry the code retains, empty ones too.** | 1 | 1 | 2 | 2 | 1 | 1.1 by 2 | 0.9 | | 545 | 0.17.0 | | | **Have chunk-preflight name each next-release item with no `Touches:` list while others wait, and have loop-claude launch a subagent that writes the lists before it starts the next chunk.** | 3 | 2 | 3 | 6 | 6 | 1.1 by 4 | 0.6 | | 544 | 0.17.0 | | | **Leave out of a `task-bench` fix a change Haiku makes to a PHP or JavaScript test that PHPUnit or `node --test` finds by a name `is_test` does not know.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 1 | 0.4 | @@ -116,10 +115,6 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. `do-release Part of the standalone-install plan lilleman approved on 2026-11-20. Later items say `do-release` and `do-epic` for the names this item picks. The names set the install folders, such as `~/.config/do-release/`, so items 482, 485 and 496, and every item they block, wait for them. -### 523. Make the security pass and stability-reviewer check that a new secret's docs name its scope and its reach, such as the other repositories its account can use. - -An outside reviewer found it on a client project's PR that added a secret: a Gitea token documented as able to run Actions on one repository, "and nothing wider". The token reaches every repository its owning account can, so the docs had to require a dedicated account with access to that repository only. Neither `/security-review` nor stability-reviewer raised it. Where a change adds a secret or a token, ask each to check that the doc beside it states what the credential can reach, not only what the change uses it for. - ### 553. Add to the technical principles that a function keeps a copy of what its caller passes, and that a limit counts every entry the code retains, empty ones too. An outside reviewer (CodeRabbit) found two faults on a client project's PR that neither stability-reviewer's two rounds nor the tests raised. -- 2.52.0