docs: declare MPL-2.0 + CC-BY-SA-4.0 standard licence; de-drift CLAUDE.md#56
Merged
Merged
Conversation
Make the dual-licence standard explicit and authoritative for both humans and
machines, mirroring the estate LICENCE-POLICY.adoc:
- LICENSING.adoc (root): the standard — MPL-2.0 for code/config/scripts/build/
metadata/specs, CC-BY-SA-4.0 for prose docs (the two SPDX lines in normal use,
one per file by class). Documents that the root LICENSE carries MPL-2.0 as the
single licence GitHub detects (the community-health / "git health" marker),
the file-class mapping, and the exclusion cases (third-party flag-not-edit;
platform-registry MPL-2.0; 007/son-shared/PMPL not applicable to this repo).
- .machine_readable/licensing-policy.toml: machine-readable twin (tools enforce
from the TOML; the .adoc is the source of truth).
- README: point the licensing section at LICENSING.adoc and note the MPL-2.0
GitHub marker.
- root-allow.txt: admit LICENSING.adoc as an authority file.
Honestly flagged for owner decision (NOT swept — per the no-bulk-SPDX /
neurophone#99 guardrail): 5 Apache-2.0 proof files under academic/formal-
verification (Lean/Coq/Agda ecosystem convention vs MPL-2.0 default) and 2
PMPL-1.0 workflow files (.github/workflows/{scorecard,secret-scanner}.yml —
drift, since Phronesis is not a Palimpsest carve-out repo).
Root LICENSE (MPL-2.0) and LICENSES/{MPL-2.0,CC-BY-SA-4.0}.txt already correct.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AqMopxUsgu78rg5fhWBUkk
Resolve the Hypatia structural-drift (SD007) finding on .claude/CLAUDE.md by re-syncing it to the canonical hyperpolymath/standards .claude/CLAUDE.md. This pulls in the full current estate policy that the prior divergent copy was missing: the five-way License Policy (highest-priority guardrail), the complete language table (Rust/SPARK, Zig, Idris2, Agda, Gleam, Elixir, …), the V-lang / ATS2 / ReScript / Python bans, the Mustfile/justfile build system, and the TypeScript / ReScript / npm / JavaScript exemption tables. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AqMopxUsgu78rg5fhWBUkk
🔍 Hypatia Security ScanFindings: 6 issues detected
View findings[
{
"reason": "binary_to_term without :safe option -- deserialization attack (1 occurrences, CWE-502)",
"type": "elixir_send_unsanitised",
"file": "/home/runner/work/phronesis/phronesis/lib/phronesis/compiler.ex",
"action": "flag",
"rule_module": "code_safety",
"severity": "high"
},
{
"reason": "Nominal-only SAST in phronesis: 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/phronesis/phronesis",
"action": "auto_fix",
"rule_module": "scorecard",
"severity": "medium",
"remediation": "Add CodeQL or equivalent SAST workflow.",
"scorecard_check": "SAST"
},
{
"reason": "Repository has 7 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/scorecard/StaticAnalysis -- Hypatia scorecard: StaticAnalysis -- 1 day(s) old",
"type": "CSA001",
"file": "phronesis",
"action": "review",
"rule_module": "code_scanning_alerts",
"severity": "medium"
},
{
"reason": "Code scanning (Hypatia): hypatia/code_safety/elixir_send_unsanitised -- Hypatia code_safety: elixir_send_unsanitised -- 9 day(s) old [STALE]",
"type": "CSA001",
"file": "lib/phronesis/compiler.ex",
"action": "escalate",
"rule_module": "code_scanning_alerts",
"severity": "high"
},
{
"reason": "Code-scanning alert hypatia/code_safety/elixir_send_unsanitised (high) at lib/phronesis/compiler.ex is 9 days old (threshold: 7 days) -- overdue for remediation",
"type": "CSA003",
"file": "lib/phronesis/compiler.ex",
"action": "escalate",
"rule_module": "code_scanning_alerts",
"severity": "high"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
hyperpolymath
marked this pull request as ready for review
June 21, 2026 13:48
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
Two owner-directed follow-ups from the post-#55 discussion:
.claude/CLAUDE.md— re-sync to the canonical estate policy (Hypatia SD007).No source code touched; docs/metadata only. No file SPDX headers were swept (per the no-bulk-SPDX / neurophone#99 guardrail).
1 — Licensing standard
LICENSING.adoc(new, root) — the authoritative declaration, mirroring the estateLICENCE-POLICY.adoc: two SPDX identifiers in normal use (MPL-2.0 for code/config/scripts/build/metadata/specs; CC-BY-SA-4.0 for prose docs), one per file by class. Documents that the rootLICENSEcarries the MPL-2.0 text as the single licence GitHub detects (community-health / "git health" marker), the file-class mapping, and the exclusion cases..machine_readable/licensing-policy.toml(new) — machine-readable twin (tools enforce from the TOML; the.adocis the source of truth).README.adoc— licensing section now points atLICENSING.adocand notes the MPL-2.0 GitHub marker.root-allow.txt— admitsLICENSING.adocas an authority file.LICENSE= MPL-2.0;LICENSES/{MPL-2.0,CC-BY-SA-4.0}.txtpresent.The census found two sets of files that deviate from the standard. Per the guardrail these are owner-only, manual — I did not touch them:
academic/formal-verification/{agda/*.agda, coq/Phronesis.v, lean4/Phronesis.lean, lean4/lakefile.lean}(5)Apache-2.0.github/workflows/{scorecard.yml, secret-scanner.yml}(2)PMPL-1.02 — CLAUDE.md de-drift
.claude/CLAUDE.mdis now byte-identical to the canonicalhyperpolymath/standards.claude/CLAUDE.md, pulling in what the divergent copy was missing: the five-way License Policy guardrail, the full language table (Rust/SPARK, Zig, Idris2, Agda, Gleam, Elixir…), the V-lang/ATS2/ReScript/Python bans, the Mustfile build system, and the TS/ReScript/npm/JS exemption tables.🤖 Generated with Claude Code
https://claude.ai/code/session_01AqMopxUsgu78rg5fhWBUkk
Generated by Claude Code