You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
playbooks: repo-sweep procedures use bash-wrapped script and compound git commands that worktree-isolated sessions refuse #4537
skills/repo-sweep/reference/next.md tells the session to run bash S/state.sh, bash S/catalog.sh C, bash S/tick.sh ..., and bash S/guard.sh .... It also has the session fetch and fast-forward the sweep branch as one step. In a worktree-isolated Claude Code session the harness refuses both shapes:
bash <script>: "this command runs bash in a plain command; what it reads or is handed as shell text cannot be shown not to run git. Refusing to run it"
git fetch ... && git merge --ff-only ... combined with other commands: "this command names git in a form too complex to verify that it stays inside the worktree. Refusing to run it"
Seen during the tidy step of the melodic-software/.github sweep (PR melodic-software/.github#153). The workaround was to call each script directly by its absolute path (the scripts are executable) and to run each git command as its own call. The same guard also refused gh issue create --body-file - fed from a heredoc whose text mentioned git, so review should write each issue body to a file under .work/ and pass that path.
Proposed fix
In reference/next.md, reference/review.md, and SKILL.md's script table, write every script call as a direct executable path (S/state.sh, not bash S/state.sh) and put each git command in its own call. In review.md, file issue bodies from a file path rather than stdin. Say once that sweeps run in worktrees and that these shapes are what isolation allows.
Activity
fix(playbooks): repo-sweep procedures for worktree-isolated Bash/git (#…
fix(playbooks): repo-sweep procedures for worktree-isolated Bash/git (#…
fix(playbooks): repo-sweep procedures for worktree-isolated Bash/git (#…
docs(playbooks): repo-sweep records carry the Claude Code version the…
fix(playbooks): repo-sweep partial coverage, declined outcome, and au…