Skip to content

docs: reground #3290 native-plugin reference pages and 0.37 nits - #3997

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-docs-037-native
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-docs-037-native

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

TL;DR — Wave 3 of the 0.37 docs sweep, stacked at the top of the 0.37 stack. It fixes the reference pages and the apm-usage skill for #3290 (native Claude plugins) and folds three queued 0.37 nits. Docs only. The new-IA consumer pages that #3996 rewrites (install-plugins, installing-from-marketplaces, install-mcp-servers) are the CDO session's to patch. Their findings are handed off, not edited here.

Note

Stack: #3996 ← #3989 ← #3992 ← #3290 ← PR D ← this PR. This PR is based on #3290's branch until PR D opens, then rebases onto PR D.

Problem (WHY)

These claims were checked against the code at #3290 head 9df690af:

  • reference/lockfile-spec.md does not list the native_plugin record fix(claude): install intact user plugins through Claude settings, owned by the lock #3290 writes: name, root, fingerprint, marketplace{name,path}. There is no harnesses field (dropped in 1020049).
  • apm-usage/commands.md says "Global uninstall retains native plugin data". The code removes the plugin roots and enabledPlugins keys the previous lock recorded (claude_plugins/registrar.py, native_plugins/settings.py).
  • apm-usage/commands.md says apm approve writes a plugin: pin only for Copilot and Codex, and that hook pins are package-relative. The code also pins user-scope Claude plugins (commands/approve.py) and keys hooks on the publisher's file (fc62e89).
  • reference/cli/uninstall.md omits removal of extraKnownMarketplaces. Its recovery hint also drops the "original --target" that the CLI message says.
  • 0.37 nits:
    • commands.md and cache.md list apm install --update as current.
    • targets.md names apm deps update.
    • commands.md calls the compile fallback vscode/minimal instead of copilot/minimal.

Implementation

File Change
reference/lockfile-spec.md One native_plugin row
reference/cli/uninstall.md extraKnownMarketplaces cleanup; recovery hint matches the CLI message
reference/cli/cache.md, reference/cli/targets.md --update marked deprecated; apm update
apm-usage/commands.md Native-plugin uninstall, approve pins and hook keys; deprecated --update; compile fallback names

Trade-offs

Issue and approved scope

Issue: Refs #3948

Human scope-approval comment: #3948 (comment)

Does this PR complete the issue, or what remains? It completes the sweep's #3290 re-check for the pages it owns. The new-IA consumer pages are patched in the #3996 stack.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Each claim was checked against source on this branch (file:line in the commit message and the audit return). New links resolve. apm-usage text is printable ASCII. No builds or tests were run locally (host capacity rule); CI covers them.

Changelog

  • N/A -- docs only.

Spec conformance (OpenAPM v0.1)

  • N/A -- this PR does not change OpenAPM-observable behaviour.

Co-authored-by: Copilot [email protected]

@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.37.0 milestone Nov 19, 2026
@danielmeppiel Daniel Meppiel (danielmeppiel) added the type/docs Documentation change (prose, examples, generated reference). label Nov 19, 2026
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_with_followups

Accurate, surgical 0.37 reground of the native-plugin reference pages; fold three in-scope precision nits (fingerprint scope, uninstall parity, hook-pin wording), then ship.

panel-mode=lean; personas=doc-writer,apm-ceo

cc Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

There is one panelist (doc-writer) and no disagreement to settle. Every changed claim was checked against src/apm_cli on this branch (native_plugins/record.py, native_plugins/settings.py, commands/uninstall/cli.py, commands/approve.py, core/target_detection.py, commands/install.py) and is accurate. All three findings are recommended-tier precision gaps, not factual errors. The PR stays inside the accepted #3948 scope: docs only, surgical, no README, no code.

Two findings are accepted as written: the native_plugin fingerprint excludes APM's root apm.yml and .apm/ normalization output, and the apm-usage global-uninstall paragraph must match uninstall.md step 8. On the hook-pin clause, the right wording follows plugin_parser.normalized_hook_source: for a normalized plugin, the publisher file the .apm/hooks/ copy came from.

Keeping the installing-from-marketplaces anchor links on this base and re-pointing them at restack is the right sequencing with #3996.

Dissent. The doc-writer's suggested hooks/hooks.json wording is narrower than the code (manifest-declared hook paths also qualify); the CEO sides with the normalized-plugin wording.

Aligned with: Portable by manifest: the lockfile row now says what the fingerprint covers and excludes. Secure by default: approve pins name exactly which file is trusted. Multi-harness: compile fallback and deprecated update forms read the same across cache, targets and apm-usage. Pragmatic as npm: one uninstall contract and a verbatim recovery hint.

Panel summary

Persona B R N Takeaway
Doc Writer 0 3 0 Docs-only reground is accurate overall; tighten native_plugin fingerprint scope, align apm-usage uninstall with uninstall.md step 8, and narrow the approve hook-pin clause.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 3 follow-ups

  1. [Doc Writer] Narrow the native_plugin fingerprint wording in lockfile-spec.md and commands.md; note the record is carried forward when later run targets exclude claude. -- "Every file" overclaims what compute_native_plugin_hash covers.
  2. [Doc Writer] Align the apm-usage global-uninstall paragraph with uninstall.md step 8 and rewrap. -- The two sources disagree; agents get a narrower contract.
  3. [Doc Writer] Reword the approve hook-pin clause to "for a normalized plugin, the publisher file its .apm/hooks/ copy came from". -- Matches plugin_parser.normalized_hook_source exactly.

All three are folded in a1f2e3d.

Recommendation

Fold all three doc-writer findings in this PR, then ship once the CODEOWNERS review lands. Re-pointing the anchor links at restack is owned by the stack orchestrator.


Full per-persona findings

Doc Writer

  • [recommended] native_plugin fingerprint is described as covering every file, but APM's root apm.yml and .apm/ are excluded at docs/src/content/docs/reference/lockfile-spec.md:330
    compute_native_plugin_hash covers the native bundle files minus APM's root apm.yml and root .apm/. The new row and commands.md line 145 say every file. The row also omits that a later run whose targets exclude claude carries the record forward while commit and content hash are unchanged.
  • [recommended] apm-usage global-uninstall paragraph leaves out the extraKnownMarketplaces cleanup and the kept user entries that uninstall.md step 8 now documents at packages/apm-guide/.apm/skills/apm-usage/commands.md:155
    The two sources disagree; agents reading apm-usage get a narrower contract. The new line is also longer than its neighbours.
  • [recommended] approve hook-pin clause says "for a plugin", which is broader than the verified behaviour at packages/apm-guide/.apm/skills/apm-usage/commands.md:941
    fc62e89 keys plugin hook approvals on the publisher file instead of APM's normalized .apm/hooks/ copy; the unqualified wording conflicts with the later whole-root plugin pin sentence.

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.

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_now

Docs-only reground of the #3290 native Claude plugin reference pages plus 0.37 nits; all three lean-pass follow-ups are folded in a1f2e3d, and the delta pass is clean.

panel-mode=delta; personas=doc-writer,apm-ceo

cc Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

Material delta since the last advisory (head 73d2262): commit a1f2e3d folds the three doc-writer follow-ups -- the native_plugin fingerprint now names its file set (publisher files, excluding APM's root apm.yml and .apm/) and the carry-forward rule when a run's targets exclude claude; the apm-usage global-uninstall paragraph matches uninstall.md step 8; the approve hook-pin clause names the publisher file a normalized .apm/hooks/ copy came from. The delta doc-writer re-checked all three against source and returned no findings; apm-usage stays printable ASCII.

The Copilot reviewer left no comments across two fetch rounds. The ruff check/format pair is silent. No canonical architecture owner is touched (docs only). Two stack caveats, not defects here: only Deploy Docs and eligibility run on this base (main-targeted CI runs after restack), and the stack orchestrator re-points the installing-from-marketplaces#apm-managed-claude-user-plugins anchors at restack. Consumer pages owned by the #3996 docs patch stay out of scope.

Aligned with: Portable by manifest: the lockfile spec states the fingerprint scope the code records. Secure by default: the hook-pin wording names the integrity anchor. Multi-harness: no overstated support for other harnesses. Pragmatic as npm: install and uninstall docs give the same answer.

Panel summary

Persona B R N Takeaway
Doc Writer 0 0 0 All three folds in a1f2e3d resolve the lean findings and match the verified source facts. apm-usage stays printable ASCII with no new inaccuracy; ship.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Folded in this run

  1. Fingerprint scope and carry-forward in lockfile-spec.md and apm-usage commands.md -- a1f2e3d
  2. apm-usage global-uninstall parity with uninstall.md step 8 -- a1f2e3d
  3. approve hook-pin clause wording -- a1f2e3d

Recommendation

Ship as part of the #3290 stack, after the CODEOWNERS review. The remaining checks belong to the stack orchestrator: main-targeted CI and the Deploy Docs build after restack, and anchor re-pointing. No open review follow-ups for this PR.

PR head stance iterations folds deferrals copilot_rounds ci mergeable merge_state notes
#3997 a1f2e3d ship_now 2 3 0 2 docs build green; eligibility queued see orchestrator see orchestrator stacked base; full CI after restack

Full per-persona findings

Doc Writer

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-review-worker. This comment is AI-generated and may contain errors.

@danielmeppiel
Daniel Meppiel (danielmeppiel) changed the base branch from danielmeppiel-native-hook-delivery to danielmeppiel-pr-d-docs-found-product-fixes November 19, 2026 23:56
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-pr-d-docs-found-product-fixes branch from 5ecf6fc to f12a825 Compare November 20, 2026 00:01
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-pr-d-docs-found-product-fixes branch from f12a825 to d524fe2 Compare November 20, 2026 00:49
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-pr-d-docs-found-product-fixes branch from 89181ff to bd59968 Compare November 20, 2026 01:11
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
#3290 edits this file at a frozen SHA; the link repoints move to #3997,
the top docs layer.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Bump pyproject.toml and uv.lock to 0.37.0 and move [Unreleased] to [0.37.0] in CHANGELOG.md, re-sanitized to one line per change in one section, with the stack's new entries grouped by theme and 4 Highlights. README: apm-guide pin to v0.37.0 and Codex .codex-plugin/plugin.json in the Build plugins line. Lint mirror green locally (ruff check + format, pylint R0801, auth-signals).

Draft on the 0.37 stack (top: #3997); rebased as layers land. Post-merge: tag v0.37.0.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Restores 21 reference/spec/troubleshooting files to their pre-repoint
content so #3996 merges cleanly under the stack; #3997 (top docs layer)
re-applies these repoints.

Co-authored-by: Copilot App <[email protected]>
Refs #3948. Wave 3 of the 0.37 docs sweep, stacked on #3290:
- lockfile-spec: native_plugin record row (name, root, fingerprint,
  marketplace; no harnesses)
- uninstall: extraKnownMarketplaces cleanup and the real recovery hint
- apm-usage/commands.md: global uninstall of native plugins, Claude
  user-plugin pins, hook keys on the publisher file, deprecated
  apm install --update, copilot/minimal compile fallback
- cache.md: mark apm install --update deprecated
- targets.md: apm update instead of apm deps update

Co-authored-by: Copilot App <[email protected]>
The panel (doc-writer, lean) found three precision gaps in this PR's own
files. The native plugin fingerprint excludes APM's root apm.yml and .apm/
normalization output (content_hash.compute_native_plugin_hash), and a run
whose targets exclude claude carries the record forward
(phases/lockfile._attach_native_plugins). The apm-usage global-uninstall
paragraph now matches uninstall.md step 8 (extraKnownMarketplaces cleanup,
kept user entries; native_plugins/settings.apply_declaration). The approve
hook-pin clause names the publisher file a normalized .apm/hooks/ copy came
from (plugin_parser.normalized_hook_source).

Addresses CEO follow-ups FU-1, FU-2, FU-3. Refs #3948.

Co-authored-by: Copilot <[email protected]>
Refs #3948. The 12 link-target changes the CDO moved out of #3996, plus
the two #3290 links to the retired installing-from-marketplaces anchor.
Prose unchanged.

Co-authored-by: Copilot App <[email protected]>
Refs #3948. Ports the CDO's dropped-repoints-ea053b patch (link targets
to the #3996 IA, plus the few prose/link-text edits it lists) for the 20
files stack layers also edit; reference/cli/install.md was done in the
previous commit.

Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 20, 2026
Base automatically changed from danielmeppiel-pr-d-docs-found-product-fixes to main November 20, 2026 06:44
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit f3a3ba2 into main Nov 20, 2026
5 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-docs-037-native branch November 20, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Documentation change (prose, examples, generated reference).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant