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.

Scheduled runs: a sandbox denial is not an offline workspace

Eoghan Henn124abb4f229f
diff --git a/references/environments.md b/references/environments.md
index 5b25bd5..5f3b2a2 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -672,7 +672,7 @@ same breath.
| Persistent workspace | the shared folder | pinned absolute path (see activation block) | none — handoff-doc mode below |
| Live skill files | `.claude/skills/{skill}/` on a read-only mount (writes fail with EROFS) | `~/.claude/skills/{skill}/`, ordinary writable files — no guard | n/a |
| Present a staged file for install | the file-presentation tool (`present_files`) with its upload button | none — report the staged path and a change summary in chat | paste into the handoff doc |
-| Scheduled review | the app's scheduled tasks (cloud-default: run remotely; legacy local mode: run on the user's machine, only while it is on — see the execution-mode note above) | cron / a harness `SessionStart` hook / an account-level scheduler that can reach the workspace | calendar reminder + manual trigger |
+| Scheduled review | the app's scheduled tasks (cloud-default: run remotely; legacy local mode: run on the user's machine, only while it is on — see the execution-mode note above) | cron / a harness `SessionStart` hook / an account-level scheduler that can reach the workspace — headless invocations carry the workspace grant (`--add-dir`) in the task definition | calendar reminder + manual trigger |
| Session-start hook | none | `SessionStart` hook (`hookSpecificOutput.additionalContext`) | none |
| Local-vs-cloud tell | `allow_cowork_file_delete` present ⇒ local session | n/a | n/a |
@@ -690,6 +690,27 @@ loads: write the activation pointer in every scheduled prompt as "probe the
workspace folder (one `ls` of its absolute path), then invoke <skills>",
and keep the probe's procedure and failure handling in the skill.
+**The access grant is part of the task definition, not of the path.** A
+scheduled session runs in the sandbox the scheduler creates, and that
+sandbox can deny a path that exists and is online (observed: a headless
+run launched by the OS scheduler was confined to the user profile, the
+pinned workspace lived on another drive, and every interface was denied
+— file tools, both shells, and a junction inside the profile, because
+the sandbox canonicalises the target — down to the skill's own reference
+files; the run ended with the offline policy's one-line skip, a config
+gap wearing the costume of a transient outage). Registering a scheduled
+review therefore includes whatever allowed-directory configuration the
+harness needs for the workspace root — for Claude Code headless,
+`--add-dir "[ABSOLUTE PATH]"` on the invocation, or the equivalent
+permissions rule — and the setup is not done until one firing has
+reached the workspace **from inside the task's own execution context**:
+an interactive test proves nothing about the sandbox the scheduler
+creates, and a task the scheduler lists is not a run that succeeded. The
+probe separates the two failures: a path that is not there is the
+offline-workspace policy's case (`references/weekly-review.md`); a
+permission or sandbox error on a path that exists is a configuration
+gap no later firing heals, and its skip note names the missing grant.
+
**Managed skills directories (dotfile managers, sync tools).** Where the
skills directory is generated by chezmoi, GNU Stow, yadm, a symlinked
dotfiles repo or any sync tool, the live path is not the source of truth:
diff --git a/references/weekly-review.md b/references/weekly-review.md
index 14f4185..5706f62 100644
--- a/references/weekly-review.md
+++ b/references/weekly-review.md
@@ -65,10 +65,21 @@ the log can live on a machine that is asleep or offline at fire time.
Define the policy up front: (1) check workspace reachability before
anything else; (2) if unreachable, end gracefully with a one-line "review
skipped — workspace offline" note, no retries — the next firing or the
-7-day in-session fallback catches up; (3) when setting up a scheduled
+7-day in-session fallback catches up — where "unreachable" means the
+probe found nothing there: a mount absent, a host asleep. A probe that
+fails with a permission or sandbox error on a path that exists is a
+third state, and it is not transient: the scheduled session's own
+sandbox denies the workspace, every later firing skips the same way,
+and nothing heals. Its note names the owner — "review skipped —
+workspace denied by the session sandbox; grant [ABSOLUTE PATH] in the
+task definition" (`references/environments.md`, "The access grant is
+part of the task definition") — because an offline note for a policy
+denial sends the reader to wait for a machine that is already on; (3)
+when setting up a scheduled
review, bake this policy into the scheduled task's prompt, so fresh
-sessions inherit it without rediscovery. A permission failure mid-run is
-handled the same way: skip the gated step, record it as a manual
+sessions inherit it without rediscovery. A permission failure mid-run —
+after the probe has succeeded — is handled the same way: skip the gated
+step, record it as a manual
follow-up, and still emit the final report — a blocked step N must never
cost the report for steps 1 through N-1.
@@ -286,7 +297,14 @@ the next session has to go and parse the task definition instead of running
a comparison. If registration fails or can't be verified, do
NOT write the marker — the marker would permanently suppress the fallback
while no review ever runs. Tell the user registration failed and leave the
-fallback active. No → write today's date to
+fallback active. A listed task is a registration, not a working setup:
+the registration carries whatever allowed-directory grant the harness's
+sandbox needs for the workspace root, the first firing's own report is
+the completion check, and a first run that ends with a denial note — the
+workspace exists, the task's sandbox cannot reach it — is a missing grant
+on the task definition, never an outage the next firing catches up on
+(`references/environments.md`, "The access grant is part of the task
+definition"). No → write today's date to
`scheduled-review-decline.txt` (suppresses for 30 days; repeated fallback
firings within the window re-surface the offer). No scheduler available in
this environment (per the definition above) → skip silently.