Skip to content

Say in GOVERNANCE.md That the Husky Hook Also Passes the Staged Paths to the Prose Gate #3820

Done

Description

@ptr727

GOVERNANCE.md line 299, in the "Running the Linters Locally (Known-Working Invocations)" hook bullet, says the pre-commit framework "passes the gate the paths pre-commit names instead of the tree". That contrasts it with a plain git hook, which by implication scans the whole tree.

The burndown/1657-staged-prose-hook change fixes #1657 and #3443. It makes the Husky hooks, .husky/pre-commit and catalog/snippets/husky/pre-commit, pass the staged paths too. They come from git diff --cached --name-only --diff-filter=ACMRT -z, filtered to regular files, with --skip-generated. So the contrast no longer holds. Another lane held GOVERNANCE.md when that change was made, so it could not edit the file.

Fix: one clause saying the Husky hook also passes the staged paths, with --skip-generated. The next sentence stays true: under a plain git hook a partially staged file is judged on all of its edits. That holds because the hook still reads each named file's working-tree content.

Raised by the local review pass on that change.

Activity

  1. added
    deferred
    on Nov 2, 2026
  2. ptr727 commented on Nov 23, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim (round 5, 2026-11-23): branch burndown/merge-gate-and-test-suite-rules.

    Predicted files: GOVERNANCE.md, .agents/skills/pr-review-conduct/SKILL.md (plus build_dist-generated include regions).

    Group issues: #2280 #1298 #3820.

  3. removed
    deferred
    on Nov 23, 2026
  4. ptr727 commented on Nov 23, 2026

    @ptr727
    OwnerAuthor

    Lifting deferred: the deferral was only that another lane held this fix's file. Checked live on 2026-11-23: no open pull request and no branch other than origin/feature/wsl-2299 holds any file. The outcome is already stated in the body, so the issue returns to the ranking.

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