Repository navigation
Description
Summary
A Claude Code plugin that ships bin/, installed at user scope with target claude, is no longer deployed as a whole plugin after apm approve and apm install --trust-bin. The install exits 0, deploys only the plugin's skill to ~/.claude/skills/, and prints no warning. Nothing appears under ~/.agents/plugins/<plugin>/.
Expected (docs)
docs/src/content/docs/consumer/install-plugins.md:
- "APM copies exactly the plugin's files to
~/.agents/plugins/<plugin>/" - "One approval ... covers the whole plugin, including its hooks, MCP servers, LSP servers and
bin/. Runcd ~/.apm && apm approve <package>, then install again. Until then the plugin is parked: not deployed, not declared, one warning, exit code 0." - "
bin/stays in the plugin. It deploys inside the plugin folder ... It also needs--trust-bin"
Actual
With targets: [claude] in the user manifest, a hermetic lifecycle world, and lifecycle/p-native-claude-bin#v1.0.0 (.claude-plugin/plugin.json, skills/, bin/):
apm install -g lifecycle/p-native-claude-bin#v1.0.0 -> exit 0, "1 package(s) have executable primitives parked pending approval"
apm approve -g lifecycle/p-native-claude-bin -> exit 0, "Approved ... at these exact definitions (1 bin item)"
apm install -g --trust-bin -> exit 0, "Skill integrated -> .claude/skills/", no warning
Afterwards there is no ~/.agents/plugins/p-native-claude-bin/ and no bin/p-native-claude-bin. Only ~/.claude/skills/p-native-claude-bin/SKILL.md exists. Approving the plugin's bin item and passing --trust-bin neither deploys the plugin nor reports why it stays parked.
Regression window
tests/lifecycle/world/test_world.py::test_claude_plugin_bin_deploys_at_user_scope_after_trust[git|marketplace] passed on a tree based on b5a7ae78 (world commit 7c396f4b). It fails after main was merged in (25053810). The only src/ changes on that path came from main's #4055 merge (0a9fc2e0, exec-pinned-deny): install/exec_gate.py (exec_map_authorizes_all, closed_exec_map, package_exec_decision(..., native=False)), security/executables.py and native_plugins/layout.py.
Repro
uv run pytest "tests/lifecycle/world/test_world.py::test_claude_plugin_bin_deploys_at_user_scope_after_trust" -n 0
(on branch danielmeppiel-glowing-garbanzo; the cells are strict xfails citing this issue)
Found by the lifecycle world (#4094). It gates the U-BIN definition and the #4225 bin cells.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
test(lifecycle): Claude bin plugin user-scope cells are strict xfails…
danielmeppiel commentedon Nov 20, 2026
Decision: approve
Area: project
Scope: Make package type classification identical on a fresh fetch and a cached pass, at the single type-precedence owner (install/legacy_plugin_compat). A package with .claude-plugin/plugin.json is classified the same on every pass, so Claude native admission deploys its bin/ after approval and
apm install -g --trust-bin. A root skills/ bundle without a plugin manifest stays skill_bundle, and --skill subset selection is unchanged.Done when: (a) an installed-CLI test that fails before the fix runs approve, then
apm install -g --trust-bin, then asserts bin/ under the plugin root (plus the lock row if #4225 has landed or this PR carries it); (b) test_claude_native_hook_lifecycle::test_installed_hook_source_reinstall_and_removal[False-*] passes; (c) a positive control shows a manifest-less root skills/ bundle stays skill_bundle with --skill subset selection; (d) a fresh-vs-cached classification parity test at the owner; CI green, milestone 0.37.0, "Fixes #4270".Out of scope: Claude admission type checks, exec-gate decisions, the lock-row writer for deployed bin (#4225 unless carried), other plugin layouts.
Review contact: Daniel Meppiel (@danielmeppiel)
docs(changelog): #4270 fix line
Merge world 57d5e29 (strict cells #4257, #4270) into worker E
test(frozen): a whole Claude plugin locks as marketplace_plugin, as o…
test(plugins): cite the documented Claude plugin collection type in l…
test(frozen): a lock with the previous skill_bundle plugin type repla…
test(ledger): record #4270 in the lifecycle bug ledger
Merge pull request #4276 from microsoft/danielmeppiel-claude-plugin-t…
Merge origin/main (#4146, #4276) into #4142; shrink #4146 allowances #…
fix(plugins): a cached pass classifies a plugin as its fresh fetch do…
test(plugins): name the package-shape lifecycle promises (#4270)