diff --git a/todo.md b/todo.md index 8faa72f3..90bd01a4 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,13 @@ `Bar = 0.1` -`Next ID = 605` +`Next ID = 606` ## 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 | +| 605 | 0.18.1 | | defect | **Keep the account's claude.ai skills, plugins and connectors out of the loop's Claude home and its clone: generate `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` beside `disableClaudeAiConnectors: true`, set `ENABLE_CLAUDEAI_MCP_SERVERS=false` for every claude the loop starts, and keep a `skills/` folder Claude Code made, linking each setup skill inside it.** | 2 | 2 | 3 | 5 | 3 | 2 by 6, 1.3 by 4 | 6.5 | | 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 | @@ -115,18 +115,31 @@ ## 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. +### 605. Keep the account's claude.ai skills, plugins and connectors out of the loop's Claude home and its clone: generate `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` beside `disableClaudeAiConnectors: true`, set `ENABLE_CLAUDEAI_MCP_SERVERS=false` for every claude the loop starts, and keep a `skills/` folder Claude Code made, linking each setup skill inside it. -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. +The owner chose to ship this as patch release 0.18.1, from the v0.18.0 tag, on 2026-12-06. -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. +Found taking 0.18.0 on the owner's machine, Claude Code 2.1.337: `/login` in the loop's Claude home, which README → Install runs before any build, synced the claude.ai account's skills into the home's `skills/synced/`. The first build then stopped with `[Errno 17] File exists` at the `skills` link (`bin/claude_home/home.py`'s `linked`), so every person whose account syncs skills cannot run a first chunk (goal 2). Had the link been made first, Claude Code would have written through it into the clone, untracked, and the account's skills would load in every loop session (goal 1.3). In that home, before any settings were generated, `claude mcp list` also showed the account's Gmail, Google Drive, Google Calendar and Claude Docs connectors. `settings.json` has set `disableClaudeAiConnectors: true` since 2026-09-20, and a home that fails to build starts no worker, so no worker could reach them; but no test keeps that key. + +Probed the same day in that home: with `disableClaudeAiConnectors: true`, `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` in its `settings.json`, `claude mcp list` listed no server, the next `claude -p` moved 229 synced files into `skills/.trash/` and loaded only Claude Code's built-in skills, and no `plugins/synced/` appeared. Claude Code's docs name these keys in code.claude.com/docs/en/settings-reference.md, `/skills.md` and `/plugins/loading.md`, and `ENABLE_CLAUDEAI_MCP_SERVERS=false` in `/env-vars.md`; `--strict-mcp-config` is not documented to keep connectors out. + +- Add `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` to `settings.json`, beside `disableClaudeAiConnectors: true`. +- Set `ENABLE_CLAUDEAI_MCP_SERVERS=false` in `in_claude_home`, which builds the environment of every claude the loop starts, as a second lock. +- Have the home build keep a `skills/` folder that stands in the home, making one if none does, and link each of the clone's skills inside it, so whatever Claude Code writes under `skills/` stays in the home. Replace an old `skills` link with the folder. +- Ignore `skills/synced/` and `skills/.trash/` in `.gitignore`, in case a clone is ever linked whole again. +- Test that the generated settings hold the three keys, that the environment holds the variable, and that a home whose `skills/` folder Claude Code made builds and keeps that folder's files. +- Say in README → Install what the home keeps from the account signed in there, the sign-in and its profile, and what it keeps out: the account's connectors, skills and plugins. Say plainly what the home shares with the person's own Claude Code and cannot avoid: it signs in as an account, usually theirs, so its usage counts against that account's limits and the account lists one more signed-in session. Nothing in this item reads or writes the person's own `~/.claude` (goal 3). +- Record the probe in the decision on the loop's Claude home, with the version it held on. 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) +- `settings.json` +- `bin/loop_state/paths.py`: `in_claude_home` (small) +- `bin/loop_state/test_paths.py` +- `bin/claude_home/home.py`: `LINKED`, `linked` +- `bin/claude_home/test_home.py`: `Home` +- `.gitignore` +- `README.md`: `## Install` ### 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. @@ -147,6 +160,8 @@ Evidence, in `bin/claude_home/home.py`: - :104 `settings_written` and :134-137 `plugins_installed` call `json.loads` on the clone's `settings.json`, and the latter indexes `settings["extraKnownMarketplaces"][name]["source"]["repo"]`: a malformed file raises ValueError, a missing key KeyError. - :42 `unready` catches only `(OSError, subprocess.TimeoutExpired)`, so ValueError and KeyError escape as a traceback instead of the `Failure` its callers handle. +Item 605, in 0.18.1, makes `skills` a folder the build keeps, so the file-in-a-link's-place case remains for the five other links. + Return a `Failure` for each case, and make `linked`'s `Failure` real or drop it from the type. I 3, since every loop builds the home before it starts. Touches: