Skip to content

docs(spec): add the OpenAPM native plugin activation profile (#3919) - #3929

Merged
Daniel Meppiel (danielmeppiel) merged 6 commits into
mainfrom
danielmeppiel-spec-native-plugin-activation
Nov 19, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 6 commits into
mainfrom
danielmeppiel-spec-native-plugin-activation

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds the OpenAPM native plugin activation profile as amendment 0.1.65, new Section 8.5.11 of openapm-v0.1.md. It writes down the contract accepted in the #3094 design record: when APM may install a whole plugin by declaring it to a harness's own loader, and what APM promises when it does. The #3290 reshape is the first consumer and cites these IDs.

  • Part A (normative): target criteria A1-A5. Each criterion cites a vendor document that already meets it. [req-na-001] allows native activation only for a target, scope and client version that meets all five by published documentation. Unknown means not qualified, and the conformance statement must disclose qualification.
  • Part B (normative): consumer guarantees.
    • [req-na-002]: the lockfile is the source of truth. Only the approved plugin root is deployed to .agents/plugins/<plugin>/ or ~/.agents/plugins/<plugin>/, next to a generated .claude-plugin/marketplace.json. The lock records the root and one digest over every file's path, bytes and exec bit.
    • [req-na-003]: APM writes only extraKnownMarketplaces and enabledPlugins, never private state, and calls no vendor CLI, binary or RPC.
    • [req-na-004]: ownership comes from the previous and next lockfile, with no receipt file. APM preserves unrelated keys and explicit false, and reports a conflict instead of deleting.
    • [req-na-005]: a plugin is enabled only when a content-bound approval covers that root digest. Otherwise it is neither deployed nor declared.
    • [req-na-006]: an unqualified target gets explicit split install or refusal, never silent.
    • [req-na-007]: marketplace names are unique per project and per scope.
  • Part C (informative): per-target table.
  • req-tg-013 is unchanged (additive). For a profile-activated dependency, req-na-002 and req-na-004 replace its placement and ledger clauses. A Section 8.5.7 editorial note points this out. Today's Copilot registrations remain under req-tg-013 alone.
  • Bookkeeping updated:
    • Sections 1.3, 8.7, 10.11 (row 25), 11.2, 11.3.2 and 12.4.
    • Appendix C (7 rows) and the Appendix D row plus its summary paragraph. The count goes 140 -> 147 (142 MUST, 5 SHOULD).
    • The requirements manifest (7 entries) and the fixture README.
  • Conformance:
  • Folded from apm-spec-guardian:
  • Coordination:

Spec, conformance and CHANGELOG only. No src/ or README change.

Issue and approved scope

Issue: Closes #3919

Human scope-approval comment: #3919 (comment) (review contact Daniel Meppiel (@danielmeppiel)). Design source: #3094 (comment). Adopted by editor decision recorded in #3919, mirroring #3905, without the Section 9.3 panel and comment period.

This PR completes the issue's Done-when on the spec side: the section is adopted with conformance requirement IDs. The #3290 reshape cites them and replaces the waivers it binds.

Type of change

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

Testing

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

Validation evidence:

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md:
    user-visible effect first, 25 words or fewer, ending with (#PR);
    breaking changes only under upgrade notes; no Highlights; see
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/public/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Amendment 0.1.65 adds Section 8.5.11 with req-na-001..007: Part A target
criteria A1-A5, Part B consumer guarantees, Part C informative target table.
Adopted by editor decision recorded in #3919.

apm-spec-waiver: spec-only amendment; no src/ change, implementation lands in #3290, #3921 and #3920

Co-authored-by: Copilot App <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The fallback requirement incorrectly binds consumers outside the profile, contradicting unchanged registration verdicts, and Copilot’s native-eligible classification conflicts with its unresolved project-scope qualification.

2 open issues
What changed in this PR

Adds the OpenAPM native plugin activation contract requested in #3919, establishing requirements for future APM native-install routes without changing runtime behavior.

Changes:

  • Defines seven requirements covering target qualification, lockfile-driven deployment, approval, settings ownership, and explicit fallback.
  • Records informative qualification assessments for Claude Code, Copilot CLI, and Codex.
  • Adds a reconciliation oracle and conformance bindings, with implementation waivers for planned delivery work.
File Description
tests/​spec_conformance/​test_native_activation_profile_reqs.py Adds requirement bindings, waivers, and oracle consistency checks.
tests/​fixtures/​spec-conformance/​README.md Lists the new reconciliation oracle.
tests/​fixtures/​spec-conformance/​native-activation/​req-na-004.json Defines six settings-reconciliation scenarios and expected outcomes.
docs/​src/​content/​docs/​specs/​openapm-v0.1.md Adds the activation profile, target assessments, and requirement cross-references.
docs/​public/​specs/​manifests/​openapm-v0.1.requirements.yml Registers the seven requirements and oracle reference.
CONFORMANCE.md Reports the new requirements as waived pending implementation.
CONFORMANCE.json Updates machine-readable bindings, waivers, and totals.

Review effort: Balanced

… profile

Scope req-na-005/006 to consumers that natively activate; pin the root
digest construction; apply req-tg-013 admission gates to every plugin
format; safe plugin names; relative project-scope paths; req-na-004
missing-lock and moved-binding rules with four new oracle cases; scope
the Copilot Part C row; add Section 10.18.

apm-spec-waiver: spec-only amendment; no src/ change, implementation lands in #3290, #3921 and #3920

Co-authored-by: Copilot App <[email protected]>
… profile

Restore req-na-001 as a restriction on consumers that natively activate;
keep the previous lock entry on an unapproved update; clarify the .git
exclusion and byte-wise order of the root digest; define ineligible-plugin
handling, name hygiene and unowned plugin directories; cover marketplace
renames; tighten the Section 10.18 residual and row 12.

apm-spec-waiver: spec-only amendment; no src/ change, implementation lands in #3290, #3921 and #3920

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Spec Guardian: next_brief

Scope: editorial-patch; diff = +1225/-12 lines across 8 file(s). Shocked-meter avg: 7.25/10 (round 2 of 2; round 1 avg 6.75/10).

Orchestrator note. Round 1 raised 6 blockers. All 6 were folded in aa7604f, and all four panels confirmed them closed in round 2. Round 2 raised one new convergent blocker (T1), which round-1 fold F9 had introduced. The loop budget is now spent, so, per the escalation path in the ship prose, the orchestrator folded F1-F12 below after the panel, in 910ea6e, for the maintainer to review. The panel has not re-reviewed those round-2 folds. The statement count is unchanged at 147 (142 MUST, 5 SHOULD), and orphan_check, CONFORMANCE regeneration and linter checks 1-10 pass on 910ea6e.

Recommendation: next_brief, with the loop budget exhausted. This is round 2 of the 2-round editorial-patch budget, and three panels (swagger, pkgmgr, tag) independently raised the same new blocker. Round-1 fold F9 rewrote req-na-001 into an unconditional MUST that binds every conforming consumer. That contradicts the 0.1.65 Section 9.2 claim that the profile is an optional capability. The blocker veto applies even though the meter (7.25) clears the 7.0 floor. All six round-1 blockers are confirmed closed, and no panel reopened the design, the #3290 digest construction or the 0.1.64 non-adoption. The maintainer should ESCALATE and decide between (a) folding the fixes post-panel for review and shipping, or (b) closing. The convergent blocker has a one-sentence fix (F1): restore 'that natively activates plugins MUST do so only for a target ...'. The orchestrator can fold it mechanically, and it dissolves all three blockers.

The other eleven folds (F2-F12) are surgical and close the four-panel convergence on uncovered-update lock coherence (F2). They also tighten the .git scope and byte-order wording without changing the #3290 construction (F3), define the ineligible-plugin outcome (F4), complete name hygiene (F5, F6), correct the 10.18 residual (F7), and tidy the oracle (F9-F11). The highest-signal follow-up is the known-answer root digest vector with #3290 (F14): it pins the F3 wording to bytes. If the maintainer folds F1-F12, this lands at the round-1 calibration anchor level (fold_and_ship, at or above 8.0) with honest deferrals to #3290, #3921, #3920 and #3922.

Convergence

Panel Verdict Shocked New B New R New N
Swagger / OpenAPI Editor needs_revision 7/10 1 5 2
OCI Distribution Editor ship_with_followups 8/10 0 4 2
Package-Manager Registry-Contract Editor needs_revision 7/10 1 3 0
Web-Platform Architect needs_revision 7/10 1 3 2

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

Convergent themes (flagged by 2+ panels)

  • T1 -- Round-1 fold F9 turned req-na-001 into an unconditional mandate on every consumer. This contradicts the 0.1.65 claim that the profile is an optional capability (Section 9.2). The 'that natively activates plugins' guard has to come back. (supporting: sw-blk-r2-1, pkg-blk-r2-1, tag-blk-r2-1)
  • T2 -- Uncovered-update branch of req-na-005: leaving the old root deployed while the next lock pins new content breaks lock coherence. The lock entry and the deployed root must agree. (supporting: sw-rec-r2-3, oci-rec-r2-1, pkg-rec-r2-1, tag-rec-r2-2)
  • T3 -- Root digest wording: the .git exclusion scope (any depth), excluded files that might still be deployed, and byte-wise order with no Unicode normalization, all matching the fix(claude): install intact user plugins through Claude settings, owned by the lock #3290 construction. (supporting: sw-rec-r2-1, oci-rec-r2-4, oci-nit-r2-1, pkg-rec-r2-3, tag-rec-r2-1)
  • T4 -- Ineligible plugins (symlink in the root, or a manifest path that escapes the root) have no defined outcome. They need split install or refusal with a default-visible diagnostic, never a silent skip. (supporting: sw-rec-r2-2, oci-rec-r2-2)
  • T5 -- Plugin-name and profile-root namespace hygiene: gaps in the denylist, an unspecified case-folding rule, reserved names, and pre-existing directories the consumer did not produce. (supporting: oci-rec-r2-3, sw-nit-r2-2, tag-nit-r2-1)
  • T6 -- The 10.18 residual overstates what a clone loads and omits the version-control enablement path that 10.11 row 12 tracks. (supporting: oci-nit-r2-2, tag-rec-r2-3)

Fold now (12 item(s)) -- folded post-panel in 910ea6e

  1. [F1 / T1] sec.8.5.11.1 req-na-001; tests/spec_conformance/test_native_activation_profile_reqs.py -- In req-na-001, replace the first sentence ('A conforming consumer implementation MUST natively activate a plugin for a target that the effective target intersection of req-tg-008 selects, and only at a scope and client version for which that target qualifies under criteria A1 to A5.') with: 'A conforming consumer implementation that natively activates plugins MUST do so only for a target that the effective target intersection of req-tg-008 selects, and only at a scope and client version for which that target qualifies under criteria A1 to A5.' Leave the rest of req-na-001 unchanged. In test_native_activation_requires_documented_part_a_qualification, add an assert_spec_contains pin for the exact wrapped text of 'that natively activates plugins MUST do so only for a target' (use \n where the source line wraps). Source ids: sw-blk-r2-1, pkg-blk-r2-1, tag-blk-r2-1.
    Success criterion: grep -c 'MUST natively$' at the req-na-001 anchor returns 0. The new phrase appears exactly once, inside req-na-001. The new test pin passes. The manifest notes for req-na-001 (already conditional) and the 0.1.65 changelog row ('permits native activation only for ...') stay consistent without edits.
  2. [F2 / T2] sec.8.5.11.2 req-na-005 (final sentence) -- Replace 'When the next lockfile pins content that no approval covers for a previously activated plugin, the consumer MUST either leave the previously deployed root and its activation entries unchanged, or retire them in the same rollback unit, and MUST NOT record in the lock a root digest for content it did not deploy.' with: 'When the next lockfile would pin content that no approval covers for a previously activated plugin, the consumer MUST either keep that plugin's previous lock entry (including its recorded plugin root and root digest), the previously deployed root, and its activation entries unchanged, and emit a default-visible diagnostic that names the plugin and states that the update was not applied; or retire the deployed root and its activation entries in the same rollback unit as the lock write. The written lock MUST NOT record a pin or root digest for content the consumer did not deploy.' Do not name lock fields; field names stay deferred to fix(claude): install intact user plugins through Claude settings, owned by the lock #3290. Source ids: sw-rec-r2-3, oci-rec-r2-1, pkg-rec-r2-1, tag-rec-r2-2.
    Success criterion: grep 'the update was not applied' and grep 'MUST NOT record a pin or root digest for content' each return 1 hit inside req-na-005. The old phrase 'leave the previously deployed root and its activation entries unchanged' returns 0 hits. The req-na-005 test pins still pass.
  3. [F3 / T3] sec.8.5.11.2 req-na-002 (root digest construction) -- Clarify the wording only. The fix(claude): install intact user plugins through Claude settings, owned by the lock #3290 construction itself does not change. Replace 'over every regular file in the plugin root except .git entries, taken in ascending order of the file's POSIX relative path encoded as UTF-8,' with 'over every regular file in the plugin root except any file whose relative path has a component equal to .git, at any depth, taken in ascending byte-wise order of the file's POSIX relative path encoded as UTF-8, with no Unicode normalization,'. Immediately after the sentence that ends 'unlike req-lk-012.', insert: 'Files so excluded MUST NOT be deployed under the profile root.' Source ids: sw-rec-r2-1, oci-rec-r2-4, oci-nit-r2-1, tag-rec-r2-1, pkg-rec-r2-3 (scope and order parts only).
    Success criterion: grep for 'has a component equal to .git', 'byte-wise order', 'with no Unicode normalization', and 'Files so excluded MUST NOT be deployed' each returns exactly 1 hit in req-na-002. 'except .git entries' returns 0 hits. The construction (path, NUL, x/-, 32-byte raw SHA-256, sha256 envelope) is byte-identical to the pre-fold text. The req-na-002 test pins pass.
  4. [F4 / T4] sec.8.5.11.2 req-na-002 (ineligible plugin outcome) -- Immediately after 'A symbolic link anywhere in the plugin root makes that root ineligible for native activation.', insert: 'A plugin that is ineligible under this requirement MUST be handled as req-na-006 handles a target that does not qualify: it is split-installed or refused, subject to req-tg-011, with a default-visible diagnostic that names the plugin and the reason, and never skipped silently.' Source ids: sw-rec-r2-2, oci-rec-r2-2.
    Success criterion: grep 'A plugin that is ineligible under this requirement' returns 1 hit in req-na-002, and that sentence cites req-na-006. No new req- anchor is added (statement count stays 147).
  5. [F5 / T5] sec.8.5.11.2 req-na-002 (name denylist and case rule) -- Replace 'a declared name that is empty, is . or .., equals .claude-plugin, or contains /, \, @, or a NUL byte, and two plugins activated at one scope whose names differ only by letter case.' with 'a declared name that is empty, begins with . (which covers ., .., .git, and .claude-plugin), ends with . or a space, or contains /, \, @, :, or a byte in the range 0x00 to 0x1F or equal to 0x7F, and two plugins activated at one scope whose names are equal under Unicode default case folding.' Source ids: oci-rec-r2-3 (denylist part), sw-nit-r2-2.
    Success criterion: grep 'begins with .' and grep 'Unicode default case folding' each return 1 hit in req-na-002. 'differ only by letter case' returns 0 hits. The req-na-002 test pins pass.
  6. [F6 / T5] sec.8.5.11.2 req-na-004 (final sentence on profile-root ownership) -- After 'it MUST NOT modify or remove any other entry there.', append: 'A directory at <profile root>/<plugin>/ that the previous lockfile did not produce is not owned: the consumer MUST NOT overwrite it unless its recomputed root digest equals the one the next lockfile records, and otherwise MUST refuse, before any write, with an actionable diagnostic that names the plugin and the path.' Source id: oci-rec-r2-3 (pre-existing directory part).
    Success criterion: grep 'that the previous lockfile did not produce is not owned' returns 1 hit in req-na-004. The existing req-na-004 test pins ('MUST remove\nonly what the previous lockfile produced with the same binding', the receipt pin) still pass.
  7. [F7 / T6] sec.10.18 Residual; sec.10.11 summary table row 12 -- In 10.18 Residual, replace 'so a clone loads what the committer approved.' with 'so a clone loads the committed bytes, which a consumer checks against the recorded root digest only when it next runs.' Then append to the Residual paragraph: 'A committed true enable entry is a version-control enablement path that req-sc-010 does not cover (see Section 10.11, row 12); it is not an approval under req-na-005 for any other user.' In the 10.11 table, change the row 12 requirements cell from 'req-sc-010' to 'req-sc-010, req-na-005', keeping the column alignment. Source ids: oci-nit-r2-2, tag-rec-r2-3.
    Success criterion: grep 'loads what the committer approved' returns 0 hits. grep 'only when it next runs' returns 1 hit in 10.18. The row 12 line contains both req-sc-010 and req-na-005. The anchor #1011-summary-table resolves.
  8. [F8 / standalone] sec.8.5.11.1 criterion A2 (na-crit-a2) -- Replace the end of A2, 'when the marketplace is declared at project scope.', with 'when the marketplace is declared at project scope, and, at project scope, documents how a relative directory path in the marketplace declaration resolves.' This closes the dangling 'resolved as the target documents under A2' reference in req-na-003. Part C needs no change: Claude Code's documented relative resolution already counts as met, and Copilot project scope is already unknown. Source id: sw-rec-r2-4.
    Success criterion: grep 'documents how a relative directory path in the marketplace declaration resolves' returns 1 hit, inside the na-crit-a2 bullet. The Part C table is unchanged.
  9. [F9 / standalone] tests/fixtures/spec-conformance/native-activation/req-na-004.json case previous-lock-missing; tests/spec_conformance/test_native_activation_profile_reqs.py -- The oracle must accept both branches of the req-na-004 MAY. Do not change the spec text. In expected case 'previous-lock-missing', replace 'settings_after' with 'settings_after_one_of': a two-element array. Element one is settings_before unchanged (beta only). Element two is the current expected object (beta and alpha enabled). Keep diagnostics ['previous-lock-missing']. Extend the top-level description: 'settings_after_one_of lists every conforming outcome where the rule leaves a choice (MAY).' In test_req_na_004_oracle_matches_the_reconciliation_rule, change the settings assertion to: settings in want.get('settings_after_one_of', [want.get('settings_after', want.get('settings_after_raw'))]). Source id: sw-rec-r2-5.
    Success criterion: pytest tests/spec_conformance/test_native_activation_profile_reqs.py passes. The previous-lock-missing expected case has settings_after_one_of with 2 entries. One entry equals the input settings_before.
  10. [F10 / standalone] sec.8.5.11.2 req-na-004 (moved binding); sec.12.4 oracle prose; req-na-004.json; test harness -- In req-na-004, replace 'When the binding has moved (the expected profile-root path differs from the one the previous lockfile's entries were produced under), or an entry under the consumer's marketplace name points at a different source, the consumer MUST report the conflict in an actionable diagnostic and MUST NOT write, delete, or overwrite any activation entry under that name.' with 'When the binding has moved (the expected marketplace name or profile-root path differs from the binding the previous lockfile's entries were produced under), or an entry under the consumer's marketplace name points at a different source, the consumer MUST report the conflict in an actionable diagnostic, MUST NOT write, delete, or overwrite any activation entry under either name, and MUST NOT declare another marketplace that points at the same profile root while an entry under the previous binding remains.' In the oracle, add an input and expected case 'binding-renamed' directly after 'binding-moved'. Input: scope user; marketplace {name 'apm-u-3f9c', path '/home/dev/.agents/plugins'}; previous_marketplace {name 'apm-u-0a71', path '/home/dev/.agents/plugins'}; previous_lock_plugins ['alpha']; next_lock_plugins ['alpha']; settings_before declaring 'apm-u-0a71' as a directory source at that path, with 'alpha@apm-u-0a71': true. Expected: settings_after equal to settings_before, diagnostics ['binding-moved']. In _reconcile, change the moved test to: moved_from is not None and (moved_from['path'] != case['marketplace']['path'] or moved_from['name'] != case['marketplace']['name']). In the 12.4 oracle paragraph, change 'reports a moved or foreign binding' to 'reports a moved, renamed, or foreign binding'. Source id: pkg-rec-r2-2.
    Success criterion: grep 'expected marketplace name or profile-root path differs' returns 1 hit in req-na-004. The oracle contains id 'binding-renamed' in both input and expected, in matching order. pytest on the native-activation test module passes. grep 'moved, renamed, or foreign binding' returns 1 hit in 12.4.
  11. [F11 / standalone] tests/fixtures/spec-conformance/native-activation/req-na-004.json case settings-unparseable -- Replace settings_before_raw and settings_after_raw in 'settings-unparseable' with content that is malformed under any JSON dialect, for example a truncated object: '{\n "enabledPlugins": {"alpha@apm-u-3f9c": true\n'. Change the case description from '(here JSONC with a comment)' to '(here a truncated object)'. A target that accepts JSONC then cannot make the case ambiguous. Source id: sw-nit-r2-1.
    Success criterion: json.loads of the new settings_before_raw raises an error. The settings_before_raw and settings_after_raw values are byte-identical. The description no longer mentions JSONC. pytest passes.
  12. [F12 / standalone] sec.8.5.11.2 req-na-006 (diagnostic content) -- Immediately after 'the criterion that is\nunmet or unknown', insert ', identified by its label (A1 to A5)'. Keep the existing line wrap so the req-na-006 test pin 'names the target, the scope, and the criterion that is\nunmet or unknown' still matches. Source id: tag-nit-r2-2.
    Success criterion: req-na-006 contains links to #na-crit-a1 and #na-crit-a5. The req-na-006 test pin passes unchanged.
Defer to v0.1.1 (7 items)

Defer to v0.2

  • [F20 / standalone] sec.10.18 / req-na-005 approval subject -- Bind the attestation subject for native-activated plugin roots (root digest as subject) when publisher attestations are defined. Carried from round 1.
    Reserved slot: sec.10.12 Publisher provenance and attestations (reserved for v0.2), #1012-publisher-provenance-and-attestations-reserved-for-v02

Rejected findings

  • pkg-rec-r2-3 (NFC normalization part) -- The root digest construction is pinned to fix(claude): install intact user plugins through Claude settings, owned by the lock #3290, which sorts by code point order of the POSIX path (equal to UTF-8 byte order) and applies no Unicode normalization. Adding NFC would change the construction, and with it every digest fix(claude): install intact user plugins through Claude settings, owned by the lock #3290 produces. F3 instead states explicitly that there is no normalization. The byte-order and .git-scope parts of this finding are folded in F3. Any future normalization belongs to the internationalization considerations reserved for v0.2.
  • pkg-blk-r2-1 (MUST NOT ... unless phrasing) -- Not rejected on substance; it converges with T1. F1 adopts the swagger and tag phrasing ('that natively activates plugins MUST do so only for'), which keeps the existing req-na-002..007 guard pattern and the manifest notes unchanged. One wording is enough.

Linter notes (1 check(s) failed)

  • [11] One .py file changed: tests/spec_conformance/test_native_activation_profile_reqs.py, the req-na conformance tests and the oracle reference model this amendment requires. There is no src/ change.

Linter handoff: 1) After F1, confirm req-na-001 begins 'A conforming consumer implementation that natively activates plugins MUST do so only for a target'. Run grep -n 'MUST natively$': no hit at the req-na-001 anchor. 2) No new req- anchors. The statement count stays 147 (142 MUST, 5 SHOULD); reconcile 1.3, 11.3.2, Appendix C, the requirements manifest (docs/public/specs/manifests/openapm-v0.1.requirements.yml) and CONFORMANCE.json counts unchanged. Refresh the manifest notes for req-na-002/004/005 if they paraphrase the changed sentences (denylist, .git scope, uncovered-update, binding rename). 3) Run pytest tests/spec_conformance/test_native_activation_profile_reqs.py. Every existing assert_spec_contains pin depends on exact line wraps (req-na-002, req-na-004, req-na-005, req-na-006), so re-wrap the edited paragraphs only around the changed text; the new F1 pin must match its wrap. 4) The oracle input and expected case ids must stay in identical order after F10 adds binding-renamed. 5) Verify F3 leaves the digest construction byte-identical apart from the clarifying words. 6) ASCII-only scan of the spec, oracle and test file (U+0020-U+007E plus newline). Forbidden-token scan: none of the folds adds one. 7) Check that the anchors #1011-summary-table, #na-crit-a1 and #na-crit-a5 resolve. 8) Optionally append a one-line note to the 0.1.65 changelog row that the round-2 panel folds changed no statement count.


Round 1 synthesis (folded in aa7604f)

Round 1: shocked-meter avg 6.75/10, ship_decision next_brief. Blockers: sw-blk-r1-1, pkg-blk-r1-1 and tag-blk-r1-1 (req-na-006 had no guard); oci-blk-r1-1 (root digest had no construction); oci-blk-r1-2 (req-na-005 skipped the req-tg-013 admission gates); tag-blk-r1-2 (split install versus req-tg-011 for Agent Plugins v1). All are closed in round 2.

  • [F1 / T1] sec.8.5.11.2 req-na-006, req-na-005 -- Rewrite req-na-006 as: '[req-na-006] A conforming consumer implementation that natively activates plugins under req-na-001 MUST NOT natively activate a plugin for a target and scope that does not qualify under req-na-001, and MUST NOT write that target's private state or activation entries for it under this subsection. For a plugin it would otherwise natively ...
  • [F2 / T2] sec.8.5.11.2 req-na-002 -- In req-na-002, replace 'one root digest covering the path, bytes, and executable bit of every file in that root' with a version that keeps that exact phrase (it is pinned) and then adds: 'The root digest is a hash envelope of the form sha256:<hex-lowercase> defined by req-lk-016. It is the SHA-256 of the concatenation, over every regular file in the plugin root except .git entri...
  • [F3 / T3] sec.8.5.11.2 req-na-004 -- Replace the sentence 'When the previous lockfile is missing or unreadable, the binding has moved, or an entry under the consumer's marketplace name points at a different source, the consumer MUST report the conflict in an actionable diagnostic and MUST NOT delete or overwrite that entry.' with two sentences. First: 'When the previous lockfile is missing or unreadable and the settings file already ...
  • [F4 / T3] sec.8.5.11.2 req-na-003 -- After 'The marketplace declaration MUST be a local directory source that points at the profile root.' insert: 'At project scope the declaration MUST use a relative path, resolved as the target documents under A2, and MUST NOT use an absolute path.'
  • [F5 / T3] tests/fixtures/spec-conformance/native-activation/req-na-004.json; tests/spec_conformance/test_native_activation_profile_reqs.py -- Add four oracle cases, matched by input and expected entries. (1) binding-moved: add an optional input 'previous_marketplace' {name, path} with a path different from 'marketplace.path'. settings_before holds the old binding and its keys. Expected: settings unchanged, diagnostics ['binding-moved']. (2) settings-unparseable: add an optional input 'settings_before_raw' holding a JSONC string with a c...
  • [F6 / T4] sec.8.5.11.2 req-na-002, req-na-004 -- In req-na-002, after the sentence defining <plugin> as the declared name, add: 'The consumer MUST refuse, before any write and with an actionable diagnostic naming the plugin, a declared name that is empty, is . or .., equals .claude-plugin, or contains /, \, @, or a NUL byte, and two plugins activated at one scope whose names differ only by letter case. Among plugins activated at on...
  • [F7 / T5] sec.8.5.11.3 Part C, GitHub Copilot CLI row -- Replace the Copilot A5 cell text 'same-key precedence against .github/copilot/settings*.json awaits a witness' with 'same-key precedence against .github/copilot/settings*.json is not documented, so project-scope A5 is unknown; an observed file-priority order is Part C evidence only'. Change the classification cell to 'Native-eligible at user scope (route migrates in [FEATURE] Native plugins at project scope for Claude and Copilot #3921); project scope unkno...
  • [F8 / T6] sec.8.5.11.2 req-na-005 -- In req-na-005, replace 'and the executable admission of req-sc-009 and req-sc-011 admits it' with 'and the lock-integrity obligations (req-lk-013, req-lk-015), the authorized source-plan scan (req-sc-015), and executable authorization (req-sc-009, req-sc-010, req-sc-011, and [req...
  • [F9 / standalone] sec.8.5.11.1 Part A intro and req-na-001 -- Before A1, add anchors through , one per criterion bullet or immediately before each. In the qualification paragraph, define: 'Published documentation means vendor documentation at a stable URL, or help text shipped in a cited client version.' In req-na-001: after 'for a target' insert 'that the effective target intersection of [req-tg-008](#req-tg-00...
  • [F10 / standalone] sec.8.5.11.2 req-na-002 (drift diagnostic) -- In req-na-002, after 'as drift under Section 5.5' insert ', and its drift diagnostic MUST name the plugin and the expected and observed root digests'. Frozen-install timing and verification of generated or owned entries are deferred; see defer_v0_1_1.
  • [F11 / standalone] sec.8.5.11.3 Part C Codex paragraph; Appendix D 0.1.65; req-na-006 waiver -- This applies option (b) of tag-blk-r1-2. Replace 'Codex therefore gets explicit split install under req-na-006.' with 'Codex therefore gets explicit split install under req-na-006, except for a schema-bearing Agent Plugins v1 dependency, which req-tg-011 keeps opaque at the deployment boundary: it is skipped with one actionable diagnostic rather than sp...
  • [F12 / T6] sec.10.11 row 25; new sec.10.18 -- In row 25, add req-na-001, req-na-006, req-na-007 and req-sc-015 to the citations. After 10.17, add '### 10.18 Native plugin activation'. Threat: 'Native activation loads unlocked, unapproved, or unscanned plugin content, captures another project's marketplace name, or rewrites settings the consumer does not own.' Mitigation: 'Section 8.5...
  • [F13 / standalone] sec.8.5.11.2 req-na-007 -- Change 'stable across clones of the same project at project scope' to 'stable across clones of the same project at project scope, where the project is identified by a project identity the consumer discloses in its conformance statement'. This keeps the pinned prefix 'stable across clones of the same project at project scope'. Append to that sentence: '; at project scope the name MUST NOT depend on...
  • [F14 / standalone] sec.8.5.11 intro, terms, Part C table -- Intro: change 'Part A states what a target must offer.' to 'Part A states what a target needs to offer.' Split install term: change '(Sections 8.1 to 8.5.10)' to '(the per-primitive rules of Section 8 outside this subsection)'. Claude row classification: change 'User scope delivered by PR fix(claude): install intact user plugins through Claude settings, owned by the lock #3290; project scope by [FEATURE] Native plugins at project scope for Claude and Copilot #3921' to 'User scope is delivered by fix(claude): install intact user plugins through Claude settings, owned by the lock #3290; project scope by [FEATURE] Native plugins at project scope for Claude and Copilot #3921'. Codex classifica...
  • [F15 / standalone] Appendix D row 0.1.65 -- Reconcile the row with F1 to F14. Change 'a Section 8.5.7 editorial note points to the two clauses req-na-002 and req-na-004 substitute for' to 'a Section 8.5.7 editorial note identifies the two clauses, req-na-002 and req-na-004, that substitute for'. State that the root digest construction is pinned in req-na-002. State that req-na-005 ...

Round 1 deferrals are carried into the round 2 lists above. Rejected in round 1: sw-nit-r1-2 (Manifest and Appendix C use the requirement's subsection id at depth three or less. For example, req-tg-013 is filed under 8.5.7 and no manifest entry uses a fo)

Full per-panel findings (round 2)

Swagger / OpenAPI Editor -- shocked_meter 7/10, confidence high

sw-blk-r1-1 closed. New blocker sw-blk-r2-1: the F9 rewording turned req-na-001 into an unguarded mandate (folded as F1). Recommended: sw-rec-r2-1 (.git scope; F3), sw-rec-r2-2 (ineligible-plugin outcome; F4), sw-rec-r2-3 (uncovered-update coherence; F2), sw-rec-r2-4 (A2 referent for relative paths; F8), sw-rec-r2-5 (oracle MAY branch; F9). Nits: sw-nit-r2-1 (strict-JSON unparseable case; F11), sw-nit-r2-2 (case folding; F5).

OCI Distribution Editor -- shocked_meter 8/10, confidence high

oci-blk-r1-1 and oci-blk-r1-2 closed; no new blockers; stance ship_with_followups. Recommended: oci-rec-r2-1 (uncovered-update; F2), oci-rec-r2-2 (ineligible plugins; F4), oci-rec-r2-3 (name denylist and unowned directories; F5, F6), oci-rec-r2-4 (.git scope; F3). Nits: oci-nit-r2-1 (byte-wise order; F3), oci-nit-r2-2 (10.18 residual wording; F7).

Package-Manager Registry-Contract Editor -- shocked_meter 7/10, confidence high

pkg-blk-r1-1 closed. New blocker pkg-blk-r2-1: the same req-na-001 regression (F1). Recommended: pkg-rec-r2-1 (uncovered-update; F2), pkg-rec-r2-2 (marketplace rename double declaration; F10), pkg-rec-r2-3 (.git scope and byte order folded in F3; NFC rejected because it would change the #3290 construction).

Web-Platform Architect -- shocked_meter 7/10, confidence high

tag-blk-r1-1 and tag-blk-r1-2 closed. New blocker tag-blk-r2-1: the same req-na-001 regression, plus a test pin (F1). Recommended: tag-rec-r2-1 (.git; F3), tag-rec-r2-2 (uncovered-update; F2), tag-rec-r2-3 (10.18 versus row 12 VCS enablement; F7). Nits: tag-nit-r2-1 (reserve marketplace.json; deferred F18), tag-nit-r2-2 (criterion labels in the diagnostic; F12).

This panel is advisory. It does not block merge. Re-apply the spec-review label after addressing feedback to re-run.

…t digest

req-na-002 now matches compute_native_plugin_hash: a root apm.yml and root
.apm/ that a consumer generates are excluded from the digest, never
deployed, and cannot be referenced by the plugin manifest.

apm-spec-waiver: spec-only amendment; no src/ change, implementation lands in #3290, #3921 and #3920

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Spec Guardian addendum: head 56061814d6

Scope: editorial-patch, delta only. One commit after comment 7011877799: +16/-10 lines in 3 files. No new requirement anchors; still 147 statements (142 MUST, 5 SHOULD).

What changed. At the #3290 implementer's request, req-na-002's root digest construction now matches the shipping compute_native_plugin_hash exactly. The file set also excludes the consumer's own normalization output, a root apm.yml and a root .apm/ directory that a consumer may generate when it materializes a package. Excluded files MUST NOT be deployed, and a plugin whose manifest references an excluded path MUST NOT be natively activated. The sort order, .git exclusion, symlink refusal and per-file record (path, NUL, exec-bit byte, raw 32-byte SHA-256) are unchanged. Manifest notes and the req-na-002 test pin are updated.

Delta review (OCI Distribution Editor, delta check). delta_ok: true, 0 blocking, 1 recommended:

Linter at this head: checks 1-10 pass (ASCII, forbidden tokens, schemas, fixtures, anchor uniqueness, counts, links, mermaid n/a, fixture cross-citation, CHANGELOG). Check 11 flags the conformance test .py file that the amendment requires; there is no src/ change.

CI at this head: green: Lint, Spec tests 1-3, Spec conformance gate, Check conformance statement, Merge Gate. orphan_check reports 147 aligned, and CONFORMANCE regeneration gives no diff.

This panel is advisory. It does not block merge.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit ca4c563 into main Nov 19, 2026
34 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-spec-native-plugin-activation branch November 19, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] OpenAPM native plugin activation profile

2 participants