license: canonicalize to MPL-2.0 (code) + CC-BY-SA-4.0 (docs), drop PMPL#33
Merged
Merged
Conversation
Replaces the inconsistent, partially-migrated Palimpsest/PMPL licensing with one canonical rule, wired up the REUSE way and CI-enforced against slippage. - Root LICENSE: canonical MPL-2.0 text (so GitHub community-health detects MPL-2.0). - LICENSES/MPL-2.0.txt + LICENSES/CC-BY-SA-4.0.txt (verbatim SPDX texts). - Per-file SPDX by type: code/config/CI/.a2ml = MPL-2.0; docs (*.adoc/*.md, docs/**) = CC-BY-SA-4.0 (~120 files). - REUSE dep5: placeholders substituted, docs->CC-BY-SA-4.0 stanza, rule documented. - Killed PMPL reset vectors: removed k9 add-license curl-fetch of the PMPL LICENSE; Trustfile/Mustfile/contractile.just now affirm MPL-2.0 instead of requiring 'PMPL'; rhodibot text fixed. - Anti-slippage CI rules: must-no-pmpl, must-licenses-present, must-docs-cc-by-sa. - Rule declared in LICENSE, dep5, README, 0-AI-MANIFEST.a2ml, CLAUDE.md, and new ADR docs/decisions/0002-licensing-policy.adoc. - Removed Palimpsest legal exhibits; moved main.zig SPDX header to top (SD009). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y2MWTAqX2x7goVJzjFB4j5
🔍 Hypatia Security ScanFindings: 8 issues detected
View findings[
{
"reason": "Issue in scorecard-enforcer.yml",
"type": "scorecard_publish_with_run_step",
"file": "scorecard-enforcer.yml",
"action": "split_scorecard_publish_job",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Download-and-execute pattern (curl|wget pipe to shell) -- verify integrity before execution (3 occurrences, CWE-494)",
"type": "shell_download_then_run",
"file": "/home/runner/work/wokelangiser/wokelangiser/setup.sh",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"line": 24,
"reason": "Secret found: Generic API key",
"type": "secret_detected",
"file": "/home/runner/work/wokelangiser/wokelangiser/.envrc",
"action": "revoke_rotate_and_purge",
"rule_module": "security_errors",
"severity": "critical"
},
{
"reason": "Nominal-only SAST in wokelangiser: codeql.yml language matrix contains no language present in the repo and lacks `actions`, so CodeQL records zero results on every commit. Remediation: set the CodeQL matrix to `language: actions`.",
"type": "StaticAnalysis",
"file": "/home/runner/work/wokelangiser/wokelangiser",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Add CodeQL or equivalent SAST workflow.",
"scorecard_check": "SAST"
},
{
"reason": "1 workflow(s) with tag-pinned (not SHA-pinned) actions in wokelangiser",
"type": "DependencyPinning",
"file": "/home/runner/work/wokelangiser/wokelangiser",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Pin GitHub Actions and Docker base images by SHA hash.",
"scorecard_check": "Pinned-Dependencies"
},
{
"reason": "Repository has 12 non-main remote branch(es). Policy: single main branch only.",
"type": "GS007",
"file": ".",
"action": "delete_remote_branches",
"rule_module": "git_state",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/workflow_audit/scorecard_publish_with_run_step -- Hypatia workflow_audit: scorecard_publish_with_run_step -- 20 day(s) old [STALE]",
"type": "CSA001",
"file": "scorecard-enforcer.yml",
"action": "escalate",
"rule_module": "code_scanning_alerts",
"severity": "high"
},
{
"reason": "Code-scanning alert hypatia/workflow_audit/scorecard_publish_with_run_step (high) at scorecard-enforcer.yml is 20 days old (threshold: 7 days) -- overdue for remediation",
"type": "CSA003",
"file": "scorecard-enforcer.yml",
"action": "escalate",
"rule_module": "code_scanning_alerts",
"severity": "high"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
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.
What
Replaces the inconsistent, half-migrated Palimpsest/PMPL licensing with one canonical rule — MPL-2.0 (code) + CC-BY-SA-4.0 (documentation) — wired up the REUSE way and CI-enforced so it can't slip back. Also completes the
main.zigSPDX header fix (SD009).The rule (now stated in every governing file)
.a2mlstate / dotfiles /.well-known→MPL-2.0*.adoc,*.md,docs/**) →CC-BY-SA-4.0Changes
LICENSE— canonical MPL-2.0 text; the garbled "Palimpsest (MPL-2.0)" preamble is gone.LICENSES/MPL-2.0.txt+LICENSES/CC-BY-SA-4.0.txt— verbatim SPDX texts (REUSE layout).SPDX-License-Identifier: CC-BY-SA-4.0(one per file, by type).dep5—{{placeholders}}substituted, docs→CC-BY-SA-4.0 stanza, rule documented.add-licenserecipe thatcurl-fetched the PMPL LICENSE over the top ofLICENSE; bothTrustfiles,Mustfile, andcontractile.justnow affirm MPL-2.0 instead of requiring the literalPMPL;rhodibottext corrected; Palimpsest legal exhibits removed.must-no-pmpl,must-licenses-present,must-docs-cc-by-sa(wired intomust-check).LICENSE,dep5,README,0-AI-MANIFEST.a2ml,.claude/CLAUDE.md, and newdocs/decisions/0002-licensing-policy.adoc.main.zig— SPDX header moved to line 1 (SD009).Verified locally
grep -rniI 'palimpsest|pmpl'(outside policy-definition files) → 0 hits.*.adoc/*.mdcarries the CC-BY-SA-4.0 header; bothLICENSES/*.txtpresent;LICENSEline 4 =Mozilla Public License Version 2.0.Note on the GitHub badge
GitHub detects only one licence (from root
LICENSE). To guarantee it reads MPL-2.0 as requested,LICENSEis kept as essentially the pure MPL-2.0 text — the dual-licence statement lives prominently inREADME,dep5, ADR-0002, and theLICENSES/folder rather than as a prose preamble insideLICENSE(extra prose there can flip GitHub's detector to "Other").🤖 Generated with Claude Code
https://claude.ai/code/session_01Y2MWTAqX2x7goVJzjFB4j5
Generated by Claude Code