Skip to content

fix(init): stop defaulting scaffolded plugin licenses to MIT - #3799

Merged
Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel/scaffold-omit-license
Nov 17, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 2 commits into
mainfrom
danielmeppiel/scaffold-omit-license

Conversation

@danielmeppiel

Copy link
Copy Markdown
Collaborator

Description

apm init --plugin and apm plugin init wrote "license": "MIT" into the author's new plugin.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

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

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 passed

  • pytest tests/unit -k "plugin_json or init" -> 501 passed

  • uvx [email protected] check + format --check on the changed files -> clean

Spec conformance (OpenAPM v0.1)

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

This PR was drafted with AI assistance and reviewed by a maintainer.

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]>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 19:28
@danielmeppiel Daniel Meppiel (danielmeppiel) added this to the 0.36.1 milestone Nov 17, 2026

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.

🟢 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

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 8a2a990 into main Nov 17, 2026
27 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel/scaffold-omit-license branch November 17, 2026 19:38
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.

Plugin scaffold should not default the author's license to MIT

2 participants