Skip to content

[BUG] Receipt-less install refuses skills whose links APM rewrites at deploy time #3883

Closed

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-usage guide recommends ("What to commit": target-owned directories such as .github/, .claude/ and .agents/)

Steps to reproduce

  1. A project depends on obra/superpowers#v7.0.2. Its writing-skills/SKILL.md links to ../using-superpowers/references/codex-tools.md.
  2. apm install deploys .agents/skills/writing-skills/SKILL.md with the link rewritten to ../../../apm_modules/obra/superpowers/skills/using-superpowers/references/codex-tools.md. Commit the deployed files and apm.lock.yaml.
  3. Clone the repository fresh (no ~/.apm/deployment-receipts, no apm_modules) and run apm 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.

Activity

  1. added
    type/bug
    on Nov 18, 2026
  2. changed the title [-][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[/+] on Nov 18, 2026
  3. danielmeppiel commented on Nov 19, 2026

    @danielmeppiel
    Collaborator

    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)

  4. added
    status/accepted
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/acceptedtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions