fix(apm): key executables.allow on the full 0.39 package identity
apm 0.39.3 matches executable grants on the package identity <host>/<owner>/<repo>/<path>. The bare kyberforge#<version> and delivery#<version> keys that 0.28.0 matched no longer match, so the first 0.39 install parks both hooks and rewrites .claude/settings.json without them, while root apm audit --ci stays green (spike #269, on #268). Rename both keys to git.rkdr.net/Mortis/Holocron/plugins/<name>#<version> with type-level grants, as `apm approve --list` names them on 0.39.3. Keep the version suffix convention; apm strips it before matching. Do not use `apm approve`, which would content-pin, strip the block's comments and park the hook on every script edit. check-executables-allow-sync now derives each expected key from root apm.yml's git + path dependency entry for the plugin, fails a bare key with a message saying why, and fails a shipping plugin with no such entry. Both readers carry the change, and the test covers URL and path spellings. Refs: #271 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
feef6d8307
commit
e1a99a7291
4 files changed
+249
-50
No files matched your search
@@ -71,7 +71,7 @@ repos:
|
||||
|
||||
- id: check-executables-allow-sync
|
||||
name: Check executables allow keys sync
|
||||
description: Verify root apm.yml's executables.allow carries a "<name>#<version>" key matching the apm.yml version of every plugin that ships executables (plugins/<name>/.apm/hooks/ or bin/), reporting every out-of-sync package in one run. apm's grant is version-blind, so a stale key still deploys; this is a record-keeping gate that fails a version bump made without the matching key edit, keeping each key an accurate record of what was approved (see ADR-0019's 2026-09-19 correction and docs/spec/gates.md)
|
||||
description: Verify root apm.yml's executables.allow carries a "<host>/<owner>/<repo>/plugins/<name>#<version>" key -- the full package identity apm 0.39 matches on, derived from root apm.yml's git+path dependency entry for the plugin, plus the plugin's apm.yml version -- for every plugin that ships executables (plugins/<name>/.apm/hooks/ or bin/), reporting every out-of-sync package in one run. A bare "<name>#<version>" key fails, because apm 0.39 parks the hooks under it while root `apm audit --ci` stays green (spike #269). The version half is version-blind to apm, so a stale version still deploys; that half is a record-keeping gate that fails a version bump made without the matching key edit (see ADR-0019's 2026-09-19 correction and docs/spec/gates.md)
|
||||
entry: bash scripts/check-executables-allow-sync.sh
|
||||
language: system
|
||||
stages: [pre-push]
|
||||
|
||||
Reference in new issue
Block a user