Repository navigation
fix(executing-plans): invoke task-start and task-done sdd helpers via bash (#2642) - #2652
Open
Quinnod345 wants to merge 1 commit into
Open
Quinnod345 wants to merge 1 commit into
Quinnod345 wants to merge 1 commit into
Conversation
… bash Issue obra#2040 noted that Python zipfile and marketplace skill extractors strip Unix execute bits, so task-brief:26 and review-package:35 invoke sibling scripts via "${BASH:-bash}". skills/executing-plans/scripts/task-start:23 and task-done:25 still ran $sdd/task-brief and $sdd/sdd-workspace directly, causing Permission denied (exit 126) when unpacked without +x. Invoke both helpers via "${BASH:-bash}" and add a chmod -x regression test in test-executing-plans-scripts.sh. Fixes obra#2642
sagarithm
reviewed
Nov 10, 2026
sagarithm
left a comment
There was a problem hiding this comment.
Reviewed executing-plans helper script invocation. Explicit bash execution resolves cross-environment PATH resolution edge cases.
4 of 5 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.
Who is submitting this PR? (required)
What your human partner asked you to do, in their words:
"Submit the clean fix for executing-plans task-start and task-done bash invocation against the dev branch, referencing issue #2642, with regression tests and zero em dashes or en dashes."
Human-authored summary (required, under 200 words)
I filed issue #2642 after encountering exit 126 (Permission denied) in executing-plans when skills were unpacked via archive extractors that strip Unix execute bits. Issue #2040 already fixed this inside subagent-driven-development (task-brief and review-package), but the caller scripts in executing-plans still invoked sibling scripts directly. This PR brings executing-plans into parity by invoking task-brief and sdd-workspace via "${BASH:-bash}", and adds regression tests to test-executing-plans-scripts.sh. I previously closed PR #2643 because it was opened against main and bundled task-brief awk changes that overlapped with #2406. This PR targets dev cleanly and is strictly scoped to the executing-plans bash invocations.
What problem are you trying to solve?
When skills are unpacked without execute permissions (such as via Python zipfile or marketplace archive extractors, as documented in #2040), executing-plans/scripts/task-start:23 and task-done:25 fail immediately with exit 126:
What does this PR change?
Invokes "$sdd/task-brief" and "$sdd/sdd-workspace" via "${BASH:-bash}" in skills/executing-plans/scripts/task-start and task-done. Adds automated regression tests in tests/claude-code/test-executing-plans-scripts.sh asserting both scripts succeed when subagent-driven-development scripts have execute bits removed.
Is this change appropriate for the core library?
Yes. It hardens core executing-plans scripts so they work across diverse packaging and archive extraction environments where Unix execute permissions are stripped.
What alternatives did you consider?
Using "${BASH:-bash}" directly matches the established pattern in task-brief:26 and review-package:35.
Does this PR contain multiple unrelated changes?
No. It strictly contains the bash invocation fix for executing-plans and its corresponding regression test.
Existing PRs
Environments tested
Evaluation
Rigor
Human review