Answer prose round 1: 0 🔴, 6 🟡 (0 misread); the comments say what the files hold, and the README leaves the test's steps to its docstring

This commit is contained in:
2026-12-04 07:53:53 +01:00
parent 018d45aa6e
commit c567042d95
5 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -328,7 +328,7 @@ Test on the host with `bin/run-tests`, which runs pytest through `uvx`, pinned i
The commands in this section name their tools bare, as Tools says. CI runs `ci.sh` on every pull request, and `main` doesn't merge anything until it passes. The script runs the same tests on the committed HEAD in a pinned Python container. Run it under `run-heavy` to reproduce a CI failure, with Docker on `PATH` and its socket at `/var/run/docker.sock`, which the container shares.
`ci.sh` then runs `first-chunk-e2e/run`, which checks goals 2 and 3 as a newcomer meets them. It builds a container that holds what Install asks for and a stock Claude Code with a `~/.claude` of its own, clones the committed HEAD there, and has `build-release` run a task in a small project. A mock Messages API answers claude as a worker that is done and as a judge that rules the chunk finished, so the run needs no sign-in. It fails unless the chunk finishes on the setup's instructions, no request holds an instruction from the container's `~/.claude`, and that folder and `~/.claude.json` hold what they held before. Run it under `run-heavy` too. It needs the network: the image fetches Claude Code, and `build-release` installs the plugins.
`ci.sh` then runs `first-chunk-e2e/run`, which checks goals 2 and 3 as a newcomer meets them. It runs a first chunk in a container, from a clone of the committed HEAD, against a mock Messages API, so it needs no sign-in. It fails unless the chunk finishes on the setup's instructions, no request holds anything from the container's `~/.claude`, and that folder and `~/.claude.json` hold what they held before. Run it under `run-heavy` too. It needs the network: the image fetches Claude Code, and `build-release` installs the plugins.
To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout.
+1 -1
View File
@@ -18,5 +18,5 @@ git bundle create - HEAD | docker run --rm -i ${CI_CONTAINER:+--name "$CI_CONTAI
# On a failure, the CI log shows the whole pytest output, which run-tests saved to its log file.
PATH="$HOME/.local/bin:$PATH" bin/run-tests || { cat /tmp/run-tests-*.log; exit 1; }
'
# Then a newcomer's first chunk, in a container that holds only a stock Claude Code: first-chunk-e2e/run says what it checks.
# Then a newcomer's first chunk, in a container of its own: first-chunk-e2e/first_chunk.py says what it checks.
sh first-chunk-e2e/run
+1 -1
View File
@@ -132,7 +132,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
2026-11-20, lilleman's standalone-install plan. Serves goal 3, which keeps the setup out of the human's `~/.claude`, and goal 5: a home of its own keeps the loop's transcripts and token apart from the human's. The plan therefore runs every claude the loop starts in a home of its own, and doesn't load the setup with `--plugin-dir`, `--settings` and `--append-system-prompt-file` over the human's home. The probes ran on Claude Code 2.1.330, on throwaway homes, never the human's. A mock Messages API at `ANTHROPIC_BASE_URL` recorded each request and answered the first with a tool call that reads a file, so the system prompt and the tool results show what loaded, with no real token. A bullet that names 2.1.336 was probed on that version instead. Each result holds for the version it was probed on; repeat the probes when the version changes.
- **Loads from `$CLAUDE_CONFIG_DIR`:** `CLAUDE.md` (in the system prompt), `rules/*.md` (one with `paths:` entered the context after the model read a matching file, not before), `agents/`, `skills/`, the hooks of `settings.json` (a `SessionStart` hook ran) and plugins. `claude plugin marketplace add` and `claude plugin install` write to `<home>/plugins`, and the installed plugin's skill is listed. `.claude.json` lands in the home too, so the human's `~/.claude.json` stays theirs.
- **The human's own `~/.claude/CLAUDE.md` and `~/.claude/rules/` load too, unless the home's settings exclude them.** 2026-12-04, found by `first-chunk-e2e/run` on Claude Code 2.1.336: claude reads `.claude/CLAUDE.md` and `.claude/rules/` in every folder above its working folder as project instructions, and the human's home folder is above each of their projects. Both reached the worker's request in the loop's home. A `SessionStart` hook in the human's `~/.claude/settings.json` didn't run. So `bin/claude_home` writes `claudeMdExcludes` into the home's `settings.json`, naming everything under the human's `~/.claude`, after which neither loads. Not tested: a `CLAUDE.md` in the human's home folder itself, which is outside their Claude home.
- **The human's own `~/.claude/CLAUDE.md` and `~/.claude/rules/` load too, unless the home's settings exclude them.** 2026-12-04, found by `first-chunk-e2e/run` on Claude Code 2.1.336: claude reads `.claude/CLAUDE.md` and `.claude/rules/` in every folder above its working folder as project instructions, and the human's home folder is above each project they keep under it. Both reached the worker's request in the loop's home. A `SessionStart` hook in the human's `~/.claude/settings.json` didn't run. So `bin/claude_home` writes `claudeMdExcludes` into the home's `settings.json`, naming everything under the human's `~/.claude`, after which neither loads. The exclusion also applies to the target of a link, so `bin/claude_home` refuses a release cloned in the human's `~/.claude`: the home's link to its `rules/` wouldn't load anything. Not tested: a `CLAUDE.md` in the human's home folder itself, which is outside their Claude home.
- **The loop's home signs in by `/login`.** 2026-12-03, lilleman, planning 0.18.0: the human signs in once, in a claude started with `CLAUDE_CONFIG_DIR` naming the loop's home, and makes and keeps no long-lived token file. `bin/claude_home` asks `claude auth status` before a command starts a chunk. Probed on Claude Code 2.1.336 in a throwaway home: signed out, it prints JSON with `loggedIn: false` and exits 1. Not tested: where the home keeps the sign-in. The token below stays the way a container signs in, as task-bench does.
- **Signs in by `CLAUDE_CODE_OAUTH_TOKEN`:** the request carried `Authorization: Bearer <token>` with the `oauth-2025-04-20` beta, and `claude auth status` said `loggedIn: true, authMethod: oauth_token`. The home didn't hold a credentials file. Without the variable the home is `loggedIn: false`. Not tested: that Anthropic accepts a real token, since `claude setup-token` needs the human's browser sign-in. The authentication docs say the token lasts one year and can only make model requests; neither is tested, and the first real run shows whether it signs in.
- **`--bare` can't use that token.** With `CLAUDE_CODE_OAUTH_TOKEN`, it says `Not logged in · Please run /login` and doesn't send a request. With `ANTHROPIC_API_KEY` it signs in, but doesn't load anything from the home (`CLAUDE.md`, rules, agents or skills) and offers only Bash, Edit and Read. So a container that signs in by a long-lived token runs without `--bare`; its fresh home is empty, so nothing of the human's loads there either. The project's `CLAUDE.md` loads from the working folder, and its `AGENTS.md` only where the project has no `CLAUDE.md`.
+2 -3
View File
@@ -1,5 +1,4 @@
# A newcomer's machine: what README.md → Install asks for, and a stock Claude Code, with nothing of this repo.
# The python tag is ci.sh's. git and tmux come from Debian's current apt: the run needs no exact version.
# A newcomer's machine, with nothing of this repo. The python tag is ci.sh's. git and tmux come from Debian's current apt: the run needs no exact version.
FROM python:3.14.8
RUN apt-get update \
&& apt-get install --yes --no-install-recommends git tmux \
@@ -9,5 +8,5 @@ RUN useradd --create-home newcomer
USER newcomer
WORKDIR /home/newcomer
ENV PATH=/home/newcomer/.local/bin:$PATH
# The version the probes of docs/decisions.md → `Claude Code in a home of its own` ran on.
# The version the latest probes of docs/decisions.md → `Claude Code in a home of its own` ran on.
RUN curl --fail --silent --show-error --location https://claude.ai/install.sh | bash -s 2.1.336
-1
View File
@@ -4,7 +4,6 @@
# The repo goes in as a git bundle, as in ci.sh.
set -eu
cd "$(dirname "$0")/.."
# An untagged image, which docker image prune removes, since a cancelled run skips any cleanup.
image=$(docker build --quiet --memory 2g --memory-swap 2g first-chunk-e2e)
git bundle create - HEAD | docker run --rm -i --init --memory 4g --memory-swap 4g "$image" sh -euc '
cat >/tmp/head.bundle