Every apm install in this repo prints two warnings. Both appear on main with or without the delivery/infra packages, so they predate #207. Found while resolving #188.
[!] 1 package(s) have executable primitives parked pending approval; install completed without deploying them.
[i] Trust the org-vetted set: apm approve --recommended | Trust one: apm approve git.rkdr.net/Mortis/Holocron/plugins/kyberforge
The same run reports Integrated 1 hook(s), and apm approve --list says No installed packages declare executable primitives. Root apm.yml grants executables.allow.kyberforge#2.2.1 (hooks: true, bin: true), and plugins/kyberforge/apm.yml is at 2.2.1, so the grant key matches.
Open questions:
Is something kyberforge ships (hook or bin/) not actually deploying, or is this a false warning?
If it's a false warning: a mismatch between the grant key and the remote package identity (git.rkdr.net/Mortis/Holocron/plugins/kyberforge), or an apm 0.28.0 bug?
The answer matters for the delivery guard hook (map #166), which needs its own executables.allow entry and has to actually deploy.
Check that the SessionStart hook from ADR-0019 is present in .claude/settings.json after a clean install, and whether kyberforge's bin/ entries deploy.
2. "Hidden characters" in core and kyberforge
apm audit reports 4 warnings in 3 deployed files. All of them are U+FEFF (byte order mark) characters written literally into the source:
Strips a leading BOM: text.startswith(...) with a literal BOM as the argument
All are intentional. Do not run apm audit --strip: it would delete the characters the tests and the stripper depend on.
Suggested fix: in each place, replace the literal character with the Python escape sequence (a backslash, then ufeff, inside the string literal). Behaviour stays the same and the scanner goes quiet. Bump each touched skill's metadata.version (ADR-0022).
Done when
Item 1 is explained, and either fixed or recorded as harmless with the reason.
apm install and apm audit no longer report hidden characters.
The validate-adapter.bats and factory-audit tests still pass.
## Summary
Every `apm install` in this repo prints two warnings. Both appear on `main` with or without the delivery/infra packages, so they predate #207. Found while resolving #188.
## 1. kyberforge executables "parked pending approval"
```
[!] 1 package(s) have executable primitives parked pending approval; install completed without deploying them.
[i] Trust the org-vetted set: apm approve --recommended | Trust one: apm approve git.rkdr.net/Mortis/Holocron/plugins/kyberforge
```
The same run reports `Integrated 1 hook(s)`, and `apm approve --list` says `No installed packages declare executable primitives`. Root `apm.yml` grants `executables.allow.kyberforge#2.2.1` (`hooks: true`, `bin: true`), and `plugins/kyberforge/apm.yml` is at `2.2.1`, so the grant key matches.
Open questions:
- Is something kyberforge ships (hook or `bin/`) not actually deploying, or is this a false warning?
- If it's a false warning: a mismatch between the grant key and the remote package identity (`git.rkdr.net/Mortis/Holocron/plugins/kyberforge`), or an apm 0.28.0 bug?
- The answer matters for the `delivery` guard hook (map #166), which needs its own `executables.allow` entry and has to actually deploy.
Check that the `SessionStart` hook from ADR-0019 is present in `.claude/settings.json` after a clean install, and whether kyberforge's `bin/` entries deploy.
## 2. "Hidden characters" in core and kyberforge
`apm audit` reports 4 warnings in 3 deployed files. All of them are U+FEFF (byte order mark) characters written literally into the source:
| Source | Line | Why it's there |
|---|---|---|
| `plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats` | 301 | Fixture writes two BOMs before `@AGENTS.md` (tests BOM handling) |
| `plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats` | 308 | Fixture writes a BOM mid-file before `@AGENTS.md` |
| `plugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.sh` | 1058 | Strips a leading BOM: `text.startswith(...)` with a literal BOM as the argument |
All are intentional. **Do not run `apm audit --strip`**: it would delete the characters the tests and the stripper depend on.
Suggested fix: in each place, replace the literal character with the Python escape sequence (a backslash, then `ufeff`, inside the string literal). Behaviour stays the same and the scanner goes quiet. Bump each touched skill's `metadata.version` (ADR-0022).
## Done when
- [ ] Item 1 is explained, and either fixed or recorded as harmless with the reason.
- [ ] `apm install` and `apm audit` no longer report hidden characters.
- [ ] The `validate-adapter.bats` and `factory-audit` tests still pass.
Evidence from the delivery guard hook work (PR #211) that the "parked pending approval" warning is cosmetic on apm 0.28.0:
With a matching executables.allow grant (delivery#…: hooks: true), apm install still printed the "parked pending approval" warning for delivery's hook.
apm policy explain delivery reported the hook as allowed in the same tree.
The hook deployed regardless: the script landed under .claude/hooks/delivery/.apm/hooks/ (exec bit kept), the PreToolUse entry was merged into .claude/settings.json with onFailure preserved, and the Copilot (.github/hooks/) and Codex (.codex/hooks/) copies appeared too.
A live Claude Code 2.1.326 session then ran the deployed hook (denies observed).
So the warning text doesn't reflect the trust decision; check the deployed files rather than the warning or exit code. plugins/delivery/docs/guard-hook.md documents that check for consumers.
Evidence from the [delivery guard hook](https://git.rkdr.net/Mortis/Holocron/issues/190) work (PR #211) that the "parked pending approval" warning is cosmetic on apm 0.28.0:
- With a matching `executables.allow` grant (`delivery#…: hooks: true`), `apm install` still printed the "parked pending approval" warning for `delivery`'s hook.
- `apm policy explain delivery` reported the hook as **allowed** in the same tree.
- The hook deployed regardless: the script landed under `.claude/hooks/delivery/.apm/hooks/` (exec bit kept), the `PreToolUse` entry was merged into `.claude/settings.json` with `onFailure` preserved, and the Copilot (`.github/hooks/`) and Codex (`.codex/hooks/`) copies appeared too.
- A live Claude Code 2.1.326 session then ran the deployed hook (denies observed).
So the warning text doesn't reflect the trust decision; check the deployed files rather than the warning or exit code. `plugins/delivery/docs/guard-hook.md` documents that check for consumers.
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.
Summary
Every
apm installin this repo prints two warnings. Both appear onmainwith or without the delivery/infra packages, so they predate #207. Found while resolving #188.1. kyberforge executables "parked pending approval"
The same run reports
Integrated 1 hook(s), andapm approve --listsaysNo installed packages declare executable primitives. Rootapm.ymlgrantsexecutables.allow.kyberforge#2.2.1(hooks: true,bin: true), andplugins/kyberforge/apm.ymlis at2.2.1, so the grant key matches.Open questions:
bin/) not actually deploying, or is this a false warning?git.rkdr.net/Mortis/Holocron/plugins/kyberforge), or an apm 0.28.0 bug?deliveryguard hook (map #166), which needs its ownexecutables.allowentry and has to actually deploy.Check that the
SessionStarthook from ADR-0019 is present in.claude/settings.jsonafter a clean install, and whether kyberforge'sbin/entries deploy.2. "Hidden characters" in core and kyberforge
apm auditreports 4 warnings in 3 deployed files. All of them are U+FEFF (byte order mark) characters written literally into the source:plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats@AGENTS.md(tests BOM handling)plugins/core/.apm/skills/provider-adapter-author/tests/validate-adapter.bats@AGENTS.mdplugins/kyberforge/.apm/skills/factory-audit/scripts/lib-boundary-resolver.shtext.startswith(...)with a literal BOM as the argumentAll are intentional. Do not run
apm audit --strip: it would delete the characters the tests and the stripper depend on.Suggested fix: in each place, replace the literal character with the Python escape sequence (a backslash, then
ufeff, inside the string literal). Behaviour stays the same and the scanner goes quiet. Bump each touched skill'smetadata.version(ADR-0022).Done when
apm installandapm auditno longer report hidden characters.validate-adapter.batsandfactory-audittests still pass.Evidence from the delivery guard hook work (PR #211) that the "parked pending approval" warning is cosmetic on apm 0.28.0:
executables.allowgrant (delivery#…: hooks: true),apm installstill printed the "parked pending approval" warning fordelivery's hook.apm policy explain deliveryreported the hook as allowed in the same tree..claude/hooks/delivery/.apm/hooks/(exec bit kept), thePreToolUseentry was merged into.claude/settings.jsonwithonFailurepreserved, and the Copilot (.github/hooks/) and Codex (.codex/hooks/) copies appeared too.So the warning text doesn't reflect the trust decision; check the deployed files rather than the warning or exit code.
plugins/delivery/docs/guard-hook.mddocuments that check for consumers.