[BUG] apm audit cannot validate global user-scope installations
Version
APM 0.28.0 (e041462), macOS.
Problem
APM supports global install, update, and uninstall through --global, but
apm audit has no corresponding global scope.
After a successful global installation, state is stored in:
~/.apm/apm.yml
~/.apm/apm.lock.yaml
while declared files are deployed under paths such as:
~/.agents/skills/
~/.claude/skills/
Running apm audit --ci from ~/.apm interprets ~/.apm as an ordinary
project root and looks for ~/.apm/.agents/... and ~/.apm/.claude/.... It
therefore reports all correctly deployed global files as missing and drifted.
Running from $HOME does not discover the global manifest and reports that no
apm.yml exists.
Reproduction
apm install --global --target agent-skills,claude owner/repo/skills/example#v1.0.0
cd ~/.apm
apm audit --ci --no-policy
Observed: deployed-files-present and drift fail for files that exist under
~/.agents and ~/.claude.
Confirmed workaround
Auditing succeeds when run from a temporary root containing symlinks from
apm.yml and apm.lock.yaml to ~/.apm, plus .agents and .claude links to
their actual directories under $HOME. The same installation then passes all
10 checks with no drift.
Requested behavior
Add apm audit --global (consistent with install, update, and uninstall), or
otherwise make audit resolve the global manifest and deployment root
correctly.
Triage Panel Verdict -- #2608
Title: [BUG] apm audit cannot validate global user-scope installations
Author: @DaveMeadAdjust
Type: Bug (confirmed with reproduction steps and workaround)
Panel synthesis
DevX UX Expert
apm install --global, apm update --global, and apm uninstall --global all exist. apm audit --global does not -- yet audit is precisely the command you run after a global install to verify deployment state. This is a glaring CLI surface gap. The workaround (constructing a temp directory with symlinks to ~/.apm, ~/.agents, ~/.claude) is entirely unacceptable as an operational practice. The CLI contract is broken: the global-scope lifecycle is incomplete without a matching audit path. Fix is bounded: add --global to apm audit and resolve the manifest/deployment roots from the user's home directory rather than cwd.
Supply Chain Security Expert
Global installs cannot currently be audited for drift. This means deployed skills and configs under ~/.agents/skills/ and ~/.claude/skills/ are opaque to APM's own integrity tooling. apm audit --ci is the drift-detection gate -- if it silently misreports global deployments as missing/drifted, operators either ignore audit output (defeating its purpose) or adopt the fragile symlink workaround. The security posture of global installations is unverifiable through official tooling. High-priority bug.
Python Architect
Root cause: audit does not implement global-scope manifest/root resolution. The fix mirrors logic already present in install/update/uninstall: accept --global, resolve ~/.apm/apm.yml as the manifest, and derive deployment roots from $HOME (e.g. ~/.agents/, ~/.claude/) rather than walking from cwd. Bounded refactor with clear precedent in the existing command surface.
APM CEO Arbiter
Confirmed bug against a first-class feature (global install). Any user who has adopted apm install --global cannot audit their deployment with the tool that managed it. This is a broken CLI contract. Decision: ACCEPT for next release.
Decision
| Dimension | Value |
|---|---|
| Type | type/bug |
| Area | area/cli, area/audit-policy |
| Priority | priority/high |
| Milestone | 0.29.0 |
| Status | status/triaged |
Suggested next action: Add --global flag to apm audit, resolve ~/.apm/apm.yml as manifest and $HOME-relative paths as deployment roots when --global is set. Add integration test: apm install --global + apm audit --global --ci should pass without drift.
Triage status: agentic proposal pending human ratification. Silence is approval. Maintainers can:
- Override any label or milestone above by editing it directly -- human edits are authoritative and will not be reverted on subsequent runs.
- Re-trigger triage by applying the
status/needs-triagelabel, or by removingstatus/triagedto enroll the issue in the next daily sweep.Posted by the Triage Panel workflow. See .apm/skills/apm-triage-panel for the panel skill.
Generated by Triage Panel · 62.2 AIC · ⌖ 8.46 AIC · ⊞ 9.2K · ◷