From 7265dd0dd75e859c2dca6d8cbd6b05766735f6f2 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 6 Dec 2026 16:23:31 +0100 Subject: [PATCH] File item 604: keep the signed-in account's claude.ai connectors out of every claude the loop starts --- todo.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/todo.md b/todo.md index d268132d..8faa72f3 100644 --- a/todo.md +++ b/todo.md @@ -6,12 +6,13 @@ `Bar = 0.1` -`Next ID = 604` +`Next ID = 605` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| +| 604 | 0.19.0 | | security | **Start every claude that build-release and build-epic run without the claude.ai connectors of the account signed in to the loop's Claude home, so a prompt injection in a PR comment, repo or issue cannot reach that account's Gmail, Drive or Calendar.** | 2 | 3 | 4 | 7 | 2 | 5 by 8 | 11.1 | | 586 | 0.19.0 | | | **Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.** | 2 | 3 | 2 | 5 | 3 | 3 by 4 | 5.0 | | 599 | 0.19.0 | | principle | **Return a `Failure` from the loop's Claude home build where the clone's `settings.json` is malformed or lacks a marketplace, or a file stands where a link belongs, so `unready` prints one line instead of a traceback.** | 2 | 1 | 3 | 4 | 3 | code health by 3 | 3.8 | | 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 | @@ -114,6 +115,19 @@ ## Details +### 604. Start every claude that build-release and build-epic run without the claude.ai connectors of the account signed in to the loop's Claude home, so a prompt injection in a PR comment, repo or issue cannot reach that account's Gmail, Drive or Calendar. + +Exposure: a person who signs in to the loop's Claude home with a claude.ai account brings that account's connectors into every session there. On 2026-12-06, after `/login` in the home on Claude Code 2.1.337, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude mcp list` showed Gmail, Google Drive, Google Calendar and Claude Docs, each connected; the person's own `~/.claude` showed none. Path: `bin/agent_cycle/worker.py`'s `worker_args` starts each worker with `--permission-mode bypassPermissions` and nothing that limits MCP, so a worker, and each subagent and reviewer it launches, can call those connectors while it reads text outsiders wrote: an outside reviewer's PR comment, a client's repo, a Jira issue. A prompt injection there can read mail, files and calendar and send them out, against goal 5. Only the calls that take no tools (`judge.py`, `stuck_workers.py`, build-epic's pickers) pass `--strict-mcp-config`. No loop had run in that home when this was found. + +Keep connectors out of every claude build-release and build-epic start: workers, their resumes, the `/talk` and routing sessions, and `task-bench gather`. First probe, in a home signed in to an account with connectors, which of `--strict-mcp-config` and the environment variable `ENABLE_CLAUDEAI_MCP_SERVERS=false` keeps claude.ai connectors out, since `--strict-mcp-config` is documented only for MCP config files; record the probe in a decision. Then have a test fail where a worker's command lacks it. Leave `claude-release` as it is: the person starts it themselves. Say in README → Install that the loop's sessions load no connector of the account signed in there. + +Touches: + +- `bin/agent_cycle/worker.py`: `worker_args` +- `bin/agent_cycle/interrupt.py`: `WorkerSession.claude_command` (small), `compact` (small) +- `bin/agent_cycle/test_worker.py` +- `README.md`: `## Install` (small) + ### 586. Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink. Item 577's stability review probed Claude Code 2.1.336 in a throwaway config home: with `HOME` set to a symlink to the home folder, a skill, an agent and a command under the person's `.claude` reached the request; with `HOME` as the real path none did. `claudeMdExcludes` kept `CLAUDE.md` and the rules out both ways. The probe ran outside a checkout, so first repeat it in a project, in `first-chunk-e2e/first_chunk.py`'s container. Where it holds, have `bin/claude_home` or `bin/loop_effects` name the home folder by its real path, and exclude both spellings of the person's Claude home. Record the probe in the decision that the home's settings comment in `bin/claude_home/home.py` cites. -- 2.52.0