chore: migrate legacy pre-commit hook to .pre-commit-config.yaml

Replaces shell script (.git/hooks/pre-commit.legacy) with ecosystem-managed pre-commit framework:
- gitleaks/gitleaks: secret scanning
- jumanjihouse/pre-commit-hooks: shellcheck wrapper
- pre-commit/pre-commit-hooks: JSON/YAML validation, end-of-file-fixer, trailing-whitespace
- local hooks: SKILL.md frontmatter validation

Uses pinned versions for reproducibility across environments. Includes auto-fixes from hook runs (formatting, trailing whitespace, JSON beautification).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 18:54:37 +00:00
parent 3e52636da6
commit d98d0dae18
39 changed files with 1077 additions and 235 deletions

View File

@@ -2,8 +2,8 @@
**Purpose:** Auditability of the artifact creation process. Documents what was done, how, why, and what decisions were made or deferred. Not a task list — a process record.
**Project:** AI governance research and artifact creation for a software development, deployment, and infrastructure management context.
**Sessions:** Three sessions, May 2026.
**Project:** AI governance research and artifact creation for a software development, deployment, and infrastructure management context.
**Sessions:** Three sessions, May 2026.
**Artifacts produced:** See artifact registry below.
---
@@ -28,8 +28,8 @@ The work was deliberately sequenced: research first, then distil into operative
Each topic in the research document follows: question being researched → findings → counterarguments and challenges → bias flag → provisional principles.
### Distillation logic
Research document = full sourced reasoning (human reference, never in agent context).
Constitution = concise principles derived from research (agent-readable, repo artifact).
Research document = full sourced reasoning (human reference, never in agent context).
Constitution = concise principles derived from research (agent-readable, repo artifact).
AGENTS.md = agent-actionable subset of the constitution, optimised for context window efficiency.
### Standing integrity caveat