From 5076d7f06fa953ea2033a0ddb9817d63144f6c40 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 30 Sep 2026 23:41:23 +0200 Subject: [PATCH] Name the sandbox loop-claude runs in, and git as its seam to production --- README.md | 2 +- docs/decisions.md | 2 +- todo.md | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff56b5a3..a0a66b68 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: its worker skips every permission prompt. ## Release diff --git a/docs/decisions.md b/docs/decisions.md index 3707f1b5..1935d6bb 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -106,4 +106,4 @@ ## loop-claude: an unattended worker 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 git: what it pushes 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.