.gitignore: ignores .claude/settings.local.json. It no longer ignores .claude/hooks/, so hooks that apm deploys get committed and reviewed.
.claude/settings.json (new, tracked): {"disableSkillShellExecution": true}, so no committed skill runs a shell command when it loads. attribution is left for #152.
apm.yml comment covers three points:
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 apm.yml, and that entry is committed.
docs/contributing/setup.md: adds a rule next to "never permissions.allow": every hook in the tracked .claude/settings.json arrives through apm, and personal hooks go in .claude/settings.local.json. Held by review (CODEOWNERS on .claude/). It also drops the stale "once issue #196 lands" parenthesis.
Wording that differs from the issue: the issue gives the reason as "Renovate's apm install cannot answer a prompt". Nothing in renovate.json or the workflows runs apm today, so the comment says "an unattended apm install", which holds either way.
Not changed:
REUSE.toml: its path = "**" default already covers .claude/hooks/** and .claude/settings.json.
No changelog fragment: .claude is in build_ignore, so a consumer sees nothing.
Verified
Retest: pass case. Run with apm-cli 0.36.1, the version pinned in requirements-dev.lock.
With .claude/settings.json holding attribution (#152's block) and disableSkillShellExecution:
apm install exited 0 and kept both keys.
apm audit --ci exited 0: "No drift detected", "All 10 check(s) passed".
On the committed file (only disableSkillShellExecution), apm audit --ci exited 0 again.
The fallback was not needed.
Hook case: not exercised. Neither pinned plugin (git, mattpocock) ships a hook. So no apm-deployed hook exists, and there is no .claude/apm-hooks.json to commit.
disableSkillShellExecution: documented at https://code.claude.com/docs/en/skills, which says each command "is replaced with [shell command execution disabled by policy] instead of being run". The settings reference index lists its scope as "Any file".
Acceptance and local checks:
git -c core.excludesFile=/dev/null check-ignore .claude/settings.local.json reports it ignored (.gitignore:22).
apm audit --ci with an apm-deployed hook in the file: no plugin ships one yet.
The settings reference's own entry for disableSkillShellExecution (its type and scope line) was not read. Only the skills page and the index row were.
Molecule: .claude/* is not on the IGNORED list of scripts/select_molecule_scenarios.py, so this pull request runs every scenario. Adding it is outside #196's scope.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code:claude-opus-5-5
## What and why
Closes #196
- `.gitignore`: ignores `.claude/settings.local.json`. It no longer ignores `.claude/hooks/`, so hooks that apm deploys get committed and reviewed.
- `.claude/settings.json` (new, tracked): `{"disableSkillShellExecution": true}`, so no committed skill runs a shell command when it loads. `attribution` is left for #152.
- `apm.yml` comment covers three points:
- 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 `apm.yml`, and that entry is committed.
- `docs/contributing/setup.md`: adds a rule next to "never `permissions.allow`": every hook in the tracked `.claude/settings.json` arrives through apm, and personal hooks go in `.claude/settings.local.json`. Held by review (CODEOWNERS on `.claude/`). It also drops the stale "once issue #196 lands" parenthesis.
**Wording that differs from the issue:** the issue gives the reason as "Renovate's `apm install` cannot answer a prompt". Nothing in `renovate.json` or the workflows runs apm today, so the comment says "an unattended `apm install`", which holds either way.
**Not changed:**
- `REUSE.toml`: its `path = "**"` default already covers `.claude/hooks/**` and `.claude/settings.json`.
- No changelog fragment: `.claude` is in `build_ignore`, so a consumer sees nothing.
## Verified
**Retest: pass case.** Run with `apm-cli` 0.36.1, the version pinned in `requirements-dev.lock`.
- With `.claude/settings.json` holding `attribution` (#152's block) and `disableSkillShellExecution`:
- `apm install` exited 0 and kept both keys.
- `apm audit --ci` exited 0: "No drift detected", "All 10 check(s) passed".
- On the committed file (only `disableSkillShellExecution`), `apm audit --ci` exited 0 again.
- The fallback was not needed.
**Hook case: not exercised.** Neither pinned plugin (git, mattpocock) ships a hook. So no apm-deployed hook exists, and there is no `.claude/apm-hooks.json` to commit.
**`disableSkillShellExecution`:** documented at https://code.claude.com/docs/en/skills, which says each command "is replaced with `[shell command execution disabled by policy]` instead of being run". The settings reference index lists its scope as "Any file".
**Acceptance and local checks:**
- `git -c core.excludesFile=/dev/null check-ignore .claude/settings.local.json` reports it ignored (`.gitignore:22`).
- `git -c core.excludesFile=/dev/null check-ignore .claude/hooks/x` reports nothing (exit 1).
- `pre-commit run --all-files`: exit 0.
- `ansible-test sanity` (pre-push hook): passed.
## Not verified
- CI Lint and Build: they run on this pull request.
- `apm audit --ci` with an apm-deployed hook in the file: no plugin ships one yet.
- The settings reference's own entry for `disableSkillShellExecution` (its type and scope line) was not read. Only the skills page and the index row were.
- Molecule: `.claude/*` is not on the IGNORED list of `scripts/select_molecule_scenarios.py`, so this pull request runs every scenario. Adding it is outside #196's scope.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code:claude-opus-5-5
Claude
added this to the Open to contributors milestone 2026-11-22 19:34:17 +00:00
Ignore .claude/settings.local.json and stop ignoring .claude/hooks/, so
hooks apm deploys are committed for review. Track .claude/settings.json
with disableSkillShellExecution, so no committed skill runs a shell
command when it loads. State the apm primitive policy in apm.yml and the
hook-ownership rule in the setup doc.
Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules
requested review from Defame1297 2026-11-22 19:34:17 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #196
.gitignore: ignores.claude/settings.local.json. It no longer ignores.claude/hooks/, so hooks that apm deploys get committed and reviewed..claude/settings.json(new, tracked):{"disableSkillShellExecution": true}, so no committed skill runs a shell command when it loads.attributionis left for #152.apm.ymlcomment covers three points:AGENTS.mdhas a managed section;apm approvewrites theexecutables.allowentry intoapm.yml, and that entry is committed.docs/contributing/setup.md: adds a rule next to "neverpermissions.allow": every hook in the tracked.claude/settings.jsonarrives through apm, and personal hooks go in.claude/settings.local.json. Held by review (CODEOWNERS on.claude/). It also drops the stale "once issue #196 lands" parenthesis.Wording that differs from the issue: the issue gives the reason as "Renovate's
apm installcannot answer a prompt". Nothing inrenovate.jsonor the workflows runs apm today, so the comment says "an unattendedapm install", which holds either way.Not changed:
REUSE.toml: itspath = "**"default already covers.claude/hooks/**and.claude/settings.json..claudeis inbuild_ignore, so a consumer sees nothing.Verified
Retest: pass case. Run with
apm-cli0.36.1, the version pinned inrequirements-dev.lock..claude/settings.jsonholdingattribution(#152's block) anddisableSkillShellExecution:apm installexited 0 and kept both keys.apm audit --ciexited 0: "No drift detected", "All 10 check(s) passed".disableSkillShellExecution),apm audit --ciexited 0 again.Hook case: not exercised. Neither pinned plugin (git, mattpocock) ships a hook. So no apm-deployed hook exists, and there is no
.claude/apm-hooks.jsonto commit.disableSkillShellExecution: documented at https://code.claude.com/docs/en/skills, which says each command "is replaced with[shell command execution disabled by policy]instead of being run". The settings reference index lists its scope as "Any file".Acceptance and local checks:
git -c core.excludesFile=/dev/null check-ignore .claude/settings.local.jsonreports it ignored (.gitignore:22).git -c core.excludesFile=/dev/null check-ignore .claude/hooks/xreports nothing (exit 1).pre-commit run --all-files: exit 0.ansible-test sanity(pre-push hook): passed.Not verified
apm audit --ciwith an apm-deployed hook in the file: no plugin ships one yet.disableSkillShellExecution(its type and scope line) was not read. Only the skills page and the index row were..claude/*is not on the IGNORED list ofscripts/select_molecule_scenarios.py, so this pull request runs every scenario. Adding it is outside #196's scope.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code:claude-opus-5-5