Repository navigation
Closed
Labels
featureNew feature or request
Description
Description
Introduce a standardized commit message format across to ensure consistency, traceability, and compliance with QMS requirements.
This includes defining a commit message convention, configuring tooling (Cursor + Git), and enforcing the standard locally and in CI.
Problem Statement
Currently, commit messages are free-form and inconsistently structured. This creates several problems:
- Reduced traceability between changes, requirements, risks, and issues
- Increased review effort due to unclear commit intent
- Difficulty demonstrating controlled change management during audits
- Risk of non-compliance with IEC 62304 / ISO 13485 expectations regarding software configuration management and change control
Commit messages are a critical part of any audit trail and must be standardized and enforceable.
Proposed Solution
Adopt and enforce a restricted Conventional Commits–based standard with mandatory traceability references.
The solution includes:
- Define a commit message standard
- Format:
type(scope): short description Refs: <IDs>
- Limited, approved commit types
- Mandatory references to issues, requirements, risks, or SOPs
- Document the standard
- Add a document describing rules and examples
- Tooling support
- Git commit message template (.gitmessage)
- Cursor Source Control configuration to auto-generate compliant messages
- Enforcement
- Local commit-msg git hook
- CI validation on pull requests
- Governance
- Squash-merge PRs so the final commit message becomes the approved change record
This ensures every change is human-readable, machine-checkable, and audit-ready
Alternatives Considered
- Free-form commit messages + PR descriptions: Rejected due to inconsistent enforcement and weak traceability.
- Relying solely on PR titles: Insufficient, as commits are the atomic change units referenced during audits and investigations.
- Per-developer guidelines without enforcement: Rejected; process must be enforceable and reproducible.
- Using emojis or semantic-release–style commits: Rejected as inappropriate for regulated environments.
Additional Context
- Commit messages are treated as quality records.
- Cursor’s AI-generated commit messages are helpful but must be constrained to avoid non-compliant output.
- This issue supports future work on:
- automated traceability reports
- release baselining
- audit evidence extraction
- Related standards:
- IEC 62304 — Software configuration and change management
- ISO 13485 — Documented procedures and records
- FDA design control expectations (change traceability)
Impact
Beneficiaries
- Developers (clear expectations, less review friction)
- QA / RA (clean audit trail, easier evidence extraction)
- Auditors (clear, consistent change rationale)
Compatibility
- Backward compatible with existing Git history
- New enforcement applies only to future commits
Risk
- Minimal implementation risk
- High positive impact on compliance and maintainability
Activity
docs: add commit message standard documentation
feat: add commit message validation script and tests
feat: add commit message validation hook to pre-commit configuration
feat: add commit message template configuration
docs: add Cursor rules and command for commit message workflow
feat(workspace): add commit standard and template to workspace assets
feat: add commit-msg hook for validating commit messages
fix: enforce hashtag requirement in commit message references
refactor: remove trailing newline requirement from commit message rules
feat: add commit message validation hook to pre-commit configuration
Merge pull request #41 from vig-os:feature/36-standardize-commit-mess…
fix: replace commit message to match new standard
docs: update CHANGELOG
docs: update commit message guidelines
docs: update CHANGELOG with recent additions and changes
docs: update commit message guidelines
docs: update CHANGELOG with recent additions and changes
chore: release 0.3.0 (#270)