diff --git a/todo.md b/todo.md index 3c96b7e9..90bd01a4 100644 --- a/todo.md +++ b/todo.md @@ -6,12 +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 | |---|---|---|---|---|---|---|---|---|---|---|---| +| 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 | @@ -114,6 +115,32 @@ ## Details +### 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. + +The owner chose to ship this as patch release 0.18.1, from the v0.18.0 tag, on 2026-12-06. + +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: + +- `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. 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. @@ -133,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: