diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-08-13 00:27:52 +0000 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-08-13 00:27:52 +0000 |
| commit | 0be49879b1c51a479d2013a14fe42ed9bd10ce32 (patch) | |
| tree | 714e7cff3dd9784bf81be76a912c8c368814cf43 /skills/subagent-driven-development/scripts | |
| parent | 777ceb5e12b6845f25e339ef1f4bef4e32b58d10 (diff) | |
fix(sdd): invoke sdd-workspace via bash so helpers survive stripped exec bitsfix/sdd-helpers-no-exec-bit
Codex marketplace users hit 'Permission denied' running SDD helpers:
some extractors (Python zipfile) discard Unix mode attributes when
unpacking the package, so task-brief's and review-package's direct exec
of their sibling sdd-workspace fails. Our packaging preserves 0755
(git archive | tar -xpf, asserted by the existing packaging test) — the
bits are lost on the consumer side, which no packaging change can reach.
Invoking the sibling via "${BASH:-bash}" makes the exec bit irrelevant.
TDD: new regression case copies the helpers, chmod -x, runs task-brief
via bash — RED with the reported rc=126 Permission denied, GREEN after.
Reported in #2040 (michaelholcomb-creator). Fixes #2040.
Diffstat (limited to 'skills/subagent-driven-development/scripts')
| -rwxr-xr-x | skills/subagent-driven-development/scripts/review-package | 4 | ||||
| -rwxr-xr-x | skills/subagent-driven-development/scripts/task-brief | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/skills/subagent-driven-development/scripts/review-package b/skills/subagent-driven-development/scripts/review-package index 31852e2..c7ce1ef 100755 --- a/skills/subagent-driven-development/scripts/review-package +++ b/skills/subagent-driven-development/scripts/review-package @@ -25,7 +25,9 @@ git rev-parse --verify --quiet "$head" >/dev/null || { echo "bad HEAD: $head" >& if [ $# -eq 4 ]; then out=$4 else - dir=$("$(cd "$(dirname "$0")" && pwd)/sdd-workspace" "$plan") + # Invoke via bash rather than direct exec: some extractors (Python zipfile) + # strip Unix exec bits when unpacking marketplace packages (#2040). + dir=$("${BASH:-bash}" "$(cd "$(dirname "$0")" && pwd)/sdd-workspace" "$plan") out="$dir/review-$(git rev-parse --short "$base")..$(git rev-parse --short "$head").diff" fi diff --git a/skills/subagent-driven-development/scripts/task-brief b/skills/subagent-driven-development/scripts/task-brief index 612e14a..b49fc54 100755 --- a/skills/subagent-driven-development/scripts/task-brief +++ b/skills/subagent-driven-development/scripts/task-brief @@ -21,7 +21,9 @@ n=$2 if [ $# -eq 3 ]; then out=$3 else - dir=$("$(cd "$(dirname "$0")" && pwd)/sdd-workspace" "$plan") + # Invoke via bash rather than direct exec: some extractors (Python zipfile) + # strip Unix exec bits when unpacking marketplace packages (#2040). + dir=$("${BASH:-bash}" "$(cd "$(dirname "$0")" && pwd)/sdd-workspace" "$plan") out="$dir/task-${n}-brief.md" fi |
