Repository navigation
Description
Context
PR #299 relicensed only packages/affinescript-cli/ (the JSR shim) from PMPL-1.0-or-later to MPL-2.0, because JSR validates the license field against the SPDX list and rejects PMPL-1.0-or-later. The narrow scope was deliberate — relicensing the rest of the repo is a meaningful decision, not a CI cleanup.
The rest of the repo still uses PMPL-1.0-or-later everywhere:
- Every
SPDX-License-Identifier:header inbin/,lib/,runtime/,affinescriptiser/,tools/,distributions/rattlescript/, … - Several code generators that emit PMPL headers when scaffolding new files (e.g. in
lib/— theBuffer.add_stringlines for various target languages). Any new file generated by those backends carries PMPL until they're updated too. LICENSES/hasLICENSE-AGPL-3.0andLICENSE-PMPL-1.0; noLICENSE-MPL-2.0.affinescript.opamdeclareslicense: "MIT OR AGPL-3.0-or-later"— a third licence string, separately from the SPDX header convention. (Worth reconciling in the same pass.)
The decision
Pick one:
- Hold — Keep PMPL everywhere except the JSR shim. Document the carve-out (already done in
.claude/CLAUDE.mdRuntime Exemptions table). Accept the inconsistency betweendeno.jsonand source headers in that one package. - Whole-repo PMPL → MPL-2.0 — Single repo-wide sweep. Touches every source file, the codegens that emit headers, and adds
LICENSES/LICENSE-MPL-2.0. Probably also reviseaffinescript.opam'slicense:field. Substantial change, needs explicit go-ahead because PMPL is the house licence. - Other direction — switch the shim back to PMPL via
LicenseRef-PMPL-1.0-or-later(SPDX-permitted) and live with that on JSR. Loses the SPDX standard match but preserves the house licence.
Option 1 is the no-decision default. Option 2 is the bigger move; my read of the memory I have is that the estate has been gradually moving toward MPL-2.0 anyway, but this is a policy call, not mine.
Why filed
Decision is irreversible-ish (changes licence terms users see); needs explicit owner go before any sweep.
Refs #299 (the narrow scope).
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs: catch up TECH-DEBT, PACKAGING + STATE.a2ml with the 2026-05-20 …
chore(license): SPDX headers PMPL-1.0-or-later → MPL-2.0 (Closes #301) (
docs: post-#303 catch-up — #297/#300/#301/#302/#304 + repos-monorepo …
chore(affine-vscode): finish PMPL→MPL sweep + truth-up Status paragra…