Skip to content

The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.

Workspace: under a write allowlist, create the roots at install

Eoghan Henn1cbd9a267f83
diff --git a/references/environments.md b/references/environments.md
index 75318fd..2e44591 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -323,6 +323,25 @@ repository via PR, and say in the report which route was taken. See
"Claude Code Projects" below for the install, activation and log-route
consequences.
+**A grant names a path; it does not create one.** Under a write-allowlist
+sandbox (Claude Code's Bash sandbox with `sandbox.filesystem.allowWrite`,
+or any harness that mounts only allowlisted paths writable), an
+allowlisted path can be mounted writable only if it already exists, and
+when its parent is outside the allowlist nothing inside the sandbox can
+create it: the first `mkdir -p` of the log fails with `Read-only file
+system` although the grant is present and correct (observed: a user-scope
+workspace under `~/.claude`, `skill-observations` and `skill-updates` both
+allowlisted, creation refused until a setup script run outside the
+sandbox made the two directories). In such a harness the grant and the
+path's existence are two install preconditions: create the workspace
+root's `skill-observations/` and the staging root `skill-updates/` at
+install time, from outside the sandbox — by the user or an install step —
+and only then rely on the session to create everything below them. The
+folder picker and the one-retry rule for a failed write do not help here:
+every interface inside the same sandbox sees the same read-only mount.
+The diagnosis at the moment of failure is in `observation-log.md`
+("Workspace creation").
+
**Config detection (once per session):** with filesystem access, check the
workspace root's CLAUDE.md (or equivalent) for a task-observer activation
instruction — suggest adding it if absent. **Suggest; do not create.** If
diff --git a/references/observation-log.md b/references/observation-log.md
index 3adc51f..99dad35 100644
--- a/references/observation-log.md
+++ b/references/observation-log.md
@@ -111,6 +111,17 @@ rather than this command: `starter-principles-reviewed.txt` (starter-set
reconciliation) and `skill-families.md` (created when the first family
is named).
+**A read-only or permission error on an allowlisted path is a missing
+path, not an unwritable log.** When this command fails with `Read-only
+file system` or a permission error on a workspace path the harness's
+write allowlist names, the likely cause is that the path does not exist
+yet and the sandbox cannot create it (`environments.md`, "Anchoring the
+workspace", "A grant names a path"). Say that to the user in one line and
+hand them the fix — create `skill-observations/` and `skill-updates/`
+under the pinned root from outside the sandbox — instead of retrying
+through another interface or falling through to the unwritable-log or
+no-filesystem branches.
+
**Why a command and not the prose list it replaces.** Observed on a fresh
user-scope install: a session created `skill-observations/` and
`observation-log/` and nothing else. The next session could not tell —