Files
Holocron/plugins/kyberforge/docs/research/docs/microsoft-apm/migration-0-28-to-0-39.md
T
Defame1297andClaude Opus 5.5 5ca2056046 docs(research): refresh apm reference set to 0.39.3 (#265)
Add lockfile-and-compatibility, approvals-and-executables and
migration-0-28-to-0-39 topics; update installation, cli-reference, the
prompt, hooks and instructions topics for 0.39.x behaviour; label the
remaining 0.28.0 observations by version. Sources: the v0.39.3 source,
CHANGELOG and docs; Context7 was unavailable.

Refs #265

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-12-01 21:46:06 +00:00

6.9 KiB

topic, source_keys
topic source_keys
migration-0-28-to-0-39
apm-v0-39-3-changelog
apm-v0-39-3-source
apm-v0-39-3-docs

This page lists the breaking and behaviour-changing items between apm 0.28.0, the version the rest of this reference set was first verified on, and 0.39.3. Use it to decide which "verified on 0.28.0" claims elsewhere need re-checking. Every item comes from the CHANGELOG, with source confirmation where it says source. None of it was run against a real project.

Versions and runtime

  • 0.36.0: pip, pipx and uv installs need Python 3.11 or later. Standalone binaries are unaffected.
  • 0.37.0: the lockfile moves to format v4. 0.36.1 and older refuse it. See lockfile-and-compatibility.md.
  • 0.39.2: 0.37.0-0.39.1 refuse a lock that 0.39.2 rewrites. From 0.39.2, a lock written by a newer apm in a supported format only warns. 0.39.2 is therefore the practical minimum.

Manifest and targets

  • 0.29.0: a plugin's skills declaration exclusively controls which skills deploy. "skills": [] deploys none, and removing the key keeps conventional skills/ discovery.
  • 0.31.0: a non-dry-run apm install exits 1 when Agent Plugins v1 target exclusion leaves no package deployed.
  • 0.32.0: apm install rejects bare . or .. aliases and unsafe symlink destinations.
  • 0.37.0:
    • The vscode target is deprecated in favour of copilot.
    • The singular target: key is replaced by targets:, and compilation.target is ignored. Both still work, with warnings.
    • Copilot project MCP servers move to a root .mcp.json.
    • The auto-integrate config key is removed.
    • With default_host: set, shorthand dependencies resolve against it.
  • Source: KNOWN_TARGETS has 17 keys: agent-skills, antigravity, claude, codex, copilot, copilot-app, copilot-cowork, cursor, gemini, grok-bot, grok-build, grok-cloud, hermes, kiro, openclaw, opencode and windsurf. vscode is not among them.
  • 0.39.0 (#4970): a dependency ref must exactly name an origin branch or tag, and pinned commits must be reachable from one. See lockfile-and-compatibility.md.

Install, lockfile and audit

  • 0.34.0: apm install --frozen no longer writes the lock.
  • 0.36.0 (#3654): --frozen verifies every deployed file against its locked hash. Before reinstalling, export your edits with apm export-patch.
  • 0.37.0:
    • In CI, apm install with a committed lock verifies like --frozen. Use --no-frozen to opt out.
    • --frozen fails before deploying on any edited deployed file.
  • 0.38.0: a failed or interrupted install restores every file it wrote. Install refuses managed files that lack deployment evidence.
  • 0.39.0:
    • The lock is parsed with libyaml.
    • Reachability verdicts are recorded anew, so run one online install after upgrading.
    • Helper tools resolve only from PATH entries outside the project.
  • 0.39.2: apm audit --ci fails on lock fields this apm does not know.
  • 0.39.3: outside CI, the first apm install --frozen after an apm install takes a verified fast path.
  • Audit checks: the baseline set has grown, so the total behind N of M check(s) failed is not fixed (source).
    • Baseline: manifest-parse, manifest-missing, lockfile-exists, ref-consistency, deployment-ledger-owners, deployed-files-present, exec-status-current, no-orphaned-packages, lockfile-targets-current, skill-subset-consistency, config-consistency, native-mcp-ownership.
    • Conditional: native-mcp-drift and kept-mcp-entries.
    • Always on: content-integrity, local-bundle-hooks, hook-approval-pins, includes-consent (advisory), and drift.

Executables and approvals

  • 0.37.0 (#3918): apm audit --ci fails MCP servers the lock admits but apm.yml does not approve. Use apm approve <pkg> instead of --trust-transitive-mcp.
  • 0.37.0: approvals can be pinned to content. Older clients reject pinned approvals.
  • 0.38.0 (#4688): a hook pin covers every file deployed with the hook. Re-approve hook packages once.
  • 0.38.1: apm audit --ci fails on merged hook entries that match a denied or unapproved package's hook and have no ownership evidence.
  • Ordinary grants stay version-blind (source). A hooks: true grant keyed pkg#1.2.3 still matches any version. See approvals-and-executables.md.

Hooks

  • 0.36.0 (#3613): hook filenames no longer route hooks to targets, so every hook file reaches every targeted harness. To limit a hook to one target, declare targets: in the package apm.yml, or narrow the dependency with object-form targets:. When the old routing kept a target from a file, install fails for that package and names the file.
  • 0.36.0: Copilot hook events that have a Claude equivalent are written to .claude/settings.json under the Claude name.
  • 0.38.1 and 0.39.0:
    • Edited hook entries and scripts are kept. Install exits 1 when an edited one blocks new content.
    • A .claude/settings.json that apm created is deleted when its last entry leaves. One that apm did not create is kept, with a warning.
    • Hooks merge in full-install order.
  • 0.39.0 (#5600): only hook commands that stay inside the package and use no shell expansion are deployed. Shell expansion means $(...), backticks, eval, here-docs and subshells.

Prompts and commands

  • 0.39.0 (#4910 and others): on the Claude target, apm keeps Claude Code command keys:

    • when_to_use, disable-model-invocation, user-invocable, disallowed-tools, effort;
    • context, agent, background, shell.

    hooks is still withheld, with a warning. In 0.28.0 only description, allowed-tools, model, argument-hint and input survived. See prompt-primitive-schema.md.

  • 0.39.0: the dropped-keys message is shown only with --verbose. It is an info message, not a warning.

Instructions and root context files

  • 0.38.0: Claude instructions scoped to ** or to a directory move from .claude/rules/ into AGENTS.md, which CLAUDE.md imports. A hand-authored CLAUDE.md needs @AGENTS.md.
  • 0.39.0 (#5394): install-only projects keep the 0.37 .claude/rules/ layout. A hand-authored root CLAUDE.md without the import, or a hand-authored AGENTS.md without managed-section markers, keeps every instruction in .claude/rules/, with a warning. See instructions-target-mapping.md.

CLI

  • 0.36.0: apm export-patch is added.
  • 0.37.0: apm init --plugin and apm init --marketplace exit 2. Use apm plugin init or apm marketplace init instead.
  • 0.37.0: approvals are pinned to content, and apm approve and apm deny manage them.
  • apm outdated: still has no --json. Its summary line <N> outdated dependency/dependencies found is unchanged in source. Its columns are Package, Current, Wanted (registry rows only), Latest, Status and Source.
  • apm audit: supports -f text|json|sarif|markdown and -o PATH. JSON is the stable machine format. markdown is not allowed with --ci.