Repository navigation
docs(reference): reground CLI reference, apm-usage and help text for 0.37 - #3949
Conversation
…0.37 Refs #3948. Wave 1 of the 0.37 docs sweep (docs-corpus-audit): reference/cli, reference pages, specs/conformance, the apm-usage skill (Rule 4) and four CLI help strings. Help-text-only Python edits. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The policy documentation incorrectly states that unresolved transports are always blocked, although default enforcement: warn only emits a warning; the claim needs to be qualified with enforcement: block.
1 open issue
What changed in this PR
Updates APM's reference documentation, usage skill, and CLI help to reflect 0.37 behavior. This delivers the reference-focused portion of #3948; companion guides and pages owned by in-flight changes remain separate.
Changes:
- Documents target aliases, root
.mcp.json, IntelliJ restrictions, and pluraltargets:examples. - Aligns guidance with marketplace revalidation, newer-lockfile refusal, Codex manifests, and bundle hooks.
- Corrects command examples, defaults, policy details, and conformance descriptions without changing operational behavior.
| File | Description |
|---|---|
src/apm_cli/core/target_catalog.py |
Generates deprecated-alias notes for target help. |
src/apm_cli/commands/pack.py |
Updates targets: wording and preserves help-table layout. |
src/apm_cli/commands/marketplace/__init__.py |
Clarifies marketplace path and revalidation help. |
src/apm_cli/commands/install.py |
Explains IntelliJ restrictions and refresh failures. |
packages/apm-guide/.apm/skills/apm-usage/workflow.md |
Adds root MCP config to commit guidance and clarifies deprecated configuration. |
packages/apm-guide/.apm/skills/apm-usage/SKILL.md |
Includes root .mcp.json in commit guidance. |
packages/apm-guide/.apm/skills/apm-usage/package-authoring.md |
Updates targets, bundle hooks, Codex manifests, and marketplace examples. |
packages/apm-guide/.apm/skills/apm-usage/authentication.md |
Refreshes marketplace and update terminology. |
docs/src/content/docs/specs/conformance.md |
Clarifies statement generation and skipped requirements. |
docs/src/content/docs/reference/targets-matrix.md |
Documents Copilot MCP placement, aliases, Codex manifests, and IntelliJ selection. |
docs/src/content/docs/reference/primitive-types.md |
Removes already-delivered features from future plans. |
docs/src/content/docs/reference/policy-schema.md |
Adds strict version and effective-transport guidance. |
docs/src/content/docs/reference/environment-variables.md |
Corrects registry-token variable normalization. |
docs/src/content/docs/reference/common-errors.md |
Links to expanded troubleshooting guidance. |
docs/src/content/docs/reference/cli/unpack.md |
Uses a relative executable-approval link. |
docs/src/content/docs/reference/cli/targets.md |
Explains vscode and IntelliJ handling. |
docs/src/content/docs/reference/cli/prune.md |
Documents newer-lockfile refusal. |
docs/src/content/docs/reference/cli/plugin.md |
Removes unsupported marketplace init --yes. |
docs/src/content/docs/reference/cli/pack.md |
Prioritizes targets: and documents newer-lockfile refusal. |
docs/src/content/docs/reference/cli/marketplace.md |
Includes the remove command's --yes option. |
docs/src/content/docs/reference/cli/lock.md |
Documents newer-lockfile refusal and upgrade guidance. |
docs/src/content/docs/reference/cli/lifecycle.md |
Includes run among accepted command-script keys. |
docs/src/content/docs/reference/cli/find.md |
Corrects dependency-chain direction. |
docs/src/content/docs/reference/cli/config.md |
Corrects the initial default client to copilot. |
docs/src/content/docs/reference/cli/compile.md |
Updates aliases, command names, target examples, and watcher behavior. |
docs/src/content/docs/reference/cli/audit.md |
Adds newer-lockfile refusal to exit-code descriptions. |
Review effort: Balanced
APM Review Panel:
|
| Persona | B | R | N | Takeaway |
|---|---|---|---|---|
| Doc writer | 0 | 2 | 1 | Nearly every claim checks out against source. One intellij overclaim, a leftover planned-features block, and an audit --file exit-code nuance. |
| DevX UX expert | 0 | 1 | 2 | Help edits mostly read well; fix the misleading intellij note and the --runtime alias collision. |
| Python architect | 0 | 0 | 3 | Alias note correctly owned by target_catalog and consistent across all 5 callers; other edits are help-only. |
| Test coverage expert | 0 | 0 | 1 | Help-text-only change; existing tests pass. Nothing asserts the new generated alias note. |
B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.
Top 5 follow-ups
- [Doc writer] Fix the intellij wording in
reference/targets-matrix.md(Selection bullet) and merge the two intellij sentences ininstall --targethelp into one accurate sentence. -- Two panelists found it; current text suggests the flag is refused outright, so JetBrains users may drop it and lose MCP config. - [Test coverage expert] Assert the generated alias note in
test_every_accepted_value_is_advertised_and_parses, and bound the deps-update sort-order segment at the first.afterValues:. -- Existing tests pass with or without the note; the secondvscodeweakens the ordering check. - [Doc writer] Delete the
Future Enhancementssection inreference/primitive-types.md. -- Two unimplemented roadmap bullets sit outside a Planned callout. - [DevX UX expert] Put the
--runtimelegacy-alias note before the target values fragment. -- The parenthetical now reads as if it describes vscode/copilot. - [DevX UX expert] Give
marketplace updatea plain short help plus a body explaining NAME and the exit-1 contract. -- No other summary carries exit codes; NAME is never explained.
Architecture
classDiagram
direction LR
class target_catalog {
<<CanonicalOwner>>
+DEPRECATED_TARGET_ALIASES Mapping
+accepted_target_values(command) frozenset
+target_help_fragment(command) str
+target_all_exclusion_help() str
}
class HelpConsumers {
<<IOBoundary>>
install --target / --runtime
update / deps update / compile
}
HelpConsumers ..> target_catalog : reads fragment
class target_catalog:::touched
classDef touched fill:#fff3b0,stroke:#d47600
flowchart TD
A[DEPRECATED_TARGET_ALIASES vscode to copilot] --> C[accepted_target_values]
C --> D[target_help_fragment]
A --> D
D --> E[install --target help]
D --> F[install --runtime help]
D --> G[update --target]
D --> H[deps update --target]
D --> I[compile --target]
Recommendation
The PR is grounded and in scope. Fold the follow-ups into this PR, starting with the intellij wording, then the alias-note regression test. Merge once CI is green. Track generating the intellij help sentence from catalog mcp_only capabilities as a separate follow-up.
Full per-persona findings
Doc writer
- [recommended] targets-matrix intellij Selection bullet overclaims at
docs/src/content/docs/reference/targets-matrix.md:332
A command that would create apm.yml refuses--target intellij(init.py, manifest_helpers.py raise IdeTargetError); it only writes JetBrains MCP once apm.yml exists. - [recommended] primitive-types Future Enhancements lists unimplemented features as plain prose at
docs/src/content/docs/reference/primitive-types.md:223 - [nit] audit exit-code row 1:
apm audit --fileskips the newer-lockfile gate atdocs/src/content/docs/reference/cli/audit.md:381 - Over cap: the
reference/common-errors.mdintro clause "including those new in 0.37" will go stale.
DevX UX expert
- [recommended] intellij sentence in install --target help implies the flag is refused at
src/apm_cli/commands/install.py:872 - [nit]
--runtimehelp: alias sentence collides with "(legacy alias for --target ...)" atsrc/apm_cli/core/target_detection.py:731 - [nit]
marketplace updatesummary carries an exit code; no body explains NAME atsrc/apm_cli/commands/marketplace/__init__.py:820
Python architect
- [nit] intellij refusal sentence is hand-written while the catalog knows
mcp_onlyatsrc/apm_cli/commands/install.py:873 - [nit] deps update sort-order test now sees
vscodetwice attests/unit/test_cli_consistency.py:309 - [nit] Confirmed: fragment placement and concatenation sound across 5 callers at
src/apm_cli/core/target_catalog.py:346
Test coverage expert
- [nit] No test asserts the generated deprecated-alias note at
src/apm_cli/core/target_catalog.py:346
Proof (missing at):tests/unit/core/test_target_catalog.py::test_every_accepted_value_is_advertised_and_parses-- proves: --target help tells users 'vscode' is a deprecated alias of 'copilot' and stays in sync with accepted aliases.
This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.
Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.
--target intellij still writes JetBrains MCP config once apm.yml exists; it is only refused where a command would record it in apm.yml. The targets-matrix bullet and install --target help implied the flag was refused outright, which would lead JetBrains users to drop it and lose MCP wiring. Addresses panel follow-up 1 (doc-writer, devx-ux-expert). Co-authored-by: Copilot <[email protected]>
The generated deprecated-alias sentence made the --runtime legacy-alias parenthetical read as if it described vscode. marketplace update now has a plain one-line summary and a body explaining NAME and the exit-1 contract. Addresses panel follow-ups 4 and 5 (devx-ux-expert). Co-authored-by: Copilot <[email protected]>
Remove the unimplemented Future Enhancements bullets, note that apm audit --file skips the newer-lockfile gate (audit.py runs require_current_cli only without --file), and drop a version-pinned clause that would go stale. Addresses panel follow-up 6 and doc-writer findings. Co-authored-by: Copilot <[email protected]>
target_help_fragment now appends a sentence per DEPRECATED_TARGET_ALIASES entry; existing tests passed with or without it. Assert it per command, and bound the deps update sort-order segment at the end of the Values list so the repeated alias name cannot mask an ordering regression. Mutation-break: removing the appended note fails test_every_accepted_value_is_advertised_and_parses. Addresses panel follow-up 2 (test-coverage-expert, python-architect). Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
An unresolvable registry transport is a policy violation, but under the default enforcement: warn it is only a warning (test_mcp_transport_policy_lifecycle asserts audit --ci passes with warn). Addresses Copilot inline on docs/src/content/docs/reference/policy-schema.md:162. Co-authored-by: Copilot <[email protected]>
Resolve package-authoring.md Kiro conflict: keep main's per-agent fail-closed wording (#3947) with this PR's targets: [kiro] spelling. Co-authored-by: Copilot <[email protected]>
APM Review Panel:
|
| Persona | B | R | N | Takeaway |
|---|---|---|---|---|
| Doc writer | 0 | 0 | 0 | All delta hunks check out against source. No new issues. |
| DevX UX expert | 0 | 0 | 0 | Delta folds are accurate and read cleanly in rendered help. |
| Test coverage expert | 0 | 0 | 0 | Alias-note fold is guarded by a test; remaining delta is help wording that existing tests accept. |
| Python architect | 0 | 0 | 0 | Only help strings and test assertions changed; behaviour and owner boundaries unchanged. |
B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.
Top 1 follow-ups
- [Python architect] File a post-merge issue to generate the intellij
install --targethelp sentence from catalogmcp_onlycapabilities. -- A hard-coded capability sentence can drift again; out of scope for this docs PR.
Folded in this run
- Intellij selection wording in
reference/targets-matrix.mdandinstall --targethelp --a337cf8 --runtimelegacy-alias note before the Values fragment;marketplace updateshort help plus body --d202f87- Removed
primitive-typesFuture Enhancements;audit --fileexception; dropped version-pinned clause inreference/common-errors.md--c05fe63 - Test asserting the generated deprecated-alias note (mutation-break: removing the note fails it); bounded deps-update Values segment --
560b620 policy-schemaunresolved-transport outcome qualified by enforcement --23c2925
Copilot signals reviewed
- LEGIT, folded in
23c2925:policy-schema.md:162"is blocked" overstated the default;enforcement: warnonly warns.
Deferred
- Catalog-generated intellij help sentence -- boundary: new
target_cataloghelper is a code-structure change beyond help-string wording.
Evidence
- Lint:
ruff check/ruff format --check(0.15.12) clean, pylint R0801 10.00/10, auth-signal lint clean,lint-architecture-boundaries.shexit 0. - Tests at
2a491e8:test_target_catalog.py14 passed; target decision +--runtimehelp 38 passed; install command 142 passed; marketplace update/client 61 passed. - CI at
2a491e8: 31 checks pass, none failing.
| PR | Head | Stance | Iter | Folds | Deferred | Copilot rounds | CI | Mergeable | Merge state | Notes |
|---|---|---|---|---|---|---|---|---|---|---|
| #3949 | 2a491e8 | ship_with_followups | 2 | 7 | 1 | 2 | green | MERGEABLE | BLOCKED | pending required review |
Recommendation
Ready for maintainer review and merge. CI is green at 2a491e8. After merging, track the catalog-generated intellij help sentence as one small follow-up issue.
Full per-persona findings
Doc writer
No findings.
DevX UX expert
No findings.
Test coverage expert
No findings.
Python architect
No findings.
This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.
Generated by autopilot-pr-merge-worker. This comment is AI-generated and may contain errors.

Description
TL;DR — Wave 1 of the 0.37 docs sweep for the reference surface. It updates
reference/cli/*, the other reference pages,specs/conformance.md, theapm-usageskill (Rule 4) and four CLI help strings so they describe 0.37 behaviour. The Python edits change help text only.Problem (WHY)
0.37 changed observable behaviour (see
CHANGELOG.md[Unreleased]), and the reference pages had not caught up:vscodeis now a deprecated alias ofcopilot, and Copilot project MCP lives in root.mcp.json(feat!: Copilot project MCP in root .mcp.json; vscode a deprecated alias; drop apm manifest migrate #3875).targets-matrix,targetsand the--targethelp did not say this.intellijcan no longer be recorded inapm.yml(fix(manifest): bootstrap never writes unreadable targets; plain dependency and target errors #3873/fix(manifest): extract the bootstrap manifest owner; refuse IDE targets in apm.yml #3882), but the matrix andinstall --targethelp still offered it with no caveat.lock,pack,pruneandauditrefuse a lockfile written by a newer APM (fix(lockfile): refuse lockfiles written by a newer APM (#2334) #3916). Their exit-code rows did not list this case.install --refreshandmarketplace updatenow revalidate each marketplace or fail (fix(marketplace): explicit refresh revalidates catalogs or fails (#3279) #3910). Their help still said "refresh cache".apm packwrites.codex-plugin/plugin.jsonfortargets: [codex](feat(pack): generate .codex-plugin/plugin.json for targets: [codex] #3906), butapm-usage/package-authoring.mdsaid only Claude and Copilot get one.target:as the primary key.Approach (WHAT) / Implementation (HOW)
reference/cli/{audit,lock,pack,prune}.mdreference/cli/{compile,targets}.md,reference/targets-matrix.mdvscodealias, root.mcp.json, intellij caveat, Codex plugin manifest;vscodeis the only alias that warns (agentsdoes not)reference/cli/{config,find,lifecycle,marketplace,plugin,unpack}.mddefault_clientseed iscopilot;find --pathdirection;runkey accepted;remove --yes; the non-existentmarketplace init --yesremoved; one link made relativereference/{policy-schema,environment-variables,primitive-types}.mdreference/common-errors.mdtroubleshooting/common-errors(the 0.37 entries live there, in the companion PR)specs/conformance.mdreq-na-001–007(#3929); the wrongreq-cf-001citation is removedapm-usage/{SKILL,authentication,package-authoring,workflow}.md.mcp.jsonin the commit lists;apm updatereplaces--update;targets:examples; themarketplace:block keypackages:; pack exit codes; Codexplugin.json; bundle hooks (#3897)core/target_catalog.pytarget_help_fragmentappends the deprecated-alias note, generated fromDEPRECATED_TARGET_ALIASEScommands/install.py,commands/marketplace/__init__.py,commands/pack.py--refreshand--target intellij,marketplace update/add --path, and the pack table (nowtargets:, with layout kept by\b)Trade-offs
reference/cli/install.md,update.md,uninstall.md,lockfile-spec.md,manifest-schema.md, andapm-usage/commands.md,dependencies.md,governance.md) are out of scope. A follow-up PR handles them once those PRs land.Issue and approved scope
Issue: Refs #3948
Human scope-approval comment: #3948 (comment)
Does this PR complete the issue, or what remains? Partial. The companion guides PR and a follow-up for the #3918/#3290-owned pages remain.
Type of change
Testing
Validation evidence
Every added docs link and anchor was checked to resolve to an existing page or heading. All added text is printable ASCII.
Changelog
## [Unreleased]inCHANGELOG.mdSpec conformance (OpenAPM v0.1)
How to test
uv run apm install --help: the--targetvalues note'vscode' is a deprecated alias of 'copilot'andapm.yml cannot record intellijuv run apm marketplace --help:updatereads "Revalidate marketplace cache; exit 1 if any marketplace fails"uv run apm pack --help: the table keeps its layout and liststargets:Co-authored-by: Copilot [email protected]