From 76eb0c77b91d9ea3449c88843ed644db64f1a9ff Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 22:13:32 +0200 Subject: [PATCH 1/5] Test that .gitignore keeps private files out, fence the reviewers to reading, and enable the full security scan --- CHANGELOG.md | 2 ++ agents/product-owner-reviewer.md | 1 + agents/stability-reviewer.md | 1 + agents/systems-architect.md | 1 + bin/test_gitignore.py | 23 +++++++++++++++++++++++ settings.json | 1 + skills/larv-review/SKILL.md | 4 +++- todo.md | 22 ++-------------------- 8 files changed, 34 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38eda22f..828fdcde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- larv-review's full security scan runs: `settings.json` enables the `claude-security` plugin. +- systems-architect, product-owner-reviewer and stability-reviewer can no longer edit what they review, and larv-review hands a reviewer without a shell the branch diff and the list of tracked files. - Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file. - Run `loop-claude` only in a sandbox with no direct access to production: every claude it starts skips every permission prompt. - First release: `README.md` states what the checkout holds and needs, `loop-claude --help` what `loop-claude` does. diff --git a/agents/product-owner-reviewer.md b/agents/product-owner-reviewer.md index c20dc83c..1b53f63f 100644 --- a/agents/product-owner-reviewer.md +++ b/agents/product-owner-reviewer.md @@ -1,6 +1,7 @@ --- name: "product-owner-reviewer" description: "Use this agent when you need a product-focused review of changes that affect external-facing surfaces (REST APIs, web UIs, CLI commands, public SDKs, webhooks, etc.) from an end-customer perspective. This agent evaluates ease of use, edge cases, persona fit, and reasonableness of usage paths — not internal implementation details unless they leak into the external experience. Invoke after a feature, endpoint, UI flow, or CLI command has been drafted or modified, or before opening a PR that changes user-facing behavior.\\n\\n\\nContext: The developer just added a new REST endpoint for cancelling a subscription.\\nuser: \"I've added a DELETE /v4/subscriptions/{id} endpoint that cancels a subscription immediately.\"\\nassistant: \"Let me launch the product-owner-reviewer agent to evaluate this from an end-customer perspective.\"\\n\\nA new external API surface was introduced. Use the Agent tool to launch product-owner-reviewer to check personas, edge cases (already cancelled? pending invoices? refund expectations?), and usability of the contract.\\n\\n\\n\\n\\nContext: The developer added a new CLI subcommand.\\nuser: \"Added `mytool deploy --env prod --force` to skip confirmation.\"\\nassistant: \"I'll use the Agent tool to launch the product-owner-reviewer agent to review the CLI ergonomics and edge cases.\"\\n\\nCLI usage is an external surface. The product-owner-reviewer should evaluate persona fit (who uses --force? is it discoverable? what happens on partial failure?).\\n\\n\\n\\n\\nContext: The developer modified a checkout flow in the web UI.\\nuser: \"I changed the checkout to require email verification before payment.\"\\nassistant: \"Let me launch the product-owner-reviewer agent to review this user-facing change.\"\\n\\nWeb UI flow change directly affects end customers. Use product-owner-reviewer to assess friction, error states, recovery paths, and whether the change makes sense for the documented personas.\\n\\n" +tools: Read, Grep, Glob --- You are a seasoned Product Owner with deep expertise in user experience, API design, and customer empathy. You have shipped consumer and B2B products across web, mobile, REST APIs, and developer-facing CLIs. Your superpower is putting yourself in the end customer's shoes and surfacing the friction, confusion, and edge cases that engineers tend to miss. diff --git a/agents/stability-reviewer.md b/agents/stability-reviewer.md index 555fd386..659d5316 100644 --- a/agents/stability-reviewer.md +++ b/agents/stability-reviewer.md @@ -2,6 +2,7 @@ name: "stability-reviewer" description: "Use this agent when code has been written or modified and needs review for stability, bug prevention, and adherence to coding best practices. This includes after implementing new features, refactoring existing code, or fixing bugs. The agent focuses on defensive programming, error handling, edge cases, and compliance with the project's technical principles.\\n\\nExamples:\\n\\n- user: \"Please implement a retry mechanism for our API client\"\\n assistant: \"Here is the retry mechanism implementation: [code written]\"\\n Since significant code was written, use the Agent tool to launch the stability-reviewer agent to review the new code for stability and best practices.\\n assistant: \"Now let me use the stability-reviewer agent to review this implementation for stability concerns.\"\\n\\n- user: \"Refactor the payment processing module to use the new gateway\"\\n assistant: \"I've refactored the payment processing module. Let me now use the Agent tool to launch the stability-reviewer agent to check for any stability issues or violations of our technical principles.\"\\n\\n- user: \"Can you review what I just wrote?\"\\n assistant: \"I'll use the Agent tool to launch the stability-reviewer agent to thoroughly review your recent changes.\"\\n\\n- After any significant code change, proactively launch the stability-reviewer agent to catch issues before they reach production." color: orange +tools: Bash, Read, Grep, Glob --- You are an elite stability-focused code reviewer with deep expertise in defensive programming, fault-tolerant system design, and production incident prevention. You have decades of experience identifying subtle bugs, race conditions, edge cases, and architectural weaknesses that lead to outages and unexpected behavior. You think like a chaos engineer — always asking "what could go wrong?" — and like a maintainer of ten years, always asking "what will this cost to live with?" There are no bugs, and no security holes, in code that doesn't exist. diff --git a/agents/systems-architect.md b/agents/systems-architect.md index 2ce6979c..93bdb44f 100644 --- a/agents/systems-architect.md +++ b/agents/systems-architect.md @@ -1,6 +1,7 @@ --- name: systems-architect description: "Use this agent when designing new systems, planning major features, reviewing architectural decisions in PRs, or evaluating the high-level structure of a codebase. It runs as a periodic, deliberate alignment review — not a per-PR reviewer; the stability-reviewer is the per-PR, code-level companion. This agent focuses on architectural patterns (functional core/imperative shell), the external contract with consumers, component boundaries, internal API design, testability seams and verification strategy (never individual tests), delivery strategy (merge gate with tests and static analysis, deployment path, dependency automation — as architecture, never pipeline configs or lint rules), naming, file system organization, the simplicity and reasonability of the core (questioning unjustified duplication and accidental complexity, demanding a stated reason for every repeated or complex structure), quantitative fits-in-your-head guardrails (per Code That Fits in Your Head), simpler near-equivalent solutions (trading a small, named behavior delta for a large complexity reduction), and long-term maintainability rather than implementation details. It also evaluates fitness for purpose — whether the chosen language, frameworks, and overall solution approach are the best fit for the project's goals and priorities — and treats missing or contradictory goals, priorities, audience, problem statement, scale and horizon, or domain vocabulary as the first thing to fix. It should be used proactively when starting new projects or significant new subsystems, and when reviewing PRs that introduce new architectural patterns or restructure existing ones.\\n\\n\\nContext: The user is starting a new project and needs architectural guidance before writing code.\\nuser: \"I'm building a service that ingests events from multiple sources, deduplicates them, and forwards them to downstream systems.\"\\nassistant: \"Before we start implementing, let me use the Agent tool to launch the systems-architect agent to design the high-level architecture and data flows.\"\\n\\nA new project is being started — use the systems-architect agent to deliberately design the architecture before any code is written.\\n\\n\\n\\n\\nContext: A PR has been opened that introduces a new module or restructures existing components.\\nuser: \"Here's the PR for the new payment processing subsystem: #4521\"\\nassistant: \"I'll use the Agent tool to launch the systems-architect agent to review the high-level architecture and component boundaries in this PR.\"\\n\\nA PR introduces a new subsystem — the systems-architect agent should review architectural choices, not line-level details.\\n\\n\\n\\n\\nContext: The user is adding a significant new feature that crosses multiple components.\\nuser: \"We need to add real-time notifications across the web app, mobile app, and email.\"\\nassistant: \"This crosses several system boundaries. Let me use the Agent tool to launch the systems-architect agent to design how this should fit into the existing architecture.\"\\n\\nA feature crossing multiple components needs deliberate architectural design — use the systems-architect agent proactively.\\n\\n\\n\\n\\nContext: The user asks for an architecture review but the project has no clearly stated goals or priorities.\\nuser: \"Can you review the architecture of our new sync service?\"\\nassistant: \"I'll use the Agent tool to launch the systems-architect agent. Because fitness-for-purpose depends on goals, it will first pin down the project's goals and priorities, then judge whether the language, frameworks, and approach actually serve them.\"\\n\\nJudging whether an implementation is the best one requires explicit goals and priorities — the systems-architect agent drafts the missing goals and priorities and asks the user to confirm them before evaluating fitness.\\n\\n" +tools: Read, Grep, Glob, WebFetch, WebSearch --- You are an elite Systems Architect with decades of experience designing software systems that endure for as long as their horizon demands. Your philosophy is uncompromising on fundamentals: clarity, simplicity, and deliberate structural choices trump short-term convenience every time. You design systems people will read, understand, and extend for their whole recorded lifetime. diff --git a/bin/test_gitignore.py b/bin/test_gitignore.py index 42f730e3..45a8d4c9 100644 --- a/bin/test_gitignore.py +++ b/bin/test_gitignore.py @@ -3,8 +3,31 @@ import unittest from test_python_floor import ROOT +PRIVATE = [ + ".credentials.json", + "auto-mode-transcripts/a.jsonl", + "daemon-auth-status.json", + "debug/a.txt", + "file-history/a/b.md", + "history.jsonl", + "loop-claude-transcripts/a/b.jsonl", + "memory/MEMORY.md", + "paste-cache/a.txt", + "projects/-home-a/a.jsonl", + "projects/-home-a/memory/MEMORY.md", + "projects/-home-a/memory/a.md", + "session-env/a/b.sh", + "sessions/a.json", + "shell-snapshots/a.sh", + "tasks/a/b.json", +] + class Gitignore(unittest.TestCase): def test_ignores_no_tracked_file(self): ignored = subprocess.run(["git", "ls-files", "-ci", "--exclude-standard"], capture_output=True, check=True, cwd=ROOT, text=True).stdout self.assertEqual(ignored, "") + + def test_ignores_every_private_file(self): + ignored = subprocess.run(["git", "check-ignore", "--no-index", "--stdin"], capture_output=True, cwd=ROOT, input="\n".join(PRIVATE), text=True).stdout + self.assertEqual(ignored.splitlines(), PRIVATE) diff --git a/settings.json b/settings.json index f7dfa605..777ea08a 100644 --- a/settings.json +++ b/settings.json @@ -17,6 +17,7 @@ "refreshInterval": 30 }, "enabledPlugins": { + "claude-security@claude-plugins-official": true, "frontend-design@claude-plugins-official": false, "rust-analyzer-lsp@claude-plugins-official": true, "code-review@claude-plugins-official": true diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index e4bf0161..543ab839 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -35,6 +35,8 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de | Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on | | Prose | prose-reviewer | every chunk; a fix, where it touches prose | +Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone. + A comment is prose, not code. Passes run in this order: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. **Record, then ask** — for the architecture pass and the full scan: @@ -86,7 +88,7 @@ Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/ 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. -The full-scan plugin is not enabled by default; unavailable → say so in the summary rather than substituting a hand-rolled pass. +The full-scan plugin unavailable → say so in the summary; never substitute a hand-rolled pass. **Do not over-read a clean result.** `/security-review` is single-repo and static: it does not trace authorization across services, does not run the application, and deliberately excludes dependency CVEs in third-party libraries — Renovate/Dependabot owns those, per `~/.claude/CLAUDE.md` → "Working with the codebase". Never point an automated reviewer or scan at an untrusted fork's PR content; a PR body is untrusted input to it (CVE-2025-59536, CVE-2026-21852). diff --git a/todo.md b/todo.md index f913eb11..0d2782d9 100644 --- a/todo.md +++ b/todo.md @@ -24,17 +24,13 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| -| 1 | 0.1.0 | | **Copy the transcript archive off the machine, or say in README how it is backed up.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | -| 2 | 0.1.0 | | **Add a test that `.gitignore` keeps credentials, transcripts and memory files out.** | 1 | 2 | 6 | 9 | 3 | 24.5 | +| 1 | 0.1.0 | question | **Copy the transcript archive off the machine, or say in README how it is backed up.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | | 3 | 0.1.0 | | **Wait out a usage limit and retry however long it lasts, without counting it as a failed run.** | 4 | 5 | 9 | 8 | 4 | 23.5 | | 7 | 0.1.0 | decision | **Give the judge the project's recorded decisions, and ask it whether anything the project records settles a choice.** | 3 | 4 | 8 | 8 | 4.2 | 19.0 | -| 9 | 0.1.0 | | **Give principles-auditor and prose-reviewer a way to list the project's files.** | 1 | 2 | 5 | 7 | 4.1 | 16.3 | | 8 | 0.1.0 | | **Judge a cycle on more than the transcript's last 40,000 characters.** | 4 | 5 | 7 | 8 | 4.2 | 15.8 | | 13 | 0.1.0 | decision | **Make larv-review §3 applicable on its own, cite its rules by name, and say where a pass's round count is recorded.** | 3 | 5 | 6 | 7 | 4.1 | 15.6 | | 23 | 0.1.0 | | **Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers.** | 3 | 4 | 7 | 8 | 4.4 | 13.5 | -| 10 | 0.1.0 | | **Give the reviewer agents only the tools they need.** | 1 | 1 | 4 | 6 | 4.1 | 13.5 | | 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 4.3 | 12.9 | -| 20 | 0.1.0 | | **Enable the `claude-security` plugin in `settings.json`, or drop larv-review's full-scan row.** | 1 | 1 | 4 | 5 | 4.1 | 12.4 | | 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 | | 35 | 0.1.0 | question | **Decide whether each project's model choice syncs between machines, so a new machine does not ask again.** | 3 | 3 | 5 | 6 | 4.2 | 11.5 | | 5 | 0.1.0 | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 5 | 5 | 5 | 6 | 4.1 | 10.5 | @@ -49,9 +45,7 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. -### 2. Add a test that `.gitignore` keeps credentials, transcripts and memory files out. - -`test_gitignore.py` checks only that every tracked file is allowlisted; a widened negation such as `!*.json` would un-ignore `.credentials.json`. +Question for the human: which destination meets that bar? ### 3. Wait out a usage limit and retry however long it lasts, without counting it as a failed run. @@ -61,10 +55,6 @@ Today a worker or judge that hits a usage limit fails three times a minute apart Today it reads only the README's Goals and Audience (`premises.py`) and cannot see an answer recorded in `docs/decisions.md` or `AGENTS.md`, so it can interrupt the human again for a question already answered. Revise the decision "loop-claude: a judge decides each interrupt from the transcript and the README's premises; the worker's own account of which goal settles a choice decides nothing" to match. -### 9. Give principles-auditor and prose-reviewer a way to list the project's files. - -In the 2026-09-30 audit run their `tools: Read, Grep, Glob` gave them only Read. Each read the files that imports and `.gitignore` named, and listed the files it could not reach. - ### 8. Judge a cycle on more than the transcript's last 40,000 characters. `judge_prompt` cuts the transcript there. The session spans every cycle of the chunk, so a decision made early in a long run is never judged, and the human is not interrupted for it. Larger chunks make runs longer. @@ -77,18 +67,10 @@ Applying one rule of "Round cap", "Re-entry" or "Findings" takes `review-finding On this repo the frontend, REST and logging auditors each read the whole project to report "does not apply", and one 🟢 fix reruns ten whole-project reads. -### 10. Give the reviewer agents only the tools they need. - -`systems-architect.md`, `product-owner-reviewer.md` and `stability-reviewer.md` have no `tools:` line, so each can edit the branch it reviews; `review-findings.md` says a reviewer edits nothing. - ### 21. Give `settings.json`'s model one writer, and sort its keys. Claude Code rewrites `"model"` in this tracked file whenever a model is picked, so one `/model` dirties the checkout and overrides the synced choice. -### 20. Enable the `claude-security` plugin in `settings.json`, or drop larv-review's full-scan row. - -No machine has it enabled, so every chunk that fires the pass skips it. - ### 12. Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough. The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word. -- 2.52.0 From eb54a58656563d73bcccaad7fe59432ae383ab5e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 22:18:44 +0200 Subject: [PATCH 2/5] Answer the first round: credential paths in the test, the plugin's install and headless request, true changelog lines --- CHANGELOG.md | 4 ++-- README.md | 2 +- bin/test_gitignore.py | 5 +++++ settings.json | 3 +++ skills/larv-review/SKILL.md | 8 ++++---- todo.md | 2 +- 6 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 828fdcde..02a53362 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,8 @@ ## Unreleased -- larv-review's full security scan runs: `settings.json` enables the `claude-security` plugin. -- systems-architect, product-owner-reviewer and stability-reviewer can no longer edit what they review, and larv-review hands a reviewer without a shell the branch diff and the list of tracked files. +- Install the `claude-security` plugin (README → Install): larv-review's full security scan now runs on a chunk that touches secrets, auth or an external surface. `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. - Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file. - Run `loop-claude` only in a sandbox with no direct access to production: every claude it starts skips every permission prompt. - First release: `README.md` states what the checkout holds and needs, `loop-claude --help` what `loop-claude` does. diff --git a/README.md b/README.md index 1d415ab6..366bab1a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt. +Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Install the full-scan plugin larv-review runs: `claude plugin install claude-security@claude-plugins-official`. Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt. ## Release diff --git a/bin/test_gitignore.py b/bin/test_gitignore.py index 45a8d4c9..6f55c08b 100644 --- a/bin/test_gitignore.py +++ b/bin/test_gitignore.py @@ -4,12 +4,17 @@ import unittest from test_python_floor import ROOT PRIVATE = [ + ".claude/settings.local.json", ".credentials.json", "auto-mode-transcripts/a.jsonl", + "backups/.claude.json.backup.1", "daemon-auth-status.json", + "daemon.log", + "daemon/control.key", "debug/a.txt", "file-history/a/b.md", "history.jsonl", + "jobs/a/b.json", "loop-claude-transcripts/a/b.jsonl", "memory/MEMORY.md", "paste-cache/a.txt", diff --git a/settings.json b/settings.json index 777ea08a..109d4048 100644 --- a/settings.json +++ b/settings.json @@ -22,6 +22,9 @@ "rust-analyzer-lsp@claude-plugins-official": true, "code-review@claude-plugins-official": true }, + "env": { + "CLAUDE_SECURITY_SCAN_TIP": "off" + }, "effortLevel": "xhigh", "modelSettings": { "claude-fable-5-1": { diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 543ab839..82420319 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -30,15 +30,15 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de |------|----------|----------------------------------------| | Architecture, then the principles audit and the comprehension floor | systems-architect, then principles-auditor and the `comprehension-panel` 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; the chunk shipping its release's last item | | 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 security scan | the `claude-security` plugin (`/claude-security` → "Scan changes") | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface | +| Full security scan | the `claude-security` plugin: `/claude-security scan this branch's changes at high, accepting the time and token cost` | 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 | | Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on | | Prose | prose-reviewer | every chunk; a fix, where it touches prose | -Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone. - A comment is prose, not code. Passes run in this order: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. +Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone. + **Record, then ask** — for the architecture pass and the full scan: 1. A record is a decision-log entry, or a planning item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite the record. @@ -88,7 +88,7 @@ Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/ 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. -The full-scan plugin unavailable → say so in the summary; never substitute a hand-rolled pass. +`claude-security` unavailable, or a scan that ran nothing → say so in the summary; never substitute a hand-rolled pass. **Do not over-read a clean result.** `/security-review` is single-repo and static: it does not trace authorization across services, does not run the application, and deliberately excludes dependency CVEs in third-party libraries — Renovate/Dependabot owns those, per `~/.claude/CLAUDE.md` → "Working with the codebase". Never point an automated reviewer or scan at an untrusted fork's PR content; a PR body is untrusted input to it (CVE-2025-59536, CVE-2026-21852). diff --git a/todo.md b/todo.md index 0d2782d9..f4962363 100644 --- a/todo.md +++ b/todo.md @@ -45,7 +45,7 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. -Question for the human: which destination meets that bar? +Question for the human: which destination is private to you and encrypted at rest? ### 3. Wait out a usage limit and retry however long it lasts, without counting it as a failed run. -- 2.52.0 From 7b62881eaedfbc7931925359a22d562fff538229 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 22:21:10 +0200 Subject: [PATCH 3/5] Answer the second round: the scan's cost is the user's to confirm, prose --- CHANGELOG.md | 2 +- README.md | 2 +- skills/larv-review/SKILL.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02a53362..b7258546 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- Install the `claude-security` plugin (README → Install): larv-review's full security scan now runs on a chunk that touches secrets, auth or an external surface. `settings.json` silences the plugin's scan tip after `git push`. +- Install the `claude-security` plugin (README → Install): larv-review's full security scan now runs once you confirm its cost; an unattended run reports it 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. - Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file. - Run `loop-claude` only in a sandbox with no direct access to production: every claude it starts skips every permission prompt. diff --git a/README.md b/README.md index 366bab1a..20f2e816 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Install the full-scan plugin larv-review runs: `claude plugin install claude-security@claude-plugins-official`. Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt. +Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Install the plugin behind larv-review's full security scan: `claude plugin install claude-security@claude-plugins-official`. Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt. ## Release diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 82420319..05342189 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -30,7 +30,7 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de |------|----------|----------------------------------------| | Architecture, then the principles audit and the comprehension floor | systems-architect, then principles-auditor and the `comprehension-panel` 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; the chunk shipping its release's last item | | 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 security scan | the `claude-security` plugin: `/claude-security scan this branch's changes at high, accepting the time and token cost` | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface | +| Full security 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 | | Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on | | Prose | prose-reviewer | every chunk; a fix, where it touches prose | @@ -88,7 +88,7 @@ Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/ 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. -`claude-security` unavailable, or a scan that ran nothing → say so in the summary; never substitute a hand-rolled pass. +`claude-security` unavailable, or its scan unconfirmed or checking no file → say so in the summary; never substitute a hand-rolled pass. **Do not over-read a clean result.** `/security-review` is single-repo and static: it does not trace authorization across services, does not run the application, and deliberately excludes dependency CVEs in third-party libraries — Renovate/Dependabot owns those, per `~/.claude/CLAUDE.md` → "Working with the codebase". Never point an automated reviewer or scan at an untrusted fork's PR content; a PR body is untrusted input to it (CVE-2025-59536, CVE-2026-21852). -- 2.52.0 From e1ea066e12b22902e82b8ec782cb2bbafb67b38e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 22:36:38 +0200 Subject: [PATCH 4/5] Answer the third round: say who confirms the scan's cost; record the backup answer on item 1; file item 36 --- CHANGELOG.md | 2 +- skills/larv-review/SKILL.md | 2 +- todo.md | 13 +++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7258546..d75f1bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- Install the `claude-security` plugin (README → Install): larv-review's full security scan now runs once you confirm its cost; an unattended run reports it as not run. `settings.json` silences the plugin's scan tip after `git push`. +- Install the `claude-security` plugin (README → Install): larv-review's full security scan now 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. - Every project's `todo.md` takes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why. `bin/rank_todo.py` ranks the table, and `rank_todo.py --help` shows a valid file. - Run `loop-claude` only in a sandbox with no direct access to production: every claude it starts skips every permission prompt. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 05342189..2ae6e941 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -88,7 +88,7 @@ Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/ 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. -`claude-security` unavailable, or its scan unconfirmed or checking no file → say so in the summary; never substitute a hand-rolled pass. +`claude-security` asks the user to confirm a scan's cost, and only the user may answer. The plugin unavailable, its cost prompt unanswered, or no file scanned → say so in the summary; never substitute a hand-rolled pass. **Do not over-read a clean result.** `/security-review` is single-repo and static: it does not trace authorization across services, does not run the application, and deliberately excludes dependency CVEs in third-party libraries — Renovate/Dependabot owns those, per `~/.claude/CLAUDE.md` → "Working with the codebase". Never point an automated reviewer or scan at an untrusted fork's PR content; a PR body is untrusted input to it (CVE-2025-59536, CVE-2026-21852). diff --git a/todo.md b/todo.md index f4962363..14140759 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 36` +`Next ID = 37` | Goal | W | |---|---| @@ -24,13 +24,14 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| -| 1 | 0.1.0 | question | **Copy the transcript archive off the machine, or say in README how it is backed up.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | +| 1 | 0.1.0 | | **Say in README → Install that bender-infra backs up the transcript archive, once ai-sandbox runs on the data volume it backs up.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | | 3 | 0.1.0 | | **Wait out a usage limit and retry however long it lasts, without counting it as a failed run.** | 4 | 5 | 9 | 8 | 4 | 23.5 | | 7 | 0.1.0 | decision | **Give the judge the project's recorded decisions, and ask it whether anything the project records settles a choice.** | 3 | 4 | 8 | 8 | 4.2 | 19.0 | | 8 | 0.1.0 | | **Judge a cycle on more than the transcript's last 40,000 characters.** | 4 | 5 | 7 | 8 | 4.2 | 15.8 | | 13 | 0.1.0 | decision | **Make larv-review §3 applicable on its own, cite its rules by name, and say where a pass's round count is recorded.** | 3 | 5 | 6 | 7 | 4.1 | 15.6 | | 23 | 0.1.0 | | **Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers.** | 3 | 4 | 7 | 8 | 4.4 | 13.5 | | 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 4.3 | 12.9 | +| 36 | 0.1.0 | | **Ask the user once before a full security scan, folding larv-review's ask into the plugin's cost prompt.** | 2 | 2 | 5 | 5 | 4.2 | 11.9 | | 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 | | 35 | 0.1.0 | question | **Decide whether each project's model choice syncs between machines, so a new machine does not ask again.** | 3 | 3 | 5 | 6 | 4.2 | 11.5 | | 5 | 0.1.0 | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 5 | 5 | 5 | 6 | 4.1 | 10.5 | @@ -41,11 +42,11 @@ ## Details -### 1. Copy the transcript archive off the machine, or say in README how it is backed up. +### 1. Say in README → Install that bender-infra backs up the transcript archive, once ai-sandbox runs on the data volume it backs up. It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. -Question for the human: which destination is private to you and encrypted at rest? +2026-10-02, the human: bender-infra will back up the data volume ai-sandbox runs on, once ai-sandbox is rebuilt. Until then the README claim would be false; before writing it, check that the rebuild has landed, that `~/.claude` lives on that volume, and that the backup is private and encrypted at rest. ### 3. Wait out a usage limit and retry however long it lasts, without counting it as a failed run. @@ -71,6 +72,10 @@ On this repo the frontend, REST and logging auditors each read the whole project Claude Code rewrites `"model"` in this tracked file whenever a model is picked, so one `/model` dirties the checkout and overrides the synced choice. +### 36. Ask the user once before a full security scan, folding larv-review's ask into the plugin's cost prompt. + +When the full scan fires, "Record, then ask" rule 3 asks whether to run it, and `claude-security` then asks the user to confirm its cost. Found by PR #197's product-owner pass. + ### 12. Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough. The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word. -- 2.52.0 From 2f9812dc5824eacd9acb79a822c4be4b11564432 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 22:39:29 +0200 Subject: [PATCH 5/5] Answer the fourth prose round: item 1 names each machine's role and waits on the rebuild --- todo.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/todo.md b/todo.md index 14140759..9f8e800c 100644 --- a/todo.md +++ b/todo.md @@ -24,7 +24,7 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| -| 1 | 0.1.0 | | **Say in README → Install that bender-infra backs up the transcript archive, once ai-sandbox runs on the data volume it backs up.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | +| 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 | | 3 | 0.1.0 | | **Wait out a usage limit and retry however long it lasts, without counting it as a failed run.** | 4 | 5 | 9 | 8 | 4 | 23.5 | | 7 | 0.1.0 | decision | **Give the judge the project's recorded decisions, and ask it whether anything the project records settles a choice.** | 3 | 4 | 8 | 8 | 4.2 | 19.0 | | 8 | 0.1.0 | | **Judge a cycle on more than the transcript's last 40,000 characters.** | 4 | 5 | 7 | 8 | 4.2 | 15.8 | @@ -42,11 +42,11 @@ ## Details -### 1. Say in README → Install that bender-infra backs up the transcript archive, once ai-sandbox runs on the data volume it backs up. +### 1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. -2026-10-02, the human: bender-infra will back up the data volume ai-sandbox runs on, once ai-sandbox is rebuilt. Until then the README claim would be false; before writing it, check that the rebuild has landed, that `~/.claude` lives on that volume, and that the backup is private and encrypted at rest. +2026-10-02, the human: ai-sandbox is the VM `loop-claude` will run on, hosted on the server bender. bender-infra, the infrastructure-as-code project that manages bender, will back up ai-sandbox's data volume once ai-sandbox is rebuilt. The item waits for the human to say the rebuild has landed. Before writing the README line, check that `~/.claude` lives on that volume and that the backup is private and encrypted at rest. ### 3. Wait out a usage limit and retry however long it lasts, without counting it as a failed run. @@ -74,7 +74,7 @@ Claude Code rewrites `"model"` in this tracked file whenever a model is picked, ### 36. Ask the user once before a full security scan, folding larv-review's ask into the plugin's cost prompt. -When the full scan fires, "Record, then ask" rule 3 asks whether to run it, and `claude-security` then asks the user to confirm its cost. Found by PR #197's product-owner pass. +When the full scan fires, "Record, then ask" rule 3 asks whether to run it, and `claude-security` then asks the user to confirm its cost. ### 12. Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough. -- 2.52.0