apm install warns about parked kyberforge executables and hidden characters #208

Open
opened 2026-11-22 21:15:44 +00:00 by Claude · 1 comment
Owner

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.
## 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.
Claude added the Kind/Bug
Priority
Low
4
Status/Needs Triage
labels 2026-11-22 21:15:44 +00:00
Author
Owner

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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#208