Repository navigation
fix(#1456): uncommitted hook changes go unwarned — phases run the committed .claude/hooks/, but the #1354 check only covers skills - #1478
Merged
admarble merged 4 commits intoOct 16, 2026
Conversation
Phases run committed .claude/hooks/, so the #1354 commit-state check now covers them. Entire-Checkpoint: 00db2269e99b
Entire-Checkpoint: c45a3fab005e
…uncommitted-hook-changes-go-unwarned-phase
3 tasks
…uncommitted-hook-changes-go-unwarned-phase
admarble
deleted the
feature/1456-fix-run-uncommitted-hook-changes-go-unwarned-phase
branch
October 16, 2026 23:30
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
Phase worktrees are checked out from git, so they run the committed
.claude/hooks/as well as the committed skills. #1354's commit-state check only looked at.claude/skills/.getSkillsCommitStatenow adds.claude/hooks/to the samegit statuspathspec, andformatSkillsCommitWarningnames each directory that has modified tracked files (skills, hooks, or both) and says what to commit. The three existing callers (sequant runpre-flight,doctor,sync) print it unchanged, and no call site was added. Untracked hooks don't warn, the same as untracked skills.Fixes #1456
Acceptance criteria
skills-commit-state.integration.test.ts: a modified tracked hook warns and names.claude/hooks/, skill-only behaviour is unchanged, both directories are named together, and a clean tree gives no warning. Mutation recorded belowgrep -n 'getSkillsCommitState|formatSkillsCommitWarning'finds the same three call sites:doctor.ts:788,sync.ts:901,run-orchestrator.ts:1239.doctor.test.tsasserts the hooks line.claude/hooks/gives no warning (integration test)Runner check:
npx vitest run src/lib/skills-commit-state.integration.test.ts src/commands/doctor.test.tsgives 86/86 passed.Mutation verification
Mutation-verified: AC-1 — removed HOOKS_DIR_PATH from the git status pathspec in getSkillsCommitState;
skills-commit-state.integration.test.ts > skills commit state (#1354) > #1456 AC-1: a modified tracked hook warns and names .claude/hooks/failed, along with the both-directories case (2 failed, 84 passed); restored.Follow-ups
doctorskips the commit-state check when a core skill is untracked, so in that case a modified hook isn't reported. Dropped, with the reason posted on fix(run): uncommitted hook changes go unwarned — phases run the committed .claude/hooks/, but the #1354 check only covers skills #1456: that branch already warns thatsequant runcan't see the skills, and the hooks warning appears on the nextdoctoronce they're committed.🤖 Generated by
sequant run; body rewritten by the graph runner.