Repository navigation
Conversation
Phase 5.3 of /fullsolve and the Worktree Cleanup section of /exec referenced ./scripts/dev/cleanup-worktree.sh, but scripts/dev/ is gitignored — the actual repo-tracked path is ./scripts/cleanup-worktree.sh. The Bash(./scripts/dev/cleanup-worktree.sh:*) allowlist pattern in exec/SKILL.md also missed the canonical path. Replaced 9 occurrences across all three mirrors of exec/SKILL.md and fullsolve/SKILL.md (.claude/skills/, templates/skills/, skills/), plus 2 occurrences in docs/concepts/worktree-isolation.md and docs/internal/testing.md (sibling-site sweep). Closes #583
5 tasks
…path
The fullsolve allowed-tools header had `Bash(./scripts/dev/*:*)` as a
wildcard permission, which does not match the canonical
`./scripts/cleanup-worktree.sh` path that Phase 5.3 now invokes after
the parent commit. Without this entry, users hit a permission prompt
running the suggested cleanup — exactly the second symptom the issue
body called out ("Permission allowlist misses").
Adds `Bash(./scripts/cleanup-worktree.sh:*)` to all three mirrors of
fullsolve/SKILL.md alongside the existing dev/* wildcard. Existing
exec/SKILL.md allowlist was already corrected in the parent commit.
Refs #583
8 tasks
admarble
deleted the
feature/583-fix-fullsolve-exec-wrong-cleanup-worktree-sh-path-
branch
May 7, 2026 03:36
4 tasks
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
/fullsolveand the Worktree Cleanup section of/execreferenced./scripts/dev/cleanup-worktree.sh, butscripts/dev/is gitignored — the canonical, repo-tracked path is./scripts/cleanup-worktree.sh(a symlink totemplates/scripts/cleanup-worktree.sh). The suggested next-step command users would copy/paste returned127: no such file or directory, and theBash(./scripts/dev/cleanup-worktree.sh:*)permission allowlist pattern inexec/SKILL.mddid not match the actual canonical invocation.exec/SKILL.mdandfullsolve/SKILL.md(.claude/skills/,templates/skills/,skills/), plus 2 sibling-site occurrences indocs/concepts/worktree-isolation.mdanddocs/internal/testing.md.### Fixedentry under## [Unreleased]inCHANGELOG.md.Acceptance Criteria
./scripts/dev/cleanup-worktree.sh→./scripts/cleanup-worktree.shin 9 occurrences across 6 files.npx tsx scripts/check-skill-sync.tsreportssynced fullsolve/SKILL.md — 3/3 matchANDsynced exec/SKILL.md — 3/3 match.grep -r "scripts/dev/cleanup-worktree" .claude/skills/ templates/skills/ skills/returns zero matches.scripts/cleanup-worktree.shexists and is executable (symlink totemplates/scripts/cleanup-worktree.sh).[Unreleased] / ### Fixedreferencing fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583 (≤3 lines).Test plan
grep -rn "scripts/dev/cleanup-worktree" .claude/skills/ templates/skills/ skills/returns no matches.npx tsx scripts/check-skill-sync.ts | grep -E "exec/SKILL.md|fullsolve/SKILL.md"showssynced ... 3/3 matchfor both.ls -la scripts/cleanup-worktree.shshows symlink + executable bit on target.### Fixedsection starts with the new fix(fullsolve, exec): wrong cleanup-worktree.sh path in skill mirrors (scripts/dev/ is gitignored) #583 bullet (above bug(fullsolve): QA loop re-runs /qa with no state change instead of escalating same-SHA same-verdict cycles #581).build (20.x),build (22.x),validate-skills,Hooks Validation,Plugin Structure Validationall pass.Notes
.claude/skills/exec/SKILL.md:30—./scripts/dev/new-feature.shis a separate script (notcleanup-worktree.sh), not covered by AC-1..claude/settings.local.json:46,88,90— gitignored, per-developer permission allowlist; doesn't ship.docs/) was applied — prevents an identical follow-up issue. AC-3's grep was deliberately not broadened to includedocs/; a freshgrep -r "scripts/dev/cleanup-worktree" docs/returns zero matches today, so the divergence is cosmetic.validate-skillsCI job runscheck-skill-sync.ts, so any future drift across the three mirrors will fail CI, not just QA.Closes #583