Skip to content

fix(run): skills freshness is read from the working tree, but phases use committed skills — an uncommitted sync names the wrong version and silently runs old skills #1354

Closed

Description

@admarble

Problem

sequant run checks skill freshness from the files on disk, but phase worktrees check skills out from git. When a sequant sync was never committed, the warning names the wrong version, and the phases silently run older skills.

Found in a dogfood run on 2026-10-06 (downstream project, issue #255 there). The working tree had 2.18.0 skills from a sync on 2026-09-27 that was never committed. HEAD still had 2.15.1.

$ sequant run 255
!  Skills are outdated (2.18.0 → 2.19.0)

The phases ran the committed 2.15.1 skills. Exec followed the pre-ADR-0004 contract and stranded itself on a background test suite (#1032), so the PR got the placeholder body. Nothing in the output pointed at the real cause. Finding it took the phase transcripts.

#1257 AC-3 made doctor warn when .claude/skills/ is untracked. This case is tracked but modified: git status shows M .claude/skills/..., which neither doctor nor run flags.

Root: checkAndWarnSkillsOutdated (src/commands/sync.ts:843) reads .claude/skills/.sequant-version (SKILLS_VERSION_PATH, src/commands/sync.ts:49) from the working tree.

Portability: a portable defect. Anyone who runs sync and doesn't commit hits it. The sync output doesn't say a commit is needed.

Acceptance Criteria

  • AC-1: When .claude/skills/ has uncommitted changes in the main checkout, sequant run warns before provisioning worktrees that phases will use the committed skills and names the committed version (git show HEAD:.claude/skills/.sequant-version). Evidence: test with a temp repo whose committed .sequant-version differs from the working tree's.
  • AC-2: sequant doctor warns on the same state (tracked skills with uncommitted changes), alongside the fix(doctor/run): doctor and run --dry-run report success when nothing would work #1257 untracked check. Evidence: test with a temp repo with a modified tracked SKILL.md.
  • AC-3: sequant sync and sequant update end by saying that sequant run uses committed skills, so the changes must be committed, when they wrote any file under .claude/skills/. Evidence: test asserting the message after a sync that wrote a skill.
  • AC-4: docs/troubleshooting.md has an entry for "phases behave like an older sequant after sync" that names the commit step. Evidence: grep docs/troubleshooting.md for the entry heading.

Activity

  1. added
    bug
    on Oct 7, 2026
  2. added 2 commits that reference this issue on Oct 9, 2026
  3. added a commit that references this issue on Oct 16, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions