Skip to content

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 into
mainfrom
feature/1456-fix-run-uncommitted-hook-changes-go-unwarned-phase
Oct 16, 2026
Merged

admarble merged 4 commits into
mainfrom
feature/1456-fix-run-uncommitted-hook-changes-go-unwarned-phase

Conversation

@admarble

@admarble admarble commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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/. getSkillsCommitState now adds .claude/hooks/ to the same git status pathspec, and formatSkillsCommitWarning names each directory that has modified tracked files (skills, hooks, or both) and says what to commit. The three existing callers (sequant run pre-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

AC Status Evidence
AC-1 Met 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 below
AC-2 Met grep -n 'getSkillsCommitState|formatSkillsCommitWarning' finds the same three call sites: doctor.ts:788, sync.ts:901, run-orchestrator.ts:1239. doctor.test.ts asserts the hooks line
AC-3 Met An untracked file under .claude/hooks/ gives no warning (integration test)

Runner check: npx vitest run src/lib/skills-commit-state.integration.test.ts src/commands/doctor.test.ts gives 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

QA verdict: AC_MET_BUT_NOT_A_PLUS. The fix-now gap (the missing mutation record) is closed above.


🤖 Generated by sequant run; body rewritten by the graph runner.

Phases run committed .claude/hooks/, so the #1354 commit-state check now covers them.

Entire-Checkpoint: 00db2269e99b
@admarble
admarble merged commit 9835fd1 into main Oct 16, 2026
8 checks passed
@admarble
admarble deleted the feature/1456-fix-run-uncommitted-hook-changes-go-unwarned-phase branch October 16, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(run): uncommitted hook changes go unwarned — phases run the committed .claude/hooks/, but the #1354 check only covers skills

1 participant