Skip to content

test(plugins): a plugin with root skills/ keeps its --skill subset on every pass - #4326

Merged
Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-plugin-skill-subset-test-4270
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 4 commits into
mainfrom
danielmeppiel-plugin-skill-subset-test-4270

Conversation

@danielmeppiel

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

Copy link
Copy Markdown
Collaborator

Description

Test-only. Adds an installed-CLI lifecycle case proving that a package with a plugin manifest and a root skills/ directory keeps its --skill subset selection (#4126's user-facing intent) now that it is typed as a Claude plugin collection (marketplace_plugin) on every pass (#4270, #4276).

tests/integration/test_package_shape_lifecycle_contract.py::test_plugin_with_root_skills_subset_lifecycle, parametrized over .claude-plugin/plugin.json and root plugin.json. A git source with skills/find-skills and skills/other-skill is declared with skills: [find-skills]. The steps are fresh install, cached reinstall plus audit --ci, then cold install --frozen plus audit --ci. After each step the lock records marketplace_plugin with skill_subset: [find-skills], only that skill deploys, the audit is clean, frozen state is byte-identical, and the manifest is unchanged.

It extends the existing module (behavioral marker e2e) beside test_manifestless_skill_bundle_subset_lifecycle, its manifest-less control. No new module. Module promise marker: P-OWN-package-format-precedence, P-OWN-dependency-selection (catalog ids; #4142).

Issue and approved scope

Refs #4270

Human scope-approval comment: #4270 (comment) (test follow-up requested by the 0.37 Stream H lead).

Does this PR complete the issue, or what remains? #4270 is closed by #4276; this adds coverage only.

Type of change

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

Testing

  • Tested locally: APM_E2E_TESTS=1 APM_BINARY_PATH=.venv/bin/apm pytest tests/integration/test_package_shape_lifecycle_contract.py -k subset_lifecycle: 3 passed.
  • All existing tests pass (CI)
  • Added tests for new functionality (if applicable)

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

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

Co-authored-by: Copilot [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 new lifecycle tests do not verify byte-identical frozen lockfiles and lack the lifecycle_smoke marker needed to run both regression cases in the required PR-time job.

2 open issues
What changed in this PR

This test-only PR adds lifecycle coverage for plugin skill subsets after #4276 restored consistent marketplace_plugin classification across fresh and cached installs.

Changes:

  • Covers both .claude-plugin/plugin.json and root plugin.json manifests.
  • Checks the selected skill, lock metadata, and audit results across fresh, cached, and cold frozen installs.
  • Verifies semantic state preservation after frozen restoration and unchanged consumer manifest bytes.
File Description
tests/​integration/​test_package_shape_lifecycle_contract.py Adds a parametrized installed-CLI lifecycle test for plugin root-skill subset selection.

Review effort: Balanced

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 2b71aa4 into main Nov 20, 2026
37 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-plugin-skill-subset-test-4270 branch November 20, 2026 15:46
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.

2 participants