Appearance
0017. Plugin licensing
Status: proposed (pending the owner and a lawyer, plan decision D4). Applies to the plugin packages and their manifest (ADR 0014), the plugin SDK under sdk/ (ADR 0013), the operator review checklist in docs/plugins/, and scripts/licence-audit.mjs.
Context
Orbit is licensed AGPL-3.0-only (LICENSE; every crate and module.toml says AGPL-3.0-only). Phase 4 lets third parties write plugins: WebAssembly modules that an operator adds and a tenant owner installs, run in-process by the Extism host and calling Orbit only through the host functions of plugin ABI 1 (ADR 0013).
Whether such a plugin is a work "based on" Orbit under the AGPL, and so must itself be offered under the AGPL when it is conveyed or used over a network, is a legal question this ADR does not answer. The 1.0 exit criterion (an outside developer's plugin running in a pilot tenant) must not wait for that answer.
Facts that matter for the options:
- Every commit on
developmenttoday is authored by one person (370 of 370), so the project can still add permissions to its own licence without asking other contributors. That stops being true at the first outside contribution unless contributions come under an agreement that allows it. - The plugin SDK under
sdk/(not yet in the repository; L4 addssdk/plugin-rust) is planned as MIT (contract section 3), so a plugin that links only the SDK links no AGPL code. - AGPL-3.0 section 7 allows the copyright holder to add "additional permissions" that make exceptions from the licence's conditions.
Decision
1. Orbit 1.0 (the default, in force until the owner decides otherwise)
- A plugin package's manifest must name its licence as an SPDX expression (
licence = "MIT"). Package verification (ADR 0014) refuses a package without one. - For 1.0, Orbit accepts only plugins whose licence is AGPL-compatible: the same allowlist as
deny.toml(MIT, Apache-2.0, the BSD licences, ISC, MPL-2.0, AGPL-3.0 and the others listed there). The operator's review checklist checks the declared licence against the plugin's source repository. - The plugin SDK (
sdk/**) is MIT, with anSPDX-License-Identifier: MITheader in each file, so plugins of any of those licences can use it. - Official plugins published by the project are AGPL-3.0-only, like the core.
This keeps 1.0 inside the AGPL whatever the legal reading of "based on", because every plugin that runs is under a licence that can be combined with it.
2. Proposed for after 1.0: a section 7 plugin exception
Pending the owner and a lawyer. Add to LICENSE (or a LICENSE-EXCEPTION file it names) an additional permission along these lines:
As an additional permission under section 7, you may combine Orbit with a plugin that interacts with Orbit only through the documented plugin ABI (version 1 or later) and its manifest, and convey or offer the combination over a network, without the plugin itself being covered by this licence. This permission does not extend to modifications of Orbit itself.
What the lawyer is asked to confirm:
- That the wording holds for WebAssembly plugins run in-process through Extism.
- Whether the managed cloud (SolarIT Solutions) offering third-party plugins under other licences needs anything further.
- Whether outside contributions need a contributor licence agreement, or a developer certificate of origin plus a statement that contributions accept the exception, before the first outside pull request is merged.
If the exception is adopted, the licence allowlist for plugins in section 1 is dropped and proprietary plugins become possible; the review checklist still requires a declared SPDX licence.
Consequences
- An outside developer can write a plugin for the 1.0 exit under MIT or Apache-2.0 with no legal question open.
- Proprietary plugins are not possible in 1.0. That is deliberate until the lawyer answers.
- The single-author fact is time-limited: deciding on the exception (or a contributor agreement) before outside contributions start keeps the option open.
scripts/licence-audit.mjschecks the web app and the auth sidecar today; plugin packages are checked by package verification, not by that script.