Skip to content

fix(#1354): warn when tracked skills have uncommitted changes — phases use the committed ones - #1385

Merged
admarble merged 3 commits into
mainfrom
fix/1354-committed-skills
Oct 9, 2026
Merged

admarble merged 3 commits into
mainfrom
fix/1354-committed-skills

Conversation

@admarble

@admarble admarble commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

sequant run checks each phase worktree out from git, so phases load the skills committed at HEAD. A sequant sync that was never committed never reached a phase. The Skills are outdated warning read the version file on disk, so it named a version the phases weren't using. Downstream, on 2026-10-06, it said 2.18.0 while every phase ran the committed 2.15.1, and the run failed in a way only the phase transcripts could explain.

The new src/lib/skills-commit-state.ts reads what git sees: tracked files under .claude/skills/ with uncommitted changes, and .sequant-version at HEAD. One formatter produces the warning everywhere:

Rejected alternative: copying working-tree skills into worktrees. It would make phase behavior depend on uncommitted state, which is the opposite of why worktrees come from git.

Fixes #1354

AC coverage

AC Status Evidence
AC-1: run warns before provisioning and names the committed version MET src/lib/workflow/run-skills-commit-warning.integration.test.ts uses a real git repo (committed 2.15.1, on disk 2.18.0) and asserts the warning printed before ensureWorktrees. src/lib/skills-commit-state.integration.test.ts covers the state reader.
AC-2: doctor warns on tracked skills with uncommitted changes MET src/commands/doctor.test.ts > "warns when tracked skills have uncommitted changes, naming the committed version (#1354)"
AC-3: sync/update say to commit the skills MET src/lib/skills-commit-state.integration.test.ts > "AC-3: sync's closing message…". update calls the same warnUncommittedSkills.
AC-4: troubleshooting entry MET grep -n "Phases behave like an older sequant after" docs/troubleshooting.md

Affected suites pass: src/commands, skills pre-flight, the orchestrator and the new tests, 51 files and 770 tests. tsc and npm run lint are clean.

Mutation records

Mutation-verified: AC-1 — disabled the run warning (if (warning && false)); the run test failed; restored.
Mutation-verified: AC-2 — forced modified: [] at doctor's call site; the doctor #1354 test failed and 73 others passed; restored.
Mutation-verified: AC-3 — disabled warnUncommittedSkills's print; the AC-3 test failed; restored.

🤖 Generated with Claude Code

…s use the committed ones

sequant run checks phase worktrees out from git, so an uncommitted sync never reaches a phase. run (before provisioning), doctor, sync and update now say so and name the committed version, from one shared helper (src/lib/skills-commit-state.ts).

Entire-Checkpoint: 2fdad61d2fc8
@admarble
admarble merged commit e467d1a into main Oct 9, 2026
10 checks passed
@admarble
admarble deleted the fix/1354-committed-skills branch October 9, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant