diff --git a/AGENTS.md b/AGENTS.md index 062e2d18..c0cb7139 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,4 +30,4 @@ Decisions live in `docs/decisions.md`: - rebuild: rebuild's larv-review reviews a chunk into `rebuild` - review: an ask no user answers leaves the PR unmerged - review: the architecture pass audits every principle and goal over the whole project, and a release's last chunk fires it -- loop-claude: an unattended worker bypasses permissions inside its sandbox +- loop-claude: every claude it starts bypasses permissions inside its sandbox diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb19b6d..155beca6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- 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. - `settings.json`, the agents and the status line run on any machine unedited; the status line shows reset times in the machine's own time zone. - `loop-claude`'s no-premises exit names what is wrong: `README.md` unopenable or not UTF-8, a `## Goals` or `## Audience` heading missing or repeated, or nothing under one. diff --git a/README.md b/README.md index ff56b5a3..9e3cdb2f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,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 the tool onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. +Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`. Link the tool onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run it 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/docs/decisions.md b/docs/decisions.md index 3707f1b5..cbd3c56e 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -104,6 +104,6 @@ 2026-09-30, lilleman. Serves goal 4: `@larvit/log`'s chunks each passed their per-diff reviewers, and a whole-project audit that day still found its functional core and state machines not followed and two semver breaks planned; what grows over many chunks shows in no diff. Valid while the other passes review a diff. -## loop-claude: an unattended worker bypasses permissions inside its sandbox +## loop-claude: every claude it starts bypasses permissions inside its sandbox -2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox `loop-claude` runs in is where access is granted, so the worker and the interrupt run with `bypassPermissions`. The worker may read `~/.claude/.credentials.json`: it holds Claude Code's own credentials, which claude reads to run anyway. Valid while `loop-claude` runs only inside a sandbox; `todo.md`'s "Name the sandbox `loop-claude` runs in" makes that checkable. +2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox `loop-claude` runs in is where access is granted, so the worker and the interrupt run with `bypassPermissions`. The worker may read `~/.claude/.credentials.json`: it holds Claude Code's own credentials, which claude reads to run anyway. Its one seam to production is the forge: what it pushes or merges can publish through CI. Valid while `loop-claude` runs only in the sandbox README → Install names. diff --git a/todo.md b/todo.md index b4d0a90e..b6f69d57 100644 --- a/todo.md +++ b/todo.md @@ -36,4 +36,3 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens - **Archive the transcript as each cycle ends, so a failed exit or Ctrl-C loses nothing.** Today only an interrupt or a finish archives, against goal 2. - **Key a project on its checkout's full path — its session, archive folder and models entry — and refuse to start while another session on that id is active.** `checkout.py:22` drops the leading `/`, so `~/code/a` and `/a` share a session, an archive folder and a models entry, and one loop can resume or delete the other's session. - **Move what `loop-claude` writes out of `~/.claude.json`, and bring each case that must stay to the human.** Claude Code owns and writes that file, and `trust`'s read-modify-write loses a write landing in its window. -- **Name the sandbox `loop-claude` runs in under README → Install.** The decision letting the worker bypass permissions rests on it, and nothing says what it is.