Repository navigation
Description
Summary
On a clone with no local deployment receipts (CI, bots, a new machine), apm install refuses to touch the committed files of some skills with no trustworthy local deployment baseline. The skills it refuses are the ones whose relative links APM rewrites to apm_modules/... paths when it deploys them. The committed (rendered) file therefore differs from the package source, so the byte-match adoption from #3638 does not apply.
Skills without rewritten links are adopted. --force rewrites the refused files byte-identical, so nobody edited them by hand.
Environment
- APM 0.35.1 and 0.36.1 (Linux, Python 3.13)
- Project targets:
claude,copilot - Deployed files are committed, as the
apm-usageguide recommends ("What to commit": target-owned directories such as.github/,.claude/and.agents/)
Steps to reproduce
- A project depends on
obra/superpowers#v7.0.2. Itswriting-skills/SKILL.mdlinks to../using-superpowers/references/codex-tools.md. apm installdeploys.agents/skills/writing-skills/SKILL.mdwith the link rewritten to../../../apm_modules/obra/superpowers/skills/using-superpowers/references/codex-tools.md. Commit the deployed files andapm.lock.yaml.- Clone the repository fresh (no
~/.apm/deployment-receipts, noapm_modules) and runapm install.
Expected
The rendered files match the hashes in apm.lock.yaml and what APM would write from the locked source. APM adopts them and the install succeeds with no changes.
Actual
+- obra/superpowers -- Skipped .agents/skills/writing-skills/SKILL.md: no trustworthy local deployment baseline. Move the conflicting file aside and retry; use --force only to intentionally overwrite it.
...
[x] Installation failed with 70 error(s). No install transaction changes were committed.
All 70 errors come from five skills, and all five contain rewritten links: writing-skills, executing-plans and subagent-driven-development (obra/superpowers), and aot-trimming and opentelementry-dotnet-instrumentation (Aaronontheweb/dotnet-skills). Every refused file has the same hash as its deployed_file_hashes entry. apm install --force rewrites them byte-identical and leaves git status clean.
Impact
This hits the setup the guide recommends. Any bot that updates apm.yml on a fresh clone cannot complete the install: Renovate's apm manager (which runs apm install) commits only apm.yml, and CI then fails on the stale lock. People must run apm install --force by hand on each update.
Suggestion
When receipts are missing, also compare the committed file with what APM would render from the locked source. A match there is as good a baseline as a match with the raw source bytes.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][BUG] apm manager: no way to keep a project's APM dev dependencies up to date with Renovate[/-][+][BUG] Receipt-less install refuses skills whose links APM rewrites at deploy time[/+]danielmeppiel commentedon Nov 19, 2026
Decision: approve
Area: project
Scope: When a lock entry exists and apm install installs a different commit, receipt-less skill adoption also accepts committed skill trees byte-identical to the rendered currently locked source, through the existing skill_adoption owner, not only under apm update.
Done when: On a fresh clone without receipts, an apm.yml ref bump that changes a skill installs and adopts the unchanged committed output, while a hand-edited committed file still fails closed; an installed-CLI lifecycle test covers both and fails on main.
Out of scope: Trusting lockfile hashes alone, hook filename-routing refusals, adoption for non-skill primitives
Review contact: Daniel Meppiel (@danielmeppiel)
fix(install): adopt locked skill output after an apm.yml ref change (#…
fix: derive install expected state from the lock (#3900)