diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..aa7b7a0 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,3 @@ +{ + "disableSkillShellExecution": true +} diff --git a/.gitignore b/.gitignore index c33b99e..52e61f4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,9 +13,10 @@ vault-pass* gitleaks-report.json # galaxy-importer output importer_result.json -# APM: apm_modules/ is the dependency cache; .claude/skills, -# agents and hooks are `apm install` deploy output, regenerated on every install. +# APM: apm_modules/ is the dependency cache. Deployed skills and agents stay out +# while their source is private; deployed hooks are committed for review. apm_modules/ .claude/skills/ .claude/agents/ -.claude/hooks/ +# Claude Code: personal settings and allowlists, never shared +.claude/settings.local.json diff --git a/apm.yml b/apm.yml index d932946..9d70750 100644 --- a/apm.yml +++ b/apm.yml @@ -5,6 +5,10 @@ license: GPL-3.0-or-later # git and mattpocock only (#104): bin and core are unused here, and gitea returns once it is # rebuilt on the tea CLI. + +# Hook primitives come from apm; no instruction primitive is deployed until the root AGENTS.md +# has a managed section. `apm approve` writes the executables.allow entry into this file, and it +# is committed because an unattended `apm install` cannot answer the prompt. targets: - claude dependencies: diff --git a/docs/contributing/setup.md b/docs/contributing/setup.md index d469bc1..0c5d6b3 100644 --- a/docs/contributing/setup.md +++ b/docs/contributing/setup.md @@ -41,8 +41,12 @@ held by review until an offline link check exists. *Held by:* aspirational. - **The tracked `.claude/settings.json` never holds `permissions.allow`; `deny` and `ask` rules are allowed. Your own allowlist and personal guards go in `.claude/settings.local.json`, which is never - committed.** (`.gitignore` lists it once issue #196 lands; until then, leave it out of your commits.) + committed.** *Reason:* a branch's settings take effect for whoever opens it with an agent, so an `allow` rule pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has reviewed it, while a `deny` or `ask` rule can only add prompts. *Held by:* review (`.claude/` is under `CODEOWNERS`). +- **Every hook in the tracked `.claude/settings.json` arrives through apm; personal hooks go in + `.claude/settings.local.json`.** + *Reason:* a hook nobody owns is checked by nothing. + *Held by:* review (`.claude/` is under `CODEOWNERS`).