Skip to content

hook: commit-msg gate does not apply CI's HIGH-risk unlinked-commit check #342

Open

Description

@stackbilt-admin

Found during constellation-loop review of #339.

charter validate --ci also fails HIGH-risk commits that lack governance links, separately from requireTrailers. The commit-msg gate from #299 only mirrors the trailer rule, so a HIGH-risk commit can still pass locally and fail CI. Needs a decision on whether the hook should classify staged files (it runs after staging, so the diff is available) or whether this stays CI-only and is documented as such. Refs #299.

Activity

  1. stackbilt-admin commented on Nov 28, 2026

    @stackbilt-admin
    MemberAuthor

    Coordination note: #446 (part of epic #437) adds a staged-diff classification mode. That's the capability this issue needs for the commit hook to apply CI's HIGH-risk unlinked-commit check. It's scoped so the hook and validate --ci call the same classifier. #448 also makes gate-failure output render through one code path for the hook and CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions