Skip to content

[BUG] CLI messages point to commands and docs that do not exist #3838

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. Trivial documentation corrections have standing
preapproval. See Contributing.

For vulnerabilities, use SECURITY.md
instead of a public issue. Remove credentials and other sensitive data from logs.

Describe the bug
Several user-facing messages are stale. Each points users to a command, flag behavior or docs anchor that does not exist.

To Reproduce

  1. apm search foo prints Use QUERY@MARKETPLACE, e.g.: apm marketplace search security@skills, but apm marketplace search is not a command (search is the top-level apm search). Source: commands/marketplace/__init__.py:1202,1212,1220.
  2. apm pack with a marketplace block prints MARKETPLACE_DOCS_URL with the anchor #consume-from-any-assistant, which no docs page has. Use consumer/installing-from-marketplaces/#install-patterns. Source: commands/pack.py:22-24.
  3. apm config set mcp-registry-url http://... prints Set MCP_REGISTRY_ALLOW_HTTP=1 when using this trusted plaintext endpoint, but config-sourced URLs are exempt from that gate on purpose (registry/client.py:339-342). Source: commands/config.py:541-544.
  4. apm pack --help says exit 2 = manifest schema validation error. Schema and YAML errors exit 1; 2 is a Click usage error (tests/unit/commands/test_pack_cli_surface.py:489-496). The block also renders as one paragraph because it lacks \b. Source: commands/pack.py:61-67.
  5. The hidden apm update --check help says it is rejected inside a project; it is forwarded to apm self-update --check. Source: commands/update.py:463.
  6. apm compile --target antigravity says .github/instructions/ already covers Copilot when it deduplicates against .agents/rules/. Source: compilation/agents_compiler.py:647-662.
  7. .pre-commit-config.yaml:1 says uv run pre-commit install, but pre-commit is not a dev dependency (uvx pre-commit install works). scripts/bootstrap_requirements.py:4 names the old manifest path docs/src/content/docs/specs/manifests/ (it is docs/public/specs/manifests/).

Expected behavior
Each message names a real command, flag or anchor.

Environment (please complete the following information):

  • OS: macOS (also reasoned from code; not platform-specific)
  • Python Version: 3.12
  • APM Version: main @ 2c984f6 (after v0.36.1)
  • VSCode Version (if relevant): n/a

Logs
See the reproduction steps; each item was run against main.

Additional context
These are all message-only fixes and can land together.

Found by the docs corpus re-sweep (#3800): the docs now describe the intended contract (with a short note where users are hit today).

Activity

  1. added
    area/cli
    type/bug
    on Nov 18, 2026
  2. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Taking this for 0.37.0 as part of the docs re-sweep (#3800) code-defect batch, landing as one PR. Context, Daniel's direction for the docs report: "do not defer things nor hold things - simply fix it with the criteria of a world class documentation writer as well as the UX and Product chief", and "all those fixes must land in a single PR and in 0.37". Scope record follows.

  3. danielmeppiel commented on Nov 18, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Correct the stale CLI messages listed in the issue: marketplace search hint, pack marketplace docs URL anchor, mcp-registry-url plaintext hint, apm pack --help exit codes and formatting, hidden apm update --check help, antigravity compile dedup message, pre-commit config comment, and bootstrap_requirements manifest path.
    Done when: Each listed message names a real command, flag behavior, or docs anchor; tests assert the corrected strings where a test surface exists; CHANGELOG updated.
    Out of scope: Behavior changes to the underlying commands.
    Review contact: Daniel Meppiel (@danielmeppiel)

  4. added
    status/accepted
    on Nov 18, 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

    area/clistatus/acceptedtype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions