Repository navigation
fix(init): stop defaulting scaffolded plugin licenses to MIT - #3799
Merged
Daniel Meppiel (danielmeppiel) merged 2 commits intoNov 17, 2026
Merged
Conversation
The plugin scaffold wrote "license": "MIT" into the author's plugin.json in both Agent Plugins and legacy Claude modes. License is an author decision; omit it. Fixes #3798 Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 17, 2026 19:28
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the change to leave scaffolded plugin license choices to authors.
No open issues 🎉
What changed in this PR
Addresses #3798 by leaving the license choice to plugin authors rather than defaulting newly scaffolded manifests to MIT. APM's own Apache-2.0 license is unchanged.
Changes:
- Removes the default license from both Agent Plugins and legacy Claude scaffolds.
- Updates regression assertions to require that scaffolded manifests omit
license. - Documents the behavior change in the changelog.
| File | Description |
|---|---|
tests/unit/test_init_plugin.py |
Updates the manifest assertion and docstring to expect no default license. |
tests/unit/commands/test_plugin_init_command.py |
Adds a no-license assertion for the legacy Claude scaffold. |
src/apm_cli/commands/_helpers.py |
Removes the hardcoded MIT license from both scaffold modes. |
CHANGELOG.md |
Records the change and advises authors to choose their package's license. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel/scaffold-omit-license
branch
November 17, 2026 19:38
12 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
apm init --pluginandapm plugin initwrote"license": "MIT"into the author's newplugin.json, in both the Agent Plugins and legacy Claude modes. The license is the author's decision, so the scaffold now omits the field. It is optional in both plugin schemas. APM's own license (Apache-2.0) is unaffected.Issue and approved scope
Issue: Fixes #3798
Human scope-approval comment: #3798 (comment)
Does this PR complete the issue, or what remains? Completes it.
Type of change
Testing
Tested locally
All existing tests pass
Added tests for new functionality (if applicable)
pytest tests/unit/test_init_plugin.py tests/unit/commands/test_plugin_init_command.py tests/unit/agent_plugins-> 127 passedpytest tests/unit -k "plugin_json or init"-> 501 passeduvx [email protected] check+format --checkon the changed files -> cleanSpec conformance (OpenAPM v0.1)
This PR was drafted with AI assistance and reviewed by a maintainer.