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
6.9 KiB
6.9 KiB
topic, source_keys
| topic | source_keys | |||
|---|---|---|---|---|
| migration-0-28-to-0-39 |
|
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
skillsdeclaration exclusively controls which skills deploy."skills": []deploys none, and removing the key keeps conventionalskills/discovery. - 0.31.0: a non-dry-run
apm installexits 1 when Agent Plugins v1 target exclusion leaves no package deployed. - 0.32.0:
apm installrejects bare.or..aliases and unsafe symlink destinations. - 0.37.0:
- The
vscodetarget is deprecated in favour ofcopilot. - The singular
target:key is replaced bytargets:, andcompilation.targetis ignored. Both still work, with warnings. - Copilot project MCP servers move to a root
.mcp.json. - The
auto-integrateconfig key is removed. - With
default_host:set, shorthand dependencies resolve against it.
- The
- Source:
KNOWN_TARGETShas 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.vscodeis not among them. - 0.39.0 (#4970): a dependency
refmust exactly name an origin branch or tag, and pinned commits must be reachable from one. Seelockfile-and-compatibility.md.
Install, lockfile and audit
- 0.34.0:
apm install --frozenno longer writes the lock. - 0.36.0 (#3654):
--frozenverifies every deployed file against its locked hash. Before reinstalling, export your edits withapm export-patch. - 0.37.0:
- In CI,
apm installwith a committed lock verifies like--frozen. Use--no-frozento opt out. --frozenfails before deploying on any edited deployed file.
- In CI,
- 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 --cifails on lock fields this apm does not know. - 0.39.3: outside CI, the first
apm install --frozenafter anapm installtakes a verified fast path. - Audit checks: the baseline set has grown, so the total behind
N of M check(s) failedis 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-driftandkept-mcp-entries. - Always on:
content-integrity,local-bundle-hooks,hook-approval-pins,includes-consent(advisory), anddrift.
- Baseline:
Executables and approvals
- 0.37.0 (#3918):
apm audit --cifails MCP servers the lock admits butapm.ymldoes not approve. Useapm 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 --cifails 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: truegrant keyedpkg#1.2.3still matches any version. Seeapprovals-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 packageapm.yml, or narrow the dependency with object-formtargets:. 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.jsonunder 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.jsonthat 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.
hooksis still withheld, with a warning. In 0.28.0 onlydescription,allowed-tools,model,argument-hintandinputsurvived. Seeprompt-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/intoAGENTS.md, whichCLAUDE.mdimports. A hand-authoredCLAUDE.mdneeds@AGENTS.md. - 0.39.0 (#5394): install-only projects keep the 0.37
.claude/rules/layout. A hand-authored rootCLAUDE.mdwithout the import, or a hand-authoredAGENTS.mdwithout managed-section markers, keeps every instruction in.claude/rules/, with a warning. Seeinstructions-target-mapping.md.
CLI
- 0.36.0:
apm export-patchis added. - 0.37.0:
apm init --pluginandapm init --marketplaceexit 2. Useapm plugin initorapm marketplace initinstead. - 0.37.0: approvals are pinned to content, and
apm approveandapm denymanage them. apm outdated: still has no--json. Its summary line<N> outdated dependency/dependencies foundis unchanged in source. Its columns are Package, Current, Wanted (registry rows only), Latest, Status and Source.apm audit: supports-f text|json|sarif|markdownand-o PATH. JSON is the stable machine format.markdownis not allowed with--ci.