| name | canon-governance-check |
| version | 0.1.0 |
| description | Enforces changelog updates for significant changes to CANON/, TOOLS/, schemas, and ADRs |
| compatibility | all |
required_canon_version: >=3.0.0
Canon Governance Check Skill
Version: 0.1.0
Status: Active
Required Canon Version: >=2.6.0 <3.0.0
Purpose
Enforces documentation hygiene by requiring changelog updates when significant system changes are made.
What it checks
Behavior Changes (requires CANON/CHANGELOG.md)
TOOLS/- Runtime behaviorCATALYTIC-DPT/PRIMITIVES/andCATALYTIC-DPT/PIPELINES/- Core runtimeSKILLS/- Agent capabilities.github/workflows/- CI enforcement
Rule Changes (requires CANON/CHANGELOG.md)
CANON/*.md- Canon specificationsCATALYTIC-DPT/SPECTRUM/*.md- Frozen lawSCHEMAS/*.json- Contract definitions
Decision Changes (requires CANON/CHANGELOG.md)
CONTEXT/decisions/*.md- Architecture Decision Records
Warnings (not errors)
- CAT-DPT changes without
CATALYTIC-DPT/CHANGELOG.mdupdate - Canon changes without
AGENTS.mdsync
Usage
CLI
# Normal check
node TOOLS/check-canon-governance.js
# Verbose mode (show all changed files)
node TOOLS/check-canon-governance.js --verbose
As a Skill
python SKILLS/canon-governance-check/run.py
In CI
Automatically runs in .github/workflows/contracts.yml on every push/PR.
Pre-commit Hook
# Install pre-commit hook
cp SKILLS/canon-governance-check/scripts/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
Exit Codes
0- Pass (no significant changes or changelog updated)1- Fail (significant changes without changelog)
Cortex Integration
When run with CORTEX_RUN_ID set, logs governance check events to the Cortex provenance ledger.
Implementation
- Core script:
TOOLS/check-canon-governance.js(Node.js) - Skill wrapper:
SKILLS/canon-governance-check/run.py - Pre-commit hook:
SKILLS/canon-governance-check/scripts/pre-commit
required_canon_version: >=3.0.0