Skip to content

Fix stripped exec-bit invocation in executing-plans and fence/section parsing in task-brief - #2643

Closed
Quinnod345 wants to merge 1 commit into
obra:mainfrom
Quinnod345:fix/sdd-noexec-and-task-brief-fences
Closed

Quinnod345 wants to merge 1 commit into
obra:mainfrom
Quinnod345:fix/sdd-noexec-and-task-brief-fences

Conversation

@Quinnod345

Copy link
Copy Markdown

Fixes #2642

Summary

I found these two issues during a 4-pass Ponder audit of the subagent-driven-development and executing-plans shell helpers (full session & falsification log):

  1. Invoke task-brief and sdd-workspace via ${BASH:-bash} in executing-plans (#2040 parity):
    • skills/executing-plans/scripts/task-start:23 and skills/executing-plans/scripts/task-done:25 now invoke $sdd/task-brief and $sdd/sdd-workspace via "${BASH:-bash}" so they survive marketplace/zipfile extractors that strip Unix +x bits, matching task-brief:26 and review-package:35.
  2. Close intask on trailing non-Task headings and track fence delimiter length/char in task-brief:
    • skills/subagent-driven-development/scripts/task-brief now tracks the opening fence character (backtick or tilde) and length (3+) so a 4-backtick outer fence containing a 3-backtick block does not invert infence for the rest of the file.
    • Tracks the matched task heading depth (task_depth) and closes intask when encountering a non-Task heading outside a fence with depth <= task_depth (preventing trailing sections like ## Self-Review and ## Execution Handoff from leaking into the last task's brief, while preserving deeper subheadings like ### Step 1 inside a task).

Verification

Added regression tests to both existing test scripts and verified locally:

  • bash tests/claude-code/test-executing-plans-scripts.sh (all 14 assertions pass)
  • bash tests/claude-code/test-sdd-workspace.sh (all 27 assertions pass)

@Quinnod345

Copy link
Copy Markdown
Author

Thanks for the review notes. Closing this PR because I opened it against main instead of dev, and because it bundled two changes where the task-brief awk changes overlap with open PRs #2359 and #2304 (issue #2406). I've updated #2642 to cover only the executing-plans ${BASH:-bash} invocation gap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

executing-plans/scripts/task-start and task-done fail without +x (#2040)

1 participant