Make the security pass and stability-reviewer check a new secret's docs for its reach #750

Merged
lilleman merged 7 commits from item-523 into main 2026-11-27 20:26:31 +01:00
5 changed files with 68 additions and 5 deletions
+1
View File
@@ -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.
+1
View File
@@ -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 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.
+64
View File
@@ -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
View File
@@ -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 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.
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.
-5
View File
@@ -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.