Skip to content

Claude plugin with bin/ is no longer deployed whole at user scope after approve + --trust-bin (silent) #4270

Closed

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/. Run cd ~/.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.

Activity

  1. added
    type/bug
    on Nov 20, 2026
  2. added
    status/accepted
    on Nov 20, 2026
  3. danielmeppiel commented on Nov 20, 2026

    @danielmeppiel
    CollaboratorAuthor

    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)

  4. added 2 commits that reference this issue on Nov 20, 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