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.

environments: blocked hook installs and managed skills directories

Eoghan Henn4af833fe89c1
diff --git a/references/environments.md b/references/environments.md
index 04d5123..d390ee9 100644
--- a/references/environments.md
+++ b/references/environments.md
@@ -244,6 +244,20 @@ back to the user" is safe but consistently over-escalates. Never assume
unrestricted edit access to shared or governance-tracked config — many
setups gate exactly those files.
+**The same shape applies to a blocked hook installation.** The hook
+option from the same paragraph writes to the harness's settings file or
+hooks directory, and those are gated at least as often as the config
+file. A denied hook install follows the rules above unchanged: never
+retry the same install through a different tool or path, never bypass,
+surface the refusal, then fall back lightest first — ask for a retry if
+the denial is retryable-with-consent; ask the user to add the hook entry
+themselves (hand them the exact JSON or script); use a temporary
+authorization mechanism if one exists; and if the hook cannot be
+installed at all, fall back to the declarative config instruction, saying
+plainly that the enforced tier is not in place and the probabilistic one
+is. A hook that silently failed to install is worse than none: the user
+believes the strongest tier is active.
+
## Environment mappings
The procedures in this skill are written as capabilities. This table is
@@ -287,6 +301,23 @@ same breath.
Grow the table when a new environment appears; do not scatter its tool
names through the procedure files.
+**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:
+copying a staged update onto it succeeds, looks installed, and is
+silently reverted at the next `apply` — "I installed it" and "it is still
+in effect" become indistinguishable. Detect the manager at install (a
+symlink into a dotfiles checkout, a `.chezmoi*` marker, the directory
+listed in a Stow package) and record it in the activation config. Then
+install into the manager's SOURCE, not the live path, and let the manager
+apply it; or exclude the skills directory from management. "Always start
+from the live file" (`references/skill-authoring.md`) still holds for
+READING — the live file is what the loader loads — but the WRITE-BACK
+path is the manager's source. The weekly review's staged-work
+reconciliation (`diff -rq` staged vs live) is the check that catches a
+reverted install: run it at the session after any install on a managed
+directory.
+
## Git as an optional staging medium
Staging a skill update as a branch or commit the user merges gives the