Should Maka install local validation hooks by default? #4156
Phoenix500526
started this conversation in
General
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
PR #4132 proposes installing Husky hooks during normal root dependency setup. The goal is to run existing repository checks before a branch is pushed, especially when an agent-assisted change violates a repository assumption.
Today those failures often appear only in CI, which adds an avoidable edit, push, and wait cycle.
Proposed behavior
A regular
npm installornpm ciwould install two hooks:pre-commitchecks staged changes with Biome, checks ASF headers on new files, runs the Runtime Host protocol epoch guard, and runsgit diff --cached --check.commit-msgvalidates Conventional Commit messages with commitlint.The hooks reuse existing repository checks. CI remains the authority.
Local control and recovery
This changes every local commit, including intermediate commits.
git commit --no-verify.HUSKY=0.npm ci --omit=devdoes not install Husky. The prepare script skips hook setup when Husky is absent.npm installto restore the local tools, or bypass the hooks intentionally.Questions
Implementation: #4132
All reactions