chore(hooks): version-controlled pre-commit + SPDX split by file-type#48
Merged
Merged
Conversation
Replaces the un-versioned .git/hooks/pre-commit with a committed, installable hook (hooks/pre-commit + hooks/install.sh sets core.hooksPath=hooks), fixing the 'hooks not reproducible across clones' gap. Licence fix (LICENCE-POLICY Rule 1): SPDX expectation now splits by file-type — prose docs (.md/.adoc) expect CC-BY-SA-4.0, code/config expect MPL-2.0 — so the hook stops rejecting correctly CC-BY-SA-licensed docs. Owner-string check kept strict on all (deliberate LLM-edit diagnostic). No-C / SNIFs / Idris-ABI policies preserved unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
hyperpolymath
added a commit
that referenced
this pull request
Jun 29, 2026
Finishes the deferred doc work (you authorised the header edits). ## Reference fixes (post-rename) - `ai/README.adoc`, `AI-CONVENTIONS.adoc`, `bot_directives/README.adoc`: stale paths → new canon (`descriptiles/`, `descriptiles/anchors/`, `bot_directives/`), incl. fixing pre-existing root-vs-`6a2` path bugs. - `bot_directives/README.adoc`: title `Agent Instructions` → `Bot Directives`; relationship section reconciled (this dir *is* the former `agent_instructions`). ## Factual fixes - `TEST-NEEDS.md`: CI workflow count **21 → 14** (actual). - `ROADMAP.adoc`: v1.0.0 marked **shipped 2026-05-29** (per CHANGELOG); Current Status updated. ## Headers Added/normalised `CC-BY-SA-4.0` + canonical owner-string on every edited doc — dropped the `(hyperpolymath)`/year owner-string variant so they pass the file-type-split pre-commit hook (#48). Manually validated against that hook's logic. Depends-on: #48 (the hook) for the headers to be enforced. README dedup was already resolved (no `README.adoc`; `README.md` is canonical CC-BY-SA). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (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.
Ports the documented estate hook fix here and makes hooks reproducible.
What
hooks/pre-commit+hooks/install.sh(setscore.hooksPath=hooks). Fixes the "hooks not reproducible across clones" finding — the old enforcer lived only in un-versioned.git/hooks/..md/.adoc) → CC-BY-SA-4.0, code/config → MPL-2.0. The old hook demanded MPL on every doc, contradicting the estate docs-licence policy and rejecting correctly CC-BY-SA-licensed docs.Verified
Installed locally (
core.hooksPath=hooks).🤖 Generated with Claude Code