fix(shim): relicense the JSR shim package to MPL-2.0#299
Merged
Conversation
JSR validates the `license` field in `deno.json` against the SPDX
list and rejects unrecognised identifiers. The repo's house licence
`PMPL-1.0-or-later` is not on the SPDX list (it's the custom Polymath
Public License), so the v0.1.2 publish failed with:
Failed to publish @hyperpolymath/affinescript at 0.1.2:
The license specified … was not recognized.
Relicense the shim package — and only the shim package — under
`MPL-2.0` (Mozilla Public License 2.0). MPL-2.0 is on the SPDX list
(no `LicenseRef-` prefix needed), is OSI-approved, and is the licence
the estate has been moving toward (see memory + JULIA-SUITE notes).
Scope is deliberately narrow: 5 files inside
`packages/affinescript-cli/` (`deno.json` + the four
`SPDX-License-Identifier:` headers in `mod.js`, `mod.d.ts`,
`pins.js`, `mod_test.js`). The rest of the repo stays on PMPL —
this PR does NOT do a repo-wide licence sweep, the code generators
that emit PMPL headers stay unchanged, and `LICENSES/` is not
modified. A separate, deliberate decision is needed for any wider
move; flagged in the PR description.
Verification
- `deno publish --dry-run`: clean, 4 files.
- `deno test mod_test.js`: 6/6 green.
- License field value (`MPL-2.0`) recognised by SPDX/JSR.
Last blocker for the v0.1.2 JSR publish: package exists, OIDC
trusted publisher is wired, types are typed, license is now SPDX.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| @@ -1,4 +1,4 @@ | |||
| // SPDX-License-Identifier: PMPL-1.0-or-later | |||
| // SPDX-License-Identifier: MPL-2.0 | |||
| @@ -1,4 +1,4 @@ | |||
| // SPDX-License-Identifier: PMPL-1.0-or-later | |||
| // SPDX-License-Identifier: MPL-2.0 | |||
🔍 Hypatia Security ScanFindings: 42 issues detected
View findings[
{
"reason": "Stray AI.a2ml in root -- use 0-AI-MANIFEST.a2ml only",
"type": "banned",
"file": "AI.a2ml",
"action": "delete",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Superseded by 0-AI-MANIFEST.a2ml",
"type": "banned",
"file": "AI.djot",
"action": "delete",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Issue in quality.yml",
"type": "missing_workflow",
"file": "quality.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in security-policy.yml",
"type": "missing_workflow",
"file": "security-policy.yml",
"action": "create",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Action actions/checkout@v4 needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action denoland/setup-deno@v2 needs attention",
"type": "unpinned_action",
"file": "publish-jsr.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/example/smoke_driver.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/cli.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
},
{
"reason": "TypeScript file detected -- banned language",
"type": "banned_language_file",
"file": "/home/runner/work/affinescript/affinescript/affinescript-deno-test/mod.ts",
"action": "flag",
"rule_module": "cicd_rules",
"severity": "critical"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This was referenced May 20, 2026
hyperpolymath
added a commit
that referenced
this pull request
May 20, 2026
…JSR publish (#303) INT-04 and INT-10 were both marked DONE in TECH-DEBT, but the wording predated the actual JSR publish: - INT-04 line said "JSR publish authorised + dispatched (owner go 2026-05-19)" — speculative; the real first-time publish landed 2026-05-20 (six dispatched runs through the scope/package/trusted- publisher/SPDX-licence/.d.ts/cross-runtime gates). - INT-10 said DONE but didn't note the LSP's shim-resolution path only became *executable* after today's publish (code was correct but inert against a 404 JSR URL). Updates - docs/TECH-DEBT.adoc — INT-04 + INT-10 lines reflect the live publish, with explicit note that @hyperpolymath/affine-js + affinescript-tea remain dry-run-OK / not-yet-dispatched. - docs/PACKAGING.adoc — JSR-publishable table now has 3 rows with a Status column; @hyperpolymath/affinescript row records the LIVE 0.1.2 (2026-05-20) state, cross-runtime carve-out, MPL-2.0 licence pointer. New "First-time JSR publish gotchas" subsection captures the five gates that fail one at a time (scope claim, package create, trusted GH repo link, SPDX licence, sibling .d.ts + triple-slash reference) — dry-run misses gates 2 + 3 so they cost a round-trip. - .machine_readable/6a2/STATE.a2ml — new session-note-2026-05-20 following the existing `session-note-YYYY-MM-DD = "…"` convention, capturing every landed PR (#291/#292/#293/#294/#295/#298/#299) and the estate macos-13 sweep (casket-ssg#8, proven#29, repos-monorepo#9), plus the open follow-up tickets (#297/#300, #301, #302). This file is the STATE.a2ml mirror, not the lead; TECH-DEBT.adoc is the spine. No code change. TECH-DEBT update protocol calls for ledger + STATE mirror in lockstep; PACKAGING is the human-facing companion. Memory entries (`reference_macos_13_runner_retired`, `reference_estate_gitbot_auto_closes_on_refs`, `reference_estate_mirror_state_2026_05_20`, `reference_jsr_publish_recipe`) live in `~/.claude/projects/.../memory/` and are out of repo scope. Refs #282 (closed), #301, #302, #297, #300. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
licensefield indeno.jsonagainst the SPDX list and rejects unrecognised identifiers. The repo's house licencePMPL-1.0-or-lateris custom (Polymath Public License) — not on the SPDX list — so the v0.1.2 publish failed:Scope is deliberately narrow
Only 5 files under
packages/affinescript-cli/:deno.json—"license": "MPL-2.0"mod.js,mod.d.ts,pins.js,mod_test.js— SPDX-License-Identifier headerOut of scope (separate decision):
bin/,lib/,runtime/,affinescriptiser/,tools/*/, …LICENSE-MPL-2.0toLICENSES/The wider sweep needs explicit owner approval; flagged for follow-up.
Verification
deno publish --dry-run→ clean, 4 files, no warnings.deno test mod_test.js→ 6/6 green.MPL-2.0.After merge
Last blocker for the v0.1.2 JSR publish: package exists ✓, OIDC trusted publisher is wired ✓, types are typed ✓, license is now SPDX ✓. Re-dispatch
publish-jsr.ymlafter merge and0.1.2should finally land onhttps://jsr.io/@hyperpolymath/affinescript.🤖 Generated with Claude Code