fix(work-items): decompose publish snippet is refused in worktree-isolated sessions
Les mainteneurs répondent en général sous 1 jour
Une pull request liée a déjà été fusionnée.
- #7090 par @kyle-sexton — fusionnée
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Start with the step 4 publish snippet in plugins/work-items/skills/decompose/SKILL.md, which combines a git rev-parse command substitution with a $(cat "$BODY_FILE") body argument, then read the create-item path in work-item-tracker.sh. Reproducing the refusal needs a worktree-isolated Claude Code session, and whether a --body-file option already exists is unconfirmed. Done means the documented publish runs from a worktree-isolated session without a wrapper, and the same check covers /work-items:track add.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
/work-items:decompose step 4's publish snippet is refused in a worktree-isolated session, so a decompose run from a worktree cannot publish slices as written.
What happened
Publishing the approved breakdown for #6917 from a worktree-isolated session, every create-item call shaped like the step 4 snippet was refused by Claude Code's worktree isolation:
this command names git in a form too complex to verify that it stays inside the worktree. Refusing to run it
Both tracker paths (main checkout and worktree copy) were refused when the body was passed inline as --body "$(cat "$BODY_FILE")". The run only published after the agent moved the call into a wrapper script that runs the worktree's copy of work-item-tracker.sh. Nothing was created by the refused attempts.
Likely cause (inference, not yet reproduced in isolation)
The snippet in plugins/work-items/skills/decompose/SKILL.md step 4 combines:
- a fallback
TRACKER="${CLAUDE_PROJECT_DIR:-$(git rev-parse --show-toplevel)}/...", which putsgitinside a command substitution; and --body "$(cat "$BODY_FILE")", another command substitution in the same invocation.
Claude Code documents that in an isolated worktree it "blocks a Bash or Monitor command when it can't verify from the command text that any git the command runs stays inside the worktree" (worktrees: how Claude Code enforces isolation). The tracker script itself runs gh/git, which the command-shape check cannot see through.
Fix direction
Give create-item a --body-file input (or document one if it exists) and split the snippet into plain commands with literal paths, so no git or command substitution appears in the publishing command. Same check for other skills that reuse this snippet (/work-items:track add).
Verification
- A decompose publish from a worktree-isolated session succeeds with the documented snippet, no wrapper.
- Related precedent: #5696, #6234 (other worktree-isolation refusals of our commands).
No related issue: found during the #6917 publish; not covered by #5696 or #6234.
- Langage dominant
- Shell
- Étoiles
- 22
- Forks
- 2
- Merge moyen
- 8 h 25 min
- PR mergées (30 j)
- 944
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de melodic-software/claude-code-plugins
-
good first issue priority: low
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
melodic-software/claude-code-plugins#7530 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
needs-human priority: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
melodic-software/claude-code-plugins#7455 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
priority: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
melodic-software/claude-code-plugins#7351 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
agent-ready priority: high work-class: scoped
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
melodic-software/claude-code-plugins#7312 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
priority: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
melodic-software/claude-code-plugins#7288 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de melodic-software/claude-code-plugins
Issues similaires
-
area:cli bug good first issue priority:medium
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
rtk-ai/rtk#4615 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
MicrosoftDocs/PowerShell-Docs#13332 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
package-update
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Add a script to fund and create fresh testnet player identitiesPeut-être pris @chiemezie1 l’a pris aujourd’hui. Ouvertegood first issue Stellar Wave
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
OlaGreat/starbound-realms#119 · 1 commentaire ·
-
base-files: 82_config_generate: regenerate /etc/board.json if 0-bytes / truncated after power cutOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
openwrt/openwrt#25940 · 5 commentaires ·
Les mainteneurs répondent en général sous 1 jour