Skip to content

[BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers #3953

Closed

Description

Reporting and investigating a bug need no permission. Before implementing a
substantive fix for inclusion in APM, obtain human scope approval and a review
contact on this issue. See Contributing.

Describe the bug
apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers, which the #3865 CHANGELOG line says are accepted. Root cause: commands/audit.py:995-1021 is a second package selector that diverged from the selector uninstall uses.

To Reproduce
Found by the 0.37 red team, confirmed on main 94b0c69.

  1. Install a marketplace plugin (x@m) and a local package.
  2. Run apm audit x@m and apm audit _local/<name>. Both are rejected.

Expected behavior
apm audit resolves package identifiers through the same selector owner as apm uninstall, offline, and accepts every identifier form that uninstall accepts.

Additional context
0.37 red team finding F4. This is a consistency break between two commands.

Activity

  1. added
    type/bug
    on Nov 19, 2026
  2. changed the title [-][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/&lt;name&gt; identifiers[/-] [+][BUG] apm audit PACKAGE rejects plugin@marketplace and _local/<name> identifiers[/+] on Nov 19, 2026
  3. danielmeppiel commented on Nov 19, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Route apm audit PACKAGE selection through the uninstall selector owner, offline, so every identifier form uninstall accepts (plugin@marketplace, _local/, owner/repo) is accepted, with no second selector.
    Done when: Tests show apm audit x@m and apm audit _local/ select the right package offline, matching uninstall; the duplicate selector in commands/audit.py is removed and guarded statically. It fails on main. One CHANGELOG line.
    Out of scope: New audit options.
    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