feat(platform): implement commit-cadence enforcement and change-history plumbing (ANGA-654)#79
Open
anhermon wants to merge 1 commit into
Open
feat(platform): implement commit-cadence enforcement and change-history plumbing (ANGA-654)#79anhermon wants to merge 1 commit into
anhermon wants to merge 1 commit into
Conversation
…ry plumbing (ANGA-654) Adds platform-level mechanisms to enforce commit cadence and preserve verifiable change history: 1. Commit cadence guardrail (scripts/check-commit-cadence.sh) - Prevents uncommitted changes older than 24h (configurable threshold) - Integrated into pre-commit hook workflow - Provides actionable guidance for developers 2. Enhanced commit-msg hook with rationale requirements - Validates Conventional Commits format - Requires "Rationale:" field for feat/fix/refactor and workflow-scope commits - Minimum 10-character rationale for meaningful explanation 3. Commit message template (.gitmessage) - Documents required format and rationale fields - Provides examples of well-formed commits - Includes Co-Authored-By trailer for agent commits 4. Machine-readable change-history script (scripts/generate-change-history.sh) - Parses git log into structured JSON output - Extracts commit metadata: type, scope, rationale, author, date - Supports filtering by date/limit and output to file 5. Documentation (scripts/README.md) - Usage guide for all scripts and hooks - Troubleshooting section - Integration with git workflow Rationale: Frequent commits with documented rationale enable reliable branching, rollback, and auditable organizational evolution. This addresses the gap identified in ANGA-652 where workflow changes accumulated without version control, making rollback and change tracking difficult. The platform now enforces commit quality through automated guardrails while preserving machine-readable change history for compliance and auditing. Co-Authored-By: Paperclip <noreply@paperclip.ing>
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
Implements platform-level mechanisms to enforce commit cadence and preserve verifiable change history for auditable workflow evolution.
Addresses: ANGA-654
Changes
Commit cadence guardrail (
scripts/check-commit-cadence.sh)COMMIT_CADENCE_THRESHOLD_HOURS)Enhanced commit-msg hook (
.githooks/commit-msg)Commit message template (
.gitmessage)<type>(<scope>): <description>Machine-readable change-history script (
scripts/generate-change-history.sh)--since,--limit,--outputDocumentation (
scripts/README.md)Gitignore update (
.gitignore).paperclip/directory exclusionVerification
/tmp/sample-change-history.json)Testing
Tested locally:
Files Changed
.githooks/commit-msg- enhanced rationale validation.githooks/pre-commit- integrated cadence check.gitignore- added.paperclip/exclusion.gitmessage- new commit templatescripts/check-commit-cadence.sh- new cadence guardrailscripts/generate-change-history.sh- new change-history generatorscripts/README.md- new documentationTest plan
🤖 Generated with Claude Code